Interface IUnityWaveRuntime
Unity-layer intention interface for wave runtime wiring. Exposes Unity-specific operations that are NOT on IWaveService (spawn resolver injection, IWaveSet configuration, spawn entry access). Allows the composition root to wire stage↔wave without casting to concrete types.
Namespace: Serenity.Wave.Infrastructure.Interfaces
Assembly: Serenity.UnityWave.Infrastructure.dll
Syntax
public interface IUnityWaveRuntime
Methods
ConfigureFromWaveSet(IWaveSet)
Configures waves from a IWaveSet. Stores SO references for spawn entry access.
Declaration
void ConfigureFromWaveSet(IWaveSet waveSetSO)
Parameters
| Type | Name | Description |
|---|---|---|
| IWaveSet | waveSetSO | The wave set to configure from. |
ScheduleCurrentWaveSpawns()
Reads the current wave's IWaveConfig and starts a coroutine
for each SpawnEntry, honouring SpawnDelay and Count.
Must be called after IWaveService.StartNextWave.
Declaration
void ScheduleCurrentWaveSpawns()
SetSpawnPointResolver(ISpawnPointResolver)
Sets the spawn point resolver used to map spawn-entry IDs to world poses. Typically provided by the stage runtime after instantiating the stage prefab.
Declaration
void SetSpawnPointResolver(ISpawnPointResolver resolver)
Parameters
| Type | Name | Description |
|---|---|---|
| ISpawnPointResolver | resolver | The resolver extracted from the stage prefab, or null to clear. |
TryGetCurrentWaveSO(out IWaveConfig)
Gets the wave SO for the current wave index. Provides access to spawn entries and other Unity-only authoring data.
Declaration
bool TryGetCurrentWaveSO(out IWaveConfig waveSO)
Parameters
| Type | Name | Description |
|---|---|---|
| IWaveConfig | waveSO | The current wave's ScriptableObject if available. |
Returns
| Type | Description |
|---|---|
| bool | True if a wave SO is available for the current index. |
TryResolveSpawnPose(string, out SpawnPose)
Resolves a spawn-entry's string-based spawn-point ID to a world SpawnPose. Returns false if the resolver is not set or the ID is unknown.
Declaration
bool TryResolveSpawnPose(string spawnPointId, out SpawnPose pose)
Parameters
| Type | Name | Description |
|---|---|---|
| string | spawnPointId | The string identifier authored in the SpawnEntry. |
| SpawnPose | pose | The resolved pose, or default if not found. |
Returns
| Type | Description |
|---|---|
| bool | True if the spawn point was resolved; false otherwise. |