A utility class for dispatching and handling game events.
void notify(const GameMessage &event)
Notifies the subscribed listener of an event.
std::function< void(const GameMessage &)> Callback
Defines the type for event callbacks.
void subscribe(Callback callback)
Subscribes a listener to game events.
A structure representing a game message.