AlphaFramework API  1.0.3
Public Member Functions | Protected Member Functions | List of all members
AlphaFramework.Editor.World.Commands.MovePositionables Class Reference

Moves one or more Positionable<TCoordinates>s. More...

Inheritance diagram for AlphaFramework.Editor.World.Commands.MovePositionables:
NanoByte::Common::Undo::SimpleCommand NanoByte::Common::Undo::IUndoCommand

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...
 

Detailed Description

Moves one or more Positionable<TCoordinates>s.

Constructor & Destructor Documentation

◆ MovePositionables()

AlphaFramework.Editor.World.Commands.MovePositionables.MovePositionables ( IEnumerable< Positionable< Vector2 >>  positionables,
Vector2  target 
)
inline

Creates a new command for moving one or more Positionable<TCoordinates>s.

Parameters
positionablesThe Positionable<TCoordinates>s to be moved.
targetThe terrain position to move the entities to.

Member Function Documentation

◆ OnExecute()

override void AlphaFramework.Editor.World.Commands.MovePositionables.OnExecute ( )
inlineprotectedvirtual

Set the changed Positionable<TCoordinates>.Positions.

Implements NanoByte::Common::Undo::SimpleCommand.

◆ OnUndo()

override void AlphaFramework.Editor.World.Commands.MovePositionables.OnUndo ( )
inlineprotectedvirtual

Restore the original Positionable<TCoordinates>.Positions.

Implements NanoByte::Common::Undo::SimpleCommand.


The documentation for this class was generated from the following file: