Torque3D Documentation / _generateds / UndoScriptAction

UndoScriptAction

Engine/source/util/undo.h

Script Undo Action Creation.

More...

Public Types

Parent 

Public Functions

bool

Called when the object is added to the sim.

Called when the object is removed from the sim.

undo()

Implement these methods to perform your specific undo & redo tasks.

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