Class: FlightTimerInstrument
Defined in: src/sdk/instruments/FlightTimer.ts:295
An instrument which manages zero or more flight timers. Requires the topics defined in ClockEvents to be actively published to the event bus in order to function properly. All timers operate using simulation time and are updated every instrument update cycle with up to millisecond precision.
Implements
Constructors
Constructor
new FlightTimerInstrument(
bus
,options
):FlightTimerInstrument
Defined in: src/sdk/instruments/FlightTimer.ts:309
Creates a new instance of FlightTimerInstrument.
Parameters
Parameter | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
options | Readonly <FlightTimerInstrumentOptions > | Options with which to configure the instrument. |
Returns
FlightTimerInstrument
Constructor
new FlightTimerInstrument(
bus
,timerCount
):FlightTimerInstrument
Defined in: src/sdk/instruments/FlightTimer.ts:315
Creates a new instance of FlightTimerInstrument that manages timers with the empty ID (''
).
Parameters
Parameter | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
timerCount | number | The number of supported timers. |
Returns
FlightTimerInstrument
Methods
init()
init():
void
Defined in: src/sdk/instruments/FlightTimer.ts:332
Initializes this instrument.
Returns
void
Implementation of
onUpdate()
onUpdate():
void
Defined in: src/sdk/instruments/FlightTimer.ts:342
Updates this instrument.
Returns
void