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

◆ CanAddFuel()

bool ItemBase::CanAddFuel ( ItemBase container)
inlineprotected

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

316 {
317 if (container)
318 {
319 // Get the liquid
320 int liquid_type = container.GetLiquidType();
321
322 // Do all checks
323 if ( container.GetQuantity() > 0 && GetCompEM().GetEnergy() < GetCompEM().GetEnergyMax() && (liquid_type & LIQUID_GASOLINE))
324 {
325 return true;
326 }
327 }
328
329 return false;
330 }
float GetEnergy()
Определения ItemBase.c:8525
const int LIQUID_GASOLINE
Определения 3_Game/DayZ/constants.c:548

Перекрестные ссылки GetEnergy() и LIQUID_GASOLINE.