Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_ArsenalItemCountConfig.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_BaseContainerCustomTitleEnum
(
SCR_EArsenalItemType
,
"m_ItemType"
)]
2
class
SCR_ArsenalItemCountConfig
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
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_BaseContainerCustomTitleEnum
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
Definition
SCR_CampaignHintStorage.c:22
SCR_EArsenalItemType
SCR_EArsenalItemType
Definition
SCR_EArsenalItemType.c:3
SCR_ArsenalItemCountConfig
Definition
SCR_ArsenalItemCountConfig.c:3
SCR_ArsenalItemCountConfig::GetMaxItemCount
int GetMaxItemCount()
Definition
SCR_ArsenalItemCountConfig.c:19
SCR_ArsenalItemCountConfig::CheckMaxCount
static bool CheckMaxCount(array< ref SCR_ArsenalItemCountConfig > maxItemCounts, SCR_EArsenalItemType itemType, int currentCountTaken)
Definition
SCR_ArsenalItemCountConfig.c:32
SCR_ArsenalItemCountConfig::m_ItemType
SCR_EArsenalItemType m_ItemType
Definition
SCR_ArsenalItemCountConfig.c:5
SCR_ArsenalItemCountConfig::m_MaxItemCount
int m_MaxItemCount
Definition
SCR_ArsenalItemCountConfig.c:8
SCR_ArsenalItemCountConfig::GetItemType
SCR_EArsenalItemType GetItemType()
Definition
SCR_ArsenalItemCountConfig.c:12
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Components
Arsenal
SCR_ArsenalItemCountConfig.c
Generated by
1.17.0