AlphaFramework API
1.0.3
|
Abstract base class for interactivley modifying a Terrain. More...
Public Member Functions | |
abstract void | Apply (Vector2 terrainCoords, TerrainBrush brush) |
Applies and accumulates a modification to the Terrain. More... | |
abstract IUndoCommand | GetCommand () |
Creates a pre-executed undo command representing the accumulated Apply calls to this instance. More... | |
Protected Member Functions | |
Base (ITerrain terrain) | |
Creates a new Terrain modifier. More... | |
Protected Attributes | |
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... | |
Abstract base class for interactivley modifying a Terrain.
|
inlineprotected |
|
pure virtual |
Applies and accumulates a modification to the Terrain.
terrainCoords | The center coordinates of the area to modify in world space. |
brush | The shape and size of the area around terrainCoords to modify. |
Implemented in AlphaFramework.Editor.World.TerrainModifiers.Height, and AlphaFramework.Editor.World.TerrainModifiers.Texture.
|
pure virtual |
Creates a pre-executed undo command representing the accumulated Apply calls to this instance.
Implemented in AlphaFramework.Editor.World.TerrainModifiers.Texture, and AlphaFramework.Editor.World.TerrainModifiers.Height.
|
protected |
Used to collect data as it is after the modifcations.
|
protected |
Used to collect data as it was before the modifications.
|
protected |
The Terrain to modify.