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 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 readonly HashSet< string > | _fired = new HashSet<string>(StringComparer.Ordinal) |
|
Minimal, sticky signal bus used by WaveTableRunner's UntilSignal loop type. Signals are string IDs; once fired they remain "fired" until consumed or cleared.
◆ 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 |
◆ 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.
◆ _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:
- D:/projects/Asset Store Packages/com.pixelwizards.runtimespawner/Code/Runtime/Internals/SignalBus.cs