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.WaveTableRunner Class Referencesealed

Executes a WaveSpawner definition once, honoring each WaveEntry's LoopPolicy. Each wave may run once, repeat a set number of times, repeat until a duration expires, or loop until a signal is received. More...

Public Member Functions

 WaveTableRunner (RuntimeSpawner owner, IWaveExecutor exec)
 Creates a new runner bound to a spawner and executor.
 
IEnumerator Run (WaveSpawner table, WaveTrigger trigger, Func< bool > stopRequested)
 Executes all waves in table sequentially, honoring their individual loop policies. Stops if stopRequested returns true.
 

Static Private Member Functions

static bool SignalBusReceived (string id)
 Returns true when a signal with id is received.
 

Private Attributes

readonly RuntimeSpawner _owner
 
readonly IWaveExecutor _exec
 

Detailed Description

Executes a WaveSpawner definition once, honoring each WaveEntry's LoopPolicy. Each wave may run once, repeat a set number of times, repeat until a duration expires, or loop until a signal is received.

Constructor & Destructor Documentation

◆ WaveTableRunner()

MegaCrush.Spawner.WaveTableRunner.WaveTableRunner ( RuntimeSpawner owner,
IWaveExecutor exec )

Creates a new runner bound to a spawner and executor.

Member Function Documentation

◆ Run()

IEnumerator MegaCrush.Spawner.WaveTableRunner.Run ( WaveSpawner table,
WaveTrigger trigger,
Func< bool > stopRequested )

Executes all waves in table sequentially, honoring their individual loop policies. Stops if stopRequested returns true.

Parameters
tableWave table definition containing waves.
triggerTrigger that initiated this table run.
stopRequestedCallback to signal early termination.

◆ SignalBusReceived()

static bool MegaCrush.Spawner.WaveTableRunner.SignalBusReceived ( string id)
staticprivate

Returns true when a signal with id is received.

Member Data Documentation

◆ _exec

readonly IWaveExecutor MegaCrush.Spawner.WaveTableRunner._exec
private

◆ _owner

readonly RuntimeSpawner MegaCrush.Spawner.WaveTableRunner._owner
private

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