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.IPrewarmableFactory Interface Reference

Optional interface for factories that support prewarming (pool priming) of spawnable prefabs. More...

Inheritance diagram for MegaCrush.Spawner.IPrewarmableFactory:
MegaCrush.Spawner.FusionAdapter.FusionObjectFactory MegaCrush.Spawner.SinglePlayerPoolFactory

Public Member Functions

void Prewarm (SpawnEntry entry, int count)
 Requests that the factory pre-create or cache count instances of a given prefab.
 

Detailed Description

Optional interface for factories that support prewarming (pool priming) of spawnable prefabs.

Member Function Documentation

◆ Prewarm()

void MegaCrush.Spawner.IPrewarmableFactory.Prewarm ( SpawnEntry entry,
int count )

Requests that the factory pre-create or cache count instances of a given prefab.

Parameters
entryThe spawn entry to prewarm.
countNumber of instances to prepare for reuse.

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


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