[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:
Roland Rossgotterer
2018-11-24 19:00:49 +01:00
committed by Klaus Basan
parent 55c2e2e559
commit 49bd38d722
5 changed files with 83 additions and 12 deletions

View File

@@ -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();