Interface: FlightPlanActiveLegEvent
Defined in: src/sdk/flightplan/FlightPlanner.ts:128
An event fired when an active leg changes.
Properties
batch?
readonly
optional
batch: readonlyReadonly
<FlightPlanModBatch
>[]
Defined in: src/sdk/flightplan/FlightPlanner.ts:154
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:133
The global index of the active leg.
legIndex
readonly
legIndex:number
Defined in: src/sdk/flightplan/FlightPlanner.ts:139
The index of the leg within the segment.
planIndex
readonly
planIndex:number
Defined in: src/sdk/flightplan/FlightPlanner.ts:130
The index of the flight plan.
previousLegIndex
readonly
previousLegIndex:number
Defined in: src/sdk/flightplan/FlightPlanner.ts:145
The index of the previously active leg within the previously active segment.
previousSegmentIndex
readonly
previousSegmentIndex:number
Defined in: src/sdk/flightplan/FlightPlanner.ts:142
The index of the segment in which the previously active leg is.
segmentIndex
readonly
segmentIndex:number
Defined in: src/sdk/flightplan/FlightPlanner.ts:136
The index of the segment in which the active leg is.
type
readonly
type:ActiveLegType
Defined in: src/sdk/flightplan/FlightPlanner.ts:148
The type of active leg that changed.