28#include "guillaume/event/event_bus.hpp"
29#include <utility/event/event.hpp>
61 std::queue<std::shared_ptr<EventType>>
95#include "guillaume/event/event_subscriber.tpp"
Hands each engine event to the listeners subscribed to its type.
EventSubscriber(EventBus &eventBus)
Create an empty queue and subscribe it to a bus.
bool hasPendingEvents(void) const
Tell whether at least one event is waiting.
std::shared_ptr< EventType > getNextEvent(void)
Take the oldest waiting event out of the queue.
~EventSubscriber(void)=default
Destroy the queue. The bus is not told: see the note of the class.
Delivery of engine events to the systems that subscribed to them.