UndoScriptAction
Script Undo Action Creation.
Public Types
Parent
Public Functions
bool
onAdd()
Called when the object is added to the sim.
Detailed Description
Script Undo Action Creation.
Undo actions can be created in script like this:
... undo = new UndoScriptAction() { class = SampleUndo; actionName = "Sample Undo"; }; undo.addToManager(UndoManager); ...
function SampleUndo::undo() { ... }
function SampleUndo::redo() { ... }
Public Types
typedef UndoAction Parent
Public Functions
UndoScriptAction()
DECLARE_CONOBJECT(UndoScriptAction )
onAdd()
Reimplemented from: SimObject
onRemove()
Reimplemented from: SimObject
redo()
Reimplemented from: UndoAction
undo()
Reimplemented from: UndoAction