DayZ 1.24
Loading...
Searching...
No Matches
SyncedValue.c
Go to the documentation of this file.
2{
3 string m_Name;
4 float m_Value;
6 bool m_State;
7
8 void SyncedValue(string name, float value, bool state, float val_norm)
9 {
10 m_Name = name;
11 m_Value = value;
12 m_State = state;
14 }
15
16 string GetName()
17 {
18 return m_Name;
19 }
20
21 float GetValue()
22 {
23 return m_Value;
24 }
25
27 {
28 return m_ValueNorm;
29 }
30
31 bool GetState()
32 {
33 return m_State;
34 }
35}
36
38{
39 string m_Name;
40 float m_Value;
41 float m_Value2;
42
43 void SyncedValueLevel(string name, float value, float value2)
44 {
45 m_Name = name;
46 m_Value = value;
48 }
49
50 string GetName()
51 {
52 return m_Name;
53 }
54
55 float GetValue()
56 {
57 return m_Value;
58 }
59
60 float GetValue2()
61 {
62 return m_Value2;
63 }
64}
65
66
68{
69 string m_Name;
70 int m_ID;
73
74 void SyncedValueModifier(int id, string name, bool active, bool locked)
75 {
76 m_Name = name;
77 m_ID = id;
80 }
81
82 string GetName()
83 {
84 return m_Name;
85 }
86
87 int GetID()
88 {
89 return m_ID;
90 }
91
92 bool GetLocked()
93 {
94 return m_Locked;
95 }
96
97 bool GetActive()
98 {
99 return m_Active;
100 }
101}
102
103
105{
106 string m_Name;
107 string m_Value;
108 int m_ID;
109
110 void SyncedValueAgent(string name, string value, int id)
111 {
112 m_Name = name;
113 m_Value = value;
114 m_ID = id;
115 }
116
117 string GetName()
118 {
119 return m_Name;
120 }
121
122 string GetValue()
123 {
124 return m_Value;
125 }
126
127 int GetID()
128 {
129 return m_ID;
130 }
131}
string m_Name
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
int GetID()
Get the ID registered in SEffectManager.
Definition Effect.c:517
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition Effect.c:49
void SyncedValueAgent(string name, string value, int id)
float GetValue2()
Definition SyncedValue.c:60
float m_Value2
Definition SyncedValue.c:41
void SyncedValueLevel(string name, float value, float value2)
Definition SyncedValue.c:43
float GetValue()
Definition SyncedValue.c:55
bool GetState()
Definition SyncedValue.c:31
string GetName()
Definition SyncedValue.c:16
float m_Value
Definition SyncedValue.c:4
void SyncedValue(string name, float value, bool state, float val_norm)
Definition SyncedValue.c:8
float GetValue()
Definition SyncedValue.c:21
float GetValueNorm()
Definition SyncedValue.c:26
float m_ValueNorm
Definition SyncedValue.c:5
string m_Name
Definition SyncedValue.c:3
void SyncedValueModifier(int id, string name, bool active, bool locked)
Definition SyncedValue.c:74
string m_Value
Definition EnEntity.c:805
proto native owned string GetName()