XPPlanes
X-Plane plugin to display additional planes based on network data
|
Plugin main entry points. More...
#include "XPPlanes.h"
Classes | |
struct | CmdMenuDefTy |
Command definition per menu item. More... | |
Functions | |
PLUGIN_API int | XPluginEnable (void) |
Enable actual functionality of the plugin. More... | |
PLUGIN_API void | XPluginDisable (void) |
Disable functionality, cleanup runtime resources. More... | |
int | CBIntPrefsFunc (const char *, [[maybe_unused]] const char *item, int defaultVal) |
void | ClientTryGetAI () |
void | ClientCBRetryGetAI (void *) |
Callback for requesting TCAS: Maybe now we have a chance? More... | |
void | ClientReleaseAI () |
void | MenuUpdateCheckmarks () |
Sets all menu checkmarks according to current status. More... | |
int | CmdCallback (XPLMCommandRef cmdRef, XPLMCommandPhase inPhase, void *) |
Callback function for menu. More... | |
float | FlightLoop_Callback (float, float, int, void *) |
Regular tasks, called by flight loop. More... | |
PLUGIN_API int | XPluginStart (char *outName, char *outSig, char *outDesc) |
X-Plane plugin standard startup function. More... | |
PLUGIN_API void | XPluginStop (void) |
Properly shutdown the plugin, cleanup last resources. More... | |
PLUGIN_API void | XPluginReceiveMessage (XPLMPluginID inFrom, int inMsg, void *) |
Process the message that some other plugin wants TCAS control. More... | |
Variables | |
constexpr std::uintptr_t | MENU_ACTIVE = 0 |
constexpr std::uintptr_t | MENU_TCAS = 1 |
struct CmdMenuDefTy | CMD_MENU_DEF [2] |
XPLMFlightLoopID | flId = nullptr |
ID of our flight loop callback for regular tasks. More... | |
Plugin main entry points.
Has the mandatory X-Plane interface functions XPlugin...
struct CmdMenuDefTy |
int CBIntPrefsFunc | ( | const char * | , |
[[maybe_unused] ] const char * | item, | ||
int | defaultVal | ||
) |
This is a callback the XPMP2 calls regularly to learn about configuration settings. Only 3 are left, all of them integers.
void ClientCBRetryGetAI | ( | void * | ) |
Callback for requesting TCAS: Maybe now we have a chance?
void ClientReleaseAI | ( | ) |
void ClientTryGetAI | ( | ) |
int CmdCallback | ( | XPLMCommandRef | cmdRef, |
XPLMCommandPhase | inPhase, | ||
void * | |||
) |
Callback function for menu.
float FlightLoop_Callback | ( | float | , |
float | , | ||
int | , | ||
void * | |||
) |
Regular tasks, called by flight loop.
void MenuUpdateCheckmarks | ( | ) |
Sets all menu checkmarks according to current status.
PLUGIN_API void XPluginDisable | ( | void | ) |
Disable functionality, cleanup runtime resources.
PLUGIN_API int XPluginEnable | ( | void | ) |
Enable actual functionality of the plugin.
PLUGIN_API void XPluginReceiveMessage | ( | XPLMPluginID | inFrom, |
int | inMsg, | ||
void * | |||
) |
Process the message that some other plugin wants TCAS control.
PLUGIN_API int XPluginStart | ( | char * | outName, |
char * | outSig, | ||
char * | outDesc | ||
) |
X-Plane plugin standard startup function.
PLUGIN_API void XPluginStop | ( | void | ) |
Properly shutdown the plugin, cleanup last resources.
struct CmdMenuDefTy CMD_MENU_DEF[2] |
XPLMFlightLoopID flId = nullptr |
ID of our flight loop callback for regular tasks.
|
constexpr |
|
constexpr |