| EventManager Class |
Namespace: Slash.ECS.Events
The EventManager type exposes the following members.
| Name | Description | |
|---|---|---|
| EventManager |
Constructs a new event manager with an empty event queue and
without any listeners.
|
| Name | Description | |
|---|---|---|
| EventCount |
Current number of events in the event queue.
|
| Name | Description | |
|---|---|---|
| FireDelayed(Single, GameEvent) |
Fires the passed event after a short delay.
| |
| FireDelayed(Single, Object, Object) |
Fires the passed event after a short delay.
| |
| FireImmediately(GameEvent) |
Fires the passed event immediately, notifying all listeners.
| |
| FireImmediately(Object, Object) |
Fires the passed event immediately, notifying all listeners.
| |
| ProcessEvents |
Passes all queued events on to interested listeners and clears the
event queue.
| |
| ProcessEvents(Single) |
Passes all queued events on to interested listeners and clears the
event queue.
| |
| QueueEvent(Object) |
Queues a new event of the specified type along without any event data.
| |
| QueueEvent(GameEvent) |
Queues the passed event to be processed later.
| |
| QueueEvent(Object, Object) |
Queues a new event of the specified type along with the passed
event data.
| |
| RegisterListener(EventManagerEventDelegate) |
Registers the specified delegate for all events. Note that the
delegate will be called twice if it is registered for a specific
event type as well. Listeners for all events are always notified
before listeners for specific events.
| |
| RegisterListener(Object, EventManagerEventDelegate) |
Registers the specified delegate for events of the specified type.
| |
| RemoveListener(EventManagerEventDelegate) |
Unregisters the specified delegate for all events. Note that this
will remove the delegate from the list of listeners interested in
all events, only: Calling this function will not remove the delegate
from specific events.
| |
| RemoveListener(Object, EventManagerEventDelegate) |
Unregisters the specified delegate for events of the specified type.
|
| Name | Description | |
|---|---|---|
| UnhandledEvent |
Callback for events no listener is registered for. Useful for improving performance.
|