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.
- Listed in Crafting and making
- Inherits or implements
WoodcutTreeBakerAccess<WoodcutTree.MapNode> - Derived types
WoodcutTreeDamagedNodeBaker,WoodcutTreeNodeBakerLod0Only
Constructors
| Member | What it is |
|---|---|
WoodcutTreeNodeBaker() | Creates a WoodcutTreeNodeBaker with default values. |
Properties
| Member | What it is |
|---|---|
static WoodcutTreeNodeBaker Instance { get; } | The shared baker. |
override int MaxLods { get; } | Always 3. |
Methods
| Member | What 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. |