Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
pperequestdata.c
Go to the documentation of this file.
1
3{
4 PPERequesterBase m_Requester;
5 protected bool m_UpdatingDataValues; //new values are being sent periodically
6 protected bool m_IsActive; //hasn't been stopped yet (does not have to update values)
7 protected bool m_SettingDefaultValues;
8
9 protected int m_MaterialID;
10 protected int m_ParameterID;
11 protected int m_VariableType; //PPEConstants.VAR_TYPE_INT etc.
12 protected int m_RequesterIDX;
13 protected int m_InteractionMask;
14 protected int m_Priority; //de-facto blending layer
15
16 void PPERequestParamDataBase(int requester_idx, int mat_id, int param_id, int data_type = 0, int priority = 0, int mask = PPOperators.SET)
17 {
18 m_RequesterIDX = requester_idx;
19 m_MaterialID = mat_id;
20 m_ParameterID = param_id;
21 m_VariableType = data_type;
22 m_Priority = priority;
23 m_InteractionMask = mask;
26 m_IsActive = false;
27 InitValues();
28 }
29
31 {
32 }
33
34 void SetUpdatingDataValues(bool state)
35 {
37 }
38
40 {
42 }
43
44 void SetDataActive(bool state)
45 {
46 m_IsActive = state;
47 }
48
50 {
51 return m_IsActive;
52 }
53
54 void SetSettingDefaultValues(bool state)
55 {
57 }
58
63
65 {
66 return m_RequesterIDX;
67 }
68
70 {
71 return m_MaterialID;
72 }
73
75 {
76 return m_ParameterID;
77 }
78
80 {
81 return m_VariableType;
82 }
83
84 void SetInteractionMask(int mask)
85 {
86 m_InteractionMask = mask;
87 }
88
90 {
91 return m_InteractionMask;
92 }
93
94 void SetPriorityLayer(int priority)
95 {
96 m_Priority = priority;
97 }
98
100 {
101 return m_Priority;
102 }
103}
104
106{
110
111 void PPERequestParamDataBool(int requester_idx, int mat_id, int param_id, int data_type = 0, int priority = 0, int mask = PPOperators.SET, bool relative = false )
112 {
113 m_BoolCurrent = 0;
114 m_BoolLast = 0;
115 m_VariableType = PPEConstants.VAR_TYPE_BOOL;
116 }
117}
118
119class PPERequestParamDataInt extends PPERequestParamDataBase
120{
121 int m_IntTarget;
122 int m_IntCurrent;
123 int m_IntLast;
124
125 void PPERequestParamDataInt(int requester_idx, int mat_id, int param_id, int data_type = 0, int priority = 0, int mask = PPOperators.SET, bool relative = false )
126 {
127 m_IntCurrent = -1;
128 m_IntLast = -1;
129 m_VariableType = PPEConstants.VAR_TYPE_INT;
130 }
131}
132
134{
138
139 float m_FloatFormerTarget;//former target; remnants of a fading mechanic...revise and re-connect?
140 float m_FloatStart;//actual start value; remnants of a fading mechanic...revise and re-connect?
141
142 void PPERequestParamDataFloat(int requester_idx, int mat_id, int param_id, int data_type = 0, int priority = 0, int mask = PPOperators.SET, bool relative = false )
143 {
144 m_VariableType = PPEConstants.VAR_TYPE_FLOAT;
145 }
146
147 override void InitValues()
148 {
149 m_FloatTarget = float.LOWEST;
150 m_FloatCurrent = float.LOWEST;
151 m_FloatLast = float.LOWEST;
152 m_FloatFormerTarget = float.LOWEST;
153 m_FloatStart = float.LOWEST;
154 }
155}
156
157class PPERequestParamDataColor extends PPERequestParamDataBase
158{
159 ref array<float> m_ColorTarget;
160 ref array<float> m_ColorCurrent;
161 ref array<float> m_ColorLast;
162
163 ref array<float> m_ColorFormerTarget;//former target; remnants of a fading mechanic...revise and re-connect?
164 ref array<float> m_ColorStart;//actual start values; remnants of a fading mechanic...revise and re-connect?
165
166 void PPERequestParamDataColor(int requester_idx, int mat_id, int param_id, int data_type = 0, int priority = 0, int mask = PPOperators.SET, bool relative = false )
167 {
168 m_VariableType = PPEConstants.VAR_TYPE_COLOR;
169 }
170
171 override void InitValues()
172 {
173 m_ColorTarget = {0.0,0.0,0.0,0.0};
174 m_ColorCurrent = {0,0.0,0.0,0.0};
175 m_ColorLast = {0.0,0.0,0.0,0.0};
176 m_ColorFormerTarget = {0.0,0.0,0.0,0.0};
177 m_ColorStart = {0.0,0.0,0.0,0.0};
178 }
179}
180
181//TODO
182class PPERequestParamDataVector extends PPERequestParamDataBase
183{
187}
Data for one material parameter, requester side.
void SetPriorityLayer(int priority)
void SetDataActive(bool state)
void SetUpdatingDataValues(bool state)
void PPERequestParamDataBase(int requester_idx, int mat_id, int param_id, int data_type=0, int priority=0, int mask=PPOperators.SET)
void SetInteractionMask(int mask)
void SetSettingDefaultValues(bool state)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
PPOperators
PP operators, specify operation between subsequent layers.
void PPERequestParamDataBool(int requester_idx, int mat_id, int param_id, int data_type=0, int priority=0, int mask=PPOperators.SET, bool relative=false)
class PPERequestParamDataBase m_BoolTarget
bool m_BoolCurrent
class PPERequestParamDataInt extends PPERequestParamDataBase m_FloatTarget
vector m_VectorCurrent
bool m_BoolLast
float m_FloatCurrent
class PPERequestParamDataColor extends PPERequestParamDataBase m_VectorTarget
vector m_VectorLast
void PPERequestParamDataFloat(int requester_idx, int mat_id, int param_id, int data_type=0, int priority=0, int mask=PPOperators.SET, bool relative=false)
float m_FloatFormerTarget
float m_FloatLast
float m_FloatStart