template<typename T>
cubos::core::ecs::EventWriter class

System argument which allows the system to send events of type T to other systems.

Template parameters
T

Constructors, destructors, conversion operators

EventWriter(EventPipe<T>& pipe)
Constructs.

Public functions

void push(T event, unsigned int mask = DEFAULT_PUSH_MASK)
Sends the given event to the event pipe with the given mask.

Function documentation

template<typename T>
cubos::core::ecs::EventWriter<T>::EventWriter(EventPipe<T>& pipe)

Constructs.

Parameters
pipe Event pipe to write events to.

template<typename T>
void cubos::core::ecs::EventWriter<T>::push(T event, unsigned int mask = DEFAULT_PUSH_MASK)

Sends the given event to the event pipe with the given mask.

Parameters
event Event.
mask Mask.