PopulationSpawnAreaSaveData
A class in Root.Township, Alta.Populations.
Save data for a PopulationSpawnArea: which population it holds, its counts, spawn timer and children.
- Listed in World generation
- Inherits or implements
NewSaveData<PopulationSpawnArea, PopulationSpawnAreaSaveData>,IPopulationFolderSaveDataBase - Derived types
PopulationSpawnArea,PopulationSpawnAreaSaveData - Attributes
SaveStructure
Constructors
| Member | What it is |
|---|---|
PopulationSpawnAreaSaveData() | Creates a PopulationSpawnAreaSaveData with default values. |
Fields
| Member | What it is |
|---|---|
TimeSpan checkPopulationTime | Saved timer state of the population sample, restored on load. |
PopulationSaveDataChild[] children | Saved population members of this area. |
int currentPopulation | How many members the area had when saved. |
PopulationDefinition definition | The population this spawn area spawns. |
bool isOneOff | If true, the area spawns once and doesn't refill. |
bool isPopulationStarted | Whether the area had a running population when saved. |
int maxPopulation | The area's maximum population. |
int numberOfSpawnPoints | How many static spawn points the area picks. |
int startingPopulation | How many members spawn when the area first starts. |
Properties
| Member | What 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: