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.LoopPolicy Struct Reference

Per-wave loop configuration describing if/how a wave should repeat. More...

Public Attributes

LoopType type
 Loop strategy. LoopType.None keeps the single-run behavior.
 
float durationSeconds
 When LoopType.Duration is used, the wave repeats until this many seconds have elapsed.
 
int maxLoops
 When LoopType.MaxLoops is used, the wave repeats this many times. Use 0 to indicate unlimited (treated as no cap).
 
string untilSignal
 When LoopType.UntilSignal is used, the wave repeats until this signal is received (integration point for your signal bus).
 
float restSeconds
 Optional pause inserted between loop iterations (all loop types).
 
bool shuffleOnLoop
 If true, the wave's internal spawn list can be shuffled each loop (if supported by the runner).
 

Detailed Description

Per-wave loop configuration describing if/how a wave should repeat.

Member Data Documentation

◆ durationSeconds

float MegaCrush.Spawner.LoopPolicy.durationSeconds

When LoopType.Duration is used, the wave repeats until this many seconds have elapsed.

◆ maxLoops

int MegaCrush.Spawner.LoopPolicy.maxLoops

When LoopType.MaxLoops is used, the wave repeats this many times. Use 0 to indicate unlimited (treated as no cap).

◆ restSeconds

float MegaCrush.Spawner.LoopPolicy.restSeconds

Optional pause inserted between loop iterations (all loop types).

◆ shuffleOnLoop

bool MegaCrush.Spawner.LoopPolicy.shuffleOnLoop

If true, the wave's internal spawn list can be shuffled each loop (if supported by the runner).

◆ type

LoopType MegaCrush.Spawner.LoopPolicy.type

Loop strategy. LoopType.None keeps the single-run behavior.

◆ untilSignal

string MegaCrush.Spawner.LoopPolicy.untilSignal

When LoopType.UntilSignal is used, the wave repeats until this signal is received (integration point for your signal bus).


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