Class: FlightPlanAsoboSync
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
Methods
SaveToGame
▸ SaveToGame(fms
): Promise
<void
>
Syncs the plan back to the sim as best as possible
Parameters
Name | Type | Description |
---|---|---|
fms | WT21Fms | an instance of FMS |
Returns
Promise
<void
>
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/FlightPlanAsoboSync.ts:118
init
▸ init(): Promise
<void
>
Inits flight plan asobo sync
Returns
Promise
<void
>
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/FlightPlanAsoboSync.ts:31
loadFromGame
▸ loadFromGame(fms
): Promise
<void
>
Loads the flight plan from the sim.
Parameters
Name | Type | Description |
---|---|---|
fms | WT21Fms | an instance of the fms |
Returns
Promise
<void
>
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/FlightPlanAsoboSync.ts:48