Node
A class in Root.Township, Alta.PAGaC.
One cell in a PAGaC generation grid: its position and the tag it currently holds.
- Listed in World generation
Constructors
| Member | What it is |
|---|---|
Node(int x, int y, int z, Tag tag) | Creates a Node from x, y, z and tag. |
Properties
| Member | What it is |
|---|---|
Tag Tag { get; set; } | The tag in the cell. |
int X { get; private set; } | Cell x. |
int Y { get; private set; } | Cell y. |
int Z { get; private set; } | Cell z. |
Methods
| Member | What it is |
|---|---|
void TagIf(Tag newTag, Tag oldTag) | Swaps the tag to a new one only if it currently has the given old tag. |
Used in
Members of other types that take, return or hold a Node:
BuildingRooms.GetWalls, BuildingRooms.NodeRange.End, BuildingRooms.NodeRange.NodeRange, BuildingRooms.NodeRange.Start, BuildingRooms.RoomPath.Overlap, Generator.CastTo, Generator.CastToNot, Generator.Item, Generator.nodes, NodeCollection.Add, NodeCollection.GetOverlap, NodeCollection.nodes, NodeCollection.Nodes, NodeCollection.Remove, NodeExtensions.Within.