Skip to main content

PopulationSpawnAreaSaveData1

A class in Root.Township, Alta.Populations.

Old version 1 save data for a PopulationSpawnArea, kept so old saves can load.

Constructors​

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

Fields​

MemberWhat it is
float checkPopulationTimeNext population check time, in seconds.
PopulationSaveDataChild[] childrenSaved data for each spawned member.
int currentPopulationCurrent population count.
PopulationDefinition definitionThe population definition.
bool isOneOffWhether the area spawns only once.
bool isPopulationStartedWhether the population had started spawning.
int maxPopulationMaximum population.
int numberOfSpawnPointsNumber of spawn points in the area.
int startingPopulationPopulation to spawn at the start.

Methods​

MemberWhat it is
override SaveData Migrate()Copies the fields into the current save data, turning checkPopulationTime from seconds into a TimeSpan.