Population & Death¶
FishPopulationManager enforces the global ecosystem cap and tracks runtime statistics.
Counters¶
- Living population
- Total born
- Total deaths
- Available slots
Initial population is limited by EcosystemConfig.Maximum Total Population. Reproduction is limited by both the global cap and the profile's per-runtime-species population limit.
Because runtime identity comes from the config entry, Shark and Swordfish maintain separate limits even if they share the same behavior profile.
Death flow¶
- Ecology enters
Dead. - Movement is stopped or disabled.
- The configured animation controller receives the death event.
- Optional rolling and sinking are applied.
- The object is destroyed after
Death Despawn Delay.
The population slot is released when death begins rather than after the visual delay.