StrangeIoC  0.6.0
The IoC/Binding Framework for Unity3D and C#
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public Member Functions | Events | List of all members
strange.extensions.signal.impl.BaseSignal Class Reference

The base class for all Signals. More...

Inheritance diagram for strange.extensions.signal.impl.BaseSignal:
strange.extensions.signal.api.IBaseSignal strange.extensions.signal.impl.Signal strange.extensions.signal.impl.Signal< T > strange.extensions.signal.impl.Signal< T, U > strange.extensions.signal.impl.Signal< T, U, V > strange.extensions.signal.impl.Signal< T, U, V, W >

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.
 

Detailed Description

The base class for all Signals.

See Also
strange.extensions.signal.api.IBaseSignal
strange.extensions.signal.impl.Signal

The documentation for this class was generated from the following file: