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.RemovePositionables< TCoordinates > Class Template Reference

Removes one or more Positionable{TCoordinates}s from a IUniverse. More...

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

Public Member Functions

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

Protected Member Functions

override void OnExecute ()
 Removes the Positionable{TCoordinates} from the IUniverse More...
 
override void OnUndo ()
 Adds the Positionable{TCoordinates} back to the IUniverse 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

Removes one or more Positionable{TCoordinates}s from a IUniverse.

Type Constraints
TCoordinates :struct 

Constructor & Destructor Documentation

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

Creates a new command for removing one or more Positionable{TCoordinates}s from a IUniverse.

Parameters
universeThe UniverseBase{TCoordinates} to remove from.
entitiesThe Positionable{TCoordinates}s to remove.

Member Function Documentation

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

Removes the Positionable{TCoordinates} from the IUniverse

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

Adds the Positionable{TCoordinates} back to the IUniverse


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