Interface: FlightPlanActiveLegEvent
Defined in: src/sdk/flightplan/FlightPlanner.ts:130
An event fired when an active leg changes.
Properties
batch?
readonlyoptionalbatch: readonlyReadonly<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
readonlyindex:number
Defined in: src/sdk/flightplan/FlightPlanner.ts:135
The global index of the active leg.
legIndex
readonlylegIndex:number
Defined in: src/sdk/flightplan/FlightPlanner.ts:141
The index of the leg within the segment.
planIndex
readonlyplanIndex:number
Defined in: src/sdk/flightplan/FlightPlanner.ts:132
The index of the flight plan.
previousLegIndex
readonlypreviousLegIndex:number
Defined in: src/sdk/flightplan/FlightPlanner.ts:147
The index of the previously active leg within the previously active segment.
previousSegmentIndex
readonlypreviousSegmentIndex:number
Defined in: src/sdk/flightplan/FlightPlanner.ts:144
The index of the segment in which the previously active leg is.
segmentIndex
readonlysegmentIndex:number
Defined in: src/sdk/flightplan/FlightPlanner.ts:138
The index of the segment in which the active leg is.
type
readonlytype:ActiveLegType
Defined in: src/sdk/flightplan/FlightPlanner.ts:150
The type of active leg that changed.