Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
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))]
7  protected SCR_EXPRewards m_eRewardID;
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  //------------------------------------------------------------------------------------------------
22  SCR_EXPRewards GetRewardID()
23  {
24  return m_eRewardID;
25  }
26 
27  //------------------------------------------------------------------------------------------------
28  string GetRewardName()
29  {
30  return m_sRewardName;
31  }
32 
33  //------------------------------------------------------------------------------------------------
34  int GetRewardXP()
35  {
36  return m_iRewardXP;
37  }
38 
39  //------------------------------------------------------------------------------------------------
40  /*EProfileSkillID GetRewardSkill()
41  {
42  return m_eSkillID;
43  }*/
44 
45  //------------------------------------------------------------------------------------------------
46  bool AllowNotification()
47  {
48  return m_bAllowNotification;
49  }
50 };
51 
52 //------------------------------------------------------------------------------------------------
53 [BaseContainerProps(configRoot: true)]
55 {
56  [Attribute()]
57  protected ref array<ref SCR_XPRewardInfo> m_aRewardList;
58 
59  //------------------------------------------------------------------------------------------------
60  void GetRewardList(out notnull array<ref SCR_XPRewardInfo> rewardList)
61  {
62  foreach (SCR_XPRewardInfo info : m_aRewardList)
63  {
64  rewardList.Insert(info);
65  }
66  }
67 };
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
SCR_XPRewardList
Definition: SCR_CampaignXPRewardList.c:54
SCR_XPRewardInfo
Config template for XP rewards.
Definition: SCR_CampaignXPRewardList.c:4
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_EXPRewards
SCR_EXPRewards
Definition: SCR_XPHandlerComponent.c:403
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