mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
refs #895, reset to "invalid" sentParts when object is added
(makes sure the parts are sent at least once)
This commit is contained in:
committed by
Mathew Sutcliffe
parent
6a63bcf666
commit
8b1c8c068b
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user