bus
The kit's event bus on each peer: exactly five events (`waveStarted`, `waveCleared`, `spawned`, `despawned`, `allWavesDone`) plus `"*"` for all of them. Games listen through `SK.on`, which is `bus.on`; the Spawner fires events on the host, and the Spawner and Enemy components fir…
bus
The kit's event bus on each peer: exactly five events (waveStarted, waveCleared, spawned, despawned, allWavesDone) plus "*" for all of them. Games listen through SK.on, which is bus.on; the Spawner fires events on the host, and the Spawner and Enemy components fire them on the other peers from synced state, so every event fires on every peer. Listeners and counters live in modules.state() and survive a hot reload; counts() says how often each event fired and lists the last 40.
Scoped to this part · feeds back into the world's score.