Add generic IsOff
This commit is contained in:
parent
5ecbbaf463
commit
8359351f78
@ -3,3 +3,9 @@
|
||||
Switch::Switch() { this->type = Thing::SwitchType; }
|
||||
|
||||
bool Switch::IsOn() { return false; }
|
||||
|
||||
bool Switch::IsOff() {
|
||||
bool isOn = IsOn();
|
||||
bool isOff = !isOn;
|
||||
return isOff;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user