Class: WarningManager
The basic component for handling warning logic.
Constructors
constructor
• new WarningManager(warnings
, logicHost
, textCb
, soundCb?
): WarningManager
Create a WarningManager.
Parameters
Name | Type | Description |
---|---|---|
warnings | Warning [] | An array of warnings to manage. |
logicHost | CompositeLogicXMLHost | An event bus. |
textCb | (warning : undefined | Warning ) => void | A callback to display new warning text. |
soundCb? | (warning : Warning , active : boolean ) => void | A callback to play an instrument sound from a sound ID. |
Returns
Defined in
src/sdk/components/Warnings/Warning.ts:118