Class RemoveComponentCommand¶
Namespace: Apogee.Host.Editing
Assembly: Apogee.Host.dll
Removes a component, keeping its value for the undo.
public sealed class RemoveComponentCommand : IEditCommand
Inheritance¶
object ← RemoveComponentCommand
Implements¶
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors¶
RemoveComponentCommand(WorldRef, Entity, Entity)¶
Removes a component, keeping its value for the undo.
public RemoveComponentCommand(WorldRef worldRef, Entity entity, Entity component)
Parameters¶
worldRef WorldRef
entity Entity
component Entity
Properties¶
Name¶
What the Edit menu says: "Move Cube", "Delete Light".
public string Name { get; }
Property Value¶
Methods¶
Apply()¶
Does the edit (again, when redoing).
public 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.
public bool TryMerge(IEditCommand following)
Parameters¶
following IEditCommand
Returns¶
Undo()¶
public void Undo()