class ManagedUndoableOperation

Inherits: UndoableOperation

Extensible class that allows scripts to create their own undoable commands.

Public

Constructors

ManagedUndoableOperation

ManagedUndoableOperation()

Methods

Commit

void Commit() override

Applies the command, committing the change.

Revert

void Revert() override

Reverts the command, reverting the change previously done with commit().

GetTypeName

const String &GetTypeName() const

Returns the name of the script type that represents the operation.

GetNamespace

const String &GetNamespace() const

Returns the namespace of the script type that represents the operation.

SetupScriptBindings

void SetupScriptBindings()

Sets up script bindings between native and managed class.

Must be called after creating the script object wrapper, or after assembly is reloaded.

CreateScriptObject

MonoObject *CreateScriptObject() const

Attempts to create a managed instance for the modal window described by the type provided upon construction.

Private

Fields

mType

String mType

mNamespace

String mNamespace