static CameraAPI()
 {
     ControlCameraPtr           = Lib.GetExport("XPLMControlCamera");
     DontControlCameraPtr       = Lib.GetExport("XPLMDontControlCamera");
     IsCameraBeingControlledPtr = Lib.GetExport("XPLMIsCameraBeingControlled");
     ReadCameraPositionPtr      = Lib.GetExport("XPLMReadCameraPosition");
 }
 static UtilitiesAPI()
 {
     GetSystemPathPtr            = Lib.GetExport("XPLMGetSystemPath");
     GetPrefsPathPtr             = Lib.GetExport("XPLMGetPrefsPath");
     GetDirectorySeparatorPtr    = Lib.GetExport("XPLMGetDirectorySeparator");
     ExtractFileAndPathPtr       = Lib.GetExport("XPLMExtractFileAndPath");
     GetDirectoryContentsPtr     = Lib.GetExport("XPLMGetDirectoryContents");
     LoadDataFilePtr             = Lib.GetExport("XPLMLoadDataFile");
     SaveDataFilePtr             = Lib.GetExport("XPLMSaveDataFile");
     GetVersionsPtr              = Lib.GetExport("XPLMGetVersions");
     GetLanguagePtr              = Lib.GetExport("XPLMGetLanguage");
     FindSymbolPtr               = Lib.GetExport("XPLMFindSymbol");
     SetErrorCallbackPtr         = Lib.GetExport("XPLMSetErrorCallback");
     DebugStringPtr              = Lib.GetExport("XPLMDebugString");
     SpeakStringPtr              = Lib.GetExport("XPLMSpeakString");
     GetVirtualKeyDescriptionPtr = Lib.GetExport("XPLMGetVirtualKeyDescription");
     ReloadSceneryPtr            = Lib.GetExport("XPLMReloadScenery");
     FindCommandPtr              = Lib.GetExport("XPLMFindCommand");
     CommandBeginPtr             = Lib.GetExport("XPLMCommandBegin");
     CommandEndPtr               = Lib.GetExport("XPLMCommandEnd");
     CommandOncePtr              = Lib.GetExport("XPLMCommandOnce");
     CreateCommandPtr            = Lib.GetExport("XPLMCreateCommand");
     RegisterCommandHandlerPtr   = Lib.GetExport("XPLMRegisterCommandHandler");
     UnregisterCommandHandlerPtr = Lib.GetExport("XPLMUnregisterCommandHandler");
 }
 static ProcessingAPI()
 {
     GetElapsedTimePtr                = Lib.GetExport("XPLMGetElapsedTime");
     GetCycleNumberPtr                = Lib.GetExport("XPLMGetCycleNumber");
     RegisterFlightLoopCallbackPtr    = Lib.GetExport("XPLMRegisterFlightLoopCallback");
     UnregisterFlightLoopCallbackPtr  = Lib.GetExport("XPLMUnregisterFlightLoopCallback");
     SetFlightLoopCallbackIntervalPtr = Lib.GetExport("XPLMSetFlightLoopCallbackInterval");
     CreateFlightLoopPtr              = Lib.GetExport("XPLMCreateFlightLoop");
     DestroyFlightLoopPtr             = Lib.GetExport("XPLMDestroyFlightLoop");
     ScheduleFlightLoopPtr            = Lib.GetExport("XPLMScheduleFlightLoop");
 }
 static GraphicsAPI()
 {
     SetGraphicsStatePtr       = Lib.GetExport("XPLMSetGraphicsState");
     BindTexture2dPtr          = Lib.GetExport("XPLMBindTexture2d");
     GenerateTextureNumbersPtr = Lib.GetExport("XPLMGenerateTextureNumbers");
     WorldToLocalPtr           = Lib.GetExport("XPLMWorldToLocal");
     LocalToWorldPtr           = Lib.GetExport("XPLMLocalToWorld");
     DrawTranslucentDarkBoxPtr = Lib.GetExport("XPLMDrawTranslucentDarkBox");
     DrawStringPtr             = Lib.GetExport("XPLMDrawString");
     DrawNumberPtr             = Lib.GetExport("XPLMDrawNumber");
     GetFontDimensionsPtr      = Lib.GetExport("XPLMGetFontDimensions");
     MeasureStringPtr          = Lib.GetExport("XPLMMeasureString");
 }
 static MapAPI()
 {
     CreateMapLayerPtr          = Lib.GetExport("XPLMCreateMapLayer");
     DestroyMapLayerPtr         = Lib.GetExport("XPLMDestroyMapLayer");
     RegisterMapCreationHookPtr = Lib.GetExport("XPLMRegisterMapCreationHook");
     MapExistsPtr            = Lib.GetExport("XPLMMapExists");
     DrawMapIconFromSheetPtr = Lib.GetExport("XPLMDrawMapIconFromSheet");
     DrawMapLabelPtr         = Lib.GetExport("XPLMDrawMapLabel");
     MapProjectPtr           = Lib.GetExport("XPLMMapProject");
     MapUnprojectPtr         = Lib.GetExport("XPLMMapUnproject");
     MapScaleMeterPtr        = Lib.GetExport("XPLMMapScaleMeter");
     MapGetNorthHeadingPtr   = Lib.GetExport("XPLMMapGetNorthHeading");
 }
 static PlanesAPI()
 {
     SetUsersAircraftPtr       = Lib.GetExport("XPLMSetUsersAircraft");
     PlaceUserAtAirportPtr     = Lib.GetExport("XPLMPlaceUserAtAirport");
     PlaceUserAtLocationPtr    = Lib.GetExport("XPLMPlaceUserAtLocation");
     CountAircraftPtr          = Lib.GetExport("XPLMCountAircraft");
     GetNthAircraftModelPtr    = Lib.GetExport("XPLMGetNthAircraftModel");
     AcquirePlanesPtr          = Lib.GetExport("XPLMAcquirePlanes");
     ReleasePlanesPtr          = Lib.GetExport("XPLMReleasePlanes");
     SetActiveAircraftCountPtr = Lib.GetExport("XPLMSetActiveAircraftCount");
     SetAircraftModelPtr       = Lib.GetExport("XPLMSetAircraftModel");
     DisableAIForPlanePtr      = Lib.GetExport("XPLMDisableAIForPlane");
 }
