Use models from centralized model cache

* no copy needed
* cache is synchronized when loading models
This commit is contained in:
Klaus Basan
2019-04-21 22:54:10 +02:00
parent 5caea5ad9b
commit 599064fe6c
4 changed files with 17 additions and 4 deletions

View File

@@ -535,6 +535,9 @@ namespace BlackCore
//! Own model has been changed
virtual void onOwnModelChanged(const BlackMisc::Simulation::CAircraftModel &newModel);
//! Get the model set
BlackMisc::Simulation::CAircraftModelList getModelSet() const;
//! Lookup against DB data
static BlackMisc::Simulation::CAircraftModel reverseLookupModel(const BlackMisc::Simulation::CAircraftModel &model);