AlphaFramework API  1.0.3
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | List of all members
AlphaFramework.Editor.World.TerrainModifiers.Texture Class Reference

Interactivley changes the texture ID of an area on a ITerrain. More...

Inheritance diagram for AlphaFramework.Editor.World.TerrainModifiers.Texture:
AlphaFramework.Editor.World.TerrainModifiers.Base

Public Member Functions

 Texture (ITerrain terrain, Action refreshHandler, byte textureID)
 Creates a new texture index modifier. More...
 
override void Apply (Vector2 terrainCoords, TerrainBrush brush)
 Applies and accumulates a modification to the Terrain.
Parameters
terrainCoordsThe center coordinates of the area to modify in world space.
brushThe shape and size of the area around terrainCoords to modify.

 
override IUndoCommand GetCommand ()
 Creates a pre-executed undo command representing the accumulated Apply calls to this instance.
 

Additional Inherited Members

- Protected Member Functions inherited from AlphaFramework.Editor.World.TerrainModifiers.Base
 Base (ITerrain terrain)
 Creates a new Terrain modifier. More...
 
- Protected Attributes inherited from AlphaFramework.Editor.World.TerrainModifiers.Base
readonly
ExpandableRectangleArray< byte > 
OldData = new ExpandableRectangleArray<byte>()
 Used to collect data as it was before the modifications. More...
 
readonly
ExpandableRectangleArray< byte > 
NewData = new ExpandableRectangleArray<byte>()
 Used to collect data as it is after the modifcations. More...
 
readonly ITerrain Terrain
 The Terrain to modify. More...
 

Detailed Description

Interactivley changes the texture ID of an area on a ITerrain.

Constructor & Destructor Documentation

AlphaFramework.Editor.World.TerrainModifiers.Texture.Texture ( ITerrain  terrain,
Action  refreshHandler,
byte  textureID 
)
inline

Creates a new texture index modifier.

Parameters
terrainThe ITerrain to modify.
refreshHandlerCalled when the OmegaEngine.Graphics.Renderables.Terrain needs to be reset.
textureIDThe new texture ID to set.

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