Skip to main content

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.

Constructors​

MemberWhat it is
Step(uint pieceHash, int rotation)Creates a PresetTree.Step from pieceHash and rotation.

Fields​

5 private and internal fields
MemberWhat it is
private List<PresetTree.Step.Attachment> attachmentsBacking field for Attachments.
private List<uint> childConnectionHashesBacking field for ChildConnectionHashes.
private List<int> childIndicesBacking field for ChildIndices.
private uint pieceHashBacking field for PieceHash.
private int rotationBacking field for Rotation.

Properties​

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