Skip to main content

Class: WarningManager

The basic component for handling warning logic.

Constructors

constructor

new WarningManager(warnings, logicHost, textCb, soundCb?): WarningManager

Create a WarningManager.

Parameters

NameTypeDescription
warningsWarning[]An array of warnings to manage.
logicHostCompositeLogicXMLHostAn event bus.
textCb(warning: undefined | Warning) => voidA callback to display new warning text.
soundCb?(warning: Warning, active: boolean) => voidA callback to play an instrument sound from a sound ID.

Returns

WarningManager

Defined in

src/sdk/components/Warnings/Warning.ts:118