mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
refs #409 Rename ISimulatorModelMappings to IModelMappingsProvider
The reason is that the previous name sounded more like a value object. But instead it does read the mappings from somwhere.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
#include "simulator_fscommon.h"
|
||||
#include "blackmisc/logmessage.h"
|
||||
#include "blackmisc/simulation/fscommon/vpilotmodelmappings.h"
|
||||
#include "blackmisc/simulation/fscommon/modelmappingsprovidervpilot.h"
|
||||
#include "blackmisc/simulation/fscommon/fscommonutil.h"
|
||||
|
||||
using namespace BlackMisc::PhysicalQuantities;
|
||||
@@ -112,12 +112,12 @@ namespace BlackSimPlugin
|
||||
|
||||
CAircraftMapper *CSimulatorFsCommon::mapperInstance()
|
||||
{
|
||||
static CVPilotModelMappings *mappings = new CVPilotModelMappings(true);
|
||||
static CModelMappingsProviderVPilot *mappings = new CModelMappingsProviderVPilot(true);
|
||||
|
||||
// tries to access simObjectsDir, if this is an mapped remote directory
|
||||
// init might hang for a while
|
||||
static CAircraftMapper *mapper = new CAircraftMapper(
|
||||
std::unique_ptr<CVPilotModelMappings>(mappings), // currently hard wired
|
||||
std::unique_ptr<CModelMappingsProviderVPilot>(mappings), // currently hard wired
|
||||
simObjectsDir()
|
||||
);
|
||||
return mapper;
|
||||
|
||||
Reference in New Issue
Block a user