|
3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
|
MultiEvent is a collection of function pointers with the same return type and arguments that can be invoked together. More...
#include <MultiEvent.hpp>


Public Member Functions | |
| MultiEvent ()=default | |
| Constructs a MultiEvent with no callbacks. | |
| MultiEvent (std::function< Any(std::vector< Any >)> callback) | |
| Constructs a MultiEvent with a single callback. | |
| void | Bind (std::function< Any(std::vector< Any >)> callback) override |
| Binds an typeless function to this event. | |
| Any | operator() (std::vector< Any > &args) override |
| Calls all the bound functions and returns a vector of their return values. | |
| void | Reset () noexcept override |
| Unbinds all the stored functions. | |
| Public Member Functions inherited from Engine3DRadSpace.Reflection::IEvent | |
| virtual | ~IEvent ()=default |
Additional Inherited Members | |
| Protected Member Functions inherited from Engine3DRadSpace.Reflection::IEvent | |
| IEvent ()=default | |
MultiEvent is a collection of function pointers with the same return type and arguments that can be invoked together.
|
default |
Constructs a MultiEvent with no callbacks.
Constructs a MultiEvent with a single callback.
| callback |
Binds an typeless function to this event.
| callback | typeless callback function |
Implements Engine3DRadSpace.Reflection::IEvent.
Calls all the bound functions and returns a vector of their return values.
| args | The arguments to pass to each bound function. |
Implements Engine3DRadSpace.Reflection::IEvent.
|
overridevirtualnoexcept |
Unbinds all the stored functions.
Implements Engine3DRadSpace.Reflection::IEvent.