Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ArsenalItemCountConfig.c
Go to the documentation of this file.
3{
4 [Attribute("0", UIWidgets.ComboBox, "", enums: ParamEnumArray.FromEnum(SCR_EArsenalItemType))]
6
7 [Attribute()]
8 protected int m_MaxItemCount;
9
10 //------------------------------------------------------------------------------------------------
16
17 //------------------------------------------------------------------------------------------------
20 {
21 return m_MaxItemCount;
22 }
23
24 //------------------------------------------------------------------------------------------------
32 static bool CheckMaxCount(array<ref SCR_ArsenalItemCountConfig> maxItemCounts, SCR_EArsenalItemType itemType, int currentCountTaken)
33 {
34 if (!maxItemCounts)
35 return false;
36
37 for (int i = 0, c = maxItemCounts.Count(); i < c; i++)
38 {
39 SCR_ArsenalItemCountConfig item = maxItemCounts[i];
40 if (item.GetItemType() == itemType
41 && currentCountTaken >= item.GetMaxItemCount())
42 {
43 return false;
44 }
45 }
46 return true;
47 }
48}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
SCR_EArsenalItemType
static bool CheckMaxCount(array< ref SCR_ArsenalItemCountConfig > maxItemCounts, SCR_EArsenalItemType itemType, int currentCountTaken)
SCR_FieldOfViewSettings Attribute