Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_MilitarySupplyAllocationConfig.c
Go to the documentation of this file.
1[BaseContainerProps(configRoot: true)]
3{
4 [Attribute("600", desc: "Duration of Available Allocated Supplies replenishment cooldown in seconds.", params: "0 inf 1")]
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")]
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 //------------------------------------------------------------------------------------------------
39
40 //------------------------------------------------------------------------------------------------
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 //------------------------------------------------------------------------------------------------
57}
58
59//------------------------------------------------------------------------------------------------
61class SCR_MilitarySupplyAllocationRankInfo
63 [Attribute(defvalue: "0", uiwidget: UIWidgets.ComboBox, desc: "Player rank.", enums: ParamEnumArray.FromEnum(SCR_ECharacterRank))]
64 protected SCR_ECharacterRank m_eRank;
66 [Attribute("0", desc: "Military supply allocation for player rank.")]
67 protected int m_iMilitarySupplyAllocationValue;
69 [Attribute("10", desc: "Value that Available Allocated Supplies gets replenished to.", params: "0 inf 1")]
70 protected int m_iAvailableAllocatedSuppliesReplenishmentThresholdValue;
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}
class SCR_MilitarySupplyAllocationConfig BaseContainerProps()] class SCR_MilitarySupplyAllocationRankInfo
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
ref array< ref SCR_MilitarySupplyAllocationRankInfo > m_aMilitarySupplyAllocationRankList
int GetAvailableAllocatedSuppliesReplenishmentThresholdValueAtRank(SCR_ECharacterRank rank)
void GetRankList(out notnull array< ref SCR_MilitarySupplyAllocationRankInfo > militarySupplyAllocationRankList)
int GetMilitarySupplyAllocationValueAtRank(SCR_ECharacterRank rank)
SCR_FieldOfViewSettings Attribute