DayZ 1.24
Loading...
Searching...
No Matches
PPERequestData.c
Go to the documentation of this file.
1
3{
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
29
31 {
32 }
33
38
40 {
42 }
43
45 {
47 }
48
50 {
51 return m_IsActive;
52 }
53
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
85 {
87 }
88
90 {
91 return m_InteractionMask;
92 }
93
95 {
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{
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;
153 m_FloatStart = float.LOWEST;
154 }
155}
156
157class PPERequestParamDataColor extends PPERequestParamDataBase
158{
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
183{
187}
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
Data for one material parameter, requester side.
void SetPriorityLayer(int priority)
override void InitValues()
void SetDataActive(bool state)
void SetUpdatingDataValues(bool state)
ref array< float > m_ColorStart
PPERequesterBase m_Requester
void PPERequestParamDataBase(int requester_idx, int mat_id, int param_id, int data_type=0, int priority=0, int mask=PPOperators.SET)
ref array< float > m_ColorCurrent
void SetInteractionMask(int mask)
ref array< float > m_ColorTarget
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)
void SetSettingDefaultValues(bool state)
ref array< float > m_ColorFormerTarget
ref array< float > m_ColorLast
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)
const float LOWEST
Definition EnConvert.c:100