Space
A class in Root.Township, Alta.Forests.
One triangle of a procedural forest's layout graph, made of three nodes and the three paths between them.
- Listed in World generation
- Documented in Forest
Constructors
| Member | What it is |
|---|---|
Space(int index, Node nodeA, Node nodeB, Node nodeC, Path ab, Path bc, Path ca) | Creates a Space from index, nodeA, nodeB, nodeC, ab, bc and ca. |
Properties
| Member | What it is |
|---|---|
Node A { get; private set; } | First corner node. |
Path AB { get; private set; } | Path from A to B. |
Node B { get; private set; } | Second corner node. |
Path BC { get; private set; } | Path from B to C. |
Node C { get; private set; } | Third corner node. |
Path CA { get; private set; } | Path from C to A. |
int Index { get; } | The space's index in the forest. Rivers use it to match nodes to spaces. |
IEnumerable<Node> Nodes { get; } | The three corner nodes. |
IEnumerable<Path> Paths { get; } | The three edge paths. |
SpaceType Type { get; set; } | Normal, dense or open. Normal by default. |
Used in
Members of other types that take, return or hold a Space: