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.WaveEntry Class Reference

Configuration for a single wave of spawns. More...

Public Member Functions

void OnValidate (int index)
 Ensures valid configuration for this wave entry. Called automatically by WaveSpawner.OnValidate.
 

Public Attributes

string name
 Display name for the wave (auto-filled if left blank).
 
string description
 Optional description for this wave.
 
float spawnDelay = 0f
 Initial delay before this wave starts spawning.
 
float spawnInstanceInterval = 0.5f
 Time delay between each spawn instance within this wave.
 
int spawnCountMin = 1
 Minimum number of instances to spawn.
 
int spawnCountMax = 10
 Maximum number of instances to spawn. The spawn count is 'inclusive' of this max value.
 
LoopPolicy loopPolicy
 Looping/repeat policy for this wave.
 
List< SpawnEntryspawners = new()
 Spawn entries used for this wave.
 

Detailed Description

Configuration for a single wave of spawns.

Member Function Documentation

◆ OnValidate()

void MegaCrush.Spawner.WaveEntry.OnValidate ( int index)

Ensures valid configuration for this wave entry. Called automatically by WaveSpawner.OnValidate.

Parameters
indexIndex of this wave in the spawner's list (0-based).

Member Data Documentation

◆ description

string MegaCrush.Spawner.WaveEntry.description

Optional description for this wave.

◆ loopPolicy

LoopPolicy MegaCrush.Spawner.WaveEntry.loopPolicy

Looping/repeat policy for this wave.

◆ name

string MegaCrush.Spawner.WaveEntry.name

Display name for the wave (auto-filled if left blank).

◆ spawnCountMax

int MegaCrush.Spawner.WaveEntry.spawnCountMax = 10

Maximum number of instances to spawn. The spawn count is 'inclusive' of this max value.

◆ spawnCountMin

int MegaCrush.Spawner.WaveEntry.spawnCountMin = 1

Minimum number of instances to spawn.

◆ spawnDelay

float MegaCrush.Spawner.WaveEntry.spawnDelay = 0f

Initial delay before this wave starts spawning.

◆ spawners

List<SpawnEntry> MegaCrush.Spawner.WaveEntry.spawners = new()

Spawn entries used for this wave.

◆ spawnInstanceInterval

float MegaCrush.Spawner.WaveEntry.spawnInstanceInterval = 0.5f

Time delay between each spawn instance within this wave.


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