mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
refs #614, moved model set cache and matcher to simulator common class
* removed from FS common class * formatting
This commit is contained in:
@@ -54,6 +54,11 @@ namespace BlackCore
|
||||
connect(&m_oneSecondTimer, &QTimer::timeout, this, &CSimulatorCommon::ps_oneSecondTimer);
|
||||
this->m_oneSecondTimer.start(1000);
|
||||
|
||||
// init mapper
|
||||
const CSimulatorInfo sim(info.getIdentifier());
|
||||
this->m_modelSetLoader.changeSimulator(sim);
|
||||
this->m_modelMatcher.setModelSet(this->m_modelSetLoader.getAircraftModels());
|
||||
|
||||
// info
|
||||
CLogMessage(this).info("Initialized simulator driver %1") << m_simulatorPluginInfo.toQString();
|
||||
}
|
||||
@@ -229,6 +234,11 @@ namespace BlackCore
|
||||
this->m_remoteAircraftProviderConnections.disconnectAll(); // disconnect signals from provider
|
||||
}
|
||||
|
||||
void CSimulatorCommon::reloadInstalledModels()
|
||||
{
|
||||
// currently we do nothing here
|
||||
}
|
||||
|
||||
CLength CSimulatorCommon::getRenderedDistanceBoundary() const
|
||||
{
|
||||
return CLength(20.0, CLengthUnit::NM());
|
||||
|
||||
Reference in New Issue
Block a user