template<typename T>
EventWriter class
System argument which allows the system to send events of type T to other systems.
| Template parameters |
|---|
Constructors, destructors, conversion operators
- EventWriter(EventPipe<T>& pipe)
- Constructs.
Public functions
-
void push(T event,
unsigned int mask = DEFAULT_
PUSH_ MASK) - Sends the given
eventto the event pipe with the givenmask.
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. |