Class MovePositionables
- Namespace
- AlphaFramework.Editor.World.Commands
- Assembly
- AlphaFramework.Editor.dll
Moves one or more Positionable<TCoordinates>s.
public class MovePositionables : SimpleCommand, IUndoCommand
- Inheritance
-
MovePositionables
- Implements
- Inherited Members
- Extension Methods
Constructors
MovePositionables(IEnumerable<Positionable<Vector2>>, Vector2)
Creates a new command for moving one or more Positionable<TCoordinates>s.
public MovePositionables(IEnumerable<Positionable<Vector2>> positionables, Vector2 target)
Parameters
positionables
IEnumerable<Positionable<Vector2>>The Positionable<TCoordinates>s to be moved.
target
Vector2The terrain position to move the entities to.
Methods
OnExecute()
Set the changed Positions.
protected override void OnExecute()
OnUndo()
Restore the original Positions.
protected override void OnUndo()