Class EventBase
The base of all Whiskey events.
Inheritance
System.Object
EventBase
Namespace: FasterGames.Whiskey.Events
Assembly: cs.temp.dll.dll
Syntax
public abstract class EventBase : ScriptableObject
Properties
EventTypes
The argument types of the event.
Declaration
public abstract List<Type> EventTypes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Type> |
ListenerCount
The number of currently listening listeners.
Declaration
public abstract int ListenerCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
UnsafeRaise(Object[])
An unsafe (can fail at runtime) hook to raise events. Do not use.
Declaration
public abstract void UnsafeRaise(params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.Object[] | args | event arguments |
Remarks
This exists to expose a hook for generic code (e.g. editors) that may want to invoke events knowing only the base type.