Core GameKit  3.2.9.0
The ultimate pooling / combat / spawning / variable plugin!
DarkTonic.CoreGameKit.TriggeredSpawnerListener Class Reference

This class is used to listen to key events in a Triggered Spawner. Always make a subclass so you can have different Listeners for different Triggered Spawners. More...

Inheritance diagram for DarkTonic.CoreGameKit.TriggeredSpawnerListener:

Public Member Functions

virtual void EventPropagating (TriggeredSpawner.EventType eType, Transform transmitterTrans, int receiverSpawnerCount)
 This method gets calls when a spawner gets ready to call events on child spawners. Override if you need custom logic. More...
 
virtual void PropagatedEventReceived (TriggeredSpawner.EventType eType, Transform transmitterTrans)
 This method gets calls when a child spawner gets notified to call its wave from a parent spawner. Override if you need custom logic. More...
 
virtual void WaveEndedEarly (TriggeredSpawner.EventType eType)
 This method gets called if the wave ends early. More...
 
virtual void PropagatedWaveEndedEarly (TriggeredSpawner.EventType eType, string customEventName, Transform transmitterTrans, int receiverSpawnerCount)
 This method gets called if a parent spawner's wave ends early, to cancel the child spawners' waves as well. More...
 
virtual void ItemFailedToSpawn (TriggeredSpawner.EventType eType, Transform failedPrefabTrans)
 This method gets called if a wave item fails to spawn. More...
 
virtual void ItemSpawned (TriggeredSpawner.EventType eType, Transform spawnedTrans)
 This method gets called immediately after a wave item spawns. More...
 
virtual void WaveFinishedSpawning (TriggeredSpawner.EventType eType, TriggeredWaveSpecifics spec)
 This method gets called after the last item in a wave has finished spawning. More...
 
virtual void WaveEliminated (TriggeredSpawner.EventType eType, TriggeredWaveSpecifics spec)
 This method gets called after the last item in a wave has been despawned. More...
 
virtual void WaveStart (TriggeredSpawner.EventType eType, TriggeredWaveSpecifics spec)
 This method gets called when the wave is about to start spawning. More...
 
virtual void WaveRepeat (TriggeredSpawner.EventType eType, TriggeredWaveSpecifics spec)
 This method gets called each time the wave is about to repeat. More...
 
virtual void SpawnerDespawning (Transform transDespawning)
 This method gets called when a spawner is about to despawn (optional). More...
 
virtual void CustomEventReceived (string customEventName, Vector3 eventOrigin)
 This method gets called when a Custom Event is received by the Triggered Spawner. This only happens if the Triggered Spawner has configured a wave for that Custom Event. More...
 
virtual void Spawned (MonoBehaviour spawner)
 This method gets called when the Triggered Spawner is spawned. More...
 
virtual void Despawned (MonoBehaviour spawner)
 This method gets called when the Triggered Spawner is about to despawn. More...
 

Detailed Description

This class is used to listen to key events in a Triggered Spawner. Always make a subclass so you can have different Listeners for different Triggered Spawners.

Member Function Documentation

virtual void DarkTonic.CoreGameKit.TriggeredSpawnerListener.CustomEventReceived ( string  customEventName,
Vector3  eventOrigin 
)
virtual

This method gets called when a Custom Event is received by the Triggered Spawner. This only happens if the Triggered Spawner has configured a wave for that Custom Event.

Parameters
customEventNamethe Custom Event name.
eventOriginThe position of the Custom Event's origin (initiator).
virtual void DarkTonic.CoreGameKit.TriggeredSpawnerListener.Despawned ( MonoBehaviour  spawner)
virtual

This method gets called when the Triggered Spawner is about to despawn.

virtual void DarkTonic.CoreGameKit.TriggeredSpawnerListener.EventPropagating ( TriggeredSpawner.EventType  eType,
Transform  transmitterTrans,
int  receiverSpawnerCount 
)
virtual

This method gets calls when a spawner gets ready to call events on child spawners. Override if you need custom logic.

Parameters
eTypeThe event type.
transmitterTransThe parent spawner's Transform.
receiverSpawnerCountThe count of all child spawners of the parent.
virtual void DarkTonic.CoreGameKit.TriggeredSpawnerListener.ItemFailedToSpawn ( TriggeredSpawner.EventType  eType,
Transform  failedPrefabTrans 
)
virtual

This method gets called if a wave item fails to spawn.

Parameters
eTypeThe event type.
failedPrefabTransThe prefab that failed to spawn.
virtual void DarkTonic.CoreGameKit.TriggeredSpawnerListener.ItemSpawned ( TriggeredSpawner.EventType  eType,
Transform  spawnedTrans 
)
virtual

This method gets called immediately after a wave item spawns.

Parameters
eTypeThe event type.
spawnedTransThe spawned item.
virtual void DarkTonic.CoreGameKit.TriggeredSpawnerListener.PropagatedEventReceived ( TriggeredSpawner.EventType  eType,
Transform  transmitterTrans 
)
virtual

This method gets calls when a child spawner gets notified to call its wave from a parent spawner. Override if you need custom logic.

Parameters
eTypeThe event type.
transmitterTransThe parent spawner's Transform.
virtual void DarkTonic.CoreGameKit.TriggeredSpawnerListener.PropagatedWaveEndedEarly ( TriggeredSpawner.EventType  eType,
string  customEventName,
Transform  transmitterTrans,
int  receiverSpawnerCount 
)
virtual

This method gets called if a parent spawner's wave ends early, to cancel the child spawners' waves as well.

Parameters
eTypeThe event type.
customEventNameThe custom event name, if any.
transmitterTransThe parent spawner's Transform.
receiverSpawnerCountThe count of all child spawners of the parent.
virtual void DarkTonic.CoreGameKit.TriggeredSpawnerListener.Spawned ( MonoBehaviour  spawner)
virtual

This method gets called when the Triggered Spawner is spawned.

virtual void DarkTonic.CoreGameKit.TriggeredSpawnerListener.SpawnerDespawning ( Transform  transDespawning)
virtual

This method gets called when a spawner is about to despawn (optional).

Parameters
transDespawningThe Transform of the spawner.
virtual void DarkTonic.CoreGameKit.TriggeredSpawnerListener.WaveEliminated ( TriggeredSpawner.EventType  eType,
TriggeredWaveSpecifics  spec 
)
virtual

This method gets called after the last item in a wave has been despawned.

Parameters
eTypeThe event type.
specThe wave specifics.
virtual void DarkTonic.CoreGameKit.TriggeredSpawnerListener.WaveEndedEarly ( TriggeredSpawner.EventType  eType)
virtual

This method gets called if the wave ends early.

Parameters
eTypeThe event type.
virtual void DarkTonic.CoreGameKit.TriggeredSpawnerListener.WaveFinishedSpawning ( TriggeredSpawner.EventType  eType,
TriggeredWaveSpecifics  spec 
)
virtual

This method gets called after the last item in a wave has finished spawning.

Parameters
eTypeThe event type.
specThe wave specifics.
virtual void DarkTonic.CoreGameKit.TriggeredSpawnerListener.WaveRepeat ( TriggeredSpawner.EventType  eType,
TriggeredWaveSpecifics  spec 
)
virtual

This method gets called each time the wave is about to repeat.

Parameters
eTypeThe event type.
specThe wave specifics.
virtual void DarkTonic.CoreGameKit.TriggeredSpawnerListener.WaveStart ( TriggeredSpawner.EventType  eType,
TriggeredWaveSpecifics  spec 
)
virtual

This method gets called when the wave is about to start spawning.

Parameters
eTypeThe event type.
specThe wave specifics.

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