mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
refs #916, interpolator mode for FSX
This commit is contained in:
committed by
Mathew Sutcliffe
parent
277837bb30
commit
0fb96206c5
@@ -297,6 +297,21 @@ namespace BlackSimPlugin
|
||||
return CCallsignSet(this->m_simConnectObjects.keys());
|
||||
}
|
||||
|
||||
bool CSimulatorFsxCommon::setInterpolatorMode(CInterpolatorMulti::Mode mode, const CCallsign &callsign)
|
||||
{
|
||||
if (mode == CInterpolatorMulti::ModeUnkown) { return false; }
|
||||
if (callsign.isEmpty())
|
||||
{
|
||||
const int c = m_simConnectObjects.setInterpolatorModes(mode);
|
||||
return c > 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!m_simConnectObjects.contains(callsign)) { return false; }
|
||||
return m_simConnectObjects[callsign].setInterpolatorMode(mode);
|
||||
}
|
||||
}
|
||||
|
||||
bool CSimulatorFsxCommon::stillDisplayReceiveExceptions()
|
||||
{
|
||||
m_receiveExceptionCount++;
|
||||
|
||||
@@ -118,6 +118,7 @@ namespace BlackSimPlugin
|
||||
virtual void displayTextMessage(const BlackMisc::Network::CTextMessage &message) const override;
|
||||
virtual bool isPhysicallyRenderedAircraft(const BlackMisc::Aviation::CCallsign &callsign) const override;
|
||||
virtual BlackMisc::Aviation::CCallsignSet physicallyRenderedAircraft() const override;
|
||||
virtual bool setInterpolatorMode(BlackMisc::Simulation::CInterpolatorMulti::Mode mode, const BlackMisc::Aviation::CCallsign &callsign) override;
|
||||
//! @}
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user