mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 18:25:42 +08:00
[XSwiftBus] Add hasMultiplayerPlanesAquired() DBus API
This function will return whether X-Plane multiplayer planes have been acquired by XSwiftBus or if not, who else acquired them.
This commit is contained in:
committed by
Klaus Basan
parent
55c2e2e559
commit
49bd38d722
@@ -65,6 +65,9 @@ namespace XSwiftBus
|
||||
//! Initialize the multiplayer planes rendering and return true if successful
|
||||
bool initialize();
|
||||
|
||||
//! Returns whether multiplayer planes have been acquired. If not, owner will be set to the plugin that acquired it.
|
||||
bool acquireMultiplayerPlanes(std::string *owner = nullptr);
|
||||
|
||||
//! Reverse the actions of initialize().
|
||||
void cleanup();
|
||||
|
||||
@@ -132,7 +135,7 @@ namespace XSwiftBus
|
||||
|
||||
private:
|
||||
bool m_initialized = false;
|
||||
bool m_enabled = false;
|
||||
bool m_enabledMultiplayer = false;
|
||||
CTerrainProbe m_terrainProbe;
|
||||
|
||||
void emitSimFrame();
|
||||
|
||||
Reference in New Issue
Block a user