|
3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
|
CallbackEvent bind one single function and is cheaper than Event. More...
#include <CallbackEvent.hpp>


Public Member Functions | |
| CallbackEvent ()=default | |
| Creates a CallbackEvent with no callback bound. | |
| CallbackEvent (std::function< Any(std::vector< Any >)> callback) | |
| Creates a CallbackEvent with the given callback function. | |
| void | Bind (std::function< Any(std::vector< Any >)> callback) override |
| Bounds the given function to this instance. | |
| Any | operator() (std::vector< Any > &args) override |
| Calls the bound function. | |
| void | Reset () noexcept override |
| Unbinds the function from this instance. | |
| Public Member Functions inherited from Engine3DRadSpace.Reflection::IEvent | |
| virtual | ~IEvent ()=default |
Additional Inherited Members | |
| Protected Member Functions inherited from Engine3DRadSpace.Reflection::IEvent | |
| IEvent ()=default | |
CallbackEvent bind one single function and is cheaper than Event.
|
default |
Creates a CallbackEvent with no callback bound.
Creates a CallbackEvent with the given callback function.
| callback | The callback function to bind to the event. |
Bounds the given function to this instance.
| callback | callback function |
Implements Engine3DRadSpace.Reflection::IEvent.
Calls the bound function.
| args | Arguments pack |
Implements Engine3DRadSpace.Reflection::IEvent.
|
overridevirtualnoexcept |
Unbinds the function from this instance.
Implements Engine3DRadSpace.Reflection::IEvent.