AlphaFramework API
1.0.3
|
Moves one or more Positionable<TCoordinates>s. More...
Public Member Functions | |
MovePositionables (IEnumerable< Positionable< Vector2 >> positionables, Vector2 target) | |
Creates a new command for moving one or more Positionable<TCoordinates>s. More... | |
Public Member Functions inherited from NanoByte::Common::Undo::SimpleCommand | |
void | Execute () |
virtual void | Undo () |
Protected Member Functions | |
override void | OnExecute () |
Set the changed Positionable<TCoordinates>.Positions. More... | |
override void | OnUndo () |
Restore the original Positionable<TCoordinates>.Positions. More... | |
Moves one or more Positionable<TCoordinates>s.
|
inline |
Creates a new command for moving one or more Positionable<TCoordinates>s.
positionables | The Positionable<TCoordinates>s to be moved. |
target | The terrain position to move the entities to. |
|
inlineprotectedvirtual |
Set the changed Positionable<TCoordinates>.Positions.
Implements NanoByte::Common::Undo::SimpleCommand.
|
inlineprotectedvirtual |
Restore the original Positionable<TCoordinates>.Positions.
Implements NanoByte::Common::Undo::SimpleCommand.