Example #7
0
 static SceneryAPI()
 {
     CreateProbePtr          = Lib.GetExport("XPLMCreateProbe");
     DestroyProbePtr         = Lib.GetExport("XPLMDestroyProbe");
     ProbeTerrainXYZPtr      = Lib.GetExport("XPLMProbeTerrainXYZ");
     GetMagneticVariationPtr = Lib.GetExport("XPLMGetMagneticVariation");
     DegTrueToDegMagneticPtr = Lib.GetExport("XPLMDegTrueToDegMagnetic");
     DegMagneticToDegTruePtr = Lib.GetExport("XPLMDegMagneticToDegTrue");
     LoadObjectPtr           = Lib.GetExport("XPLMLoadObject");
     LoadObjectAsyncPtr      = Lib.GetExport("XPLMLoadObjectAsync");
     UnloadObjectPtr         = Lib.GetExport("XPLMUnloadObject");
     LookupObjectsPtr        = Lib.GetExport("XPLMLookupObjects");
 }
Example #8
0
 static MenusAPI()
 {
     FindPluginsMenuPtr           = Lib.GetExport("XPLMFindPluginsMenu");
     FindAircraftMenuPtr          = Lib.GetExport("XPLMFindAircraftMenu");
     CreateMenuPtr                = Lib.GetExport("XPLMCreateMenu");
     DestroyMenuPtr               = Lib.GetExport("XPLMDestroyMenu");
     ClearAllMenuItemsPtr         = Lib.GetExport("XPLMClearAllMenuItems");
     AppendMenuItemPtr            = Lib.GetExport("XPLMAppendMenuItem");
     AppendMenuItemWithCommandPtr = Lib.GetExport("XPLMAppendMenuItemWithCommand");
     AppendMenuSeparatorPtr       = Lib.GetExport("XPLMAppendMenuSeparator");
     SetMenuItemNamePtr           = Lib.GetExport("XPLMSetMenuItemName");
     CheckMenuItemPtr             = Lib.GetExport("XPLMCheckMenuItem");
     CheckMenuItemStatePtr        = Lib.GetExport("XPLMCheckMenuItemState");
     EnableMenuItemPtr            = Lib.GetExport("XPLMEnableMenuItem");
     RemoveMenuItemPtr            = Lib.GetExport("XPLMRemoveMenuItem");
 }
 static PluginAPI()
 {
     GetMyIDPtr               = Lib.GetExport("XPLMGetMyID");
     CountPluginsPtr          = Lib.GetExport("XPLMCountPlugins");
     GetNthPluginPtr          = Lib.GetExport("XPLMGetNthPlugin");
     FindPluginByPathPtr      = Lib.GetExport("XPLMFindPluginByPath");
     FindPluginBySignaturePtr = Lib.GetExport("XPLMFindPluginBySignature");
     GetPluginInfoPtr         = Lib.GetExport("XPLMGetPluginInfo");
     IsPluginEnabledPtr       = Lib.GetExport("XPLMIsPluginEnabled");
     EnablePluginPtr          = Lib.GetExport("XPLMEnablePlugin");
     DisablePluginPtr         = Lib.GetExport("XPLMDisablePlugin");
     ReloadPluginsPtr         = Lib.GetExport("XPLMReloadPlugins");
     SendMessageToPluginPtr   = Lib.GetExport("XPLMSendMessageToPlugin");
     HasFeaturePtr            = Lib.GetExport("XPLMHasFeature");
     IsFeatureEnabledPtr      = Lib.GetExport("XPLMIsFeatureEnabled");
     EnableFeaturePtr         = Lib.GetExport("XPLMEnableFeature");
     EnumerateFeaturesPtr     = Lib.GetExport("XPLMEnumerateFeatures");
 }
 static NavigationAPI()
 {
     GetFirstNavAidPtr         = Lib.GetExport("XPLMGetFirstNavAid");
     GetNextNavAidPtr          = Lib.GetExport("XPLMGetNextNavAid");
     FindFirstNavAidOfTypePtr  = Lib.GetExport("XPLMFindFirstNavAidOfType");
     FindLastNavAidOfTypePtr   = Lib.GetExport("XPLMFindLastNavAidOfType");
     FindNavAidPtr             = Lib.GetExport("XPLMFindNavAid");
     GetNavAidInfoPtr          = Lib.GetExport("XPLMGetNavAidInfo");
     CountFMSEntriesPtr        = Lib.GetExport("XPLMCountFMSEntries");
     GetDisplayedFMSEntryPtr   = Lib.GetExport("XPLMGetDisplayedFMSEntry");
     GetDestinationFMSEntryPtr = Lib.GetExport("XPLMGetDestinationFMSEntry");
     SetDisplayedFMSEntryPtr   = Lib.GetExport("XPLMSetDisplayedFMSEntry");
     SetDestinationFMSEntryPtr = Lib.GetExport("XPLMSetDestinationFMSEntry");
     GetFMSEntryInfoPtr        = Lib.GetExport("XPLMGetFMSEntryInfo");
     SetFMSEntryInfoPtr        = Lib.GetExport("XPLMSetFMSEntryInfo");
     SetFMSEntryLatLonPtr      = Lib.GetExport("XPLMSetFMSEntryLatLon");
     ClearFMSEntryPtr          = Lib.GetExport("XPLMClearFMSEntry");
     GetGPSDestinationTypePtr  = Lib.GetExport("XPLMGetGPSDestinationType");
     GetGPSDestinationPtr      = Lib.GetExport("XPLMGetGPSDestination");
 }
