AlphaFramework API  1.0.3
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
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< T > NanoByte::Common::Undo::FirstExecuteCommand NanoByte::Common::Undo::IUndoCommand

Public Member Functions

 ImportTextureMap (ITerrain terrain, string fileName, Action refreshHandler)
 Creates a new command for loading texture-map data into a ITerrain. More...
 
- Public Member Functions inherited from NanoByte::Common::Undo::FirstExecuteCommand
void Execute ()
 
virtual void Undo ()
 

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< T >
 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< T >
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< T >
readonly ITerrain Terrain
 
readonly string FileName
 

Detailed Description

Loads new texture-map data into a ITerrain.

Constructor & Destructor Documentation

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

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< T >.

Property Documentation

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

Points to ITerrain.TextureMap


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