swift
simulatorfsxfactory.cpp
1 // SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
4 #include "simulatorfsxfactory.h"
5 
6 #include "simulatorfsx.h"
7 
9 
10 using namespace swift::misc::network;
11 using namespace swift::misc::simulation;
12 using namespace swift::core;
13 
14 namespace swift::simplugin::fsx
15 {
16  ISimulator *CSimulatorFsxFactory::create(const CSimulatorPluginInfo &info,
17  IOwnAircraftProvider *ownAircraftProvider,
18  IRemoteAircraftProvider *remoteAircraftProvider,
19  IClientProvider *clientProvider)
20  {
21  Q_ASSERT(ownAircraftProvider);
22  return new CSimulatorFsx(info, ownAircraftProvider, remoteAircraftProvider, clientProvider, this);
23  }
24 
25  ISimulatorListener *CSimulatorFsxFactory::createListener(const CSimulatorPluginInfo &info)
26  {
27  return new CSimulatorFsxListener(info);
28  }
29 } // namespace swift::simplugin::fsx
Interface to a simulator.
Definition: simulator.h:59
Interface to a simulator listener.
Definition: simulator.h:630
Direct in memory access to client (network client) data.
Direct threadsafe in memory access to own aircraft.
Direct thread safe in memory access to remote aircraft.
FSX simulator implementation.
Definition: simulatorfsx.h:15
Backend services of the swift project, like dealing with the network or the simulators.
Definition: actionbind.cpp:7