|
Runtime Spawner 1.5.0
Generic Runtime spawn and instance pooling system for spawning random AI agents around a map. Works with ANY AI system easily.
|
Default implementation of IWaveExecutor. Spawns a sequence of entries defined in a WaveEntry, using spawn points defined on the WaveTrigger. More...
Public Member Functions | |||||
| WaveSpawnLoop (RuntimeSpawner owner, ISpawnExecutor exec, PopulationTracker pop) | |||||
| Constructs the wave executor. | |||||
| IEnumerator | RunWave (WaveEntry wave, WaveTrigger trigger) | ||||
Runs a wave by spawning entries defined in wave , using spawn points provided by trigger .
| |||||
Private Attributes | |
| readonly RuntimeSpawner | _owner |
| readonly ISpawnExecutor | _exec |
| readonly PopulationTracker | _pop |
Default implementation of IWaveExecutor. Spawns a sequence of entries defined in a WaveEntry, using spawn points defined on the WaveTrigger.
| MegaCrush.Spawner.WaveSpawnLoop.WaveSpawnLoop | ( | RuntimeSpawner | owner, |
| ISpawnExecutor | exec, | ||
| PopulationTracker | pop ) |
Constructs the wave executor.
| owner | Owning RuntimeSpawner providing settings and context builders. |
| exec | Executor responsible for performing spawns. |
| pop | Population tracker (used indirectly via spawns). |
| IEnumerator MegaCrush.Spawner.WaveSpawnLoop.RunWave | ( | WaveEntry | wave, |
| WaveTrigger | trigger ) |
Runs a wave by spawning entries defined in wave , using spawn points provided by trigger .
| wave | Wave configuration. |
| trigger | Trigger that initiated this wave (provides spawn anchors). |
Implements MegaCrush.Spawner.IWaveExecutor.
|
private |
|
private |
|
private |