DayZ 1.24
Loading...
Searching...
No Matches
param.c
Go to the documentation of this file.
1
7//-----------------------------------------------------------------------------
12{
14 {
15 return false;
16 }
17
19 {
20 return false;
21 }
22};
23
32class Param1<Class T1> extends Param
33{
35
36 void Param1(T1 p1)
37 {
38 param1 = p1;
39 }
40
41 override bool Serialize(Serializer ctx)
42 {
43 return ctx.Write(param1);
44 }
45
46 override bool Deserializer(Serializer ctx)
47 {
48 return ctx.Read(param1);
49 }
50};
51
59class Param2<Class T1, Class T2> extends Param
60{
61 T1 param1;
63
64 void Param2(T1 p1, T2 p2)
65 {
66 param1 = p1;
67 param2 = p2;
68 }
69
70 override bool Serialize(Serializer ctx)
71 {
72 return ctx.Write(param1) && ctx.Write(param2);
73 }
74
75 override bool Deserializer(Serializer ctx)
76 {
77 return ctx.Read(param1) && ctx.Read(param2);
78 }
79};
80
88class Param3<Class T1, Class T2, Class T3> extends Param
89{
90 T1 param1;
91 T2 param2;
93
94 void Param3(T1 p1, T2 p2, T3 p3)
95 {
96 param1 = p1;
97 param2 = p2;
98 param3 = p3;
99 }
100
101 override bool Serialize(Serializer ctx)
102 {
103 return ctx.Write(param1) && ctx.Write(param2) && ctx.Write(param3);
104 }
105
106 override bool Deserializer(Serializer ctx)
107 {
108 return ctx.Read(param1) && ctx.Read(param2) && ctx.Read(param3);
109 }
110};
111
119class Param4<Class T1, Class T2, Class T3, Class T4> extends Param
120{
121 T1 param1;
122 T2 param2;
123 T3 param3;
125
126 void Param4(T1 p1, T2 p2, T3 p3, T4 p4)
127 {
128 param1 = p1;
129 param2 = p2;
130 param3 = p3;
131 param4 = p4;
132 }
133
134 override bool Serialize(Serializer ctx)
135 {
136 return ctx.Write(param1) && ctx.Write(param2) && ctx.Write(param3) && ctx.Write(param4);
137 }
138
139 override bool Deserializer(Serializer ctx)
140 {
141 return ctx.Read(param1) && ctx.Read(param2) && ctx.Read(param3) && ctx.Read(param4);
142 }
143};
144
148class Param5<Class T1, Class T2, Class T3, Class T4, Class T5> extends Param
149{
150 T1 param1;
151 T2 param2;
152 T3 param3;
153 T4 param4;
155
156 void Param5(T1 p1, T2 p2, T3 p3, T4 p4, T5 p5)
157 {
158 param1 = p1;
159 param2 = p2;
160 param3 = p3;
161 param4 = p4;
162 param5 = p5;
163 }
164
165 override bool Serialize(Serializer ctx)
166 {
167 return ctx.Write(param1) && ctx.Write(param2) && ctx.Write(param3) && ctx.Write(param4) && ctx.Write(param5);
168 }
169
170 override bool Deserializer(Serializer ctx)
171 {
172 return ctx.Read(param1) && ctx.Read(param2) && ctx.Read(param3) && ctx.Read(param4) && ctx.Read(param5);
173 }
174};
175
179class Param6<Class T1, Class T2, Class T3, Class T4, Class T5, Class T6> extends Param
180{
181 T1 param1;
182 T2 param2;
183 T3 param3;
184 T4 param4;
185 T5 param5;
187
188 void Param6(T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6)
189 {
190 param1 = p1;
191 param2 = p2;
192 param3 = p3;
193 param4 = p4;
194 param5 = p5;
195 param6 = p6;
196 }
197
198 override bool Serialize(Serializer ctx)
199 {
200 return ctx.Write(param1) && ctx.Write(param2) && ctx.Write(param3) && ctx.Write(param4) && ctx.Write(param5) && ctx.Write(param6);
201 }
202
203 override bool Deserializer(Serializer ctx)
204 {
205 return ctx.Read(param1) && ctx.Read(param2) && ctx.Read(param3) && ctx.Read(param4) && ctx.Read(param5) && ctx.Read(param6);
206 }
207};
208
212class Param7<Class T1, Class T2, Class T3, Class T4, Class T5, Class T6, Class T7>: Param
213{
221
222 void Param7(T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7)
223 {
224 param1 = p1;
225 param2 = p2;
226 param3 = p3;
227 param4 = p4;
228 param5 = p5;
229 param6 = p6;
230 param7 = p7;
231 }
232
233 override bool Serialize(Serializer ctx)
234 {
235 return ctx.Write(param1) && ctx.Write(param2) && ctx.Write(param3) && ctx.Write(param4) && ctx.Write(param5) && ctx.Write(param6) && ctx.Write(param7);
236 }
237
238 override bool Deserializer(Serializer ctx)
239 {
240 return ctx.Read(param1) && ctx.Read(param2) && ctx.Read(param3) && ctx.Read(param4) && ctx.Read(param5) && ctx.Read(param6) && ctx.Read(param7);
241 }
242};
246class Param8<Class T1, Class T2, Class T3, Class T4, Class T5, Class T6, Class T7, Class T8>: Param
247{
256
257 void Param8(T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8)
258 {
259 param1 = p1;
260 param2 = p2;
261 param3 = p3;
262 param4 = p4;
263 param5 = p5;
264 param6 = p6;
265 param7 = p7;
266 param8 = p8;
267 }
268
269 override bool Serialize(Serializer ctx)
270 {
271 return ctx.Write(param1) && ctx.Write(param2) && ctx.Write(param3) && ctx.Write(param4) && ctx.Write(param5) && ctx.Write(param6) && ctx.Write(param7) && ctx.Write(param8);
272 }
273
274 override bool Deserializer(Serializer ctx)
275 {
276 return ctx.Read(param1) && ctx.Read(param2) && ctx.Read(param3) && ctx.Read(param4) && ctx.Read(param5) && ctx.Read(param6) && ctx.Read(param7) && ctx.Read(param8);
277 }
278};
282class Param9<Class T1, Class T2, Class T3, Class T4, Class T5, Class T6, Class T7, Class T8, Class T9>: Param
283{
293
294 void Param9(T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8, T9 p9)
295 {
296 param1 = p1;
297 param2 = p2;
298 param3 = p3;
299 param4 = p4;
300 param5 = p5;
301 param6 = p6;
302 param7 = p7;
303 param8 = p8;
304 param9 = p9;
305 }
306
307 override bool Serialize(Serializer ctx)
308 {
309 return ctx.Write(param1) && ctx.Write(param2) && ctx.Write(param3) && ctx.Write(param4) && ctx.Write(param5) && ctx.Write(param6) && ctx.Write(param7) && ctx.Write(param8) && ctx.Write(param9);
310 }
311
312 override bool Deserializer(Serializer ctx)
313 {
314 return ctx.Read(param1) && ctx.Read(param2) && ctx.Read(param3) && ctx.Read(param4) && ctx.Read(param5) && ctx.Read(param6) && ctx.Read(param7) && ctx.Read(param8) && ctx.Read(param9);
315 }
316};
320class Param10<Class T1, Class T2, Class T3, Class T4, Class T5, Class T6, Class T7, Class T8, Class T9, Class T10>: Param
321{
332
333 void Param10(T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8, T9 p9, T10 p10)
334 {
335 param1 = p1;
336 param2 = p2;
337 param3 = p3;
338 param4 = p4;
339 param5 = p5;
340 param6 = p6;
341 param7 = p7;
342 param8 = p8;
343 param9 = p9;
344 param10 = p10;
345 }
346
347 override bool Serialize(Serializer ctx)
348 {
349 return ctx.Write(param1) && ctx.Write(param2) && ctx.Write(param3) && ctx.Write(param4) && ctx.Write(param5) && ctx.Write(param6) && ctx.Write(param7) && ctx.Write(param8) && ctx.Write(param9) && ctx.Write(param10);
350 }
351
352 override bool Deserializer(Serializer ctx)
353 {
354 return ctx.Read(param1) && ctx.Read(param2) && ctx.Read(param3) && ctx.Read(param4) && ctx.Read(param5) && ctx.Read(param6) && ctx.Read(param7) && ctx.Read(param8) && ctx.Read(param9) && ctx.Read(param10);
355 }
356};
357
Super root of all classes in Enforce script.
Definition EnScript.c:11
TODO doc.
Definition EnScript.c:118
void Param10(T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8, T9 p9, T10 p10)
Definition param.c:333
void Param7(T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7)
Definition param.c:222
void Param8(T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8)
Definition param.c:257
void Param9(T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8, T9 p9)
Definition param.c:294
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Definition param.c:12
T1 param1
Definition param.c:34
void Param2(T1 p1, T2 p2)
Definition param.c:64
T4 param4
Definition param.c:124
bool Deserializer(Serializer ctx)
Definition param.c:18
void Param5(T1 p1, T2 p2, T3 p3, T4 p4, T5 p5)
Definition param.c:156
void Param1(T1 p1)
Definition param.c:36
override bool Serialize(Serializer ctx)
Definition param.c:41
override bool Deserializer(Serializer ctx)
Definition param.c:46
T3 param3
Definition param.c:92
T6 param6
Definition param.c:186
void Param4(T1 p1, T2 p2, T3 p3, T4 p4)
Definition param.c:126
void Param6(T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6)
Definition param.c:188
bool Serialize(Serializer ctx)
Definition param.c:13
T2 param2
Definition param.c:62
T5 param5
Definition param.c:154
void Param3(T1 p1, T2 p2, T3 p3)
Definition param.c:94
Serialization general interface. Serializer API works with:
Definition Serializer.c:56
proto bool Write(void value_out)
proto bool Read(void value_in)