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

◆ GetItemQuantityMax()

static float QuantityConversions::GetItemQuantityMax ( InventoryItem item)
inlinestaticprivate

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

97 {
98 float quantity = 0;
99 if (item.IsInherited(InventoryItem))
100 {
101 ItemBase item_base;
102 Class.CastTo(item_base, item);
103 if (item_base)
104 {
105 if (item.IsMagazine())
106 {
107 Magazine magazine_item;
108 Class.CastTo(magazine_item, item);
109 quantity = magazine_item.GetAmmoMax();
110 }
111 else
112 {
113 quantity = item_base.GetQuantityMax();
114 }
115 }
116 }
117 return quantity;
118 }
class GP5GasMask extends MaskBase ItemBase

Перекрестные ссылки Class::CastTo().

Используется в Icon::SetQuantity() и SlotsIcon::SetQuantity().