mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Formatting
This commit is contained in:
@@ -268,13 +268,14 @@ namespace BlackSimPlugin
|
||||
HRESULT initDataDefinitionsWhenConnected();
|
||||
|
||||
//! Update remote aircraft
|
||||
//! \remark this is where the interpolated data are set
|
||||
//! \remark this is where the interpolated data are send
|
||||
void updateRemoteAircraft();
|
||||
|
||||
//! Update remote aircraft parts (send to FSX)
|
||||
bool updateRemoteAircraftParts(const CSimConnectObject &simObject, const BlackMisc::Simulation::CInterpolationResult &result);
|
||||
|
||||
//! Send parts to simulator
|
||||
//! \remark does not send if there is no change
|
||||
bool sendRemoteAircraftPartsToSimulator(const CSimConnectObject &simObject, DataDefinitionRemoteAircraftPartsWithoutLights &ddRemoteAircraftParts, const BlackMisc::Aviation::CAircraftLights &lights);
|
||||
|
||||
//! Send lights to simulator (those which have to be toggled)
|
||||
@@ -390,7 +391,7 @@ namespace BlackSimPlugin
|
||||
bool m_simConnected = false; //!< Is simulator connected?
|
||||
bool m_simSimulating = false; //!< Simulator running?
|
||||
bool m_useSbOffsets = true; //!< with SB offsets
|
||||
bool m_traceSendId = false; //!< trace the send ids, meant for dedugging
|
||||
bool m_traceSendId = false; //!< trace the send ids, meant for debugging
|
||||
qint64 m_simulatingChangedTs = -1; //!< timestamp, when simulating changed (used to avoid jitter)
|
||||
int m_syncDeferredCounter = 0; //!< Set when synchronized, used to wait some time
|
||||
int m_skipCockpitUpdateCycles = 0; //!< skip some update cycles to allow changes in simulator cockpit to be set
|
||||
|
||||
@@ -294,7 +294,7 @@ namespace BlackSimPlugin
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
break; // SIMCONNECT_RECV_ID_SIMOBJECT_DATA
|
||||
}
|
||||
case SIMCONNECT_RECV_ID_AIRPORT_LIST:
|
||||
{
|
||||
@@ -322,7 +322,7 @@ namespace BlackSimPlugin
|
||||
simulatorFsxP3D->m_airportsInRangeFromSimulator.sortByDistanceToOwnAircraft();
|
||||
simulatorFsxP3D->m_airportsInRangeFromSimulator.truncate(simulatorFsxP3D->maxAirportsInRange());
|
||||
}
|
||||
break;
|
||||
break; // SIMCONNECT_RECV_ID_AIRPORT_LIST
|
||||
}
|
||||
case SIMCONNECT_RECV_ID_CLIENT_DATA:
|
||||
{
|
||||
@@ -334,7 +334,7 @@ namespace BlackSimPlugin
|
||||
DataDefinitionClientAreaSb *sbData = (DataDefinitionClientAreaSb *) &clientData->dwData;
|
||||
simulatorFsxP3D->updateOwnAircraftFromSimulator(*sbData);
|
||||
}
|
||||
break;
|
||||
break; // SIMCONNECT_RECV_ID_CLIENT_DATA
|
||||
}
|
||||
case SIMCONNECT_RECV_ID_EVENT_FILENAME:
|
||||
{
|
||||
@@ -344,7 +344,7 @@ namespace BlackSimPlugin
|
||||
case SystemEventFlightLoaded: break;
|
||||
default: break;
|
||||
}
|
||||
break;
|
||||
break; // SIMCONNECT_RECV_ID_EVENT_FILENAME
|
||||
}
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user