AlphaFramework API
1.0.3
|
Abstract base class for commands that load new map data into a ITerrain. More...
Protected Member Functions | |
ImportMap (ITerrain terrain, string fileName, Action refreshHandler) | |
Creates a new command for loading map data into a ITerrain. More... | |
override void | OnFirstExecute () |
Imports the map data More... | |
override void | OnRedo () |
Restores the imported map data More... | |
override void | OnUndo () |
Restores the original map data More... | |
abstract void | LoadMap () |
Override to load the map data from a file into the ITerrain More... | |
Protected Attributes | |
readonly ITerrain | Terrain |
readonly string | FileName |
Properties | |
abstract T | MapData [get, set] |
Override to point to the appropriate ITerrain array map More... | |
Additional Inherited Members | |
Public Member Functions inherited from NanoByte::Common::Undo::FirstExecuteCommand | |
void | Execute () |
virtual void | Undo () |
Abstract base class for commands that load new map data into a ITerrain.
T | The type of the map data to be imported. |
T | : | class |
|
inlineprotected |
Creates a new command for loading map data into a ITerrain.
terrain | The ITerrain to load new map data into. |
fileName | The file to load the map data from. |
refreshHandler | Called when the presenter needs to be reset. |
|
protectedpure virtual |
Override to load the map data from a file into the ITerrain
Implemented in AlphaFramework.Editor.World.Commands.ImportHeightMap, and AlphaFramework.Editor.World.Commands.ImportTextureMap.
|
inlineprotectedvirtual |
Imports the map data
Implements NanoByte::Common::Undo::FirstExecuteCommand.
|
inlineprotectedvirtual |
Restores the imported map data
Implements NanoByte::Common::Undo::FirstExecuteCommand.
|
inlineprotectedvirtual |
Restores the original map data
Implements NanoByte::Common::Undo::FirstExecuteCommand.
|
getsetprotected |
Override to point to the appropriate ITerrain array map