mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
refs #873, allow to request aircraft parts (aircraft config) from network
This commit is contained in:
committed by
Mathew Sutcliffe
parent
3afead9f71
commit
7eacb41113
@@ -183,7 +183,7 @@ namespace BlackCore
|
||||
this->m_network->presetServer(server);
|
||||
|
||||
// Fall back to observer mode, if no simulator is available or not simulating
|
||||
if(CBuildConfig::isShippedVersion() && !this->getIContextSimulator()->isSimulatorSimulating())
|
||||
if (CBuildConfig::isShippedVersion() && !this->getIContextSimulator()->isSimulatorSimulating())
|
||||
{
|
||||
CLogMessage(this).info("No simulator connected or connected simulator not simulating. Falling back to observer mode");
|
||||
mode = INetwork::LoginAsObserver;
|
||||
@@ -679,6 +679,13 @@ namespace BlackCore
|
||||
return this->m_network->getInterimPositionReceivers();
|
||||
}
|
||||
|
||||
void CContextNetwork::testRequestAircraftConfig(const CCallsign &callsign)
|
||||
{
|
||||
if (this->isDebugEnabled()) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO << callsign; }
|
||||
Q_ASSERT(this->m_network);
|
||||
this->m_network->sendAircraftConfigQuery(callsign);
|
||||
}
|
||||
|
||||
void CContextNetwork::testCreateDummyOnlineAtcStations(int number)
|
||||
{
|
||||
if (this->isDebugEnabled()) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO << number; }
|
||||
|
||||
Reference in New Issue
Block a user