class

Spawner

Module
Game
Header
#include "Gameplay/Spawner.h"
Namespace
Mowo

Properties

TypeNameDescription
std::function<void()>onSpawn

Public functions

ReturnsNameDescription
voidSetInterval
voidSetMaxAlive
voidStart0 = unlimited
voidStop
boolIsActive
voidNotifyDespawned
voidTickAdvance time; fire onSpawn for each due spawn (respecting maxAlive).
intAliveCount
intTotalSpawned

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() const

NotifyDespawned

C++
void NotifyDespawned()

Tick

C++
void Tick(float dt)

Advance time; fire onSpawn for each due spawn (respecting maxAlive).

AliveCount

C++
int AliveCount() const

TotalSpawned

C++
int TotalSpawned() const
Generated from Gameplay/Spawner.h via game.json · Nov 5, 2026Version 1.0.0