mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 12:55:31 +08:00
refs #873, added cabin and recognition light plus anyEngineOn
This commit is contained in:
committed by
Mathew Sutcliffe
parent
e3ab9d08c3
commit
b6ac5cbb45
@@ -40,7 +40,9 @@ namespace BlackMisc
|
||||
IndexTaxi,
|
||||
IndexBeacon,
|
||||
IndexNav,
|
||||
IndexLogo
|
||||
IndexLogo,
|
||||
IndexRecognition,
|
||||
IndexCabin
|
||||
};
|
||||
|
||||
//! Default constructor
|
||||
@@ -52,6 +54,9 @@ namespace BlackMisc
|
||||
//! Constructor
|
||||
CAircraftLights(bool strobeOn, bool landingOn, bool taxiOn, bool beaconOn, bool navOn, bool logoOn);
|
||||
|
||||
//! Constructor
|
||||
CAircraftLights(bool strobeOn, bool landingOn, bool taxiOn, bool beaconOn, bool navOn, bool logoOn, bool recognition, bool cabin);
|
||||
|
||||
//! Strobes lights on?
|
||||
bool isStrobeOn() const { return m_strobeOn; }
|
||||
|
||||
@@ -88,6 +93,18 @@ namespace BlackMisc
|
||||
//! Set logo lights
|
||||
void setLogoOn(bool on) { m_logoOn = on; }
|
||||
|
||||
//! Recognition lights on?
|
||||
bool isRecognitionOn() const { return m_recognition; }
|
||||
|
||||
//! Set recognition lights
|
||||
void setRecognitionOn(bool on) { m_recognition = on; }
|
||||
|
||||
//! Cabin lights on?
|
||||
bool isCabinOn() const { return m_cabin; }
|
||||
|
||||
//! Set cabin lights
|
||||
void setCabinOn(bool on) { m_cabin = on; }
|
||||
|
||||
//! All on
|
||||
void setAllOn();
|
||||
|
||||
@@ -116,6 +133,8 @@ namespace BlackMisc
|
||||
bool m_beaconOn = false;
|
||||
bool m_navOn = false;
|
||||
bool m_logoOn = false;
|
||||
bool m_recognition = false; //!< not supported by aircraft config (VATSIM)
|
||||
bool m_cabin = false; //!< not supported by aircraft config (VATSIM)
|
||||
|
||||
BLACK_METACLASS(
|
||||
CAircraftLights,
|
||||
@@ -125,7 +144,9 @@ namespace BlackMisc
|
||||
BLACK_METAMEMBER_NAMED(taxiOn, "taxi_on"),
|
||||
BLACK_METAMEMBER_NAMED(beaconOn, "beacon_on"),
|
||||
BLACK_METAMEMBER_NAMED(navOn, "nav_on"),
|
||||
BLACK_METAMEMBER_NAMED(logoOn, "logo_on")
|
||||
BLACK_METAMEMBER_NAMED(logoOn, "logo_on"),
|
||||
BLACK_METAMEMBER(recognition, 0, DisabledForJson), // disable since JSON is used for network
|
||||
BLACK_METAMEMBER(cabin, 0, DisabledForJson) // disable since JSON is used for network
|
||||
);
|
||||
};
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user