mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 02:45:33 +08:00
refs #873, allow null for lights
This commit is contained in:
committed by
Mathew Sutcliffe
parent
34f3de0dfb
commit
36fb62a6fe
@@ -43,6 +43,9 @@ namespace BlackMisc
|
||||
//! Default constructor
|
||||
CAircraftLights() = default;
|
||||
|
||||
//! Constructor, init to null
|
||||
CAircraftLights(std::nullptr_t null);
|
||||
|
||||
//! Constructor
|
||||
CAircraftLights(bool strobeOn, bool landingOn, bool taxiOn, bool beaconOn, bool navOn, bool logoOn);
|
||||
|
||||
@@ -94,6 +97,9 @@ namespace BlackMisc
|
||||
//! All off
|
||||
void setAllOff();
|
||||
|
||||
//! Is null;
|
||||
bool isNull() const { return m_isNull; }
|
||||
|
||||
//! Returns object with all lights switched on
|
||||
static CAircraftLights allLightsOn();
|
||||
|
||||
@@ -110,6 +116,7 @@ namespace BlackMisc
|
||||
bool m_beaconOn = false;
|
||||
bool m_navOn = false;
|
||||
bool m_logoOn = false;
|
||||
bool m_isNull = false; //!< mark as null
|
||||
|
||||
BLACK_METACLASS(
|
||||
CAircraftLights,
|
||||
|
||||
Reference in New Issue
Block a user