mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
* added to matcher * and simulator context * in facade changed init order, as we need getCContextOwnAircraft() / getCContextSimulator() Remark: Need 2 contexts is not ideal, but accepted for the moment
33 lines
1001 B
C++
33 lines
1001 B
C++
/* Copyright (C) 2019
|
|
* swift project Community / Contributors
|
|
*
|
|
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
|
* directory of this distribution. No part of swift project, including this file, may be copied, modified, propagated,
|
|
* or distributed except according to the terms contained in the LICENSE file.
|
|
*/
|
|
|
|
#include "aircraftmodelsetprovider.h"
|
|
|
|
namespace BlackMisc
|
|
{
|
|
namespace Simulation
|
|
{
|
|
// pin vtables to this file
|
|
void CAircraftModelSetAware::anchor()
|
|
{ }
|
|
|
|
CAircraftModelList CAircraftModelSetAware::getModelSet() const
|
|
{
|
|
if (!this->hasProvider()) { return CAircraftModelList(); }
|
|
return this->provider()->getModelSet();
|
|
}
|
|
|
|
int CAircraftModelSetAware::getModelSetCount() const
|
|
{
|
|
if (!this->hasProvider()) { return -1; }
|
|
return this->provider()->getModelSetCount();
|
|
}
|
|
|
|
} // ns
|
|
} // ns
|