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

◆ ComputeQuantityUsedEx()

float InventoryItem::ComputeQuantityUsedEx ( ItemBase other_item,
bool use_stack_max = true )
inlineprivate

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

2225 {
2226 float other_item_quantity = other_item.GetQuantity();
2227 float this_free_space;
2228
2229 float stack_max = GetQuantityMax();
2230
2231 this_free_space = stack_max - GetQuantity();
2232
2233 if (other_item_quantity > this_free_space)
2234 {
2235 return this_free_space;
2236 }
2237 else
2238 {
2239 return other_item_quantity;
2240 }
2241 }
override float GetQuantity()
Определения ItemBase.c:3386
override int GetQuantityMax()
Определения ItemBase.c:3338

Перекрестные ссылки GetQuantity(), GetQuantityMax() и ItemBase().