Class: WT21_MFD_Instrument
The WT21 MFD Instrument
Hierarchy
WT21DisplayUnitFsInstrument
↳
WT21_MFD_Instrument
Constructors
constructor
• new WT21_MFD_Instrument(instrument
): WT21_MFD_Instrument
Creates an instance of the WT21_MFD.
Parameters
Name | Type | Description |
---|---|---|
instrument | BaseInstrument | The base instrument. |
Returns
Overrides
WT21DisplayUnitFsInstrument.constructor
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/MFD/WT21_MFD_Instrument.tsx:110
Properties
displayUnitConfig
• displayUnitConfig: DisplayUnitConfigInterface
= DisplayUnitConfig.DEFAULT
Inherited from
WT21DisplayUnitFsInstrument.displayUnitConfig
Defined in
workingtitle-instruments-wt21/shared/WT21DisplayUnitFsInstrument.ts:24
displayUnitIndex
• Readonly
displayUnitIndex: WT21DisplayUnitIndex
The WT21 display unit index of this instrument
Inherited from
WT21DisplayUnitFsInstrument.displayUnitIndex
Defined in
workingtitle-instruments-wt21/shared/WT21DisplayUnitFsInstrument.ts:34
displayUnitType
• Readonly
displayUnitType: WT21DisplayUnitType
The WT21 display unit type of this instrument
Inherited from
WT21DisplayUnitFsInstrument.displayUnitType
Defined in
workingtitle-instruments-wt21/shared/WT21DisplayUnitFsInstrument.ts:31
instrument
• Readonly
instrument: BaseInstrument
The base instrument.
Inherited from
WT21DisplayUnitFsInstrument.instrument
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/MFD/WT21_MFD_Instrument.tsx:110
Methods
Update
▸ Update(): void
A callback called when the instrument gets a frame update.
Returns
void
Overrides
WT21DisplayUnitFsInstrument.Update
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/MFD/WT21_MFD_Instrument.tsx:452
onFlightStart
▸ onFlightStart(): void
Returns
void
Inherit Doc
Overrides
WT21DisplayUnitFsInstrument.onFlightStart
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/MFD/WT21_MFD_Instrument.tsx:410
onGameStateChanged
▸ onGameStateChanged(oldState
, newState
): void
Parameters
Name | Type |
---|---|
oldState | GameState |
newState | GameState |
Returns
void
Inherit Doc
Overrides
WT21DisplayUnitFsInstrument.onGameStateChanged
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/MFD/WT21_MFD_Instrument.tsx:416
onInGame
▸ onInGame(): void
Callback for when the game state transitions to either briefing or in-game. This can be used as a "last chance" hook to initialize things that need to wait until a plane has loaded and everything is in a stable state.
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/MFD/WT21_MFD_Instrument.tsx:445
onInteractionEvent
▸ onInteractionEvent(args
): void
A callback called when the instrument received a H event.
Parameters
Name | Type | Description |
---|---|---|
args | string [] | The H event and associated arguments, if any. |
Returns
void
Overrides
WT21DisplayUnitFsInstrument.onInteractionEvent
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/MFD/WT21_MFD_Instrument.tsx:465
onSoundEnd
▸ onSoundEnd(soundEventId
): void
A callback for when sounds are done playing. This is needed to support the sound server.
Parameters
Name | Type | Description |
---|---|---|
soundEventId | Name_Z | The sound that got played. |
Returns
void
Overrides
WT21DisplayUnitFsInstrument.onSoundEnd
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/MFD/WT21_MFD_Instrument.tsx:482