Skip to main content

Interface: FlightPlanActiveLegEvent

Defined in: src/sdk/flightplan/FlightPlanner.ts:130

An event fired when an active leg changes.

Properties

batch?

readonly optional batch: readonly Readonly<FlightPlanModBatch>[]

Defined in: src/sdk/flightplan/FlightPlanner.ts:156

The modification batch stack to which the change was assigned, in order of increasing nestedness. Not defined if the change was not assigned to any batches.


index

readonly index: number

Defined in: src/sdk/flightplan/FlightPlanner.ts:135

The global index of the active leg.


legIndex

readonly legIndex: number

Defined in: src/sdk/flightplan/FlightPlanner.ts:141

The index of the leg within the segment.


planIndex

readonly planIndex: number

Defined in: src/sdk/flightplan/FlightPlanner.ts:132

The index of the flight plan.


previousLegIndex

readonly previousLegIndex: number

Defined in: src/sdk/flightplan/FlightPlanner.ts:147

The index of the previously active leg within the previously active segment.


previousSegmentIndex

readonly previousSegmentIndex: number

Defined in: src/sdk/flightplan/FlightPlanner.ts:144

The index of the segment in which the previously active leg is.


segmentIndex

readonly segmentIndex: number

Defined in: src/sdk/flightplan/FlightPlanner.ts:138

The index of the segment in which the active leg is.


type

readonly type: ActiveLegType

Defined in: src/sdk/flightplan/FlightPlanner.ts:150

The type of active leg that changed.