StructurePart.Cube
A class in Root.Township, the global namespace.
Old per-tile side data for a StructurePart. Now only read in the editor to convert into StructureCube children.
- Listed in Global namespace: S
- Nested in
StructurePart
Constructors
| Member | What it is |
|---|---|
Cube() | Creates a StructurePart.Cube with default values. |
Fields
| Member | What it is |
|---|---|
StructureSide air | Sides of this cell that are open air for neighbours. |
StructureSide connectToAir | Sides that must face an air side of a neighbouring part for the part to be placed. |
StructureSide connectToSolid | Sides that must face a solid side of a neighbouring part for the part to be placed. |
StructureSide gates | Sides with an opening that a path can pass through; the mine generator links gates between parts. |
int minimumGatesForCulling | If above 0, the part is dropped when fewer than this many of the cell's gates line up with incoming gates. |
StructureSide solid | Sides of this cell that are solid for neighbours. |
int x | Cell X position in the part's grid. |
int y | Cell Y position in the part's grid. |
int z | Cell Z position in the part's grid. |
Properties
| Member | What it is |
|---|---|
StructureSide Air { get; } | Sides that are open air. |
StructureSide ConnectToAir { get; } | Sides that must touch air. |
StructureSide ConnectToSolid { get; } | Sides that must touch solid ground. |
StructureSide Gates { get; } | Sides of this tile that are openings. |
int MinimumGatesForCulling { get; } | Probably how many gates must be used before this tile can be culled. |
StructureSide Solid { get; } | Sides that are solid. |
int X { get; } | Tile x in the part. |
int Y { get; } | Tile y in the part. |
int Z { get; } | Tile z in the part. |
Used in
Members of other types that take, return or hold a Cube: