mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +08:00
committed by
Lars Toenning
parent
5e5b3f830d
commit
7691e42a5b
@@ -107,8 +107,8 @@ namespace BlackSimPlugin::FsxCommon
|
||||
char atcAirline[64]; //!< Airline used by ATC
|
||||
char atcFlightNumber[8]; //!< Flight Number used by ATC
|
||||
|
||||
//! Copy the strings, length from docu
|
||||
//! @{
|
||||
//! Copy the strings, length from docu
|
||||
void copyAtcId(const char *c) { strncpy_s(atcId, c, 10); atcId[9] = 0; }
|
||||
void copyAtcAirline(const char *c) { strncpy_s(atcAirline, c, 50); atcAirline[49] = 0; }
|
||||
void copyFlightNumber(const char *c) { strncpy_s(atcFlightNumber, c, 6); atcFlightNumber[5] = 0; }
|
||||
|
||||
@@ -155,8 +155,8 @@ namespace BlackSimPlugin::FsxCommon
|
||||
//! Marked as confirmed, means the simulator has "confirmed" the objectId as added and not instantly removed the object
|
||||
void setConfirmedAdded(bool confirm);
|
||||
|
||||
//! Special states
|
||||
//! @{
|
||||
//! Special states
|
||||
bool isAddedWhileRemoving() { return m_addedWhileRemoving; }
|
||||
void setAddedWhileRemoving(bool addedWileRemoved);
|
||||
bool isRemovedWhileAdding() const { return m_removedWhileAdding; }
|
||||
|
||||
@@ -71,7 +71,6 @@ typedef HRESULT(__stdcall *PfnSimConnect_SetObserverLookAt)(HANDLE, const char *
|
||||
|
||||
//! The SimConnect Symbols
|
||||
//! \private
|
||||
//! @{
|
||||
struct SimConnectSymbols
|
||||
{
|
||||
PfnSimConnect_Open SimConnect_Open = nullptr;
|
||||
@@ -114,7 +113,6 @@ struct SimConnectSymbols
|
||||
PfnSimConnect_CloseView SimConnect_CloseView = nullptr;
|
||||
#endif
|
||||
};
|
||||
//! @}
|
||||
|
||||
static SimConnectSymbols gSymbols;
|
||||
|
||||
|
||||
@@ -245,11 +245,9 @@ namespace BlackSimPlugin::FsxCommon
|
||||
virtual HRESULT initEventsP3D();
|
||||
|
||||
//! \addtogroup swiftdotcommands
|
||||
//! @{
|
||||
//! <pre>
|
||||
//! .drv sendid on|off tracing simConnect sendId on/off
|
||||
//! </pre>
|
||||
//! @}
|
||||
virtual bool parseDetails(const BlackMisc::CSimpleCommandParser &parser) override;
|
||||
|
||||
//! Trigger tracing ids for some while
|
||||
@@ -299,8 +297,8 @@ namespace BlackSimPlugin::FsxCommon
|
||||
//! Register help
|
||||
static void registerHelp();
|
||||
|
||||
//! Word size
|
||||
//! @{
|
||||
//! Word size
|
||||
static bool is32bit() { return (BlackConfig::CBuildConfig::buildWordSize() == 32); }
|
||||
static bool is64bit() { return (BlackConfig::CBuildConfig::buildWordSize() == 64); }
|
||||
//! @}
|
||||
@@ -646,8 +644,8 @@ namespace BlackSimPlugin::FsxCommon
|
||||
static QString requestIdToString(DWORD requestId);
|
||||
|
||||
public:
|
||||
//! Offsets
|
||||
//! @{
|
||||
//! Offsets
|
||||
static DWORD offsetSimObjAircraft(CSimConnectDefinitions::SimObjectRequest req) { return MaxSimObjAircraft * static_cast<DWORD>(req); }
|
||||
static DWORD offsetSimObjTerrainProbe(CSimConnectDefinitions::SimObjectRequest req) { return MaxSimObjProbes * static_cast<DWORD>(req); }
|
||||
//! @}
|
||||
|
||||
Reference in New Issue
Block a user