Runtime Spawner 1.5.0
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.IObjectFactory Interface Reference

Interface implemented by object factories capable of spawning objects synchronously or asynchronously. More...

Inheritance diagram for MegaCrush.Spawner.IObjectFactory:
MegaCrush.Spawner.FusionAdapter.FusionObjectFactory MegaCrush.Spawner.PunAdapter.PUNObjectFactory MegaCrush.Spawner.SinglePlayerPoolFactory

Public Member Functions

ISpawnHandle Spawn (SpawnRequest request)
 Performs a synchronous spawn operation.
 
Task< ISpawnHandleSpawnAsync (SpawnRequest request)
 Performs an asynchronous spawn operation (useful for streaming or deferred instantiation).
 

Detailed Description

Interface implemented by object factories capable of spawning objects synchronously or asynchronously.

Member Function Documentation

◆ Spawn()

ISpawnHandle MegaCrush.Spawner.IObjectFactory.Spawn ( SpawnRequest request)

Performs a synchronous spawn operation.

Parameters
requestThe SpawnRequest to process.
Returns
A handle to the spawned object, or null if the spawn failed or was refused.

Implemented in MegaCrush.Spawner.FusionAdapter.FusionObjectFactory, MegaCrush.Spawner.PunAdapter.PUNObjectFactory, and MegaCrush.Spawner.SinglePlayerPoolFactory.

◆ SpawnAsync()

Task< ISpawnHandle > MegaCrush.Spawner.IObjectFactory.SpawnAsync ( SpawnRequest request)

Performs an asynchronous spawn operation (useful for streaming or deferred instantiation).

Parameters
requestThe SpawnRequest to process.
Returns
A task resolving to an ISpawnHandle once the spawn is complete.

Implemented in MegaCrush.Spawner.FusionAdapter.FusionObjectFactory, MegaCrush.Spawner.PunAdapter.PUNObjectFactory, and MegaCrush.Spawner.SinglePlayerPoolFactory.


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