Example #11
0
 static DataAccessAPI()
 {
     FindDataRefPtr            = Lib.GetExport("XPLMFindDataRef");
     CanWriteDataRefPtr        = Lib.GetExport("XPLMCanWriteDataRef");
     IsDataRefGoodPtr          = Lib.GetExport("XPLMIsDataRefGood");
     GetDataRefTypesPtr        = Lib.GetExport("XPLMGetDataRefTypes");
     GetDataiPtr               = Lib.GetExport("XPLMGetDatai");
     SetDataiPtr               = Lib.GetExport("XPLMSetDatai");
     GetDatafPtr               = Lib.GetExport("XPLMGetDataf");
     SetDatafPtr               = Lib.GetExport("XPLMSetDataf");
     GetDatadPtr               = Lib.GetExport("XPLMGetDatad");
     SetDatadPtr               = Lib.GetExport("XPLMSetDatad");
     GetDataviPtr              = Lib.GetExport("XPLMGetDatavi");
     SetDataviPtr              = Lib.GetExport("XPLMSetDatavi");
     GetDatavfPtr              = Lib.GetExport("XPLMGetDatavf");
     SetDatavfPtr              = Lib.GetExport("XPLMSetDatavf");
     GetDatabPtr               = Lib.GetExport("XPLMGetDatab");
     SetDatabPtr               = Lib.GetExport("XPLMSetDatab");
     RegisterDataAccessorPtr   = Lib.GetExport("XPLMRegisterDataAccessor");
     UnregisterDataAccessorPtr = Lib.GetExport("XPLMUnregisterDataAccessor");
     ShareDataPtr              = Lib.GetExport("XPLMShareData");
     UnshareDataPtr            = Lib.GetExport("XPLMUnshareData");
 }
 static InstanceAPI()
 {
     CreateInstancePtr      = Lib.GetExport("XPLMCreateInstance");
     DestroyInstancePtr     = Lib.GetExport("XPLMDestroyInstance");
     InstanceSetPositionPtr = Lib.GetExport("XPLMInstanceSetPosition");
 }