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

◆ GetQuantityMax()

override int InventoryItem::GetQuantityMax ( )
inlineprotected

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

3460 {
3461 int slot = -1;
3462 GameInventory inventory = GetInventory();
3463 if (inventory)
3464 {
3465 InventoryLocation il = new InventoryLocation;
3466 inventory.GetCurrentInventoryLocation(il);
3467 slot = il.GetSlot();
3468 }
3469
3470 return GetTargetQuantityMax(slot);
3471 }
proto native bool GetCurrentInventoryLocation(out notnull InventoryLocation loc)
returns information about current item location
override int GetTargetQuantityMax(int attSlotID=-1)
Определения ItemBase.c:3473
proto native int GetSlot()
returns slot id if current type is Attachment

Перекрестные ссылки GameInventory::GetCurrentInventoryLocation(), InventoryLocation::GetSlot() и GetTargetQuantityMax().

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