|
3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
|
Base interface for an Event. More...
#include <IEvent.hpp>

Public Member Functions | |
| virtual void | Bind (std::function< Any(std::vector< Any >)> callback)=0 |
| Binds an typeless function to this event. | |
| virtual Any | operator() (std::vector< Any > &args)=0 |
| Calls the bound functions with the given arguments and returns the result of the last function called. | |
| virtual void | Reset () noexcept=0 |
| Unbinds the functions. | |
| virtual | ~IEvent ()=default |
Protected Member Functions | |
| IEvent ()=default | |
Base interface for an Event.
|
protecteddefault |
|
virtualdefault |
|
pure virtual |
Binds an typeless function to this event.
| callback | typeless callback function |
Implemented in Engine3DRadSpace.Reflection::CallbackEvent, Engine3DRadSpace.Reflection::Event, and Engine3DRadSpace.Reflection::MultiEvent.
|
pure virtual |
Calls the bound functions with the given arguments and returns the result of the last function called.
| args | argument pack |
Implemented in Engine3DRadSpace.Reflection::CallbackEvent, Engine3DRadSpace.Reflection::Event, and Engine3DRadSpace.Reflection::MultiEvent.
|
pure virtualnoexcept |
Unbinds the functions.
Implemented in Engine3DRadSpace.Reflection::CallbackEvent, Engine3DRadSpace.Reflection::Event, and Engine3DRadSpace.Reflection::MultiEvent.