Method | Description | |
---|---|---|
AddCommand ( IUndoable command ) : void |
Adds a command to the history without executing it. This is usefull if the command was executed somewhere else but still needs undo/redo.
|
|
Execute ( IUndoable command ) : void |
Executes a command and adds it to the command history so it can be undone/redone.
|
|
Redo ( ) : void |
Redo the last undone command
|
|
Undo ( ) : void |
Undoes the last done command
|
|
UndoEngine ( ) : System |
public AddCommand ( IUndoable command ) : void | ||
command | IUndoable | |
return | void |
public Execute ( IUndoable command ) : void | ||
command | IUndoable | The command to execute and keep history of. |
return | void |