NodeChangeAction

An action that happens when a node is changed

Constructors

this
this(Node prev, Node self, Node new_, Transform prevPos, Transform newPos)

Creates a new node change action

this
this(Node prev, Node self, Node new_)

Creates a new node change action

Members

Functions

canMerge
bool canMerge(Action other)
Undocumented in source. Be warned that the author may not have intended to support it.
describe
string describe()

Describe the action

describeUndo
string describeUndo()

Describe the action

getName
string getName()

Gets name of this action

merge
bool merge(Action other)
Undocumented in source. Be warned that the author may not have intended to support it.
redo
void redo()

Redo

rollback
void rollback()

Rollback

Variables

newParent
Node newParent;

New parent of node

newTransform
Transform newTransform;

The new transform of the node

originalTransform
Transform originalTransform;

The original transform of the node

prevParent
Node prevParent;

Previous parent of node

self
Node self;

Node itself

Inherited Members

From Action

rollback
void rollback()

Roll back the action that was done

redo
void redo()

Redo the action that was done

describe
string describe()

Describes the action

describeUndo
string describeUndo()

Describes the action

getName
string getName()

Gets the name of the action

merge
bool merge(Action other)

Merge action with other action (if possible)

canMerge
bool canMerge(Action other)

Gets whether this action can merge with an other

Meta