A Command that is composed of multiple child commands, all of which are executed together and leave one record in the CommandStream's history. <remark> For more information on this type of object seek external documentation on the composite design pattern </remark>
More...
|
override void | Execute () |
| Queues all of the child commands into the internal CommandStream and attempts to invoke all of them. Will throw an exception if one of its children fails after attempting to revert all its executed commands. More...
|
|
abstract void | Execute () |
| Executes the command, do not invoke directly, instead use a CommandStream. More...
|
|
abstract void | Execute () |
| Executes the function of the command More...
|
|
|
int | ChildCount [get] |
| Number of child Commands included in this object
|
|
A Command that is composed of multiple child commands, all of which are executed together and leave one record in the CommandStream's history. <remark> For more information on this type of object seek external documentation on the composite design pattern </remark>
◆ AddChild()
virtual void SadSapphicGames.CommandPattern.CompositeCommand.AddChild |
( |
ICommand |
childCommand | ) |
|
|
protectedvirtual |
Adds a Command to this objects children
- Parameters
-
childCommand | The Command to be added to the objects children |
◆ Execute()
override void SadSapphicGames.CommandPattern.CompositeCommand.Execute |
( |
| ) |
|
|
virtual |
Queues all of the child commands into the internal CommandStream and attempts to invoke all of them. Will throw an exception if one of its children fails after attempting to revert all its executed commands.
Be aware that if you override this method you will bypass the implemented failsafe's for children of the CompositeCommand failing such as attempting to undo executed commands
- Exceptions
-
Implements SadSapphicGames.CommandPattern.Command.
The documentation for this class was generated from the following file:
- C:/Users/Layla/Documents/My Docs/GameDev/CommandPatternDevelopment/Assets/Packages/CommandPattern/Runtime/Commands/CompositeCommand.cs