BadScript 2
Loading...
Searching...
No Matches
BadDynamicFunctionExtensions_FuncNoContext.cs
Go to the documentation of this file.
3
5
6public static partial class BadDynamicFunctionExtensions
7{
15 public static void SetFunction(this BadObject elem,
16 string propName,
17 Func<BadObject> func,
18 BadClassPrototype returnType)
19 {
20 elem.SetFunction(propName, _ => func(), returnType);
21 }
22
31 public static void SetFunction<T>(this BadObject elem,
32 string propName,
33 Func<T, BadObject> func,
34 BadClassPrototype returnType)
35 {
36 elem.SetFunction<T>(propName, (_, t) => func(t), returnType);
37 }
38
48 public static void SetFunction<T1, T2>(this BadObject elem,
49 string propName,
50 Func<T1, T2, BadObject> func,
51 BadClassPrototype returnType)
52 {
53 elem.SetFunction<T1, T2>(propName, (_, t1, t2) => func(t1, t2), returnType);
54 }
55
66 public static void SetFunction<T1, T2, T3>(this BadObject elem,
67 string propName,
68 Func<T1, T2, T3, BadObject> func,
69 BadClassPrototype returnType)
70 {
71 elem.SetFunction<T1, T2, T3>(propName, (_, t1, t2, t3) => func(t1, t2, t3), returnType);
72 }
73
85 public static void SetFunction<T1, T2, T3, T4>(this BadObject elem,
86 string propName,
87 Func<T1, T2, T3, T4, BadObject> func,
88 BadClassPrototype returnType)
89 {
90 elem.SetFunction<T1, T2, T3, T4>(propName, (_, t1, t2, t3, t4) => func(t1, t2, t3, t4), returnType);
91 }
92
105 public static void SetFunction<T1, T2, T3, T4, T5>(this BadObject elem,
106 string propName,
107 Func<T1, T2, T3, T4, T5, BadObject> func,
108 BadClassPrototype returnType)
109 {
110 elem.SetFunction<T1, T2, T3, T4, T5>(propName,
111 (_,
112 t1,
113 t2,
114 t3,
115 t4,
116 t5) => func(t1, t2, t3, t4, t5),
117 returnType
118 );
119 }
120
134 public static void SetFunction<T1, T2, T3, T4, T5, T6>(this BadObject elem,
135 string propName,
136 Func<T1, T2, T3, T4, T5, T6, BadObject> func,
137 BadClassPrototype returnType)
138 {
139 elem.SetFunction<T1, T2, T3, T4, T5, T6>(propName,
140 (_,
141 t1,
142 t2,
143 t3,
144 t4,
145 t5,
146 t6) => func(t1, t2, t3, t4, t5, t6),
147 returnType
148 );
149 }
150
166 string propName,
167 Func<T1, T2, T3, T4, T5, T6, T7, BadObject> func,
168 BadClassPrototype returnType)
169 {
170 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7>(propName,
171 (_,
172 t1,
173 t2,
174 t3,
175 t4,
176 t5,
177 t6,
178 t7) => func(t1, t2, t3, t4, t5, t6, t7),
179 returnType
180 );
181 }
182
199 string propName,
200 Func<T1, T2, T3, T4, T5, T6, T7, T8, BadObject> func,
201 BadClassPrototype returnType)
202 {
203 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8>(propName,
204 (_,
205 t1,
206 t2,
207 t3,
208 t4,
209 t5,
210 t6,
211 t7,
212 t8) => func(t1, t2, t3, t4, t5, t6, t7, t8),
213 returnType
214 );
215 }
216
234 string propName,
235 Func<T1, T2, T3, T4, T5, T6, T7, T8, T9,
236 BadObject> func,
237 BadClassPrototype returnType)
238 {
239 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9>(propName,
240 (_,
241 t1,
242 t2,
243 t3,
244 t4,
245 t5,
246 t6,
247 t7,
248 t8,
249 t9) => func(t1, t2, t3, t4, t5, t6, t7, t8, t9),
250 returnType
251 );
252 }
253
272 string propName,
273 Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10
274 , BadObject> func,
275 BadClassPrototype returnType)
276 {
277 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(propName,
278 (_,
279 t1,
280 t2,
281 t3,
282 t4,
283 t5,
284 t6,
285 t7,
286 t8,
287 t9,
288 t10) => func(t1,
289 t2,
290 t3,
291 t4,
292 t5,
293 t6,
294 t7,
295 t8,
296 t9,
297 t10
298 ),
299 returnType
300 );
301 }
302
322 string propName,
323 Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, BadObject> func,
324 BadClassPrototype returnType)
325 {
326 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(propName,
327 (_,
328 t1,
329 t2,
330 t3,
331 t4,
332 t5,
333 t6,
334 t7,
335 t8,
336 t9,
337 t10,
338 t11) => func(t1,
339 t2,
340 t3,
341 t4,
342 t5,
343 t6,
344 t7,
345 t8,
346 t9,
347 t10,
348 t11
349 ),
350 returnType
351 );
352 }
353
374 string propName,
375 Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, BadObject> func,
376 BadClassPrototype returnType)
377 {
378 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(propName,
379 (_,
380 t1,
381 t2,
382 t3,
383 t4,
384 t5,
385 t6,
386 t7,
387 t8,
388 t9,
389 t10,
390 t11,
391 t12) => func(t1,
392 t2,
393 t3,
394 t4,
395 t5,
396 t6,
397 t7,
398 t8,
399 t9,
400 t10,
401 t11,
402 t12
403 ),
404 returnType
405 );
406 }
407
429 string propName,
430 Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, BadObject> func,
431 BadClassPrototype returnType)
432 {
433 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(propName,
434 (_,
435 t1,
436 t2,
437 t3,
438 t4,
439 t5,
440 t6,
441 t7,
442 t8,
443 t9,
444 t10,
445 t11,
446 t12,
447 t13) => func(t1,
448 t2,
449 t3,
450 t4,
451 t5,
452 t6,
453 t7,
454 t8,
455 t9,
456 t10,
457 t11,
458 t12,
459 t13
460 ),
461 returnType
462 );
463 }
464
487 string propName,
488 Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, BadObject> func,
489 BadClassPrototype returnType)
490 {
491 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(propName,
492 (_,
493 t1,
494 t2,
495 t3,
496 t4,
497 t5,
498 t6,
499 t7,
500 t8,
501 t9,
502 t10,
503 t11,
504 t12,
505 t13,
506 t14) => func(t1,
507 t2,
508 t3,
509 t4,
510 t5,
511 t6,
512 t7,
513 t8,
514 t9,
515 t10,
516 t11,
517 t12,
518 t13,
519 t14
520 ),
521 returnType
522 );
523 }
524
548 this BadObject elem,
549 string propName,
550 Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, BadObject> func,
551 BadClassPrototype returnType)
552 {
553 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(propName,
554 (_,
555 t1,
556 t2,
557 t3,
558 t4,
559 t5,
560 t6,
561 t7,
562 t8,
563 t9,
564 t10,
565 t11,
566 t12,
567 t13,
568 t14,
569 t15) => func(t1,
570 t2,
571 t3,
572 t4,
573 t5,
574 t6,
575 t7,
576 t8,
577 t9,
578 t10,
579 t11,
580 t12,
581 t13,
582 t14,
583 t15
584 ),
585 returnType
586 );
587 }
588}
static void SetFunction< T1, T2, T3, T4, T5, T6, T7, T8, T9, T10 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10 > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13 > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15 > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12 > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2, T3, T4, T5, T6, T7, T8, T9 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3, T4, T5, T6, T7, T8, T9 > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2, T3, T4 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3, T4 > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2 > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2, T3, T4, T5 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3, T4, T5 > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2, T3 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3 > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2, T3, T4, T5, T6, T7 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3, T4, T5, T6, T7 > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 > func)
Sets a Function on the given Object.
static void SetFunction(this BadObject elem, string propName, Func< BadObject > func, BadClassPrototype returnType)
Sets a Function on the given Object.
static void SetFunction< T >(this BadObject elem, string propName, Action< BadExecutionContext, T > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11 > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2, T3, T4, T5, T6 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3, T4, T5, T6 > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2, T3, T4, T5, T6, T7, T8 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3, T4, T5, T6, T7, T8 > func)
Sets a Function on the given Object.
The Base Class for all BadScript Objects.
Definition BadObject.cs:14
Implements a Class Prototype for the BadScript Language.
Contains the Extension Classes for Functions.
Contains the Runtime Objects.
Definition BadArray.cs:10