Interface ISpawnSystem
- Namespace
- SurvivorsMaker.Simulation
- Assembly
- SurvivorsMaker.Simulation.dll
Spawning: schedules, telegraphs, admission.
public interface ISpawnSystem
Methods
Admit(SimWorld, List<SpawnRequest>)
Steps 6 and 11: admits requests (clamped, capacity checked) and clears the list.
void Admit(SimWorld world, List<SpawnRequest> requests)
Parameters
worldSimWorldrequestsList<SpawnRequest>
AdvanceTelegraphs(SimWorld)
Step 2 (telegraphs): counts down existing telegraphs and turns expired ones into enemies.
void AdvanceTelegraphs(SimWorld world)
Parameters
worldSimWorld
Begin(SimWorld)
At wave start: picks active groups and builds their occurrence ticks.
void Begin(SimWorld world)
Parameters
worldSimWorld
RunSchedule(SimWorld)
Step 3 (schedule): occurrences due this tick → telegraphs.
void RunSchedule(SimWorld world)
Parameters
worldSimWorld
SpawnImmediately(SimWorld, EnemyDef, Vec2, bool)
Creates an enemy now, bypassing telegraph and capacity (tests and tools).
Enemy SpawnImmediately(SimWorld world, EnemyDef def, Vec2 position, bool neutral)