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

◆ CanSwitchOff()

bool ComponentEnergyManager::CanSwitchOff ( )
inlineprotected

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

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

850 {
851 if ( IsPassive() )
852 {
853 return false;
854 }
855
856 return IsSwitchedOn();
857 }
bool IsPassive()
Energy manager: Returns true if this device is set to be passive. False if otherwise.
Определения ComponentEnergyManager.c:881
bool IsSwitchedOn()
Energy manager: Returns state of the switch. Whenever the device is working or not does not matter....
Определения ComponentEnergyManager.c:866

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

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