![]() |
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.
|
Default implementation of ISpawnExecutor. More...
Public Member Functions | |||||
SpawnExecutor (RuntimeSpawner owner, IPoolAdapter pool, ISpawnLocator locator, PopulationTracker pop) | |||||
GameObject | Spawn (SpawnEntry entry, SpawnContext ctx) | ||||
Spawns an instance for entry at a position derived from ctx .
| |||||
Private Member Functions | |
Vector3 | ResolvePosition (SpawnEntry entry, in SpawnContext ctx) |
Private Attributes | |
readonly RuntimeSpawner | _owner |
readonly IPoolAdapter | _pool |
readonly ISpawnLocator | _locator |
readonly PopulationTracker | _pop |
Default implementation of ISpawnExecutor.
MegaCrush.Spawner.SpawnExecutor.SpawnExecutor | ( | RuntimeSpawner | owner, |
IPoolAdapter | pool, | ||
ISpawnLocator | locator, | ||
PopulationTracker | pop ) |
|
private |
GameObject MegaCrush.Spawner.SpawnExecutor.Spawn | ( | SpawnEntry | entry, |
SpawnContext | ctx ) |
Spawns an instance for entry at a position derived from ctx .
entry | Spawn configuration (prefab, group settings, etc.). |
ctx | Context describing source, placement hints, and player position. |
null
on failure.Implements MegaCrush.Spawner.ISpawnExecutor.
|
private |
|
private |
|
private |
|
private |