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_MilitarySupplyAllocationConfig.c
Go to the documentation of this file.
1
[
BaseContainerProps
(configRoot:
true
)]
2
class
SCR_MilitarySupplyAllocationConfig
3
{
4
[
Attribute
(
"600"
,
desc
:
"Duration of Available Allocated Supplies replenishment cooldown in seconds."
,
params
:
"0 inf 1"
)]
5
protected
int
m_iAvailableAllocatedSuppliesReplenishmentTimer
;
6
7
[
Attribute
(
"1"
,
desc
:
"Multiplier of amount of Available Allocated Supplies (AAS) replenished when player receives Supplies Delivery XP reward. By Default 1 XP awarded = 1 AAS replenished."
,
params
:
"0 inf 0.01"
)]
8
protected
float
m_fAvailableAllocatedSuppliesReplenishmentOnSupplyDeliveryMultiplier
;
9
10
[
Attribute
()]
11
protected
ref array<ref SCR_MilitarySupplyAllocationRankInfo>
m_aMilitarySupplyAllocationRankList
;
12
13
//------------------------------------------------------------------------------------------------
14
void
GetRankList
(out notnull array<ref SCR_MilitarySupplyAllocationRankInfo> militarySupplyAllocationRankList)
15
{
16
foreach
(SCR_MilitarySupplyAllocationRankInfo info :
m_aMilitarySupplyAllocationRankList
)
17
{
18
militarySupplyAllocationRankList.Insert(info);
19
}
20
}
21
22
//------------------------------------------------------------------------------------------------
23
int
GetMilitarySupplyAllocationValueAtRank
(SCR_ECharacterRank rank)
24
{
25
foreach
(SCR_MilitarySupplyAllocationRankInfo rankInfo :
m_aMilitarySupplyAllocationRankList
)
26
{
27
if
(rankInfo.GetRankID() == rank)
28
return
rankInfo.GetMilitarySupplyAllocationValue();
29
}
30
31
return
0;
32
}
33
34
//------------------------------------------------------------------------------------------------
35
int
GetAvailableAllocatedSuppliesReplenishmentTimer
()
36
{
37
return
m_iAvailableAllocatedSuppliesReplenishmentTimer
;
38
}
39
40
//------------------------------------------------------------------------------------------------
41
int
GetAvailableAllocatedSuppliesReplenishmentThresholdValueAtRank
(SCR_ECharacterRank rank)
42
{
43
foreach
(SCR_MilitarySupplyAllocationRankInfo rankInfo :
m_aMilitarySupplyAllocationRankList
)
44
{
45
if
(rankInfo.GetRankID() == rank)
46
return
rankInfo.GetThresholdValue();
47
}
48
49
return
0;
50
}
51
52
//------------------------------------------------------------------------------------------------
53
float
GetAvailableAllocatedSuppliesReplenishmentOnSupplyDeliveryMultiplier
()
54
{
55
return
m_fAvailableAllocatedSuppliesReplenishmentOnSupplyDeliveryMultiplier
;
56
}
57
}
58
59
//------------------------------------------------------------------------------------------------
60
[
BaseContainerProps
()]
61
class
SCR_MilitarySupplyAllocationRankInfo
62
{
63
[
Attribute
(defvalue:
"0"
, uiwidget:
UIWidgets
.ComboBox,
desc
:
"Player rank."
, enums: ParamEnumArray.FromEnum(SCR_ECharacterRank))]
64
protected
SCR_ECharacterRank m_eRank;
65
66
[
Attribute
(
"0"
,
desc
:
"Military supply allocation for player rank."
)]
67
protected
int
m_iMilitarySupplyAllocationValue;
68
69
[
Attribute
(
"10"
,
desc
:
"Value that Available Allocated Supplies gets replenished to."
,
params
:
"0 inf 1"
)]
70
protected
int
m_iAvailableAllocatedSuppliesReplenishmentThresholdValue;
71
72
//------------------------------------------------------------------------------------------------
73
SCR_ECharacterRank GetRankID()
74
{
75
return
m_eRank;
76
}
77
78
//------------------------------------------------------------------------------------------------
79
int
GetMilitarySupplyAllocationValue()
80
{
81
return
m_iMilitarySupplyAllocationValue;
82
}
83
84
//------------------------------------------------------------------------------------------------
85
int
GetThresholdValue()
86
{
87
return
m_iAvailableAllocatedSuppliesReplenishmentThresholdValue;
88
}
89
}
BaseContainerProps
class SCR_MilitarySupplyAllocationConfig BaseContainerProps()] class SCR_MilitarySupplyAllocationRankInfo
Definition
SCR_MilitarySupplyAllocationConfig.c:60
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
params
category params
Definition
SCR_SpherePointGeneratorPreviewComponent.c:21
SCR_MilitarySupplyAllocationConfig
Definition
SCR_MilitarySupplyAllocationConfig.c:3
SCR_MilitarySupplyAllocationConfig::GetAvailableAllocatedSuppliesReplenishmentTimer
int GetAvailableAllocatedSuppliesReplenishmentTimer()
Definition
SCR_MilitarySupplyAllocationConfig.c:35
SCR_MilitarySupplyAllocationConfig::m_aMilitarySupplyAllocationRankList
ref array< ref SCR_MilitarySupplyAllocationRankInfo > m_aMilitarySupplyAllocationRankList
Definition
SCR_MilitarySupplyAllocationConfig.c:11
SCR_MilitarySupplyAllocationConfig::m_iAvailableAllocatedSuppliesReplenishmentTimer
int m_iAvailableAllocatedSuppliesReplenishmentTimer
Definition
SCR_MilitarySupplyAllocationConfig.c:5
SCR_MilitarySupplyAllocationConfig::GetAvailableAllocatedSuppliesReplenishmentThresholdValueAtRank
int GetAvailableAllocatedSuppliesReplenishmentThresholdValueAtRank(SCR_ECharacterRank rank)
Definition
SCR_MilitarySupplyAllocationConfig.c:41
SCR_MilitarySupplyAllocationConfig::GetRankList
void GetRankList(out notnull array< ref SCR_MilitarySupplyAllocationRankInfo > militarySupplyAllocationRankList)
Definition
SCR_MilitarySupplyAllocationConfig.c:14
SCR_MilitarySupplyAllocationConfig::GetMilitarySupplyAllocationValueAtRank
int GetMilitarySupplyAllocationValueAtRank(SCR_ECharacterRank rank)
Definition
SCR_MilitarySupplyAllocationConfig.c:23
SCR_MilitarySupplyAllocationConfig::m_fAvailableAllocatedSuppliesReplenishmentOnSupplyDeliveryMultiplier
float m_fAvailableAllocatedSuppliesReplenishmentOnSupplyDeliveryMultiplier
Definition
SCR_MilitarySupplyAllocationConfig.c:8
SCR_MilitarySupplyAllocationConfig::GetAvailableAllocatedSuppliesReplenishmentOnSupplyDeliveryMultiplier
float GetAvailableAllocatedSuppliesReplenishmentOnSupplyDeliveryMultiplier()
Definition
SCR_MilitarySupplyAllocationConfig.c:53
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Campaign
SCR_MilitarySupplyAllocationConfig.c
Generated by
1.17.0