PresetTree.Step
A class in Root.Township, Alta.Woodcutting.
One piece of a saved preset tree: which tree model to spawn, its rotation, its attachments and which steps hang off its connections. Steps are stored flat in PresetTree with index links.
- Listed in Crafting and making
- Nested in
PresetTree - Nested types
Attachment
Constructors
| Member | What it is |
|---|---|
Step(uint pieceHash, int rotation) | Creates a PresetTree.Step from pieceHash and rotation. |
Fields
5 private and internal fields
| Member | What it is |
|---|---|
private List<PresetTree.Step.Attachment> attachments | Backing field for Attachments. |
private List<uint> childConnectionHashes | Backing field for ChildConnectionHashes. |
private List<int> childIndices | Backing field for ChildIndices. |
private uint pieceHash | Backing field for PieceHash. |
private int rotation | Backing field for Rotation. |
Properties
| Member | What it is |
|---|---|
List<PresetTree.Step.Attachment> Attachments { get; } | Attachments (such as leaves or fruit) to spawn on this piece, with local transform. |
List<uint> ChildConnectionHashes { get; } | Hashes of this piece's connection points that have a child piece. Matches ChildIndices by position. |
List<int> ChildIndices { get; } | Index in the preset's step list of the child piece for each entry in ChildConnectionHashes. |
uint PieceHash { get; } | Prefab hash of the woodcut tree model spawned for this step. |
int Rotation { get; } | Rotation index passed to WoodcutTree.Add when this piece is attached. |
Used in
Members of other types that take, return or hold a Step: