AlphaFramework API
1.0.3
|
Changes a terrain Template<TSelf> on a Terrain<TTemplate>s. More...
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::SimpleCommand | |
void | Execute () |
virtual void | Undo () |
Protected Member Functions | |
override void | OnExecute () |
override void | OnUndo () |
Changes a terrain Template<TSelf> on a Terrain<TTemplate>s.
TTemplate | : | Template<TTemplate> |
|
inline |
Creates a new command for changing a Template<TSelf> on a Terrain<TTemplate>.
terrain | The Terrain<TTemplate> to modify. |
templateIndex | The index in Terrain<TTemplate>.Templates to set. |
templateName | The name of the new TTemplate to set. |
refreshHandler | Called when the Terrain<TTemplate> needs to be reset. |