GrowthSaveData
A class in Root.Township, the global namespace.
Save data for a GrowerComponent: definition, stage, start time and which child is the current stage object.
- Listed in Global namespace: E to H
- Inherits or implements
NewSaveData<GrowerComponent, GrowthSaveData> - Derived types
GrowerComponent,GrowthSaveData - Attributes
SaveStructure
Constructors
| Member | What it is |
|---|---|
GrowthSaveData() | Creates a GrowthSaveData with default values. |
Fields
| Member | What it is |
|---|---|
int currentStage | Index of the stage it was in. |
int currentStageEntity | Child index of the current stage object, or -1. |
GrowthDefinition definition | The growth definition in use. |
bool hasStarted | Whether growth had started. |
Vector3 position | Not filled in by GrowerComponent when saving. |
Quaternion rotation | Not filled in by GrowerComponent when saving. |
int spawnedStageIndex | Stage whose prefab was spawned. |
TimeSpan startedTime | Timeline time when growth started. On load, stages are skipped forward by elapsed time. |