AlphaFramework API
1.0.3
|
Loads new height-map data into a Terrain<TTemplate>. More...
Public Member Functions | |
ImportHeightMap (ITerrain terrain, string fileName, Action refreshHandler) | |
Creates a new command for loading height-map data into a ITerrain. More... | |
Protected Member Functions | |
override void | LoadMap () |
Loads the height-map data from a file into the ITerrain More... | |
Protected Member Functions inherited from AlphaFramework.Editor.World.Commands.ImportMap< ByteGrid > | |
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... | |
Properties | |
override ByteGrid | MapData [get, set] |
Points to ITerrain.HeightMap More... | |
Properties inherited from AlphaFramework.Editor.World.Commands.ImportMap< ByteGrid > | |
abstract T | MapData [get, set] |
Override to point to the appropriate ITerrain array map More... | |
Additional Inherited Members | |
Protected Attributes inherited from AlphaFramework.Editor.World.Commands.ImportMap< ByteGrid > | |
readonly ITerrain | Terrain |
readonly string | FileName |
Loads new height-map data into a Terrain<TTemplate>.
|
inline |
Creates a new command for loading height-map data into a ITerrain.
terrain | The ITerrain to load new height-map data into. |
fileName | The file to load the height-map data from. |
refreshHandler | Called when the presenter needs to be reset. |
|
inlineprotectedvirtual |
Loads the height-map data from a file into the ITerrain
Implements AlphaFramework.Editor.World.Commands.ImportMap< ByteGrid >.
|
getsetprotected |
Points to ITerrain.HeightMap