Class Base
- Namespace
- AlphaFramework.Editor.World.TerrainModifiers
- Assembly
- AlphaFramework.Editor.dll
Abstract base class for interactively modifying a Terrain.
public abstract class Base
- Inheritance
-
Base
- Derived
- Inherited Members
- Extension Methods
Constructors
Base(ITerrain)
Creates a new Terrain modifier.
protected Base(ITerrain terrain)
Parameters
Fields
NewData
Used to collect data as it is after the modifcations.
protected readonly ExpandableRectangleArray<byte> NewData
Field Value
OldData
Used to collect data as it was before the modifications.
protected readonly ExpandableRectangleArray<byte> OldData
Field Value
Terrain
The Terrain to modify.
protected readonly ITerrain Terrain
Field Value
Methods
Apply(Vector2, TerrainBrush)
Applies and accumulates a modification to the Terrain.
public abstract void Apply(Vector2 terrainCoords, TerrainBrush brush)
Parameters
terrainCoords
Vector2The center coordinates of the area to modify in world space.
brush
TerrainBrushThe shape and size of the area around
terrainCoords
to modify.
GetCommand()
Creates a pre-executed undo command representing the accumulated Apply(Vector2, TerrainBrush) calls to this instance.
public abstract IUndoCommand GetCommand()