Table of Contents

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

terrain ITerrain

The Terrain to modify.

Fields

NewData

Used to collect data as it is after the modifcations.

protected readonly ExpandableRectangleArray<byte> NewData

Field Value

ExpandableRectangleArray<byte>

OldData

Used to collect data as it was before the modifications.

protected readonly ExpandableRectangleArray<byte> OldData

Field Value

ExpandableRectangleArray<byte>

Terrain

The Terrain to modify.

protected readonly ITerrain Terrain

Field Value

ITerrain

Methods

Apply(Vector2, TerrainBrush)

Applies and accumulates a modification to the Terrain.

public abstract void Apply(Vector2 terrainCoords, TerrainBrush brush)

Parameters

terrainCoords Vector2

The center coordinates of the area to modify in world space.

brush TerrainBrush

The 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()

Returns

IUndoCommand