AlphaFramework API  1.0.3
Public Member Functions | Protected Member Functions | Properties | List of all members
AlphaFramework.Editor.World.Commands.ImportTextureMap Class Reference

Loads new texture-map data into a ITerrain. More...

Inheritance diagram for AlphaFramework.Editor.World.Commands.ImportTextureMap:
AlphaFramework.Editor.World.Commands.ImportMap< NibbleGrid >

Public Member Functions

 ImportTextureMap (ITerrain terrain, string fileName, Action refreshHandler)
 Creates a new command for loading texture-map data into a ITerrain. More...
 

Protected Member Functions

override void LoadMap ()
 Loads the texture-map data from a file into the ITerrain More...
 
- Protected Member Functions inherited from AlphaFramework.Editor.World.Commands.ImportMap< NibbleGrid >
 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 NibbleGrid MapData [get, set]
 Points to ITerrain.TextureMap More...
 
- Properties inherited from AlphaFramework.Editor.World.Commands.ImportMap< NibbleGrid >
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< NibbleGrid >
readonly ITerrain Terrain
 
readonly string FileName
 

Detailed Description

Loads new texture-map data into a ITerrain.

Constructor & Destructor Documentation

◆ ImportTextureMap()

AlphaFramework.Editor.World.Commands.ImportTextureMap.ImportTextureMap ( ITerrain  terrain,
string  fileName,
Action  refreshHandler 
)
inline

Creates a new command for loading texture-map data into a ITerrain.

Parameters
terrainThe ITerrain to load new texture-map data into.
fileNameThe file to load the texture-map data from.
refreshHandlerCalled when the ITerrain needs to be reset.

Member Function Documentation

◆ LoadMap()

override void AlphaFramework.Editor.World.Commands.ImportTextureMap.LoadMap ( )
inlineprotectedvirtual

Loads the texture-map data from a file into the ITerrain

Implements AlphaFramework.Editor.World.Commands.ImportMap< NibbleGrid >.

Property Documentation

◆ MapData

override NibbleGrid AlphaFramework.Editor.World.Commands.ImportTextureMap.MapData
getsetprotected

Points to ITerrain.TextureMap


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