Archon.SwissArmyLib.Events Namespace |
Class | Description | |
---|---|---|
BuiltinEventIds |
Contains the event ids used by SwissArmyLib.
| |
Event |
A simple event handler that supports using both interface and delegate listeners.
This is the parameterless version.
See EventT if you need to send data with the event.
Interface listeners are required to implement the IEventListener interface.
Events are differentiated by an integer. You are expected to create constants to define your events and make them unique.
| |
EventT |
A simple event handler that supports using both interface and delegate listeners.
This is the parameterized version.
See Event if you don't need to send data with the event.
Interface listeners are required to implement the IEventListenerTArgs interface.
Events are differentiated by an integer. You are expected to create constants to define your events and make them unique.
| |
GlobalEvents |
A manager of events that do not belong to any specific object but instead can be listened to by anyone and invoked by anyone.
Useful for GameLoaded, MatchEnded and similar events.
This uses Event instances behind the scenes.
This version is for parameterless events.
See GlobalEventsT if you need to send data with the events.
Events are differentiated by an integer. You are expected to create constants to define your events.
| |
GlobalEventsT |
A manager of events that do not belong to any specific object but instead can be listened to by anyone and invoked by anyone.
Useful for GameLoaded, MatchEnded and similar events.
This uses EventT instances behind the scenes.
This version is for events with args.
See GlobalEvents if you don't need to send data with the events.
Events are differentiated by an integer. You are expected to create constants to define your events.
| |
TellMeWhen |
A utility class for getting notified after a specific amount of time.
|
Structure | Description | |
---|---|---|
EventListener |
Represents either a delegate or interface listener.
| |
EventTListener |
Represents either a delegate or interface listener.
|
Interface | Description | |
---|---|---|
IEventListener |
Defines a method to be used for event callbacks.
| |
IEventListenerTArgs |
Defines a method to be used for event callbacks with a parameter of type TArgs.
| |
TellMeWhenITimerCallback |
Defines a method to be used for timer events.
|