GrowthDefinition
A class in Root.Township, the global namespace.
Asset listing the stages something grows through, used by GrowerComponent.
- Listed in Global namespace: E to H
- Inherits or implements
HashedGeneralValue<GrowthDefinition> - Derived types
GrowthDefinition - Attributes
HashedPath,CreateAssetMenu - Documented in Farming, woodcutting and carpentry
Constructors
| Member | What it is |
|---|---|
GrowthDefinition() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
2 private and internal fields
| Member | What it is |
|---|---|
private bool isChildingToParentAtEnd | Backing field for IsChildingToParentAtEnd: whether the grown object is chunk-parented to the grower's chunking parent when growth ends. |
private GrowthStage[] stages | Backing field for Stages. |
Properties
| Member | What it is |
|---|---|
bool IsChildingToParentAtEnd { get; } | Whether the grown object is chunk-childed to the grower's chunking parent when growth ends, instead of standing on its own. |
GrowthStage[] Stages { get; } | The growth stages in order. |
Used in
Members of other types that take, return or hold a GrowthDefinition: