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

world SimWorld
requests List<SpawnRequest>

AdvanceTelegraphs(SimWorld)

Step 2 (telegraphs): counts down existing telegraphs and turns expired ones into enemies.

void AdvanceTelegraphs(SimWorld world)

Parameters

world SimWorld

Begin(SimWorld)

At wave start: picks active groups and builds their occurrence ticks.

void Begin(SimWorld world)

Parameters

world SimWorld

RunSchedule(SimWorld)

Step 3 (schedule): occurrences due this tick → telegraphs.

void RunSchedule(SimWorld world)

Parameters

world SimWorld

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)

Parameters

world SimWorld
def EnemyDef
position Vec2
neutral bool

Returns

Enemy