AlphaFramework API  1.0.3
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Protected Member Functions | List of all members
AlphaFramework.Editor.World.Commands.AddPositionables< TCoordinates > Class Template Reference

Adds one or more Positionable{TCoordinates}ies to a UniverseBase{TCoordinates}. More...

Inheritance diagram for AlphaFramework.Editor.World.Commands.AddPositionables< TCoordinates >:
AlphaFramework.Editor.World.Commands.AddRemovePositionables< TCoordinates > NanoByte::Common::Undo::SimpleCommand NanoByte::Common::Undo::IUndoCommand

Public Member Functions

 AddPositionables (UniverseBase< TCoordinates > universe, IEnumerable< Positionable< TCoordinates >> entities)
 Creates a new command for adding one or more Positionable{TCoordinates}ies to a UniverseBase{TCoordinates}. More...
 
- Public Member Functions inherited from NanoByte::Common::Undo::IUndoCommand
void Execute ()
 
void Undo ()
 

Protected Member Functions

override void OnExecute ()
 Adds the Positionable{TCoordinates} to the UniverseBase{TCoordinates} More...
 
override void OnUndo ()
 Removes the Positionable{TCoordinates} from the UniverseBase{TCoordinates} again More...
 
- Protected Member Functions inherited from AlphaFramework.Editor.World.Commands.AddRemovePositionables< TCoordinates >
 AddRemovePositionables (UniverseBase< TCoordinates > universe, IEnumerable< Positionable< TCoordinates >> positionables)
 Creates a new command for adding/removing one or more Positionable{TCoordinates}ies to/from a UniverseBase{TCoordinates}. More...
 
void AddPositionables ()
 Removes the entities from the universe More...
 
void RemovePositionables ()
 Adds the entities to the universe More...
 

Detailed Description

Adds one or more Positionable{TCoordinates}ies to a UniverseBase{TCoordinates}.

Type Constraints
TCoordinates :struct 

Constructor & Destructor Documentation

AlphaFramework.Editor.World.Commands.AddPositionables< TCoordinates >.AddPositionables ( UniverseBase< TCoordinates >  universe,
IEnumerable< Positionable< TCoordinates >>  entities 
)
inline

Creates a new command for adding one or more Positionable{TCoordinates}ies to a UniverseBase{TCoordinates}.

Parameters
universeThe UniverseBase{TCoordinates} to add to.
entitiesThe Positionable{TCoordinates}ies to add.

Member Function Documentation

override void AlphaFramework.Editor.World.Commands.AddPositionables< TCoordinates >.OnExecute ( )
inlineprotected

Adds the Positionable{TCoordinates} to the UniverseBase{TCoordinates}

override void AlphaFramework.Editor.World.Commands.AddPositionables< TCoordinates >.OnUndo ( )
inlineprotected

Removes the Positionable{TCoordinates} from the UniverseBase{TCoordinates} again


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