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¶
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¶
Undo()¶
void Undo()