Class UnityGameSpawnerService
Inheritance
UnityGameSpawnerService
Assembly: Serenity.UnityGameSpawner.Infrastructure.dll
Syntax
public class UnityGameSpawnerService : MonoBehaviour, IGameSpawnerService, IService, IFoundationSettings
Constructors
UnityGameSpawnerService()
Declaration
public UnityGameSpawnerService()
Properties
Guid
Declaration
public string Guid { get; set; }
Property Value
Id
Declaration
public string Id { get; set; }
Property Value
LogService
Declaration
public ILogService LogService { get; set; }
Property Value
Methods
Despawn(SpawnHandle)
Declaration
public void Despawn(SpawnHandle handle)
Parameters
DespawnAll()
Declaration
DespawnAll(SpawnType)
Declaration
public void DespawnAll(SpawnType type)
Parameters
GetPoolState(SpawnType)
Declaration
public PoolStateSnapshot GetPoolState(SpawnType type)
Parameters
Returns
InitializeService(ILogService, ISpawnFactory)
Initializes the service with required dependencies.
Declaration
public void InitializeService(ILogService logService, ISpawnFactory factory)
Parameters
| Type |
Name |
Description |
| ILogService |
logService |
The logging service for diagnostic output.
|
| ISpawnFactory |
factory |
The spawn factory for entity creation and destruction.
|
IsActive(SpawnHandle)
Declaration
public bool IsActive(SpawnHandle handle)
Parameters
Returns
Spawn(SpawnType)
Declaration
public SpawnHandle Spawn(SpawnType type)
Parameters
Returns
Implements