-
Notifications
You must be signed in to change notification settings - Fork 0
SFME::Mediator
Sztergbaum Roman edited this page Feb 4, 2018
·
66 revisions
Welcome to the page of the SFME::Mediator module
A complete example can be found here
Content for EventManager.
template <typename TEvent, typename ... Args>
void emit(Args &&... args) noexcept;- TEvent: The type of event you wish to broadcast.
- Args: The arguments possibly necessary to the creation of the TEvent object.
sfme::mediator::EventManager evtMgr;
// InputEvent constructor take 1 arguments
evtMgr.emit<InputEvent>(keycode)
// ShutdownEvent is default constructible
evtMgr.emit<ShutDownEvent>(keycode)Content for BaseEvent.
Content for Receiver.
Content of the examples.