refs #873, sendToggledLightsToSimulator as own function

* better resending of lights when light state in simulator is not yet known
* support for cabin/recognition light
This commit is contained in:
Klaus Basan
2017-02-02 00:05:47 +01:00
committed by Mathew Sutcliffe
parent bcb42b0f0d
commit 2a0d0e1d84
3 changed files with 90 additions and 33 deletions

View File

@@ -196,6 +196,10 @@ namespace BlackSimPlugin
//! Send parts to simulator
bool sendRemoteAircraftPartsToSimulator(const CSimConnectObject &simObj, DataDefinitionRemoteAircraftParts &ddRemoteAircraftParts, const BlackMisc::Aviation::CAircraftLights &lights);
//! Send lights to simulator (those which have to be toggled)
//! \remark challenge here is that I can only sent those value if I have already obtained the current light state from simulator
void sendToggledLightsToSimulator(const CSimConnectObject &simObj, const BlackMisc::Aviation::CAircraftLights &lightsWanted, bool force = false);
//! Called when data about our own aircraft are received
void updateOwnAircraftFromSimulator(const DataDefinitionOwnAircraft &simulatorOwnAircraft);