Class: FlightPlanAsoboSync
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/FlightPlanAsoboSync.ts:15
A class for syncing a flight plan with the game HINT: This class always needs to run on an instrument that has bound bing maps Otherwise the GET_IS_BUSHTRIP coherent call won't return
Constructors
Constructor
new FlightPlanAsoboSync():
FlightPlanAsoboSync
Returns
FlightPlanAsoboSync
Methods
init()
static
init():Promise
<void
>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/FlightPlanAsoboSync.ts:31
Inits flight plan asobo sync
Returns
Promise
<void
>
loadFromGame()
static
loadFromGame(fms
):Promise
<void
>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/FlightPlanAsoboSync.ts:48
Loads the flight plan from the sim.
Parameters
Parameter | Type | Description |
---|---|---|
fms | WT21Fms | an instance of the fms |
Returns
Promise
<void
>
SaveToGame()
static
SaveToGame(fms
):Promise
<void
>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/FlightPlanAsoboSync.ts:118
Syncs the plan back to the sim as best as possible
Parameters
Parameter | Type | Description |
---|---|---|
fms | WT21Fms | an instance of FMS |
Returns
Promise
<void
>