Click or drag to resize

Archon.SwissArmyLib.Events Namespace

Contains classes related to events and time handling.
Classes
  ClassDescription
Public classBuiltinEventIds
Contains the event ids used by SwissArmyLib.
Public classEvent
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.
Public classEventT
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.
Public classGlobalEvents
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.
Public classGlobalEventsT
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.
Public classTellMeWhen
A utility class for getting notified after a specific amount of time.
Structures
Interfaces
  InterfaceDescription
Public interfaceIEventListener
Defines a method to be used for event callbacks.
Public interfaceIEventListenerTArgs
Defines a method to be used for event callbacks with a parameter of type TArgs.
Public interfaceTellMeWhenITimerCallback
Defines a method to be used for timer events.