class UndoableOperation

Inherits: IScriptExportable

Performs an operation that can later be undone or re-applied via the undo-redo system.

Public

Constructors

UndoableOperation

UndoableOperation(const String &description)

Methods

~UndoableOperation

virtual ~UndoableOperation() noexcept

Commit

virtual void Commit()

Applies the command, committing the change.

Revert

virtual void Revert()

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

Private

Methods

OnCommandAdded

virtual void OnCommandAdded()

Triggers when a command is added to an undo/redo stack.

OnCommandRemoved

virtual void OnCommandRemoved()

Triggers when a command is removed from an undo/redo stack.

Fields

mDescription

String mDescription

mId

u32 mId