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

◆ CanSwitchOff()

bool ComponentEnergyManager::CanSwitchOff ( )
inlineprotected

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

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

868 {
869 if ( IsPassive() )
870 {
871 return false;
872 }
873
874 return IsSwitchedOn();
875 }
bool IsPassive()
Energy manager: Returns true if this device is set to be passive. False if otherwise.
Определения ComponentEnergyManager.c:899
bool IsSwitchedOn()
Energy manager: Returns state of the switch. Whenever the device is working or not does not matter....
Определения ComponentEnergyManager.c:884

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

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