Runtime Spawner 1.2.5
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.SignalBus Class Reference

Minimal, sticky signal bus used by WaveTableRunner's UntilSignal loop type. Signals are string IDs; once fired they remain "fired" until consumed or cleared. More...

Static Public Member Functions

static void Fire (string id)
 Fire (latch) a signal by ID. No-op for null/empty IDs.
 
static bool WasFired (string id, bool consume=true)
 Check if a signal was fired. If consume is true (default), the fired state is cleared so subsequent checks return false.
 
static void Clear (string id)
 Clear a specific signal's fired state.
 
static void ClearAll ()
 Clear all fired signals.
 

Static Private Attributes

static readonly HashSet< string > _fired = new HashSet<string>(StringComparer.Ordinal)
 

Detailed Description

Minimal, sticky signal bus used by WaveTableRunner's UntilSignal loop type. Signals are string IDs; once fired they remain "fired" until consumed or cleared.

Member Function Documentation

◆ Clear()

static void MegaCrush.Spawner.SignalBus.Clear ( string id)
static

Clear a specific signal's fired state.

◆ ClearAll()

static void MegaCrush.Spawner.SignalBus.ClearAll ( )
static

Clear all fired signals.

◆ Fire()

static void MegaCrush.Spawner.SignalBus.Fire ( string id)
static

Fire (latch) a signal by ID. No-op for null/empty IDs.

◆ WasFired()

static bool MegaCrush.Spawner.SignalBus.WasFired ( string id,
bool consume = true )
static

Check if a signal was fired. If consume is true (default), the fired state is cleared so subsequent checks return false.

Member Data Documentation

◆ _fired

readonly HashSet<string> MegaCrush.Spawner.SignalBus._fired = new HashSet<string>(StringComparer.Ordinal)
staticprivate

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