mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
Ref T246, functions to access values of model loader/models component
* direct access to simulator settings * load models for simulator
This commit is contained in:
@@ -61,7 +61,7 @@ namespace BlackMisc
|
||||
CacheSkipped = 1 << 3, //!< ignore cache
|
||||
CacheOnly = 1 << 4, //!< only read cache, never load from disk
|
||||
InBackgroundWithCache = LoadInBackground | CacheFirst, //!< Background, cached
|
||||
InBackgroundNoCache = LoadInBackground | CacheSkipped //!< Background, not cached
|
||||
InBackgroundNoCache = LoadInBackground | CacheSkipped //!< Background, not checking cache
|
||||
};
|
||||
Q_DECLARE_FLAGS(LoadMode, LoadModeFlag)
|
||||
|
||||
@@ -150,6 +150,12 @@ namespace BlackMisc
|
||||
//! \copydoc BlackMisc::Simulation::Data::CModelCaches::getInfoStringFsFamily
|
||||
QString getInfoStringFsFamily() const;
|
||||
|
||||
//! Current simulator settings
|
||||
Settings::CSimulatorSettings getCurrentSimulatorSettings() const;
|
||||
|
||||
//! Access to multi simulator settings
|
||||
const Settings::CMultiSimulatorSettings &multiSimulatorSettings() const { return m_settings; }
|
||||
|
||||
//! \name Implementations of the model interfaces (allows to set models modified in utility functions)
|
||||
//! @{
|
||||
virtual void setModels(const CAircraftModelList &models) override { this->setCachedModels(models, this->getSimulator()); }
|
||||
|
||||
Reference in New Issue
Block a user