mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
refs #246 added ISimulator::aircraftModelChanged signal which can be sent via the contexts to CAirspaceMonitor, which needs the model when sending FSIPI(R) custom packets
This commit is contained in:
@@ -178,6 +178,15 @@ namespace BlackSimPlugin
|
||||
return this->m_simulatorInfo;
|
||||
}
|
||||
|
||||
void CSimulatorFsx::setAircraftModel(const BlackMisc::Network::CAircraftModel &model)
|
||||
{
|
||||
if (m_aircraftModel != model)
|
||||
{
|
||||
m_aircraftModel = model;
|
||||
emit aircraftModelChanged(model);
|
||||
}
|
||||
}
|
||||
|
||||
bool CSimulatorFsx::updateOwnSimulatorCockpit(const CAircraft &ownAircraft)
|
||||
{
|
||||
CComSystem newCom1 = ownAircraft.getCom1System();
|
||||
|
||||
@@ -144,7 +144,7 @@ namespace BlackSimPlugin
|
||||
void onSimExit();
|
||||
|
||||
//! \private
|
||||
void setAircraftModel(const BlackMisc::Network::CAircraftModel &model) { m_aircraftModel = model; }
|
||||
void setAircraftModel(const BlackMisc::Network::CAircraftModel &model);
|
||||
|
||||
protected:
|
||||
//! Timer event
|
||||
|
||||
Reference in New Issue
Block a user