Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_BaseNetworkedStat.c
Go to the documentation of this file.
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 }
SCR_OnStatChangedInvoker
ScriptInvokerBase< SCR_OnStatChangedMethod > SCR_OnStatChangedInvoker
Definition: SCR_NetworkedStatsComponent.c:3
SCR_NetworkedStatsComponentClass
Definition: SCR_NetworkedStatsComponent.c:6
SCR_ENetworkedStatType
SCR_ENetworkedStatType
Definition: SCR_NetworkedStatTypes.c:1
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_BaseNetworkedStat
Definition: SCR_BaseNetworkedStat.c:2
m_Owner
SCR_AIGroupUtilityComponentClass m_Owner
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