|
Runtime Spawner 1.3.0
Generic Runtime spawn and instance pooling system for spawning random AI agents around a map. Works with ANY AI system easily.
|
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< SpawnEntry > | spawners = new() |
| Spawn entries used for this wave. | |
Configuration for a single wave of spawns.
| void MegaCrush.Spawner.WaveEntry.OnValidate | ( | int | index | ) |
Ensures valid configuration for this wave entry. Called automatically by WaveSpawner.OnValidate.
| index | Index of this wave in the spawner's list (0-based). |
| string MegaCrush.Spawner.WaveEntry.description |
Optional description for this wave.
| LoopPolicy MegaCrush.Spawner.WaveEntry.loopPolicy |
Looping/repeat policy for this wave.
| string MegaCrush.Spawner.WaveEntry.name |
Display name for the wave (auto-filled if left blank).
| int MegaCrush.Spawner.WaveEntry.spawnCountMax = 10 |
Maximum number of instances to spawn. The spawn count is 'inclusive' of this max value.
| int MegaCrush.Spawner.WaveEntry.spawnCountMin = 1 |
Minimum number of instances to spawn.
| float MegaCrush.Spawner.WaveEntry.spawnDelay = 0f |
Initial delay before this wave starts spawning.
| List<SpawnEntry> MegaCrush.Spawner.WaveEntry.spawners = new() |
Spawn entries used for this wave.
| float MegaCrush.Spawner.WaveEntry.spawnInstanceInterval = 0.5f |
Time delay between each spawn instance within this wave.