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

◆ GetFoodTotalVolume()

static float Edible_Base::GetFoodTotalVolume ( ItemBase item,
string classname = "",
int food_stage = 0 )
inlinestaticprotected

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

392 {
393 Edible_Base food_item = Edible_Base.Cast(item);
394 if (food_item && food_item.GetFoodStage())
395 {
396 return FoodStage.GetFullnessIndex(food_item.GetFoodStage());
397 }
398 else if (classname != "" && food_stage)
399 {
400 return FoodStage.GetFullnessIndex(null, food_stage, classname);
401 }
402 string class_path = string.Format("cfgVehicles %1 Nutrition", classname);
403 return g_Game.ConfigGetFloat( class_path + " fullnessIndex" );
404
405 }
DayZGame g_Game
Определения DayZGame.c:3942
void Edible_Base()
Определения Edible_Base.c:25
override FoodStage GetFoodStage()
Определения Edible_Base.c:361

Перекрестные ссылки Edible_Base(), g_Game и GetFoodStage().

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