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