maat::event::EventCallback class

A callback to be executed on an event.

❱   Public types

using native_cb_t = std::function<Action(MaatEngine&)>
A callback function taking a pointer to the MaatEngine.

❱   Constructors, destructors, conversion operators

Default constructor.

EventCallback(native_cb_t cb)
Create a callback calling a native function.


❱   Public functions

auto execute(maat::MaatEngine& engine) const -> Action
Execute callback and return the callback's return value.