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

◆ GetItemQuantity() [1/2]

static float QuantityConversions::GetItemQuantity ( InventoryItem item)
inlinestaticprivate

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

73 {
74 float quantity = 0;
75 if ( item.IsInherited(InventoryItem))
76 {
77 ItemBase item_base;
78 Class.CastTo(item_base, item);
79 if (item_base)
80 {
81 if (item.IsMagazine())
82 {
83 Magazine magazine_item;
84 Class.CastTo(magazine_item, item);
85 quantity = magazine_item.GetAmmoCount();
86 }
87 else
88 {
89 quantity = item_base.GetQuantity();
90 }
91 }
92 }
93 return quantity;
94 }
class GP5GasMask extends MaskBase ItemBase

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

Используется в ActionTargetsCursor::GetItemQuantity(), InventoryGridController::GetItemQuantity(), ScriptedWidgetEventHandler::GetItemQuantity(), Icon::SetQuantity(), SlotsIcon::SetQuantity() и UIScriptedMenu::UpdateQuickbarItemCard().