This class is used for Triggered Spawner setup.
More...
|
virtual Transform | SpawnWaveItem (Transform prefabToSpawn, Vector3 spawnPosition, Quaternion rotation, TriggeredWaveMetaData wave) |
| Override this method to call a Network Instantiate method or other. More...
|
|
virtual void | DespawnSpawner () |
| Override this method to call a Network Destroy method or other. More...
|
|
virtual void | SpawnedOrAwake () |
| This method gets called whenever the object is spawned or starts in a Scene (from Awake event) More...
|
|
virtual Transform | GetSpawnable (TriggeredWaveMetaData wave) |
| This returns the item to spawn. Override this to apply custom logic if needed. More...
|
|
virtual bool | CanSpawnOne (TriggeredWaveMetaData wave) |
| Subclass this to override it if needed. More...
|
|
virtual Vector3 | GetSpawnPosition (Vector3 pos, int itemSpawnedIndex, TriggeredWaveMetaData wave) |
| Returns the position to spawn an item in. Override for your custom logic. More...
|
|
virtual Quaternion | GetSpawnRotation (Transform prefabToSpawn, int itemSpawnedIndex, TriggeredWaveMetaData wave) |
| Returns the rotation to spawn the item in. Override if you need custom logic for this. More...
|
|
virtual void | AffectScale (Transform spawnedTrans, TriggeredWaveMetaData wave) |
| Fires after the item spawns and affects the scale of the spawned object. Override if you need custom logic here. More...
|
|
virtual void | AfterSpawn (Transform spawnedTrans, TriggeredWaveMetaData wave, TriggeredSpawner.EventType eType) |
| Fires immediately after the item spawns. Used by post-spawn nudge. Override if you need custom logic here. More...
|
|
|
List< TrigSpawnerWaiterSpecifics > | ActiveEliminationWaves [get] |
| This returns a list of all the active elimination waves. More...
|
|
Dictionary< TriggeredSpawner.EventType, List< TriggeredWaveSpecifics > > | AllWaves [get] |
| This returns a list of all the waves. Used by bulk "modify all waves" things such as visualization code. More...
|
|
bool | SpawnerIsPaused [get] |
| This property will return true if the Wave Pause Behavior setting makes this spawner paused. More...
|
|
bool | GameIsOverForSpawner [get] |
| This property will return true if the Game Over Behavior setting makes this spawner disabled. More...
|
|
bool | SpawnerIsActive [get] |
| Returns whether the spawner is active or not, based on its Active Mode controls. This can restrict its active state based on World Variable values. More...
|
|
This class is used for Triggered Spawner setup.
void DarkTonic.CoreGameKit.TriggeredSpawnerV2.ActivateCodeTriggeredEvent1 |
( |
| ) |
|
Call this method to active Code-Triggered Event 1.
void DarkTonic.CoreGameKit.TriggeredSpawnerV2.ActivateCodeTriggeredEvent2 |
( |
| ) |
|
Call this method to active Code-Triggered Event 2.
virtual void DarkTonic.CoreGameKit.TriggeredSpawnerV2.AffectScale |
( |
Transform |
spawnedTrans, |
|
|
TriggeredWaveMetaData |
wave |
|
) |
| |
|
protectedvirtual |
Fires after the item spawns and affects the scale of the spawned object. Override if you need custom logic here.
- Parameters
-
spawnedTrans | The spawned Transform. |
wave | Metadata of the Wave |
virtual void DarkTonic.CoreGameKit.TriggeredSpawnerV2.AfterSpawn |
( |
Transform |
spawnedTrans, |
|
|
TriggeredWaveMetaData |
wave, |
|
|
TriggeredSpawner.EventType |
eType |
|
) |
| |
|
protectedvirtual |
Fires immediately after the item spawns. Used by post-spawn nudge. Override if you need custom logic here.
- Parameters
-
spawnedTrans | The spawned Transform. |
wave | The wave the item came from. |
eType | The event type. |
virtual bool DarkTonic.CoreGameKit.TriggeredSpawnerV2.CanSpawnOne |
( |
TriggeredWaveMetaData |
wave | ) |
|
|
protectedvirtual |
Subclass this to override it if needed.
- Returns
- boolean value.
virtual void DarkTonic.CoreGameKit.TriggeredSpawnerV2.DespawnSpawner |
( |
| ) |
|
|
protectedvirtual |
Override this method to call a Network Destroy method or other.
void DarkTonic.CoreGameKit.TriggeredSpawnerV2.EndWave |
( |
TriggeredSpawner.EventType |
eType, |
|
|
string |
customEventName |
|
) |
| |
This method stops the currently spawning wave of an Event Type you pass in, if there is a match.
- Parameters
-
eType | The Event Type of the wave to end. |
customEventName | The name of the custom event (if you're stopping a custom wave only. |
static List<TriggeredSpawnerV2> DarkTonic.CoreGameKit.TriggeredSpawnerV2.GetChildSpawners |
( |
Transform |
trans | ) |
|
|
static |
This method returns a list of the child Spawners, if any.
- Parameters
-
trans | The Transform of the Spawner to get child Spawners of. |
- Returns
- A list of Triggered Spawner scripts for all child Spawners.
virtual Transform DarkTonic.CoreGameKit.TriggeredSpawnerV2.GetSpawnable |
( |
TriggeredWaveMetaData |
wave | ) |
|
|
protectedvirtual |
This returns the item to spawn. Override this to apply custom logic if needed.
- Returns
- The Transform to spawn.
virtual Vector3 DarkTonic.CoreGameKit.TriggeredSpawnerV2.GetSpawnPosition |
( |
Vector3 |
pos, |
|
|
int |
itemSpawnedIndex, |
|
|
TriggeredWaveMetaData |
wave |
|
) |
| |
|
protectedvirtual |
Returns the position to spawn an item in. Override for your custom logic.
- Parameters
-
pos | Spawner position. |
itemSpawnedIndex | Index (counter) of item to spawn. Incremental Settings use this. |
wave | The wave that is being spawned. |
- Returns
- The modified position to spawn in.
virtual Quaternion DarkTonic.CoreGameKit.TriggeredSpawnerV2.GetSpawnRotation |
( |
Transform |
prefabToSpawn, |
|
|
int |
itemSpawnedIndex, |
|
|
TriggeredWaveMetaData |
wave |
|
) |
| |
|
protectedvirtual |
Returns the rotation to spawn the item in. Override if you need custom logic for this.
- Parameters
-
prefabToSpawn | The prefab to spawn. |
itemSpawnedIndex | Index (counter) of item to spawn. Incremental Settings use this. |
wave | The wave that is being spawned. |
- Returns
- The modified rotation to spawn in.
bool DarkTonic.CoreGameKit.TriggeredSpawnerV2.HasActiveWaveOfType |
( |
TriggeredSpawner.EventType |
eType, |
|
|
string |
customEventName |
|
) |
| |
Returns whether a wave of the current event is currently active or not.
- Parameters
-
eType | Event Type |
customEventName | The name of the custom event (if you're stopping a custom wave only. |
- Returns
- True or false
virtual void DarkTonic.CoreGameKit.TriggeredSpawnerV2.SpawnedOrAwake |
( |
| ) |
|
|
protectedvirtual |
This method gets called whenever the object is spawned or starts in a Scene (from Awake event)
virtual Transform DarkTonic.CoreGameKit.TriggeredSpawnerV2.SpawnWaveItem |
( |
Transform |
prefabToSpawn, |
|
|
Vector3 |
spawnPosition, |
|
|
Quaternion |
rotation, |
|
|
TriggeredWaveMetaData |
wave |
|
) |
| |
|
protectedvirtual |
Override this method to call a Network Instantiate method or other.
- Parameters
-
prefabToSpawn | The prefab to spawn. |
spawnPosition | The position to spawn in. |
rotation | The rotation to spawn with. |
wave | Metadata of the Wave |
- Returns
- Spawned item Transform
List<TrigSpawnerWaiterSpecifics> DarkTonic.CoreGameKit.TriggeredSpawnerV2.ActiveEliminationWaves |
|
get |
This returns a list of all the active elimination waves.
Dictionary<TriggeredSpawner.EventType, List<TriggeredWaveSpecifics> > DarkTonic.CoreGameKit.TriggeredSpawnerV2.AllWaves |
|
get |
This returns a list of all the waves. Used by bulk "modify all waves" things such as visualization code.
bool DarkTonic.CoreGameKit.TriggeredSpawnerV2.GameIsOverForSpawner |
|
get |
This property will return true if the Game Over Behavior setting makes this spawner disabled.
bool DarkTonic.CoreGameKit.TriggeredSpawnerV2.SpawnerIsActive |
|
get |
Returns whether the spawner is active or not, based on its Active Mode controls. This can restrict its active state based on World Variable values.
bool DarkTonic.CoreGameKit.TriggeredSpawnerV2.SpawnerIsPaused |
|
get |
This property will return true if the Wave Pause Behavior setting makes this spawner paused.
The documentation for this class was generated from the following file:
- DarkSpawner/Assets/Plugins/DarkTonic/CoreGameKit/Scripts/Spawners/TriggeredSpawnerV2.cs