ForgeDocs
Documentation for the forge framework
|
An IEventNotifier instance allows for objects to listen to other objects for interesting events based on the given IEvent type. The event dispatcher is a generalization of C#'s support for event, plus additional support for delayed event dispatch. More...
Inherited by Forge.Entities.Implementation.Shared.EventNotifier.
Public Member Functions | |
void | OnEvent< TEvent > (Action< TEvent > onEvent) |
Add a function that will be called a event of type TEvent has been dispatched to this dispatcher. More... | |
An IEventNotifier instance allows for objects to listen to other objects for interesting events based on the given IEvent type. The event dispatcher is a generalization of C#'s support for event, plus additional support for delayed event dispatch.
void Forge.Entities.IEventNotifier.OnEvent< TEvent > | ( | Action< TEvent > | onEvent | ) |
Add a function that will be called a event of type TEvent has been dispatched to this dispatcher.
TEvent | The event type to listen for. |
onEvent | The code to invoke. |
TEvent | : | BaseEvent<TEvent> |