SpawnRate
A class in Root.Township, Alta.Populations.
Asset that sets how a creature or resource population grows back: respawn interval, a growth curve to the cap, density and how much is visible at once.
- Listed in World generation
- Inherits or implements
GeneralValue - Derived types
SpawnRate.Create - Nested types
Create - Documented in Populations and spawners
Constructors
| Member | What it is |
|---|---|
SpawnRate() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
7 private and internal fields
Properties
Methods
| Member | What it is |
|---|---|
int EvaluateGrowth(BasicPopulation population, TimeSpan elapsedSpan) | Returns how many to add to a population after elapsed time, following the curve with 10% random variance. Stores leftover time when the result is zero. |
Used in
Members of other types that take, return or hold a SpawnRate: