Skip to main content

PopulationSpawnAreaSaveData

A class in Root.Township, Alta.Populations.

Save data for a PopulationSpawnArea: which population it holds, its counts, spawn timer and children.

Constructors​

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

Fields​

MemberWhat it is
TimeSpan checkPopulationTimeSaved timer state of the population sample, restored on load.
PopulationSaveDataChild[] childrenSaved population members of this area.
int currentPopulationHow many members the area had when saved.
PopulationDefinition definitionThe population this spawn area spawns.
bool isOneOffIf true, the area spawns once and doesn't refill.
bool isPopulationStartedWhether the area had a running population when saved.
int maxPopulationThe area's maximum population.
int numberOfSpawnPointsHow many static spawn points the area picks.
int startingPopulationHow many members spawn when the area first starts.

Properties​

MemberWhat it is
TimeSpan CheckPopulationTime { get; set; }When the area next checks whether to spawn more.
PopulationSaveDataChild[] Children { get; set; }Saved data for the area's spawned children.
int CurrentPopulation { get; set; }How many members were alive when saved.
PopulationDefinition Definition { get; set; }The population definition this area spawns.
bool IsPopulationStarted { get; set; }Whether the area has already started spawning.
int MaximumPopulation { get; set; }Most members the area allows at once.

Used in​

Members of other types that take, return or hold a PopulationSpawnAreaSaveData: