Runtime Spawner 1.2.5
Generic Runtime spawn and instance pooling system for spawning random AI agents around a map. Works with ANY AI system easily.
Loading...
Searching...
No Matches
MegaCrush.Spawner.WaveSpawnLoop Class Referencesealed

Default implementation of IWaveExecutor. Spawns a sequence of entries defined in a WaveEntry, using spawn points defined on the WaveTrigger. More...

Inheritance diagram for MegaCrush.Spawner.WaveSpawnLoop:
MegaCrush.Spawner.IWaveExecutor

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 .
Parameters
waveWave configuration.
triggerTrigger that initiated this wave (provides spawn anchors).

 

Private Attributes

readonly RuntimeSpawner _owner
 
readonly ISpawnExecutor _exec
 
readonly PopulationTracker _pop
 

Detailed Description

Default implementation of IWaveExecutor. Spawns a sequence of entries defined in a WaveEntry, using spawn points defined on the WaveTrigger.

Constructor & Destructor Documentation

◆ WaveSpawnLoop()

MegaCrush.Spawner.WaveSpawnLoop.WaveSpawnLoop ( RuntimeSpawner owner,
ISpawnExecutor exec,
PopulationTracker pop )

Constructs the wave executor.

Parameters
ownerOwning RuntimeSpawner providing settings and context builders.
execExecutor responsible for performing spawns.
popPopulation tracker (used indirectly via spawns).

Member Function Documentation

◆ RunWave()

IEnumerator MegaCrush.Spawner.WaveSpawnLoop.RunWave ( WaveEntry wave,
WaveTrigger trigger )

Runs a wave by spawning entries defined in wave , using spawn points provided by trigger .

Parameters
waveWave configuration.
triggerTrigger that initiated this wave (provides spawn anchors).

Implements MegaCrush.Spawner.IWaveExecutor.

Member Data Documentation

◆ _exec

readonly ISpawnExecutor MegaCrush.Spawner.WaveSpawnLoop._exec
private

◆ _owner

readonly RuntimeSpawner MegaCrush.Spawner.WaveSpawnLoop._owner
private

◆ _pop

readonly PopulationTracker MegaCrush.Spawner.WaveSpawnLoop._pop
private

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