class
EventCallbackA callback to be executed on an event.
Contents
❱ Public types
- using native_cb_t = std::function<Action(MaatEngine&)>
- A callback function taking a pointer to the MaatEngine.
❱ Constructors, destructors, conversion operators
- EventCallback()
- Default constructor.
-
EventCallback(native_
cb_ t cb) - Create a callback calling a native function.
- ~EventCallback()
- Destructor.
❱ Public functions
-
auto execute(maat::
MaatEngine& engine) const -> Action - Execute callback and return the callback's return value.