Skip to content

Interface IEditCommand

Namespace: Apogee.Host.Editing
Assembly: Apogee.Host.dll

One undoable edit of a world.

public interface IEditCommand

Properties

Name

What the Edit menu says: "Move Cube", "Delete Light".

string Name { get; }

Property Value

string

Methods

Apply()

Does the edit (again, when redoing).

void Apply()

TryMerge(IEditCommand)

Lets the command before following take it in, so that a whole drag is one step: following has been done already; the command folds its result in (its "after") and returns true. Most commands return false.

bool TryMerge(IEditCommand following)

Parameters

following IEditCommand

Returns

bool

Undo()

void Undo()