Skip to content

tickSpawner

tickSpawner(s, dtMs, emit): void

Defined in: src/modules/spawner/spawner.ts:57

Advance the spawner by dtMs, invoking emit once per elapsed interval. Overshoot carries into the next cycle. A non-positive interval halts emission for that tick (guards against an infinite loop), as does a hard per-tick emit cap.

Spawner

number

() => void

void