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

Default implementation of ISpawnExecutor. More...

Inheritance diagram for MegaCrush.Spawner.SpawnExecutor:
MegaCrush.Spawner.ISpawnExecutor

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 .
Parameters
entrySpawn configuration (prefab, group settings, etc.).
ctxContext describing source, placement hints, and player position.
Returns
The spawned instance (active), or null on failure.

 

Private Member Functions

Vector3 ResolvePosition (SpawnEntry entry, in SpawnContext ctx)
 

Private Attributes

readonly RuntimeSpawner _owner
 
readonly IPoolAdapter _pool
 
readonly ISpawnLocator _locator
 
readonly PopulationTracker _pop
 

Detailed Description

Default implementation of ISpawnExecutor.

Constructor & Destructor Documentation

◆ SpawnExecutor()

MegaCrush.Spawner.SpawnExecutor.SpawnExecutor ( RuntimeSpawner owner,
IPoolAdapter pool,
ISpawnLocator locator,
PopulationTracker pop )

Member Function Documentation

◆ ResolvePosition()

Vector3 MegaCrush.Spawner.SpawnExecutor.ResolvePosition ( SpawnEntry entry,
in SpawnContext ctx )
private

◆ Spawn()

GameObject MegaCrush.Spawner.SpawnExecutor.Spawn ( SpawnEntry entry,
SpawnContext ctx )

Spawns an instance for entry at a position derived from ctx .

Parameters
entrySpawn configuration (prefab, group settings, etc.).
ctxContext describing source, placement hints, and player position.
Returns
The spawned instance (active), or null on failure.

Implements MegaCrush.Spawner.ISpawnExecutor.

Member Data Documentation

◆ _locator

readonly ISpawnLocator MegaCrush.Spawner.SpawnExecutor._locator
private

◆ _owner

readonly RuntimeSpawner MegaCrush.Spawner.SpawnExecutor._owner
private

◆ _pool

readonly IPoolAdapter MegaCrush.Spawner.SpawnExecutor._pool
private

◆ _pop

readonly PopulationTracker MegaCrush.Spawner.SpawnExecutor._pop
private

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