Skip to main content

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.

Constructors​

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

Fields​

MemberWhat it is
int currentStageIndex of the stage it was in.
int currentStageEntityChild index of the current stage object, or -1.
GrowthDefinition definitionThe growth definition in use.
bool hasStartedWhether growth had started.
Vector3 positionNot filled in by GrowerComponent when saving.
Quaternion rotationNot filled in by GrowerComponent when saving.
int spawnedStageIndexStage whose prefab was spawned.
TimeSpan startedTimeTimeline time when growth started. On load, stages are skipped forward by elapsed time.