Class: FlightPlanAsoboSync
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/FlightPlanAsoboSync.ts:12
A class for syncing a flight plan with the game
Constructors
Constructor
new FlightPlanAsoboSync():
FlightPlanAsoboSync
Returns
FlightPlanAsoboSync
Properties
fpListenerInitialized
staticfpListenerInitialized:boolean=false
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/FlightPlanAsoboSync.ts:14
Methods
init()
staticinit():Promise<void>
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/FlightPlanAsoboSync.ts:28
Inits flight plan asobo sync
Returns
Promise<void>
loadFromGame()
staticloadFromGame(fms):Promise<void>
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/FlightPlanAsoboSync.ts:46
Loads the flight plan from the sim.
Parameters
| Parameter | Type | Description |
|---|---|---|
fms | Fms | The fms. |
Returns
Promise<void>
a Promise which is fulfilled when the flight plan has been loaded.
SaveToGame()
staticSaveToGame(fms):Promise<void>
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/FlightPlanAsoboSync.ts:123
Syncs the plan back to the sim as best as possible
Parameters
| Parameter | Type | Description |
|---|---|---|
fms | Fms | an instance of FMS |
Returns
Promise<void>