refs #895, reset to "invalid" sentParts when object is added

(makes sure the parts are sent at least once)
This commit is contained in:
Klaus Basan
2017-03-04 01:45:04 +01:00
committed by Mathew Sutcliffe
parent 6a63bcf666
commit 8b1c8c068b
5 changed files with 36 additions and 5 deletions

View File

@@ -68,6 +68,9 @@ namespace BlackSimPlugin
//! Parts as sent to simulator
void setPartsAsSent(const DataDefinitionRemoteAircraftPartsWithoutLights &parts) { m_partsAsSent = parts; }
//! Invalidate parts as sent
void invalidatePartsAsSent();
//! Lights as sent to simulator
const BlackMisc::Aviation::CAircraftLights &getLightsAsSent() const { return m_lightsAsSent; }
@@ -141,7 +144,7 @@ namespace BlackSimPlugin
{
public:
//! Set ID of a SimConnect object, so far we only have an request id in the object
bool setSimConnectObjectIdForRequestId(DWORD requestId, DWORD objectId);
bool setSimConnectObjectIdForRequestId(DWORD requestId, DWORD objectId, bool resetSentParts = false);
//! Find which callsign belongs to the object id
BlackMisc::Aviation::CCallsign getCallsignForObjectId(DWORD objectId) const;