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_CampaignXPRewardList.c
Go to the documentation of this file.
1
//------------------------------------------------------------------------------------------------
3
[
BaseContainerProps
(),
SCR_BaseContainerCustomTitleEnum
(
SCR_EXPRewards
,
"m_eRewardID"
)]
4
class
SCR_XPRewardInfo
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
[
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
//------------------------------------------------------------------------------------------------
28
SCR_EXPRewards
GetRewardID
()
29
{
30
return
m_eRewardID
;
31
}
32
33
//------------------------------------------------------------------------------------------------
34
string
GetRewardName
()
35
{
36
return
m_sRewardName
;
37
}
38
39
//------------------------------------------------------------------------------------------------
40
int
GetRewardXP
()
41
{
42
return
m_iRewardXP
;
43
}
44
45
//------------------------------------------------------------------------------------------------
47
bool
CanUseRewardCooldown
()
48
{
49
return
m_bUseRewardCooldown
;
50
}
51
52
//------------------------------------------------------------------------------------------------
54
float
GetRewardCooldown
()
55
{
56
return
m_fRewardCooldown
;
57
}
58
59
//------------------------------------------------------------------------------------------------
60
/*EProfileSkillID GetRewardSkill()
61
{
62
return m_eSkillID;
63
}*/
64
65
//------------------------------------------------------------------------------------------------
66
bool
AllowNotification
()
67
{
68
return
m_bAllowNotification
;
69
}
70
};
71
72
//------------------------------------------------------------------------------------------------
73
[
BaseContainerProps
(configRoot:
true
)]
74
class
SCR_XPRewardList
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
};
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
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
SCR_EXPRewards
SCR_EXPRewards
Definition
SCR_XPHandlerComponent.c:826
SCR_XPRewardInfo
Config template for XP rewards.
Definition
SCR_CampaignXPRewardList.c:5
SCR_XPRewardInfo::m_iRewardXP
int m_iRewardXP
Definition
SCR_CampaignXPRewardList.c:16
SCR_XPRewardInfo::m_eRewardID
SCR_EXPRewards m_eRewardID
Definition
SCR_CampaignXPRewardList.c:7
SCR_XPRewardInfo::m_sRewardName
string m_sRewardName
Definition
SCR_CampaignXPRewardList.c:13
SCR_XPRewardInfo::m_bAllowNotification
bool m_bAllowNotification
Definition
SCR_CampaignXPRewardList.c:19
SCR_XPRewardInfo::GetRewardID
SCR_EXPRewards GetRewardID()
Definition
SCR_CampaignXPRewardList.c:28
SCR_XPRewardInfo::GetRewardCooldown
float GetRewardCooldown()
return reward cooldown [s]
Definition
SCR_CampaignXPRewardList.c:54
SCR_XPRewardInfo::CanUseRewardCooldown
bool CanUseRewardCooldown()
return true if player can use cooldown for this reward type
Definition
SCR_CampaignXPRewardList.c:47
SCR_XPRewardInfo::AllowNotification
bool AllowNotification()
Definition
SCR_CampaignXPRewardList.c:66
SCR_XPRewardInfo::m_bUseRewardCooldown
bool m_bUseRewardCooldown
Definition
SCR_CampaignXPRewardList.c:22
SCR_XPRewardInfo::GetRewardXP
int GetRewardXP()
Definition
SCR_CampaignXPRewardList.c:40
SCR_XPRewardInfo::m_fRewardCooldown
float m_fRewardCooldown
Definition
SCR_CampaignXPRewardList.c:24
SCR_XPRewardInfo::GetRewardName
string GetRewardName()
Definition
SCR_CampaignXPRewardList.c:34
SCR_XPRewardList
Definition
SCR_CampaignXPRewardList.c:75
SCR_XPRewardList::m_aRewardList
ref array< ref SCR_XPRewardInfo > m_aRewardList
Definition
SCR_CampaignXPRewardList.c:77
SCR_XPRewardList::GetRewardList
void GetRewardList(out notnull array< ref SCR_XPRewardInfo > rewardList)
Definition
SCR_CampaignXPRewardList.c:80
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Campaign
SCR_CampaignXPRewardList.c
Generated by
1.17.0