mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
Ref T681, preparations to use CG from DB
* renamed to "getSimulatorCG" ... * pass simulator settings to sim.env.provider to decide what CG to use * store DB CG and init it when aircraft is added * style
This commit is contained in:
committed by
Mat Sutcliffe
parent
33c3ee68f1
commit
6d490e9a49
@@ -970,6 +970,26 @@ namespace BlackCore
|
||||
m_airspace->updateMarkAllAsNotRendered();
|
||||
}
|
||||
|
||||
CLength CContextNetwork::getCGFromDB(const CCallsign &callsign) const
|
||||
{
|
||||
return m_airspace->getCGFromDB(callsign);
|
||||
}
|
||||
|
||||
CLength CContextNetwork::getCGFromDB(const QString &modelString) const
|
||||
{
|
||||
return m_airspace->getCGFromDB(modelString);
|
||||
}
|
||||
|
||||
void CContextNetwork::rememberCGFromDB(const CLength &cgFromDB, const CCallsign &callsign)
|
||||
{
|
||||
m_airspace->rememberCGFromDB(cgFromDB, callsign);
|
||||
}
|
||||
|
||||
void CContextNetwork::rememberCGFromDB(const CLength &cgFromDB, const QString &modelString)
|
||||
{
|
||||
m_airspace->rememberCGFromDB(cgFromDB, modelString);
|
||||
}
|
||||
|
||||
int CContextNetwork::reInitializeAllAircraft()
|
||||
{
|
||||
if (this->isDebugEnabled()) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO; }
|
||||
|
||||
Reference in New Issue
Block a user