Table of Contents

Class ImportTextureMap

Namespace
AlphaFramework.Editor.World.Commands
Assembly
AlphaFramework.Editor.dll

Loads new texture-map data into a ITerrain.

public class ImportTextureMap : ImportMap<NibbleGrid>, IUndoCommand
Inheritance
ImportTextureMap
Implements
Inherited Members
Extension Methods

Constructors

ImportTextureMap(ITerrain, string, Action)

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

public ImportTextureMap(ITerrain terrain, string fileName, Action refreshHandler)

Parameters

terrain ITerrain

The ITerrain to load new texture-map data into.

fileName string

The file to load the texture-map data from.

refreshHandler Action

Called when the ITerrain needs to be reset.

Properties

MapData

Points to TextureMap

protected override NibbleGrid MapData { get; set; }

Property Value

NibbleGrid

Methods

LoadMap()

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

protected override void LoadMap()