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_BaseNetworkedStat.c
Go to the documentation of this file.
1
[
BaseContainerProps
()]
2
class
SCR_BaseNetworkedStat
3
{
4
[
Attribute
(uiwidget :
UIWidgets
.ComboBox, enums : ParamEnumArray.FromEnum(
SCR_ENetworkedStatType
))]
5
protected
SCR_ENetworkedStatType
m_eStatType
;
6
7
protected
SCR_NetworkedStatsComponent
m_Owner
;
8
protected
SCR_NetworkedStatsComponentClass
m_OwnerData
;
9
10
//------------------------------------------------------------------------------------------------
11
SCR_ENetworkedStatType
GetStatType
()
12
{
13
return
m_eStatType
;
14
}
15
16
//------------------------------------------------------------------------------------------------
17
// Override this method in child classes.
18
void
UpdateStat
();
19
20
//------------------------------------------------------------------------------------------------
21
// Override this method in child classes.
22
void
OnAuthorityStatValueSet
(
int
value);
23
24
//------------------------------------------------------------------------------------------------
25
void
SetOwner
(notnull SCR_NetworkedStatsComponent owner)
26
{
27
m_Owner
= owner;
28
m_OwnerData
=
m_Owner
.GetNetworkedStatPrefabData();
29
}
30
31
//------------------------------------------------------------------------------------------------
32
protected
void
InvokeStatValueChange
()
33
{
34
if
(!
m_OwnerData
)
35
{
36
Print
(
"[SCR_FPSNetworkedStat] Failed to obtain Prefab Data for SCR_NetworkedStatsComponent!"
,
LogLevel
.ERROR);
37
return
;
38
}
39
40
SCR_OnStatChangedInvoker
onStatChanged =
m_OwnerData
.GetOnStatsChanged(
false
);
41
if
(onStatChanged)
42
onStatChanged.Invoke(
this
);
43
}
44
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_ENetworkedStatType
SCR_ENetworkedStatType
Definition
SCR_NetworkedStatTypes.c:2
SCR_OnStatChangedInvoker
ScriptInvokerBase< SCR_OnStatChangedMethod > SCR_OnStatChangedInvoker
Definition
SCR_NetworkedStatsComponent.c:3
SCR_BaseNetworkedStat
Definition
SCR_BaseNetworkedStat.c:3
SCR_BaseNetworkedStat::m_Owner
SCR_NetworkedStatsComponent m_Owner
Definition
SCR_BaseNetworkedStat.c:7
SCR_BaseNetworkedStat::m_eStatType
SCR_ENetworkedStatType m_eStatType
Definition
SCR_BaseNetworkedStat.c:5
SCR_BaseNetworkedStat::GetStatType
SCR_ENetworkedStatType GetStatType()
Definition
SCR_BaseNetworkedStat.c:11
SCR_BaseNetworkedStat::SetOwner
void SetOwner(notnull SCR_NetworkedStatsComponent owner)
Definition
SCR_BaseNetworkedStat.c:25
SCR_BaseNetworkedStat::OnAuthorityStatValueSet
void OnAuthorityStatValueSet(int value)
SCR_BaseNetworkedStat::UpdateStat
void UpdateStat()
SCR_BaseNetworkedStat::InvokeStatValueChange
void InvokeStatValueChange()
Definition
SCR_BaseNetworkedStat.c:32
SCR_BaseNetworkedStat::m_OwnerData
SCR_NetworkedStatsComponentClass m_OwnerData
Definition
SCR_BaseNetworkedStat.c:8
SCR_NetworkedStatsComponentClass
Definition
SCR_NetworkedStatsComponent.c:7
UIWidgets
Definition
attributes.c:40
Print
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
LogLevel
Enum with severity of the logging message.
Definition
LogLevel.c:14
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Network
NetworkedStats
Stats
SCR_BaseNetworkedStat.c
Generated by
1.17.0