PopulationSetup
A class in Root.Township, Alta.Populations.
Asset defining a population: how fast it spawns and where its members may be placed. Looked up by hash; also used as a fill set when placing members.
- Listed in World generation
- Inherits or implements
HashedGeneralValue<PopulationSetup>,IFillSet - Derived types
PopulationSetup,PopulationSetup.Create - Nested types
Create
Constructors
| Member | What it is |
|---|---|
PopulationSetup() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
5 private and internal fields
| Member | What it is |
|---|---|
private bool isMoving | Backing field for IsMoving. Turn on for creatures. |
private float maximumFailScore | Backing field for MaximumFailScore, the top of the range the fill picks a random fail threshold from (0 to 1). |
private float minimumFailScore | Backing field for MinimumFailScore, the bottom of the range the fill picks a random fail threshold from (0 to 1). |
private SpawnModifiers spawnModifiers | Backing field for SpawnModifiers. The first (point) modifier isn't used. |
private SpawnRate spawnRate | Backing field for SpawnRate. |
Properties
| Member | What it is |
|---|---|
bool IsClearingOnUnload { get; } | Always false. |
bool IsMoving { get; } | Whether the members move around (turn on for creatures). |
float MaximumFailScore { get; } | Top of the random score range a spot must beat when placing. |
float MinimumFailScore { get; } | Bottom of the random score range a spot must beat when placing. |
SpawnModifiers SpawnModifiers { get; } | Rules that score and adjust spawn spots. The first (point) modifiers are not used. |
SpawnRate SpawnRate { get; } | Spawn rate settings: density, respawn interval, growth and emerge rate. |
Used in
Members of other types that take, return or hold a PopulationSetup:
ForestPopulationCreator.definition, BasicEcosystem.Get, BasicEcosystem.populations, BasicPopulation.Definition, BasicPopulationFolder.definition, BasicPopulationFolder.Definition, BasicPopulationFolder.Setup, BasicPopulationFolderSaveData.definition, BasicPopulationItem.Definition, IPopulationFolder.Definition, PopulationPath.Definition, PopulationPathSaveData.definition.