Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
syncedvalue.c
Go to the documentation of this file.
2{
3 string m_Name;
4 float m_Value;
5 float m_ValueNorm;
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;
13 m_ValueNorm = val_norm;
14 }
15
16 string GetName()
17 {
18 return m_Name;
19 }
20
21 float GetValue()
22 {
23 return m_Value;
24 }
25
26 float GetValueNorm()
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;
47 m_Value2 = value2;
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;
71 bool m_Locked;
72 bool m_Active;
73
74 void SyncedValueModifier( int id, string name, bool active, bool locked )
75 {
76 m_Name = name;
77 m_ID = id;
78 m_Locked = locked;
79 m_Active = active;
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;
110
111 void SyncedValueAgent(string name, string value, int id, float temporaryResistance)
112 {
113 m_Name = name;
114 m_Value = value;
115 m_ID = id;
116 m_TemporaryResistanceTime = temporaryResistance;
117 }
118
119 string GetName()
120 {
121 return m_Name;
122 }
123
124 string GetValue()
125 {
126 return m_Value;
127 }
128
129 int GetID()
130 {
131 return m_ID;
132 }
133
138}
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
int GetID()
Get the ID registered in SEffectManager.
Definition effect.c:561
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition effect.c:51
string m_Value
Definition enentity.c:808
enum EObjectTemperatureState m_State
class SyncedValue m_Name
float m_TemporaryResistanceTime
float GetValue2()
Definition syncedvalue.c:60
float m_Value2
Definition syncedvalue.c:41
float GetTemporaryResistanceTime()
void SyncedValueLevel(string name, float value, float value2)
Definition syncedvalue.c:43
void SyncedValueAgent(string name, string value, int id, float temporaryResistance)
float GetValue()
Definition syncedvalue.c:55