Template Class EventSubscriber

Inheritance Relationships

Base Type

Class Documentation

template <typename T>
class EventSubscriber : public ari::Internal::BaseEventSubscriber

Subclass this as EventSubscriber<EventType> and then call World::subscribe() in order to subscribe to events. Make sure to call World::unsubscribe() or World::unsubscribeAll() when your subscriber is deleted!

Public Functions

virtual ~EventSubscriber()
virtual void Receive(World *world, const T &event) = 0

Called when an event is emitted by the world.