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

◆ CanAddFuel()

bool ItemBase::CanAddFuel ( ItemBase container)
inlineprotected

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

331 {
332 if (container)
333 {
334 // Get the liquid
335 int liquid_type = container.GetLiquidType();
336
337 // Do all checks
338 if ( container.GetQuantity() > 0 && GetCompEM().GetEnergy() < GetCompEM().GetEnergyMax() && (liquid_type & LIQUID_GASOLINE))
339 {
340 return true;
341 }
342 }
343
344 return false;
345 }
float GetEnergy()
Определения ItemBase.c:8278
const int LIQUID_GASOLINE
Определения constants.c:543

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