Skip to main content

SpawnSystemFactory Class

Factory for ID-centric spawn system configuration. More...

Declaration

class helios::engine::builder::spawnSystem::SpawnSystemFactory { ... }

Public Static Functions Index

static helios::engine::builder::spawnSystem::builders::configs::SpawnSystemConfiguratorconfigure (helios::engine::runtime::pooling::GameObjectPoolManager &poolManager, helios::engine::runtime::spawn::SpawnManager &spawnManager)

Creates a configurator for fluent spawn system setup. More...

Description

Factory for ID-centric spawn system configuration.

Entry point for fluent spawn system setup. Returns a SpawnSystemConfigurator whose pool() calls can be chained via commit() / commitCyclic() return values:

## Usage

```cpp SpawnSystemFactory::configure(poolManager, spawnManager) .pool(ProjectilePoolId, ProjectilePrefabId, 50) .profile(ProjectileProfileId) .emitterPlacement() .done() .commit() .pool(EnemyPoolId, EnemyPrefabId, 200) .profile(EnemyProfileId) .randomPlacement() .scheduledBy(EnemyRuleId) .timerCondition(5.0f) .fixedAmount(1) .done() .done() .commit(); ```

See Also

SpawnPoolConfig

See Also

SpawnProfileConfig

See Also

SpawnRuleConfig

See Also

SpawnSystemConfigurator

Definition at line 48 of file SpawnSystemFactory.ixx.

Public Static Functions

configure()

helios::engine::builder::spawnSystem::builders::configs::SpawnSystemConfigurator helios::engine::builder::spawnSystem::SpawnSystemFactory::configure (helios::engine::runtime::pooling::GameObjectPoolManager & poolManager, helios::engine::runtime::spawn::SpawnManager & spawnManager)
inline static

Creates a configurator for fluent spawn system setup.

Parameters
poolManager

The pool manager for pool registration.

spawnManager

The spawn manager for profile and scheduler registration.

Returns

A SpawnSystemConfigurator for chained pool() calls.

Definition at line 60 of file SpawnSystemFactory.ixx.


The documentation for this class was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.