DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ CanSwitchOff()

bool ComponentEnergyManager::CanSwitchOff ( )
inlineprotected

Energy manager: Checks if the device can be switched OFF.

См. определение в файле ComponentEnergyManager.c строка 880

881 {
882 if ( IsPassive() )
883 {
884 return false;
885 }
886
887 return IsSwitchedOn();
888 }
bool IsPassive()
Energy manager: Returns true if this device is set to be passive. False if otherwise.
Определения ComponentEnergyManager.c:912
bool IsSwitchedOn()
Energy manager: Returns state of the switch. Whenever the device is working or not does not matter....
Определения ComponentEnergyManager.c:897

Перекрестные ссылки IsPassive() и IsSwitchedOn().

Используется в SwitchOff().