Table of Contents

Class TerrainTemplate

Namespace
FrameOfReference.World.Templates
Assembly
FrameOfReference.World.dll

Defines a type of terrain (texture, effects on units, etc.).

public sealed class TerrainTemplate : Template<TerrainTemplate>, INamed, IHighlightColor, ICloneable, IComparable<TerrainTemplate>
Inheritance
TerrainTemplate
Implements
Inherited Members
Extension Methods

Properties

Color

The mini-map color for this terrain type. Should be unique.

[LuaHide]
public Color Color { get; set; }

Property Value

Color

Remarks

Is not serialized/stored, ColorValue is used for that.

ColorValue

Used for XML serialization.

[LuaHide]
[Browsable(false)]
public XColor ColorValue { get; set; }

Property Value

XColor
See Also

MovementAbility

How well can units walk on this ground? 0=not at all; 1=with full speed

public float MovementAbility { get; set; }

Property Value

float

Texture

The filename of the ground texture.

[Browsable(false)]
public string? Texture { get; set; }

Property Value

string