Skip to main content

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.

Constructors​

MemberWhat it is
Cube()Creates a StructurePart.Cube with default values.

Fields​

MemberWhat it is
StructureSide airSides of this cell that are open air for neighbours.
StructureSide connectToAirSides that must face an air side of a neighbouring part for the part to be placed.
StructureSide connectToSolidSides that must face a solid side of a neighbouring part for the part to be placed.
StructureSide gatesSides with an opening that a path can pass through; the mine generator links gates between parts.
int minimumGatesForCullingIf above 0, the part is dropped when fewer than this many of the cell's gates line up with incoming gates.
StructureSide solidSides of this cell that are solid for neighbours.
int xCell X position in the part's grid.
int yCell Y position in the part's grid.
int zCell Z position in the part's grid.

Properties​

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