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.ChangeTerrainTemplate< TTemplate > Class Template Reference

Changes a terrain Template{TSelf} on a Terrain{TTemplate}s. More...

Inheritance diagram for AlphaFramework.Editor.World.Commands.ChangeTerrainTemplate< TTemplate >:
NanoByte::Common::Undo::SimpleCommand NanoByte::Common::Undo::IUndoCommand

Public Member Functions

 ChangeTerrainTemplate (Terrain< TTemplate > terrain, int templateIndex, string templateName, Action refreshHandler)
 Creates a new command for changing a Template{TSelf} on a Terrain{TTemplate}. More...
 
- Public Member Functions inherited from NanoByte::Common::Undo::IUndoCommand
void Execute ()
 
void Undo ()
 

Protected Member Functions

override void OnExecute ()
 
override void OnUndo ()
 

Detailed Description

Changes a terrain Template{TSelf} on a Terrain{TTemplate}s.

Type Constraints
TTemplate :Template<TTemplate> 

Constructor & Destructor Documentation

AlphaFramework.Editor.World.Commands.ChangeTerrainTemplate< TTemplate >.ChangeTerrainTemplate ( Terrain< TTemplate >  terrain,
int  templateIndex,
string  templateName,
Action  refreshHandler 
)
inline

Creates a new command for changing a Template{TSelf} on a Terrain{TTemplate}.

Parameters
terrainThe Terrain{TTemplate} to modify.
templateIndexThe index in Terrain{TTemplate}.Templates to set.
templateNameThe name of the new TTemplate to set.
refreshHandlerCalled when the Terrain{TTemplate} needs to be reset.

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