Skip to main content

WoodcutTreeNodeBaker

A class in Root.Township, Alta.Woodcutting.

Reads meshes and materials from woodcut tree nodes for the tree baker. Use the shared Instance. Build-time tooling.

Constructors​

MemberWhat it is
WoodcutTreeNodeBaker()Creates a WoodcutTreeNodeBaker with default values.

Properties​

MemberWhat it is
static WoodcutTreeNodeBaker Instance { get; }The shared baker.
override int MaxLods { get; }Always 3.

Methods​

MemberWhat it is
override int GetLodCount(WoodcutTree.MapNode item)Number of meshes the node's model has.
override Material GetMaterial(WoodcutTree.MapNode item, int index)The tree species' non-atlased material. Logs and returns null if tree or species is missing.
override Mesh GetMesh(WoodcutTree.MapNode item, int lod)The node model's mesh for a LOD.
override string GetName(WoodcutTree.MapNode item)Name of the node's model.
override Transform GetTransform(WoodcutTree.MapNode item)Transform of the node's model.
override bool IsValid(WoodcutTree.MapNode item, int lod)False for LOD 0 when the model's colour is off. Other LODs are always valid.