StrangeIoC
0.6.0
The IoC/Binding Framework for Unity3D and C#
|
The base class for all Signals. More...
Public Member Functions | |
void | Dispatch (object[] args) |
virtual List< Type > | GetTypes () |
void | AddListener (Action< IBaseSignal, object[]> callback) |
void | AddOnce (Action< IBaseSignal, object[]> callback) |
void | RemoveListener (Action< IBaseSignal, object[]> callback) |
Public Member Functions inherited from strange.extensions.signal.api.IBaseSignal | |
void | Dispatch (object[] args) |
Instruct a Signal to call on all its registered listeners. | |
void | AddListener (Action< IBaseSignal, object[]> callback) |
Attach a callback to this Signal The callback parameters must match the Types and order which were originally assigned to the Signal on its creation. | |
void | AddOnce (Action< IBaseSignal, object[]> callback) |
Attach a callback to this Signal for the duration of exactly one Dispatch The callback parameters must match the Types and order which were originally assigned to the Signal on its creation, and the callback will be removed immediately after the Signal dispatches. | |
void | RemoveListener (Action< IBaseSignal, object[]> callback) |
Remove a callback from this Signal. | |
List< Type > | GetTypes () |
Returns a List<System.Type> representing the Types bindable to this Signal. | |
Events | |
Action< IBaseSignal, object[]> | BaseListener = delegate { } |
The delegate for repeating listeners. | |
Action< IBaseSignal, object[]> | OnceBaseListener = delegate { } |
The delegate for one-off listeners. | |
The base class for all Signals.