StrangeIoC
0.6.0
The IoC/Binding Framework for Unity3D and C#
|
Subclass of Command with injections for dispatcher and events. More...
Public Member Functions | |
override void | Retain () |
Keeps the Command in memory. Use only in conjunction with Release() | |
override void | Release () |
Allows a previous Retained Command to be disposed. | |
Public Member Functions inherited from strange.extensions.command.impl.Command | |
virtual void | Execute () |
Override this! Execute() is where you place the logic for your Command. | |
virtual void | Restore () |
Use/override this method to clean up the Command for recycling. | |
virtual void | Fail () |
Inidcates that the Command failed Used in sequential command groups to terminate the sequence. | |
void | Cancel () |
Inform the Command that further Execution has been terminated. | |
Properties | |
IEventDispatcher | dispatcher [get, set] |
IEvent | evt [get, set] |
Properties inherited from strange.extensions.command.impl.Command | |
ICommandBinder | commandBinder [get, set] |
Back reference to the CommandBinder that instantiated this Commmand. | |
IInjectionBinder | injectionBinder [get, set] |
The InjectionBinder for this Context. | |
object | data [get, set] |
bool | cancelled [get, set] |
bool | IsClean [get, set] |
int | sequenceId [get, set] |
bool | retain [get, set] |
Properties inherited from strange.extensions.command.api.ICommand | |
bool | IsClean [get, set] |
Flag to indicate that a pooled Command has been restored to its pristine state. More... | |
bool | retain [get] |
The property set by Retain and Release to indicate whether the Command should be cleaned up on completion of the Execute() method. | |
bool | cancelled [get, set] |
The property set to true by a Cancel() call. More... | |
object | data [get, set] |
A payload injected into the Command. Most commonly, this an IEvent. | |
int | sequenceId [get, set] |
Properties inherited from strange.extensions.pool.api.IPoolable | |
bool | retain [get] |
Is this instance retained? More... | |
Subclass of Command with injections for dispatcher and events.
EventCommand extends Command to provide access to EventDispatcher as the common system bus. Commands which extend Event Command will automatically inject the source IEvent.