Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CampaignXPRewardList.c
Go to the documentation of this file.
1//------------------------------------------------------------------------------------------------
5{
6 [Attribute(defvalue: "0", uiwidget: UIWidgets.ComboBox, desc: "ID of this reward.", enums: ParamEnumArray.FromEnum(SCR_EXPRewards))]
8
9 //[Attribute(defvalue: "0", uiwidget: UIWidgets.ComboBox, desc: "Corresponding skill.", enums: ParamEnumArray.FromEnum(EProfileSkillID))]
10 //protected EProfileSkillID m_eSkillID;
11
12 [Attribute("Reward name", desc: "Name of this reward.")]
13 protected string m_sRewardName;
14
15 [Attribute("10", desc: "Amount of XP awarded.")]
16 protected int m_iRewardXP;
17
18 [Attribute("1", desc: "Toggles UI feedback for XP change.")]
19 protected bool m_bAllowNotification;
20
21 [Attribute("0", desc: "Toggles use reward cooldown, the cooldown is set after reward is earned and another reward can be earned after cooldown expires.")]
22 protected bool m_bUseRewardCooldown;
23
24 [Attribute("300", UIWidgets.EditBox, "Reward cooldown [s]", "0 inf")]
25 protected float m_fRewardCooldown;
26
27 //------------------------------------------------------------------------------------------------
29 {
30 return m_eRewardID;
31 }
32
33 //------------------------------------------------------------------------------------------------
35 {
36 return m_sRewardName;
37 }
38
39 //------------------------------------------------------------------------------------------------
41 {
42 return m_iRewardXP;
43 }
44
45 //------------------------------------------------------------------------------------------------
48 {
50 }
51
52 //------------------------------------------------------------------------------------------------
55 {
56 return m_fRewardCooldown;
57 }
58
59 //------------------------------------------------------------------------------------------------
60 /*EProfileSkillID GetRewardSkill()
61 {
62 return m_eSkillID;
63 }*/
64
65 //------------------------------------------------------------------------------------------------
67 {
69 }
70};
71
72//------------------------------------------------------------------------------------------------
73[BaseContainerProps(configRoot: true)]
75{
76 [Attribute()]
77 protected ref array<ref SCR_XPRewardInfo> m_aRewardList;
78
79 //------------------------------------------------------------------------------------------------
80 void GetRewardList(out notnull array<ref SCR_XPRewardInfo> rewardList)
81 {
82 foreach (SCR_XPRewardInfo info : m_aRewardList)
83 {
84 rewardList.Insert(info);
85 }
86 }
87};
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Config template for XP rewards.
SCR_EXPRewards GetRewardID()
float GetRewardCooldown()
return reward cooldown [s]
bool CanUseRewardCooldown()
return true if player can use cooldown for this reward type
ref array< ref SCR_XPRewardInfo > m_aRewardList
void GetRewardList(out notnull array< ref SCR_XPRewardInfo > rewardList)
SCR_FieldOfViewSettings Attribute