Skip to main content

Node

A class in Root.Township, Alta.PAGaC.

One cell in a PAGaC generation grid: its position and the tag it currently holds.

Constructors​

MemberWhat it is
Node(int x, int y, int z, Tag tag)Creates a Node from x, y, z and tag.

Properties​

MemberWhat 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​

MemberWhat 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: