Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_ArsenalItemCountConfig.c
Go to the documentation of this file.
3 {
4  [Attribute("0", UIWidgets.ComboBox, "", enums: ParamEnumArray.FromEnum(SCR_EArsenalItemType))]
5  protected SCR_EArsenalItemType m_ItemType;
6 
7  [Attribute()]
8  protected int m_MaxItemCount;
9 
10  //------------------------------------------------------------------------------------------------
12  SCR_EArsenalItemType GetItemType()
13  {
14  return m_ItemType;
15  }
16 
17  //------------------------------------------------------------------------------------------------
19  int GetMaxItemCount()
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_BaseContainerCustomTitleEnum
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
Definition: SCR_CampaignHintStorage.c:22
SCR_ArsenalItemCountConfig
Definition: SCR_ArsenalItemCountConfig.c:2
SCR_EArsenalItemType
SCR_EArsenalItemType
Definition: SCR_EArsenalItemType.c:2
Attribute
typedef Attribute
Post-process effect of scripted camera.
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468