mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 05:45:35 +08:00
Ref T298, model matching settings trait and used settings in simulator context
This commit is contained in:
@@ -79,6 +79,7 @@ namespace BlackCore
|
||||
{
|
||||
if (!myself) { return; }
|
||||
this->initByLastUsedModelSet();
|
||||
m_aircraftMatcher.setSetup(m_matchingSettings.get());
|
||||
});
|
||||
}
|
||||
|
||||
@@ -756,6 +757,8 @@ namespace BlackCore
|
||||
{
|
||||
if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO << setup.toQString(); }
|
||||
m_aircraftMatcher.setSetup(setup);
|
||||
const CStatusMessage msg = m_matchingSettings.setAndSave(setup);
|
||||
CLogMessage::preformatted(msg);
|
||||
}
|
||||
|
||||
CAircraftMatcherSetup CContextSimulator::getMatchingSetup() const
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "blackcore/weathermanager.h"
|
||||
#include "blackcore/network.h"
|
||||
#include "blackmisc/simulation/data/modelcaches.h"
|
||||
#include "blackmisc/simulation/settings/modelmatchersettings.h"
|
||||
#include "blackmisc/simulation/settings/simulatorsettings.h"
|
||||
#include "blackmisc/simulation/aircraftmodellist.h"
|
||||
#include "blackmisc/simulation/interpolationsetuplist.h"
|
||||
@@ -244,7 +245,9 @@ namespace BlackCore
|
||||
BlackMisc::CRegularThread m_listenersThread; //!< waiting for plugin
|
||||
CWeatherManager m_weatherManager { this }; //!< weather management
|
||||
CAircraftMatcher m_aircraftMatcher { this }; //!< model matcher
|
||||
QMap<BlackMisc::Aviation::CCallsign, BlackMisc::CStatusMessageList> m_matchingMessages;
|
||||
QMap<BlackMisc::Aviation::CCallsign, BlackMisc::CStatusMessageList> m_matchingMessages; //!< all matching log messages per callsign
|
||||
BlackMisc::CSetting<BlackMisc::Simulation::Settings::TModelMatching> m_matchingSettings { this }; //!< settings
|
||||
|
||||
bool m_initallyAddAircraft = false;
|
||||
bool m_enableMatchingMessages = true;
|
||||
bool m_isWeatherActivated = false;
|
||||
|
||||
Reference in New Issue
Block a user