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

◆ ComputeQuantityUsedEx()

float ComputeQuantityUsedEx ( ItemBase other_item,
bool use_stack_max = true )
protected

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

2220 {
2221 float other_item_quantity = other_item.GetQuantity();
2222 float this_free_space;
2223
2224 float stack_max = GetQuantityMax();
2225
2226 this_free_space = stack_max - GetQuantity();
2227
2228 if (other_item_quantity > this_free_space)
2229 {
2230 return this_free_space;
2231 }
2232 else
2233 {
2234 return other_item_quantity;
2235 }
2236 }
override float GetQuantity()
Определения ItemBase.c:3486
override int GetQuantityMax()
Определения ItemBase.c:3435

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

Используется в CombineItems() и ComputeQuantityUsed().