class
Spawner
- Module
- Game
- Header
#include "Gameplay/Spawner.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
std::function<void()> | onSpawn |
Public functions
| Returns | Name | Description |
|---|---|---|
void | SetInterval | |
void | SetMaxAlive | |
void | Start | 0 = unlimited |
void | Stop | |
bool | IsActive | |
void | NotifyDespawned | |
void | Tick | Advance time; fire onSpawn for each due spawn (respecting maxAlive). |
int | AliveCount | |
int | TotalSpawned |
Function details
SetInterval
C++
void SetInterval(float seconds)SetMaxAlive
C++
void SetMaxAlive(int n)Start
C++
void Start()0 = unlimited
Stop
C++
void Stop()IsActive
C++
bool IsActive() constNotifyDespawned
C++
void NotifyDespawned()Tick
C++
void Tick(float dt)Advance time; fire onSpawn for each due spawn (respecting maxAlive).
AliveCount
C++
int AliveCount() constTotalSpawned
C++
int TotalSpawned() constGenerated from Gameplay/Spawner.h via game.json · Nov 5, 2026Version 1.0.0