90 for (
auto &enemy : wave.enemies) {
91 enemy.hasSpawned =
false;
Base interface for all ECS components.
Component that holds spawn requests to be processed by SpawnSystem.
const SpawnerConfig & getConfig() const
const std::vector< SpawnRequest > & getSpawnRequests() const
Get all pending spawn requests.
bool hasPendingSpawns() const
Check if there are pending spawns.
void queueSpawn(const SpawnRequest &request)
Queue a spawn request.
void clearSpawnRequests()
Clear all pending spawn requests (called after processing)
~Spawner() override=default
std::vector< SpawnRequest > _spawnRequests
ComponentType getType() const override
Get component type ID.
SpawnerConfig & getConfigMutable()
void setConfig(const SpawnerConfig &config)
Maximum number of distinct component types supported by the Registry.
std::size_t ComponentType
Type alias for component identification.
Declarative request for spawning an entity.
std::vector< WaveConfig > waves
std::vector< int > wavesIntervals
std::vector< SpawnRequest > enemies