EventT Class |
Namespace: Archon.SwissArmyLib.Events
public class Event<T>
[Missing <typeparam name="T"/> documentation for "T:Archon.SwissArmyLib.Events.Event`1"]
The EventT type exposes the following members.
Name | Description | |
---|---|---|
EventT(Int32) |
Creates a new Event with the specified ID.
| |
EventT(Int32, Int32) |
Creates a new Event with the specified ID and initial listener capacity.
|
Name | Description | |
---|---|---|
Id |
Gets the ID of this event.
| |
Listeners |
Gets a readonly collection of current listeners.
| |
SuppressExceptions |
Gets or sets whether listener exceptions should be logged.
|
Name | Description | |
---|---|---|
AddListener(ActionT, Int32) |
Adds a listener for the event with an optional call-order priority.
| |
AddListener(IEventListenerT, Int32) |
Adds a listener for the event with an optional call-order priority.
| |
Clear |
Clears all listeners
| |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the type of the current instance. (Inherited from Object.) | |
HasListener(ActionT) |
Checks whether the specified listener is currently listening to this event.
| |
HasListener(IEventListenerT) |
Checks whether the specified listener is currently listening to this event.
| |
Invoke |
Notifies all listeners that the event occured.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RemoveListener(ActionT) |
Removes a listener from the event.
| |
RemoveListener(IEventListenerT) |
Removes a listener from the event.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |