Mercurial > mm7
comparison Player_wrap.cxx @ 2067:2e08496c40c2
Слияние
author | Ritor1 |
---|---|
date | Tue, 03 Dec 2013 09:22:28 +0600 |
parents | b7485a6502f2 |
children |
comparison
equal
deleted
inserted
replaced
2066:f7e5b9f236ae | 2067:2e08496c40c2 |
---|---|
1 /* ---------------------------------------------------------------------------- | |
2 * This file was automatically generated by SWIG (http://www.swig.org). | |
3 * Version 2.0.11 | |
4 * | |
5 * This file is not intended to be easily readable and contains a number of | |
6 * coding conventions designed to improve portability and efficiency. Do not make | |
7 * changes to this file unless you know what you are doing--modify the SWIG | |
8 * interface file instead. | |
9 * ----------------------------------------------------------------------------- */ | |
10 | |
11 #define SWIGLUA | |
12 #define SWIG_LUA_TARGET SWIG_LUA_FLAVOR_LUA | |
13 #define SWIG_LUA_MODULE_GLOBAL | |
14 | |
15 | |
16 #ifdef __cplusplus | |
17 /* SwigValueWrapper is described in swig.swg */ | |
18 template<typename T> class SwigValueWrapper { | |
19 struct SwigMovePointer { | |
20 T *ptr; | |
21 SwigMovePointer(T *p) : ptr(p) { } | |
22 ~SwigMovePointer() { delete ptr; } | |
23 SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } | |
24 } pointer; | |
25 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
26 SwigValueWrapper(const SwigValueWrapper<T>& rhs); | |
27 public: | |
28 SwigValueWrapper() : pointer(0) { } | |
29 SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } | |
30 operator T&() const { return *pointer.ptr; } | |
31 T *operator&() { return pointer.ptr; } | |
32 }; | |
33 | |
34 template <typename T> T SwigValueInit() { | |
35 return T(); | |
36 } | |
37 #endif | |
38 | |
39 /* ----------------------------------------------------------------------------- | |
40 * This section contains generic SWIG labels for method/variable | |
41 * declarations/attributes, and other compiler dependent labels. | |
42 * ----------------------------------------------------------------------------- */ | |
43 | |
44 /* template workaround for compilers that cannot correctly implement the C++ standard */ | |
45 #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
46 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) | |
47 # define SWIGTEMPLATEDISAMBIGUATOR template | |
48 # elif defined(__HP_aCC) | |
49 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ | |
50 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ | |
51 # define SWIGTEMPLATEDISAMBIGUATOR template | |
52 # else | |
53 # define SWIGTEMPLATEDISAMBIGUATOR | |
54 # endif | |
55 #endif | |
56 | |
57 /* inline attribute */ | |
58 #ifndef SWIGINLINE | |
59 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
60 # define SWIGINLINE inline | |
61 # else | |
62 # define SWIGINLINE | |
63 # endif | |
64 #endif | |
65 | |
66 /* attribute recognised by some compilers to avoid 'unused' warnings */ | |
67 #ifndef SWIGUNUSED | |
68 # if defined(__GNUC__) | |
69 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) | |
70 # define SWIGUNUSED __attribute__ ((__unused__)) | |
71 # else | |
72 # define SWIGUNUSED | |
73 # endif | |
74 # elif defined(__ICC) | |
75 # define SWIGUNUSED __attribute__ ((__unused__)) | |
76 # else | |
77 # define SWIGUNUSED | |
78 # endif | |
79 #endif | |
80 | |
81 #ifndef SWIG_MSC_UNSUPPRESS_4505 | |
82 # if defined(_MSC_VER) | |
83 # pragma warning(disable : 4505) /* unreferenced local function has been removed */ | |
84 # endif | |
85 #endif | |
86 | |
87 #ifndef SWIGUNUSEDPARM | |
88 # ifdef __cplusplus | |
89 # define SWIGUNUSEDPARM(p) | |
90 # else | |
91 # define SWIGUNUSEDPARM(p) p SWIGUNUSED | |
92 # endif | |
93 #endif | |
94 | |
95 /* internal SWIG method */ | |
96 #ifndef SWIGINTERN | |
97 # define SWIGINTERN static SWIGUNUSED | |
98 #endif | |
99 | |
100 /* internal inline SWIG method */ | |
101 #ifndef SWIGINTERNINLINE | |
102 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
103 #endif | |
104 | |
105 /* exporting methods */ | |
106 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) | |
107 # ifndef GCC_HASCLASSVISIBILITY | |
108 # define GCC_HASCLASSVISIBILITY | |
109 # endif | |
110 #endif | |
111 | |
112 #ifndef SWIGEXPORT | |
113 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
114 # if defined(STATIC_LINKED) | |
115 # define SWIGEXPORT | |
116 # else | |
117 # define SWIGEXPORT __declspec(dllexport) | |
118 # endif | |
119 # else | |
120 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) | |
121 # define SWIGEXPORT __attribute__ ((visibility("default"))) | |
122 # else | |
123 # define SWIGEXPORT | |
124 # endif | |
125 # endif | |
126 #endif | |
127 | |
128 /* calling conventions for Windows */ | |
129 #ifndef SWIGSTDCALL | |
130 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
131 # define SWIGSTDCALL __stdcall | |
132 # else | |
133 # define SWIGSTDCALL | |
134 # endif | |
135 #endif | |
136 | |
137 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ | |
138 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) | |
139 # define _CRT_SECURE_NO_DEPRECATE | |
140 #endif | |
141 | |
142 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ | |
143 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) | |
144 # define _SCL_SECURE_NO_DEPRECATE | |
145 #endif | |
146 | |
147 | |
148 /* ----------------------------------------------------------------------------- | |
149 * swigrun.swg | |
150 * | |
151 * This file contains generic C API SWIG runtime support for pointer | |
152 * type checking. | |
153 * ----------------------------------------------------------------------------- */ | |
154 | |
155 /* This should only be incremented when either the layout of swig_type_info changes, | |
156 or for whatever reason, the runtime changes incompatibly */ | |
157 #define SWIG_RUNTIME_VERSION "4" | |
158 | |
159 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ | |
160 #ifdef SWIG_TYPE_TABLE | |
161 # define SWIG_QUOTE_STRING(x) #x | |
162 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
163 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
164 #else | |
165 # define SWIG_TYPE_TABLE_NAME | |
166 #endif | |
167 | |
168 /* | |
169 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
170 creating a static or dynamic library from the SWIG runtime code. | |
171 In 99.9% of the cases, SWIG just needs to declare them as 'static'. | |
172 | |
173 But only do this if strictly necessary, ie, if you have problems | |
174 with your compiler or suchlike. | |
175 */ | |
176 | |
177 #ifndef SWIGRUNTIME | |
178 # define SWIGRUNTIME SWIGINTERN | |
179 #endif | |
180 | |
181 #ifndef SWIGRUNTIMEINLINE | |
182 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE | |
183 #endif | |
184 | |
185 /* Generic buffer size */ | |
186 #ifndef SWIG_BUFFER_SIZE | |
187 # define SWIG_BUFFER_SIZE 1024 | |
188 #endif | |
189 | |
190 /* Flags for pointer conversions */ | |
191 #define SWIG_POINTER_DISOWN 0x1 | |
192 #define SWIG_CAST_NEW_MEMORY 0x2 | |
193 | |
194 /* Flags for new pointer objects */ | |
195 #define SWIG_POINTER_OWN 0x1 | |
196 | |
197 | |
198 /* | |
199 Flags/methods for returning states. | |
200 | |
201 The SWIG conversion methods, as ConvertPtr, return an integer | |
202 that tells if the conversion was successful or not. And if not, | |
203 an error code can be returned (see swigerrors.swg for the codes). | |
204 | |
205 Use the following macros/flags to set or process the returning | |
206 states. | |
207 | |
208 In old versions of SWIG, code such as the following was usually written: | |
209 | |
210 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { | |
211 // success code | |
212 } else { | |
213 //fail code | |
214 } | |
215 | |
216 Now you can be more explicit: | |
217 | |
218 int res = SWIG_ConvertPtr(obj,vptr,ty.flags); | |
219 if (SWIG_IsOK(res)) { | |
220 // success code | |
221 } else { | |
222 // fail code | |
223 } | |
224 | |
225 which is the same really, but now you can also do | |
226 | |
227 Type *ptr; | |
228 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); | |
229 if (SWIG_IsOK(res)) { | |
230 // success code | |
231 if (SWIG_IsNewObj(res) { | |
232 ... | |
233 delete *ptr; | |
234 } else { | |
235 ... | |
236 } | |
237 } else { | |
238 // fail code | |
239 } | |
240 | |
241 I.e., now SWIG_ConvertPtr can return new objects and you can | |
242 identify the case and take care of the deallocation. Of course that | |
243 also requires SWIG_ConvertPtr to return new result values, such as | |
244 | |
245 int SWIG_ConvertPtr(obj, ptr,...) { | |
246 if (<obj is ok>) { | |
247 if (<need new object>) { | |
248 *ptr = <ptr to new allocated object>; | |
249 return SWIG_NEWOBJ; | |
250 } else { | |
251 *ptr = <ptr to old object>; | |
252 return SWIG_OLDOBJ; | |
253 } | |
254 } else { | |
255 return SWIG_BADOBJ; | |
256 } | |
257 } | |
258 | |
259 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be | |
260 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the | |
261 SWIG errors code. | |
262 | |
263 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code | |
264 allows to return the 'cast rank', for example, if you have this | |
265 | |
266 int food(double) | |
267 int fooi(int); | |
268 | |
269 and you call | |
270 | |
271 food(1) // cast rank '1' (1 -> 1.0) | |
272 fooi(1) // cast rank '0' | |
273 | |
274 just use the SWIG_AddCast()/SWIG_CheckState() | |
275 */ | |
276 | |
277 #define SWIG_OK (0) | |
278 #define SWIG_ERROR (-1) | |
279 #define SWIG_IsOK(r) (r >= 0) | |
280 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) | |
281 | |
282 /* The CastRankLimit says how many bits are used for the cast rank */ | |
283 #define SWIG_CASTRANKLIMIT (1 << 8) | |
284 /* The NewMask denotes the object was created (using new/malloc) */ | |
285 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) | |
286 /* The TmpMask is for in/out typemaps that use temporal objects */ | |
287 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) | |
288 /* Simple returning values */ | |
289 #define SWIG_BADOBJ (SWIG_ERROR) | |
290 #define SWIG_OLDOBJ (SWIG_OK) | |
291 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) | |
292 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) | |
293 /* Check, add and del mask methods */ | |
294 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) | |
295 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) | |
296 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) | |
297 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) | |
298 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) | |
299 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) | |
300 | |
301 /* Cast-Rank Mode */ | |
302 #if defined(SWIG_CASTRANK_MODE) | |
303 # ifndef SWIG_TypeRank | |
304 # define SWIG_TypeRank unsigned long | |
305 # endif | |
306 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ | |
307 # define SWIG_MAXCASTRANK (2) | |
308 # endif | |
309 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) | |
310 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) | |
311 SWIGINTERNINLINE int SWIG_AddCast(int r) { | |
312 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; | |
313 } | |
314 SWIGINTERNINLINE int SWIG_CheckState(int r) { | |
315 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; | |
316 } | |
317 #else /* no cast-rank mode */ | |
318 # define SWIG_AddCast(r) (r) | |
319 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) | |
320 #endif | |
321 | |
322 | |
323 #include <string.h> | |
324 | |
325 #ifdef __cplusplus | |
326 extern "C" { | |
327 #endif | |
328 | |
329 typedef void *(*swig_converter_func)(void *, int *); | |
330 typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
331 | |
332 /* Structure to store information on one type */ | |
333 typedef struct swig_type_info { | |
334 const char *name; /* mangled name of this type */ | |
335 const char *str; /* human readable name of this type */ | |
336 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ | |
337 struct swig_cast_info *cast; /* linked list of types that can cast into this type */ | |
338 void *clientdata; /* language specific type data */ | |
339 int owndata; /* flag if the structure owns the clientdata */ | |
340 } swig_type_info; | |
341 | |
342 /* Structure to store a type and conversion function used for casting */ | |
343 typedef struct swig_cast_info { | |
344 swig_type_info *type; /* pointer to type that is equivalent to this type */ | |
345 swig_converter_func converter; /* function to cast the void pointers */ | |
346 struct swig_cast_info *next; /* pointer to next cast in linked list */ | |
347 struct swig_cast_info *prev; /* pointer to the previous cast */ | |
348 } swig_cast_info; | |
349 | |
350 /* Structure used to store module information | |
351 * Each module generates one structure like this, and the runtime collects | |
352 * all of these structures and stores them in a circularly linked list.*/ | |
353 typedef struct swig_module_info { | |
354 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ | |
355 size_t size; /* Number of types in this module */ | |
356 struct swig_module_info *next; /* Pointer to next element in circularly linked list */ | |
357 swig_type_info **type_initial; /* Array of initially generated type structures */ | |
358 swig_cast_info **cast_initial; /* Array of initially generated casting structures */ | |
359 void *clientdata; /* Language specific module data */ | |
360 } swig_module_info; | |
361 | |
362 /* | |
363 Compare two type names skipping the space characters, therefore | |
364 "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
365 | |
366 Return 0 when the two name types are equivalent, as in | |
367 strncmp, but skipping ' '. | |
368 */ | |
369 SWIGRUNTIME int | |
370 SWIG_TypeNameComp(const char *f1, const char *l1, | |
371 const char *f2, const char *l2) { | |
372 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
373 while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
374 while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
375 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; | |
376 } | |
377 return (int)((l1 - f1) - (l2 - f2)); | |
378 } | |
379 | |
380 /* | |
381 Check type equivalence in a name list like <name1>|<name2>|... | |
382 Return 0 if equal, -1 if nb < tb, 1 if nb > tb | |
383 */ | |
384 SWIGRUNTIME int | |
385 SWIG_TypeCmp(const char *nb, const char *tb) { | |
386 int equiv = 1; | |
387 const char* te = tb + strlen(tb); | |
388 const char* ne = nb; | |
389 while (equiv != 0 && *ne) { | |
390 for (nb = ne; *ne; ++ne) { | |
391 if (*ne == '|') break; | |
392 } | |
393 equiv = SWIG_TypeNameComp(nb, ne, tb, te); | |
394 if (*ne) ++ne; | |
395 } | |
396 return equiv; | |
397 } | |
398 | |
399 /* | |
400 Check type equivalence in a name list like <name1>|<name2>|... | |
401 Return 0 if not equal, 1 if equal | |
402 */ | |
403 SWIGRUNTIME int | |
404 SWIG_TypeEquiv(const char *nb, const char *tb) { | |
405 return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; | |
406 } | |
407 | |
408 /* | |
409 Check the typename | |
410 */ | |
411 SWIGRUNTIME swig_cast_info * | |
412 SWIG_TypeCheck(const char *c, swig_type_info *ty) { | |
413 if (ty) { | |
414 swig_cast_info *iter = ty->cast; | |
415 while (iter) { | |
416 if (strcmp(iter->type->name, c) == 0) { | |
417 if (iter == ty->cast) | |
418 return iter; | |
419 /* Move iter to the top of the linked list */ | |
420 iter->prev->next = iter->next; | |
421 if (iter->next) | |
422 iter->next->prev = iter->prev; | |
423 iter->next = ty->cast; | |
424 iter->prev = 0; | |
425 if (ty->cast) ty->cast->prev = iter; | |
426 ty->cast = iter; | |
427 return iter; | |
428 } | |
429 iter = iter->next; | |
430 } | |
431 } | |
432 return 0; | |
433 } | |
434 | |
435 /* | |
436 Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison | |
437 */ | |
438 SWIGRUNTIME swig_cast_info * | |
439 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { | |
440 if (ty) { | |
441 swig_cast_info *iter = ty->cast; | |
442 while (iter) { | |
443 if (iter->type == from) { | |
444 if (iter == ty->cast) | |
445 return iter; | |
446 /* Move iter to the top of the linked list */ | |
447 iter->prev->next = iter->next; | |
448 if (iter->next) | |
449 iter->next->prev = iter->prev; | |
450 iter->next = ty->cast; | |
451 iter->prev = 0; | |
452 if (ty->cast) ty->cast->prev = iter; | |
453 ty->cast = iter; | |
454 return iter; | |
455 } | |
456 iter = iter->next; | |
457 } | |
458 } | |
459 return 0; | |
460 } | |
461 | |
462 /* | |
463 Cast a pointer up an inheritance hierarchy | |
464 */ | |
465 SWIGRUNTIMEINLINE void * | |
466 SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { | |
467 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); | |
468 } | |
469 | |
470 /* | |
471 Dynamic pointer casting. Down an inheritance hierarchy | |
472 */ | |
473 SWIGRUNTIME swig_type_info * | |
474 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
475 swig_type_info *lastty = ty; | |
476 if (!ty || !ty->dcast) return ty; | |
477 while (ty && (ty->dcast)) { | |
478 ty = (*ty->dcast)(ptr); | |
479 if (ty) lastty = ty; | |
480 } | |
481 return lastty; | |
482 } | |
483 | |
484 /* | |
485 Return the name associated with this type | |
486 */ | |
487 SWIGRUNTIMEINLINE const char * | |
488 SWIG_TypeName(const swig_type_info *ty) { | |
489 return ty->name; | |
490 } | |
491 | |
492 /* | |
493 Return the pretty name associated with this type, | |
494 that is an unmangled type name in a form presentable to the user. | |
495 */ | |
496 SWIGRUNTIME const char * | |
497 SWIG_TypePrettyName(const swig_type_info *type) { | |
498 /* The "str" field contains the equivalent pretty names of the | |
499 type, separated by vertical-bar characters. We choose | |
500 to print the last name, as it is often (?) the most | |
501 specific. */ | |
502 if (!type) return NULL; | |
503 if (type->str != NULL) { | |
504 const char *last_name = type->str; | |
505 const char *s; | |
506 for (s = type->str; *s; s++) | |
507 if (*s == '|') last_name = s+1; | |
508 return last_name; | |
509 } | |
510 else | |
511 return type->name; | |
512 } | |
513 | |
514 /* | |
515 Set the clientdata field for a type | |
516 */ | |
517 SWIGRUNTIME void | |
518 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { | |
519 swig_cast_info *cast = ti->cast; | |
520 /* if (ti->clientdata == clientdata) return; */ | |
521 ti->clientdata = clientdata; | |
522 | |
523 while (cast) { | |
524 if (!cast->converter) { | |
525 swig_type_info *tc = cast->type; | |
526 if (!tc->clientdata) { | |
527 SWIG_TypeClientData(tc, clientdata); | |
528 } | |
529 } | |
530 cast = cast->next; | |
531 } | |
532 } | |
533 SWIGRUNTIME void | |
534 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { | |
535 SWIG_TypeClientData(ti, clientdata); | |
536 ti->owndata = 1; | |
537 } | |
538 | |
539 /* | |
540 Search for a swig_type_info structure only by mangled name | |
541 Search is a O(log #types) | |
542 | |
543 We start searching at module start, and finish searching when start == end. | |
544 Note: if start == end at the beginning of the function, we go all the way around | |
545 the circular list. | |
546 */ | |
547 SWIGRUNTIME swig_type_info * | |
548 SWIG_MangledTypeQueryModule(swig_module_info *start, | |
549 swig_module_info *end, | |
550 const char *name) { | |
551 swig_module_info *iter = start; | |
552 do { | |
553 if (iter->size) { | |
554 register size_t l = 0; | |
555 register size_t r = iter->size - 1; | |
556 do { | |
557 /* since l+r >= 0, we can (>> 1) instead (/ 2) */ | |
558 register size_t i = (l + r) >> 1; | |
559 const char *iname = iter->types[i]->name; | |
560 if (iname) { | |
561 register int compare = strcmp(name, iname); | |
562 if (compare == 0) { | |
563 return iter->types[i]; | |
564 } else if (compare < 0) { | |
565 if (i) { | |
566 r = i - 1; | |
567 } else { | |
568 break; | |
569 } | |
570 } else if (compare > 0) { | |
571 l = i + 1; | |
572 } | |
573 } else { | |
574 break; /* should never happen */ | |
575 } | |
576 } while (l <= r); | |
577 } | |
578 iter = iter->next; | |
579 } while (iter != end); | |
580 return 0; | |
581 } | |
582 | |
583 /* | |
584 Search for a swig_type_info structure for either a mangled name or a human readable name. | |
585 It first searches the mangled names of the types, which is a O(log #types) | |
586 If a type is not found it then searches the human readable names, which is O(#types). | |
587 | |
588 We start searching at module start, and finish searching when start == end. | |
589 Note: if start == end at the beginning of the function, we go all the way around | |
590 the circular list. | |
591 */ | |
592 SWIGRUNTIME swig_type_info * | |
593 SWIG_TypeQueryModule(swig_module_info *start, | |
594 swig_module_info *end, | |
595 const char *name) { | |
596 /* STEP 1: Search the name field using binary search */ | |
597 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); | |
598 if (ret) { | |
599 return ret; | |
600 } else { | |
601 /* STEP 2: If the type hasn't been found, do a complete search | |
602 of the str field (the human readable name) */ | |
603 swig_module_info *iter = start; | |
604 do { | |
605 register size_t i = 0; | |
606 for (; i < iter->size; ++i) { | |
607 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) | |
608 return iter->types[i]; | |
609 } | |
610 iter = iter->next; | |
611 } while (iter != end); | |
612 } | |
613 | |
614 /* neither found a match */ | |
615 return 0; | |
616 } | |
617 | |
618 /* | |
619 Pack binary data into a string | |
620 */ | |
621 SWIGRUNTIME char * | |
622 SWIG_PackData(char *c, void *ptr, size_t sz) { | |
623 static const char hex[17] = "0123456789abcdef"; | |
624 register const unsigned char *u = (unsigned char *) ptr; | |
625 register const unsigned char *eu = u + sz; | |
626 for (; u != eu; ++u) { | |
627 register unsigned char uu = *u; | |
628 *(c++) = hex[(uu & 0xf0) >> 4]; | |
629 *(c++) = hex[uu & 0xf]; | |
630 } | |
631 return c; | |
632 } | |
633 | |
634 /* | |
635 Unpack binary data from a string | |
636 */ | |
637 SWIGRUNTIME const char * | |
638 SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
639 register unsigned char *u = (unsigned char *) ptr; | |
640 register const unsigned char *eu = u + sz; | |
641 for (; u != eu; ++u) { | |
642 register char d = *(c++); | |
643 register unsigned char uu; | |
644 if ((d >= '0') && (d <= '9')) | |
645 uu = ((d - '0') << 4); | |
646 else if ((d >= 'a') && (d <= 'f')) | |
647 uu = ((d - ('a'-10)) << 4); | |
648 else | |
649 return (char *) 0; | |
650 d = *(c++); | |
651 if ((d >= '0') && (d <= '9')) | |
652 uu |= (d - '0'); | |
653 else if ((d >= 'a') && (d <= 'f')) | |
654 uu |= (d - ('a'-10)); | |
655 else | |
656 return (char *) 0; | |
657 *u = uu; | |
658 } | |
659 return c; | |
660 } | |
661 | |
662 /* | |
663 Pack 'void *' into a string buffer. | |
664 */ | |
665 SWIGRUNTIME char * | |
666 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
667 char *r = buff; | |
668 if ((2*sizeof(void *) + 2) > bsz) return 0; | |
669 *(r++) = '_'; | |
670 r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
671 if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
672 strcpy(r,name); | |
673 return buff; | |
674 } | |
675 | |
676 SWIGRUNTIME const char * | |
677 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
678 if (*c != '_') { | |
679 if (strcmp(c,"NULL") == 0) { | |
680 *ptr = (void *) 0; | |
681 return name; | |
682 } else { | |
683 return 0; | |
684 } | |
685 } | |
686 return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
687 } | |
688 | |
689 SWIGRUNTIME char * | |
690 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
691 char *r = buff; | |
692 size_t lname = (name ? strlen(name) : 0); | |
693 if ((2*sz + 2 + lname) > bsz) return 0; | |
694 *(r++) = '_'; | |
695 r = SWIG_PackData(r,ptr,sz); | |
696 if (lname) { | |
697 strncpy(r,name,lname+1); | |
698 } else { | |
699 *r = 0; | |
700 } | |
701 return buff; | |
702 } | |
703 | |
704 SWIGRUNTIME const char * | |
705 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
706 if (*c != '_') { | |
707 if (strcmp(c,"NULL") == 0) { | |
708 memset(ptr,0,sz); | |
709 return name; | |
710 } else { | |
711 return 0; | |
712 } | |
713 } | |
714 return SWIG_UnpackData(++c,ptr,sz); | |
715 } | |
716 | |
717 #ifdef __cplusplus | |
718 } | |
719 #endif | |
720 | |
721 /* ----------------------------------------------------------------------------- | |
722 * luarun.swg | |
723 * | |
724 * This file contains the runtime support for Lua modules | |
725 * and includes code for managing global variables and pointer | |
726 * type checking. | |
727 * ----------------------------------------------------------------------------- */ | |
728 | |
729 #include "lib/lua/lua.h" | |
730 #ifdef __cplusplus | |
731 extern "C" { | |
732 #endif | |
733 | |
734 //#include "lua.h" | |
735 //#include "lauxlib.h" | |
736 #include <stdlib.h> /* for malloc */ | |
737 #include <assert.h> /* for a few sanity tests */ | |
738 | |
739 /* ----------------------------------------------------------------------------- | |
740 * Lua flavors | |
741 * ----------------------------------------------------------------------------- */ | |
742 | |
743 #define SWIG_LUA_FLAVOR_LUA 1 | |
744 #define SWIG_LUA_FLAVOR_ELUA 2 | |
745 #define SWIG_LUA_FLAVOR_ELUAC 3 | |
746 | |
747 #if !defined(SWIG_LUA_TARGET) | |
748 # error SWIG_LUA_TARGET not defined | |
749 #endif | |
750 | |
751 #if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) | |
752 # define SWIG_LUA_CONSTTAB_INT(B, C) LSTRKEY(B), LNUMVAL(C) | |
753 # define SWIG_LUA_CONSTTAB_FLOAT(B, C) LSTRKEY(B), LNUMVAL(C) | |
754 # define SWIG_LUA_CONSTTAB_STRING(B, C) LSTRKEY(B), LSTRVAL(C) | |
755 # define SWIG_LUA_CONSTTAB_CHAR(B, C) LSTRKEY(B), LNUMVAL(C) | |
756 #else /* SWIG_LUA_FLAVOR_LUA */ | |
757 # define SWIG_LUA_CONSTTAB_INT(B, C) SWIG_LUA_INT, (char *)B, (long)C, 0, 0, 0 | |
758 # define SWIG_LUA_CONSTTAB_FLOAT(B, C) SWIG_LUA_FLOAT, (char *)B, 0, (double)C, 0, 0 | |
759 # define SWIG_LUA_CONSTTAB_STRING(B, C) SWIG_LUA_STRING, (char *)B, 0, 0, (void *)C, 0 | |
760 # define SWIG_LUA_CONSTTAB_CHAR(B, C) SWIG_LUA_CHAR, (char *)B, (long)C, 0, 0, 0 | |
761 #endif | |
762 | |
763 #if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) | |
764 # define LRO_STRVAL(v) {{.p = (char *) v}, LUA_TSTRING} | |
765 # define LSTRVAL LRO_STRVAL | |
766 #endif | |
767 | |
768 /* ----------------------------------------------------------------------------- | |
769 * compatibility defines | |
770 * ----------------------------------------------------------------------------- */ | |
771 | |
772 /* History of Lua C API length functions: In Lua 5.0 (and before?) | |
773 there was "lua_strlen". In Lua 5.1, this was renamed "lua_objlen", | |
774 but a compatibility define of "lua_strlen" was added. In Lua 5.2, | |
775 this function was again renamed, to "lua_rawlen" (to emphasize that | |
776 it doesn't call the "__len" metamethod), and the compatibility | |
777 define of lua_strlen was removed. All SWIG uses have been updated | |
778 to "lua_rawlen", and we add our own defines of that here for older | |
779 versions of Lua. */ | |
780 #if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 501 | |
781 # define lua_rawlen lua_strlen | |
782 #elif LUA_VERSION_NUM == 501 | |
783 # define lua_rawlen lua_objlen | |
784 #endif | |
785 | |
786 | |
787 /* lua_pushglobaltable is the recommended "future-proof" way to get | |
788 the global table for Lua 5.2 and later. Here we define | |
789 lua_pushglobaltable ourselves for Lua versions before 5.2. */ | |
790 #if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502 | |
791 # define lua_pushglobaltable(L) lua_pushvalue(L, LUA_GLOBALSINDEX) | |
792 #endif | |
793 | |
794 | |
795 /* -------------------------------------------------------------------------- | |
796 * Helper functions for error handling | |
797 * -------------------------------------------------------------------------- */ | |
798 | |
799 /* Push the string STR on the Lua stack, like lua_pushstring, but | |
800 prefixed with the the location of the innermost Lua call-point | |
801 (as formated by luaL_where). */ | |
802 SWIGRUNTIME void | |
803 SWIG_Lua_pusherrstring (lua_State *L, const char *str) | |
804 { | |
805 luaL_where (L, 1); | |
806 lua_pushstring (L, str); | |
807 lua_concat (L, 2); | |
808 } | |
809 | |
810 /* Push a formatted string generated from FMT and following args on | |
811 the Lua stack, like lua_pushfstring, but prefixed with the the | |
812 location of the innermost Lua call-point (as formated by luaL_where). */ | |
813 SWIGRUNTIME void | |
814 SWIG_Lua_pushferrstring (lua_State *L, const char *fmt, ...) | |
815 { | |
816 va_list argp; | |
817 va_start(argp, fmt); | |
818 luaL_where(L, 1); | |
819 lua_pushvfstring(L, fmt, argp); | |
820 va_end(argp); | |
821 lua_concat(L, 2); | |
822 } | |
823 | |
824 | |
825 /* ----------------------------------------------------------------------------- | |
826 * global swig types | |
827 * ----------------------------------------------------------------------------- */ | |
828 /* Constant table */ | |
829 #define SWIG_LUA_INT 1 | |
830 #define SWIG_LUA_FLOAT 2 | |
831 #define SWIG_LUA_STRING 3 | |
832 #define SWIG_LUA_POINTER 4 | |
833 #define SWIG_LUA_BINARY 5 | |
834 #define SWIG_LUA_CHAR 6 | |
835 | |
836 /* Structure for variable linking table */ | |
837 typedef struct { | |
838 const char *name; | |
839 lua_CFunction get; | |
840 lua_CFunction set; | |
841 } swig_lua_var_info; | |
842 | |
843 /* Constant information structure */ | |
844 typedef struct { | |
845 int type; | |
846 char *name; | |
847 long lvalue; | |
848 double dvalue; | |
849 void *pvalue; | |
850 swig_type_info **ptype; | |
851 } swig_lua_const_info; | |
852 | |
853 typedef struct { | |
854 const char *name; | |
855 lua_CFunction method; | |
856 } swig_lua_method; | |
857 | |
858 typedef struct { | |
859 const char *name; | |
860 lua_CFunction getmethod; | |
861 lua_CFunction setmethod; | |
862 } swig_lua_attribute; | |
863 | |
864 // Can be used to create namespaces. Currently used to | |
865 // wrap class static methods/variables/constants | |
866 typedef struct { | |
867 const char *name; | |
868 swig_lua_method *ns_methods; | |
869 swig_lua_attribute *ns_attributes; | |
870 swig_lua_const_info *ns_constants; | |
871 } swig_lua_namespace; | |
872 | |
873 typedef struct swig_lua_class { | |
874 const char *name; | |
875 swig_type_info **type; | |
876 lua_CFunction constructor; | |
877 void (*destructor)(void *); | |
878 swig_lua_method *methods; | |
879 swig_lua_attribute *attributes; | |
880 swig_lua_namespace cls_static; | |
881 struct swig_lua_class **bases; | |
882 const char **base_names; | |
883 } swig_lua_class; | |
884 | |
885 /* this is the struct for wrapping all pointers in SwigLua | |
886 */ | |
887 typedef struct { | |
888 swig_type_info *type; | |
889 int own; /* 1 if owned & must be destroyed */ | |
890 void *ptr; | |
891 } swig_lua_userdata; | |
892 | |
893 /* this is the struct for wrapping arbitrary packed binary data | |
894 (currently it is only used for member function pointers) | |
895 the data ordering is similar to swig_lua_userdata, but it is currently not possible | |
896 to tell the two structures apart within SWIG, other than by looking at the type | |
897 */ | |
898 typedef struct { | |
899 swig_type_info *type; | |
900 int own; /* 1 if owned & must be destroyed */ | |
901 char data[1]; /* arbitary amount of data */ | |
902 } swig_lua_rawdata; | |
903 | |
904 /* Common SWIG API */ | |
905 #define SWIG_NewPointerObj(L, ptr, type, owner) SWIG_Lua_NewPointerObj(L, (void *)ptr, type, owner) | |
906 #define SWIG_ConvertPtr(L,idx, ptr, type, flags) SWIG_Lua_ConvertPtr(L,idx,ptr,type,flags) | |
907 #define SWIG_MustGetPtr(L,idx, type,flags, argnum,fnname) SWIG_Lua_MustGetPtr(L,idx, type,flags, argnum,fnname) | |
908 /* for C++ member pointers, ie, member methods */ | |
909 #define SWIG_ConvertMember(L, idx, ptr, sz, ty) SWIG_Lua_ConvertPacked(L, idx, ptr, sz, ty) | |
910 #define SWIG_NewMemberObj(L, ptr, sz, type) SWIG_Lua_NewPackedObj(L, ptr, sz, type) | |
911 | |
912 /* Runtime API */ | |
913 #define SWIG_GetModule(clientdata) SWIG_Lua_GetModule((lua_State*)(clientdata)) | |
914 #define SWIG_SetModule(clientdata, pointer) SWIG_Lua_SetModule((lua_State*) (clientdata), pointer) | |
915 #define SWIG_MODULE_CLIENTDATA_TYPE lua_State* | |
916 | |
917 /* Contract support */ | |
918 #define SWIG_contract_assert(expr, msg) \ | |
919 if (!(expr)) { SWIG_Lua_pusherrstring(L, (char *) msg); goto fail; } else | |
920 | |
921 | |
922 /* helper #defines */ | |
923 #define SWIG_fail {goto fail;} | |
924 #define SWIG_fail_arg(func_name,argnum,type) \ | |
925 {SWIG_Lua_pushferrstring(L,"Error in %s (arg %d), expected '%s' got '%s'",\ | |
926 func_name,argnum,type,SWIG_Lua_typename(L,argnum));\ | |
927 goto fail;} | |
928 #define SWIG_fail_ptr(func_name,argnum,type) \ | |
929 SWIG_fail_arg(func_name,argnum,(type && type->str)?type->str:"void*") | |
930 #define SWIG_check_num_args(func_name,a,b) \ | |
931 if (lua_gettop(L)<a || lua_gettop(L)>b) \ | |
932 {SWIG_Lua_pushferrstring(L,"Error in %s expected %d..%d args, got %d",func_name,a,b,lua_gettop(L));\ | |
933 goto fail;} | |
934 | |
935 | |
936 #define SWIG_Lua_get_table(L,n) \ | |
937 (lua_pushstring(L, n), lua_rawget(L,-2)) | |
938 | |
939 #define SWIG_Lua_add_function(L,n,f) \ | |
940 (lua_pushstring(L, n), \ | |
941 lua_pushcfunction(L, f), \ | |
942 lua_rawset(L,-3)) | |
943 | |
944 /* special helper for allowing 'nil' for usertypes */ | |
945 #define SWIG_isptrtype(L,I) (lua_isuserdata(L,I) || lua_isnil(L,I)) | |
946 | |
947 #ifdef __cplusplus | |
948 /* Special helper for member function pointers | |
949 it gets the address, casts it, then dereferences it */ | |
950 //#define SWIG_mem_fn_as_voidptr(a) (*((char**)&(a))) | |
951 #endif | |
952 | |
953 /* storing/access of swig_module_info */ | |
954 SWIGRUNTIME swig_module_info * | |
955 SWIG_Lua_GetModule(lua_State* L) { | |
956 swig_module_info *ret = 0; | |
957 lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); | |
958 lua_rawget(L,LUA_REGISTRYINDEX); | |
959 if (lua_islightuserdata(L,-1)) | |
960 ret=(swig_module_info*)lua_touserdata(L,-1); | |
961 lua_pop(L,1); /* tidy */ | |
962 return ret; | |
963 } | |
964 | |
965 SWIGRUNTIME void | |
966 SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) { | |
967 /* add this all into the Lua registry: */ | |
968 lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); | |
969 lua_pushlightuserdata(L,(void*)module); | |
970 lua_rawset(L,LUA_REGISTRYINDEX); | |
971 } | |
972 | |
973 /* ----------------------------------------------------------------------------- | |
974 * global variable support code: modules | |
975 * ----------------------------------------------------------------------------- */ | |
976 | |
977 /* this function is called when trying to set an immutable. | |
978 default action is to print an error. | |
979 This can removed with a compile flag SWIGLUA_IGNORE_SET_IMMUTABLE */ | |
980 SWIGINTERN int SWIG_Lua_set_immutable(lua_State* L) | |
981 { | |
982 /* there should be 1 param passed in: the new value */ | |
983 #ifndef SWIGLUA_IGNORE_SET_IMMUTABLE | |
984 lua_pop(L,1); /* remove it */ | |
985 luaL_error(L,"This variable is immutable"); | |
986 #endif | |
987 return 0; /* should not return anything */ | |
988 } | |
989 | |
990 /* the module.get method used for getting linked data */ | |
991 SWIGINTERN int SWIG_Lua_module_get(lua_State* L) | |
992 { | |
993 /* there should be 2 params passed in | |
994 (1) table (not the meta table) | |
995 (2) string name of the attribute | |
996 printf("SWIG_Lua_module_get %p(%s) '%s'\n", | |
997 lua_topointer(L,1),lua_typename(L,lua_type(L,1)), | |
998 lua_tostring(L,2)); | |
999 */ | |
1000 /* get the metatable */ | |
1001 #if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) | |
1002 assert(lua_isrotable(L,1)); /* just in case */ | |
1003 #else | |
1004 assert(lua_istable(L,1)); /* default Lua action */ | |
1005 #endif | |
1006 lua_getmetatable(L,1); /* get the metatable */ | |
1007 #if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) | |
1008 assert(lua_isrotable(L,-1)); /* just in case */ | |
1009 #else | |
1010 assert(lua_istable(L,-1)); | |
1011 #endif | |
1012 SWIG_Lua_get_table(L,".get"); /* get the .get table */ | |
1013 lua_remove(L,3); /* remove metatable */ | |
1014 #if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) | |
1015 if (lua_isrotable(L,-1)) | |
1016 #else | |
1017 if (lua_istable(L,-1)) | |
1018 #endif | |
1019 { | |
1020 /* look for the key in the .get table */ | |
1021 lua_pushvalue(L,2); /* key */ | |
1022 lua_rawget(L,-2); | |
1023 lua_remove(L,3); /* remove .get */ | |
1024 if (lua_iscfunction(L,-1)) | |
1025 { /* found it so call the fn & return its value */ | |
1026 lua_call(L,0,1); | |
1027 return 1; | |
1028 } | |
1029 lua_pop(L,1); /* remove the top */ | |
1030 } | |
1031 lua_pop(L,1); /* remove the .get */ | |
1032 lua_pushnil(L); /* return a nil */ | |
1033 return 1; | |
1034 } | |
1035 | |
1036 /* the module.set method used for setting linked data */ | |
1037 SWIGINTERN int SWIG_Lua_module_set(lua_State* L) | |
1038 { | |
1039 /* there should be 3 params passed in | |
1040 (1) table (not the meta table) | |
1041 (2) string name of the attribute | |
1042 (3) any for the new value | |
1043 */ | |
1044 /* get the metatable */ | |
1045 #if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) | |
1046 assert(lua_isrotable(L,1)); /* just in case */ | |
1047 #else | |
1048 assert(lua_istable(L,1)); /* default Lua action */ | |
1049 #endif | |
1050 lua_getmetatable(L,1); /* get the metatable */ | |
1051 #if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) | |
1052 assert(lua_isrotable(L,-1)); /* just in case */ | |
1053 #else | |
1054 assert(lua_istable(L,-1)); | |
1055 #endif | |
1056 SWIG_Lua_get_table(L,".set"); /* get the .set table */ | |
1057 lua_remove(L,4); /* remove metatable */ | |
1058 #if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) | |
1059 if (lua_isrotable(L,-1)) | |
1060 #else | |
1061 if (lua_istable(L,-1)) | |
1062 #endif | |
1063 { | |
1064 /* look for the key in the .set table */ | |
1065 lua_pushvalue(L,2); /* key */ | |
1066 lua_rawget(L,-2); | |
1067 lua_remove(L,4); /* remove .set */ | |
1068 if (lua_iscfunction(L,-1)) | |
1069 { /* found it so call the fn & return its value */ | |
1070 lua_pushvalue(L,3); /* value */ | |
1071 lua_call(L,1,0); | |
1072 return 0; | |
1073 } | |
1074 #if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) | |
1075 else { | |
1076 return 0; // Exits stoically if an invalid key is initialized. | |
1077 } | |
1078 #endif | |
1079 } | |
1080 lua_settop(L,3); /* reset back to start */ | |
1081 /* we now have the table, key & new value, so just set directly */ | |
1082 lua_rawset(L,1); /* add direct */ | |
1083 return 0; | |
1084 } | |
1085 | |
1086 #if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) | |
1087 /* registering a module in lua. Pushes the module table on the stack. */ | |
1088 SWIGINTERN void SWIG_Lua_module_begin(lua_State* L,const char* name) | |
1089 { | |
1090 assert(lua_istable(L,-1)); /* just in case */ | |
1091 lua_pushstring(L,name); | |
1092 lua_newtable(L); /* the table */ | |
1093 /* add meta table */ | |
1094 lua_newtable(L); /* the meta table */ | |
1095 SWIG_Lua_add_function(L,"__index",SWIG_Lua_module_get); | |
1096 SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_module_set); | |
1097 lua_pushstring(L,".get"); | |
1098 lua_newtable(L); /* the .get table */ | |
1099 lua_rawset(L,-3); /* add .get into metatable */ | |
1100 lua_pushstring(L,".set"); | |
1101 lua_newtable(L); /* the .set table */ | |
1102 lua_rawset(L,-3); /* add .set into metatable */ | |
1103 lua_setmetatable(L,-2); /* sets meta table in module */ | |
1104 #ifdef SWIG_LUA_MODULE_GLOBAL | |
1105 /* If requested, install the module directly into the global namespace. */ | |
1106 lua_rawset(L,-3); /* add module into parent */ | |
1107 SWIG_Lua_get_table(L,name); /* get the table back out */ | |
1108 #else | |
1109 /* Do not install the module table as global name. The stack top has | |
1110 the module table with the name below. We pop the top and replace | |
1111 the name with it. */ | |
1112 lua_replace(L,-2); | |
1113 #endif | |
1114 } | |
1115 | |
1116 /* ending the register */ | |
1117 SWIGINTERN void SWIG_Lua_module_end(lua_State* L) | |
1118 { | |
1119 lua_pop(L,1); /* tidy stack (remove module) */ | |
1120 } | |
1121 | |
1122 /* adding a linked variable to the module */ | |
1123 SWIGINTERN void SWIG_Lua_module_add_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn) | |
1124 { | |
1125 assert(lua_istable(L,-1)); /* just in case */ | |
1126 lua_getmetatable(L,-1); /* get the metatable */ | |
1127 assert(lua_istable(L,-1)); /* just in case */ | |
1128 SWIG_Lua_get_table(L,".get"); /* find the .get table */ | |
1129 assert(lua_istable(L,-1)); /* should be a table: */ | |
1130 SWIG_Lua_add_function(L,name,getFn); | |
1131 lua_pop(L,1); /* tidy stack (remove table) */ | |
1132 if (setFn) /* if there is a set fn */ | |
1133 { | |
1134 SWIG_Lua_get_table(L,".set"); /* find the .set table */ | |
1135 assert(lua_istable(L,-1)); /* should be a table: */ | |
1136 SWIG_Lua_add_function(L,name,setFn); | |
1137 lua_pop(L,1); /* tidy stack (remove table) */ | |
1138 } | |
1139 lua_pop(L,1); /* tidy stack (remove meta) */ | |
1140 } | |
1141 #endif | |
1142 | |
1143 /* adding a function module */ | |
1144 SWIGINTERN void SWIG_Lua_module_add_function(lua_State* L,const char* name,lua_CFunction fn) | |
1145 { | |
1146 SWIG_Lua_add_function(L,name,fn); | |
1147 } | |
1148 | |
1149 /* ----------------------------------------------------------------------------- | |
1150 * global variable support code: namespaces | |
1151 * ----------------------------------------------------------------------------- */ | |
1152 | |
1153 SWIGINTERN int SWIG_Lua_namespace_get(lua_State* L) | |
1154 { | |
1155 /* there should be 2 params passed in | |
1156 (1) table (not the meta table) | |
1157 (2) string name of the attribute | |
1158 */ | |
1159 assert(lua_istable(L,-2)); /* just in case */ | |
1160 lua_getmetatable(L,-2); | |
1161 assert(lua_istable(L,-1)); | |
1162 SWIG_Lua_get_table(L,".get"); /* find the .get table */ | |
1163 assert(lua_istable(L,-1)); | |
1164 /* look for the key in the .get table */ | |
1165 lua_pushvalue(L,2); /* key */ | |
1166 lua_rawget(L,-2); | |
1167 lua_remove(L,-2); /* stack tidy, remove .get table */ | |
1168 if (lua_iscfunction(L,-1)) | |
1169 { /* found it so call the fn & return its value */ | |
1170 lua_call(L,0,1); /* 1 value in (userdata),1 out (result) */ | |
1171 lua_remove(L,-2); /* stack tidy, remove metatable */ | |
1172 return 1; | |
1173 } | |
1174 lua_pop(L,1); /* remove whatever was there */ | |
1175 /* ok, so try the .fn table */ | |
1176 SWIG_Lua_get_table(L,".fn"); /* find the .get table */ | |
1177 assert(lua_istable(L,-1)); /* just in case */ | |
1178 lua_pushvalue(L,2); /* key */ | |
1179 lua_rawget(L,-2); /* look for the fn */ | |
1180 lua_remove(L,-2); /* stack tidy, remove .fn table */ | |
1181 if (lua_isfunction(L,-1)) /* note: whether it's a C function or lua function */ | |
1182 { /* found it so return the fn & let lua call it */ | |
1183 lua_remove(L,-2); /* stack tidy, remove metatable */ | |
1184 return 1; | |
1185 } | |
1186 lua_pop(L,1); /* remove whatever was there */ | |
1187 return 0; | |
1188 } | |
1189 | |
1190 SWIGINTERN int SWIG_Lua_namespace_set(lua_State* L) | |
1191 { | |
1192 /* there should be 3 params passed in | |
1193 (1) table (not the meta table) | |
1194 (2) string name of the attribute | |
1195 (3) any for the new value | |
1196 */ | |
1197 | |
1198 assert(lua_istable(L,1)); | |
1199 lua_getmetatable(L,1); /* get the meta table */ | |
1200 assert(lua_istable(L,-1)); | |
1201 | |
1202 SWIG_Lua_get_table(L,".set"); /* find the .set table */ | |
1203 if (lua_istable(L,-1)) | |
1204 { | |
1205 /* look for the key in the .set table */ | |
1206 lua_pushvalue(L,2); /* key */ | |
1207 lua_rawget(L,-2); | |
1208 if (lua_iscfunction(L,-1)) | |
1209 { /* found it so call the fn & return its value */ | |
1210 lua_pushvalue(L,3); /* value */ | |
1211 lua_call(L,1,0); | |
1212 return 0; | |
1213 } | |
1214 lua_pop(L,1); /* remove the value */ | |
1215 } | |
1216 lua_pop(L,1); /* remove the value .set table */ | |
1217 return 0; | |
1218 } | |
1219 | |
1220 SWIGINTERN void SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]); // forward declaration | |
1221 SWIGINTERN void SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn); // forward declaration | |
1222 | |
1223 /* helper function - register namespace methods and attributes into namespace */ | |
1224 SWIGINTERN void SWIG_Lua_add_namespace_details(lua_State* L, swig_lua_namespace* ns) | |
1225 { | |
1226 int i = 0; | |
1227 assert(lua_istable(L,-1)); | |
1228 /* There must be table at the top of the stack */ | |
1229 SWIG_Lua_InstallConstants(L, ns->ns_constants); | |
1230 | |
1231 lua_getmetatable(L,-1); | |
1232 | |
1233 /* add fns */ | |
1234 for(i=0;ns->ns_attributes[i].name;i++){ | |
1235 SWIG_Lua_add_class_variable(L,ns->ns_attributes[i].name,ns->ns_attributes[i].getmethod,ns->ns_attributes[i].setmethod); | |
1236 } | |
1237 | |
1238 /* add methods to the metatable */ | |
1239 SWIG_Lua_get_table(L,".fn"); /* find the .fn table */ | |
1240 assert(lua_istable(L,-1)); /* just in case */ | |
1241 for(i=0;ns->ns_methods[i].name;i++){ | |
1242 SWIG_Lua_add_function(L,ns->ns_methods[i].name,ns->ns_methods[i].method); | |
1243 } | |
1244 lua_pop(L,1); | |
1245 | |
1246 /* clear stack - remove metatble */ | |
1247 lua_pop(L,1); | |
1248 | |
1249 } | |
1250 | |
1251 /* helper function. creates namespace table and add it to module table */ | |
1252 SWIGINTERN void SWIG_Lua_namespace_register(lua_State* L, swig_lua_namespace* ns) | |
1253 { | |
1254 assert(lua_istable(L,-1)); /* just in case. This is supposed to be module table */ | |
1255 lua_checkstack(L,5); | |
1256 lua_pushstring(L, ns->name); | |
1257 lua_newtable(L); /* namespace itself */ | |
1258 lua_newtable(L); /* metatable for namespace */ | |
1259 | |
1260 /* add a table called ".get" */ | |
1261 lua_pushstring(L,".get"); | |
1262 lua_newtable(L); | |
1263 lua_rawset(L,-3); | |
1264 /* add a table called ".set" */ | |
1265 lua_pushstring(L,".set"); | |
1266 lua_newtable(L); | |
1267 lua_rawset(L,-3); | |
1268 /* add a table called ".fn" */ | |
1269 lua_pushstring(L,".fn"); | |
1270 lua_newtable(L); | |
1271 lua_rawset(L,-3); | |
1272 | |
1273 /* add accessor fns for using the .get,.set&.fn */ | |
1274 SWIG_Lua_add_function(L,"__index",SWIG_Lua_namespace_get); | |
1275 SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_namespace_set); | |
1276 | |
1277 lua_setmetatable(L,-2); /* set metatable */ | |
1278 lua_rawset(L,-3); /* add namespace to module table */ | |
1279 } | |
1280 /* ----------------------------------------------------------------------------- | |
1281 * global variable support code: classes | |
1282 * ----------------------------------------------------------------------------- */ | |
1283 | |
1284 /* the class.get method, performs the lookup of class attributes */ | |
1285 SWIGINTERN int SWIG_Lua_class_get(lua_State* L) | |
1286 { | |
1287 /* there should be 2 params passed in | |
1288 (1) userdata (not the meta table) | |
1289 (2) string name of the attribute | |
1290 */ | |
1291 assert(lua_isuserdata(L,-2)); /* just in case */ | |
1292 lua_getmetatable(L,-2); /* get the meta table */ | |
1293 assert(lua_istable(L,-1)); /* just in case */ | |
1294 SWIG_Lua_get_table(L,".get"); /* find the .get table */ | |
1295 assert(lua_istable(L,-1)); /* just in case */ | |
1296 /* look for the key in the .get table */ | |
1297 lua_pushvalue(L,2); /* key */ | |
1298 lua_rawget(L,-2); | |
1299 lua_remove(L,-2); /* stack tidy, remove .get table */ | |
1300 if (lua_iscfunction(L,-1)) | |
1301 { /* found it so call the fn & return its value */ | |
1302 lua_pushvalue(L,1); /* the userdata */ | |
1303 lua_call(L,1,1); /* 1 value in (userdata),1 out (result) */ | |
1304 lua_remove(L,-2); /* stack tidy, remove metatable */ | |
1305 return 1; | |
1306 } | |
1307 lua_pop(L,1); /* remove whatever was there */ | |
1308 /* ok, so try the .fn table */ | |
1309 SWIG_Lua_get_table(L,".fn"); /* find the .get table */ | |
1310 assert(lua_istable(L,-1)); /* just in case */ | |
1311 lua_pushvalue(L,2); /* key */ | |
1312 lua_rawget(L,-2); /* look for the fn */ | |
1313 lua_remove(L,-2); /* stack tidy, remove .fn table */ | |
1314 if (lua_isfunction(L,-1)) /* note: if its a C function or lua function */ | |
1315 { /* found it so return the fn & let lua call it */ | |
1316 lua_remove(L,-2); /* stack tidy, remove metatable */ | |
1317 return 1; | |
1318 } | |
1319 lua_pop(L,1); /* remove whatever was there */ | |
1320 /* NEW: looks for the __getitem() fn | |
1321 this is a user provided get fn */ | |
1322 SWIG_Lua_get_table(L,"__getitem"); /* find the __getitem fn */ | |
1323 if (lua_iscfunction(L,-1)) /* if its there */ | |
1324 { /* found it so call the fn & return its value */ | |
1325 lua_pushvalue(L,1); /* the userdata */ | |
1326 lua_pushvalue(L,2); /* the parameter */ | |
1327 lua_call(L,2,1); /* 2 value in (userdata),1 out (result) */ | |
1328 lua_remove(L,-2); /* stack tidy, remove metatable */ | |
1329 return 1; | |
1330 } | |
1331 return 0; /* sorry not known */ | |
1332 } | |
1333 | |
1334 /* the class.set method, performs the lookup of class attributes */ | |
1335 SWIGINTERN int SWIG_Lua_class_set(lua_State* L) | |
1336 { | |
1337 /* there should be 3 params passed in | |
1338 (1) table (not the meta table) | |
1339 (2) string name of the attribute | |
1340 (3) any for the new value | |
1341 printf("SWIG_Lua_class_set %p(%s) '%s' %p(%s)\n", | |
1342 lua_topointer(L,1),lua_typename(L,lua_type(L,1)), | |
1343 lua_tostring(L,2), | |
1344 lua_topointer(L,3),lua_typename(L,lua_type(L,3)));*/ | |
1345 | |
1346 assert(lua_isuserdata(L,1)); /* just in case */ | |
1347 lua_getmetatable(L,1); /* get the meta table */ | |
1348 assert(lua_istable(L,-1)); /* just in case */ | |
1349 | |
1350 SWIG_Lua_get_table(L,".set"); /* find the .set table */ | |
1351 if (lua_istable(L,-1)) | |
1352 { | |
1353 /* look for the key in the .set table */ | |
1354 lua_pushvalue(L,2); /* key */ | |
1355 lua_rawget(L,-2); | |
1356 if (lua_iscfunction(L,-1)) | |
1357 { /* found it so call the fn & return its value */ | |
1358 lua_pushvalue(L,1); /* userdata */ | |
1359 lua_pushvalue(L,3); /* value */ | |
1360 lua_call(L,2,0); | |
1361 return 0; | |
1362 } | |
1363 lua_pop(L,1); /* remove the value */ | |
1364 } | |
1365 lua_pop(L,1); /* remove the value .set table */ | |
1366 /* NEW: looks for the __setitem() fn | |
1367 this is a user provided set fn */ | |
1368 SWIG_Lua_get_table(L,"__setitem"); /* find the fn */ | |
1369 if (lua_iscfunction(L,-1)) /* if its there */ | |
1370 { /* found it so call the fn & return its value */ | |
1371 lua_pushvalue(L,1); /* the userdata */ | |
1372 lua_pushvalue(L,2); /* the parameter */ | |
1373 lua_pushvalue(L,3); /* the value */ | |
1374 lua_call(L,3,0); /* 3 values in ,0 out */ | |
1375 lua_remove(L,-2); /* stack tidy, remove metatable */ | |
1376 return 1; | |
1377 } | |
1378 return 0; | |
1379 } | |
1380 | |
1381 /* the class.destruct method called by the interpreter */ | |
1382 SWIGINTERN int SWIG_Lua_class_destruct(lua_State* L) | |
1383 { | |
1384 /* there should be 1 params passed in | |
1385 (1) userdata (not the meta table) */ | |
1386 swig_lua_userdata* usr; | |
1387 swig_lua_class* clss; | |
1388 assert(lua_isuserdata(L,-1)); /* just in case */ | |
1389 usr=(swig_lua_userdata*)lua_touserdata(L,-1); /* get it */ | |
1390 /* if must be destroyed & has a destructor */ | |
1391 if (usr->own) /* if must be destroyed */ | |
1392 { | |
1393 clss=(swig_lua_class*)usr->type->clientdata; /* get the class */ | |
1394 if (clss && clss->destructor) /* there is a destroy fn */ | |
1395 { | |
1396 clss->destructor(usr->ptr); /* bye bye */ | |
1397 } | |
1398 } | |
1399 return 0; | |
1400 } | |
1401 | |
1402 /* the class.__tostring method called by the interpreter and print */ | |
1403 SWIGINTERN int SWIG_Lua_class_tostring(lua_State* L) | |
1404 { | |
1405 /* there should be 1 param passed in | |
1406 (1) userdata (not the metatable) */ | |
1407 assert(lua_isuserdata(L,1)); /* just in case */ | |
1408 unsigned long userData = (unsigned long)lua_touserdata(L,1); /* get the userdata address for later */ | |
1409 lua_getmetatable(L,1); /* get the meta table */ | |
1410 assert(lua_istable(L,-1)); /* just in case */ | |
1411 | |
1412 lua_getfield(L, -1, ".type"); | |
1413 const char* className = lua_tostring(L, -1); | |
1414 | |
1415 char output[256]; | |
1416 sprintf(output, "<%s userdata: %lX>", className, userData); | |
1417 | |
1418 lua_pushstring(L, (const char*)output); | |
1419 return 1; | |
1420 } | |
1421 | |
1422 /* to manually disown some userdata */ | |
1423 SWIGINTERN int SWIG_Lua_class_disown(lua_State* L) | |
1424 { | |
1425 /* there should be 1 params passed in | |
1426 (1) userdata (not the meta table) */ | |
1427 swig_lua_userdata* usr; | |
1428 assert(lua_isuserdata(L,-1)); /* just in case */ | |
1429 usr=(swig_lua_userdata*)lua_touserdata(L,-1); /* get it */ | |
1430 | |
1431 usr->own = 0; /* clear our ownership */ | |
1432 return 0; | |
1433 } | |
1434 | |
1435 /* Constructor proxy. Used when class name entry in module is not class constructor, | |
1436 but special table instead. */ | |
1437 SWIGINTERN int SWIG_Lua_constructor_proxy(lua_State* L) | |
1438 { | |
1439 /* unlimited number of parameters | |
1440 First one is our proxy table and we should remove it | |
1441 Other we should pass to real constructor | |
1442 */ | |
1443 assert(lua_istable(L,1)); | |
1444 lua_pushstring(L,".constructor"); | |
1445 lua_rawget(L,1); | |
1446 assert(!lua_isnil(L,-1)); | |
1447 lua_replace(L,1); /* replace our table with real constructor */ | |
1448 lua_call(L,lua_gettop(L)-1,1); | |
1449 return 1; | |
1450 } | |
1451 | |
1452 /* gets the swig class registry (or creates it) */ | |
1453 SWIGINTERN void SWIG_Lua_get_class_registry(lua_State* L) | |
1454 { | |
1455 /* add this all into the swig registry: */ | |
1456 lua_pushstring(L,"SWIG"); | |
1457 lua_rawget(L,LUA_REGISTRYINDEX); /* get the registry */ | |
1458 if (!lua_istable(L,-1)) /* not there */ | |
1459 { /* must be first time, so add it */ | |
1460 lua_pop(L,1); /* remove the result */ | |
1461 lua_pushstring(L,"SWIG"); | |
1462 lua_newtable(L); | |
1463 lua_rawset(L,LUA_REGISTRYINDEX); | |
1464 /* then get it */ | |
1465 lua_pushstring(L,"SWIG"); | |
1466 lua_rawget(L,LUA_REGISTRYINDEX); | |
1467 } | |
1468 } | |
1469 | |
1470 /* helper fn to get the classes metatable from the register */ | |
1471 SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State* L,const char* cname) | |
1472 { | |
1473 SWIG_Lua_get_class_registry(L); /* get the registry */ | |
1474 lua_pushstring(L,cname); /* get the name */ | |
1475 lua_rawget(L,-2); /* get it */ | |
1476 lua_remove(L,-2); /* tidy up (remove registry) */ | |
1477 } | |
1478 | |
1479 /* helper add a variable to a registered class */ | |
1480 SWIGINTERN void SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn) | |
1481 { | |
1482 assert(lua_istable(L,-1)); /* just in case */ | |
1483 SWIG_Lua_get_table(L,".get"); /* find the .get table */ | |
1484 assert(lua_istable(L,-1)); /* just in case */ | |
1485 SWIG_Lua_add_function(L,name,getFn); | |
1486 lua_pop(L,1); /* tidy stack (remove table) */ | |
1487 if (setFn) | |
1488 { | |
1489 SWIG_Lua_get_table(L,".set"); /* find the .set table */ | |
1490 assert(lua_istable(L,-1)); /* just in case */ | |
1491 SWIG_Lua_add_function(L,name,setFn); | |
1492 lua_pop(L,1); /* tidy stack (remove table) */ | |
1493 } | |
1494 } | |
1495 | |
1496 /* helper to recursively add class static details (static attributes, operations and constants) */ | |
1497 SWIGINTERN void SWIG_Lua_add_class_static_details(lua_State* L, swig_lua_class* clss) | |
1498 { | |
1499 int i = 0; | |
1500 /* The class namespace table must be on the top of the stack */ | |
1501 assert(lua_istable(L,-1)); | |
1502 /* call all the base classes first: we can then override these later: */ | |
1503 for(i=0;clss->bases[i];i++) | |
1504 { | |
1505 SWIG_Lua_add_class_static_details(L,clss->bases[i]); | |
1506 } | |
1507 | |
1508 SWIG_Lua_add_namespace_details(L, &clss->cls_static); | |
1509 } | |
1510 | |
1511 /* helper to recursively add class details (attributes & operations) */ | |
1512 SWIGINTERN void SWIG_Lua_add_class_details(lua_State* L,swig_lua_class* clss) | |
1513 { | |
1514 int i; | |
1515 /* call all the base classes first: we can then override these later: */ | |
1516 for(i=0;clss->bases[i];i++) | |
1517 { | |
1518 SWIG_Lua_add_class_details(L,clss->bases[i]); | |
1519 } | |
1520 /* add fns */ | |
1521 for(i=0;clss->attributes[i].name;i++){ | |
1522 SWIG_Lua_add_class_variable(L,clss->attributes[i].name,clss->attributes[i].getmethod,clss->attributes[i].setmethod); | |
1523 } | |
1524 /* add methods to the metatable */ | |
1525 SWIG_Lua_get_table(L,".fn"); /* find the .fn table */ | |
1526 assert(lua_istable(L,-1)); /* just in case */ | |
1527 for(i=0;clss->methods[i].name;i++){ | |
1528 SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); | |
1529 } | |
1530 lua_pop(L,1); /* tidy stack (remove table) */ | |
1531 /* add operator overloads | |
1532 these look ANY method which start with "__" and assume they | |
1533 are operator overloads & add them to the metatable | |
1534 (this might mess up is someone defines a method __gc (the destructor)*/ | |
1535 for(i=0;clss->methods[i].name;i++){ | |
1536 if (clss->methods[i].name[0]=='_' && clss->methods[i].name[1]=='_'){ | |
1537 SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); | |
1538 } | |
1539 } | |
1540 } | |
1541 | |
1542 /* set up the base classes pointers. | |
1543 Each class structure has a list of pointers to the base class structures. | |
1544 This function fills them. | |
1545 It cannot be done at compile time, as this will not work with hireachies | |
1546 spread over more than one swig file. | |
1547 Therefore it must be done at runtime, querying the SWIG type system. | |
1548 */ | |
1549 SWIGINTERN void SWIG_Lua_init_base_class(lua_State* L,swig_lua_class* clss) | |
1550 { | |
1551 int i=0; | |
1552 swig_module_info* module=SWIG_GetModule(L); | |
1553 for(i=0;clss->base_names[i];i++) | |
1554 { | |
1555 if (clss->bases[i]==0) /* not found yet */ | |
1556 { | |
1557 /* lookup and cache the base class */ | |
1558 swig_type_info *info = SWIG_TypeQueryModule(module,module,clss->base_names[i]); | |
1559 if (info) clss->bases[i] = (swig_lua_class *) info->clientdata; | |
1560 } | |
1561 } | |
1562 } | |
1563 | |
1564 /* Register class static methods,attributes etc as well as constructor proxy */ | |
1565 SWIGINTERN void SWIG_Lua_class_register_static(lua_State* L, swig_lua_class* clss) | |
1566 { | |
1567 lua_checkstack(L,5); /* just in case */ | |
1568 assert(lua_istable(L,-1)); /* just in case */ | |
1569 assert(strcmp(clss->name, clss->cls_static.name) == 0); /* in class those 2 must be equal */ | |
1570 | |
1571 SWIG_Lua_namespace_register(L,&clss->cls_static); | |
1572 | |
1573 SWIG_Lua_get_table(L,clss->name); // Get namespace table back | |
1574 assert(lua_istable(L,-1)); /* just in case */ | |
1575 | |
1576 /* add its constructor to module with the name of the class | |
1577 so you can do MyClass(...) as well as new_MyClass(...) | |
1578 BUT only if a constructor is defined | |
1579 (this overcomes the problem of pure virtual classes without constructors)*/ | |
1580 if (clss->constructor) | |
1581 { | |
1582 SWIG_Lua_add_function(L,".constructor", clss->constructor); | |
1583 lua_getmetatable(L,-1); | |
1584 assert(lua_istable(L,-1)); /* just in case */ | |
1585 SWIG_Lua_add_function(L,"__call", SWIG_Lua_constructor_proxy); | |
1586 lua_pop(L,1); | |
1587 } | |
1588 | |
1589 assert(lua_istable(L,-1)); /* just in case */ | |
1590 SWIG_Lua_add_class_static_details(L, clss); | |
1591 | |
1592 /* clear stack */ | |
1593 lua_pop(L,1); | |
1594 } | |
1595 | |
1596 /* performs the entire class registration process */ | |
1597 SWIGINTERN void SWIG_Lua_class_register(lua_State* L,swig_lua_class* clss) | |
1598 { | |
1599 SWIG_Lua_class_register_static(L,clss); | |
1600 | |
1601 SWIG_Lua_get_class_registry(L); /* get the registry */ | |
1602 lua_pushstring(L,clss->name); /* get the name */ | |
1603 lua_newtable(L); /* create the metatable */ | |
1604 /* add string of class name called ".type" */ | |
1605 lua_pushstring(L,".type"); | |
1606 lua_pushstring(L,clss->name); | |
1607 lua_rawset(L,-3); | |
1608 /* add a table called ".get" */ | |
1609 lua_pushstring(L,".get"); | |
1610 lua_newtable(L); | |
1611 lua_rawset(L,-3); | |
1612 /* add a table called ".set" */ | |
1613 lua_pushstring(L,".set"); | |
1614 lua_newtable(L); | |
1615 lua_rawset(L,-3); | |
1616 /* add a table called ".fn" */ | |
1617 lua_pushstring(L,".fn"); | |
1618 lua_newtable(L); | |
1619 /* add manual disown method */ | |
1620 SWIG_Lua_add_function(L,"__disown",SWIG_Lua_class_disown); | |
1621 lua_rawset(L,-3); | |
1622 /* add accessor fns for using the .get,.set&.fn */ | |
1623 SWIG_Lua_add_function(L,"__index",SWIG_Lua_class_get); | |
1624 SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_class_set); | |
1625 SWIG_Lua_add_function(L,"__gc",SWIG_Lua_class_destruct); | |
1626 /* add tostring method for better output */ | |
1627 SWIG_Lua_add_function(L,"__tostring",SWIG_Lua_class_tostring); | |
1628 /* add it */ | |
1629 lua_rawset(L,-3); /* metatable into registry */ | |
1630 lua_pop(L,1); /* tidy stack (remove registry) */ | |
1631 | |
1632 SWIG_Lua_get_class_metatable(L,clss->name); | |
1633 SWIG_Lua_add_class_details(L,clss); /* recursive adding of details (atts & ops) */ | |
1634 lua_pop(L,1); /* tidy stack (remove class metatable) */ | |
1635 } | |
1636 | |
1637 /* ----------------------------------------------------------------------------- | |
1638 * Class/structure conversion fns | |
1639 * ----------------------------------------------------------------------------- */ | |
1640 | |
1641 /* helper to add metatable to new lua object */ | |
1642 SWIGINTERN void _SWIG_Lua_AddMetatable(lua_State* L,swig_type_info *type) | |
1643 { | |
1644 if (type->clientdata) /* there is clientdata: so add the metatable */ | |
1645 { | |
1646 SWIG_Lua_get_class_metatable(L,((swig_lua_class*)(type->clientdata))->name); | |
1647 if (lua_istable(L,-1)) | |
1648 { | |
1649 lua_setmetatable(L,-2); | |
1650 } | |
1651 else | |
1652 { | |
1653 lua_pop(L,1); | |
1654 } | |
1655 } | |
1656 } | |
1657 | |
1658 /* pushes a new object into the lua stack */ | |
1659 SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State* L,void* ptr,swig_type_info *type, int own) | |
1660 { | |
1661 swig_lua_userdata* usr; | |
1662 if (!ptr){ | |
1663 lua_pushnil(L); | |
1664 return; | |
1665 } | |
1666 usr=(swig_lua_userdata*)lua_newuserdata(L,sizeof(swig_lua_userdata)); /* get data */ | |
1667 usr->ptr=ptr; /* set the ptr */ | |
1668 usr->type=type; | |
1669 usr->own=own; | |
1670 #if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) | |
1671 _SWIG_Lua_AddMetatable(L,type); /* add metatable */ | |
1672 #endif | |
1673 } | |
1674 | |
1675 /* takes a object from the lua stack & converts it into an object of the correct type | |
1676 (if possible) */ | |
1677 SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State* L,int index,void** ptr,swig_type_info *type,int flags) | |
1678 { | |
1679 swig_lua_userdata* usr; | |
1680 swig_cast_info *cast; | |
1681 if (lua_isnil(L,index)){*ptr=0; return SWIG_OK;} /* special case: lua nil => NULL pointer */ | |
1682 usr=(swig_lua_userdata*)lua_touserdata(L,index); /* get data */ | |
1683 if (usr) | |
1684 { | |
1685 if (flags & SWIG_POINTER_DISOWN) /* must disown the object */ | |
1686 { | |
1687 usr->own=0; | |
1688 } | |
1689 if (!type) /* special cast void*, no casting fn */ | |
1690 { | |
1691 *ptr=usr->ptr; | |
1692 return SWIG_OK; /* ok */ | |
1693 } | |
1694 cast=SWIG_TypeCheckStruct(usr->type,type); /* performs normal type checking */ | |
1695 if (cast) | |
1696 { | |
1697 int newmemory = 0; | |
1698 *ptr=SWIG_TypeCast(cast,usr->ptr,&newmemory); | |
1699 assert(!newmemory); /* newmemory handling not yet implemented */ | |
1700 return SWIG_OK; /* ok */ | |
1701 } | |
1702 } | |
1703 return SWIG_ERROR; /* error */ | |
1704 } | |
1705 | |
1706 SWIGRUNTIME void* SWIG_Lua_MustGetPtr(lua_State* L,int index,swig_type_info *type,int flags, | |
1707 int argnum,const char* func_name){ | |
1708 void* result; | |
1709 if (!SWIG_IsOK(SWIG_ConvertPtr(L,index,&result,type,flags))){ | |
1710 luaL_error (L,"Error in %s, expected a %s at argument number %d\n", | |
1711 func_name,(type && type->str)?type->str:"void*",argnum); | |
1712 } | |
1713 return result; | |
1714 } | |
1715 | |
1716 /* pushes a packed userdata. user for member fn pointers only */ | |
1717 SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State* L,void* ptr,size_t size,swig_type_info *type) | |
1718 { | |
1719 swig_lua_rawdata* raw; | |
1720 assert(ptr); /* not acceptable to pass in a NULL value */ | |
1721 raw=(swig_lua_rawdata*)lua_newuserdata(L,sizeof(swig_lua_rawdata)-1+size); /* alloc data */ | |
1722 raw->type=type; | |
1723 raw->own=0; | |
1724 memcpy(raw->data,ptr,size); /* copy the data */ | |
1725 _SWIG_Lua_AddMetatable(L,type); /* add metatable */ | |
1726 } | |
1727 | |
1728 /* converts a packed userdata. user for member fn pointers only */ | |
1729 SWIGRUNTIME int SWIG_Lua_ConvertPacked(lua_State* L,int index,void* ptr,size_t size,swig_type_info *type) | |
1730 { | |
1731 swig_lua_rawdata* raw; | |
1732 raw=(swig_lua_rawdata*)lua_touserdata(L,index); /* get data */ | |
1733 if (!raw) return SWIG_ERROR; /* error */ | |
1734 if (type==0 || type==raw->type) /* void* or identical type */ | |
1735 { | |
1736 memcpy(ptr,raw->data,size); /* copy it */ | |
1737 return SWIG_OK; /* ok */ | |
1738 } | |
1739 return SWIG_ERROR; /* error */ | |
1740 } | |
1741 | |
1742 /* a function to get the typestring of a piece of data */ | |
1743 SWIGRUNTIME const char *SWIG_Lua_typename(lua_State *L, int tp) | |
1744 { | |
1745 swig_lua_userdata* usr; | |
1746 if (lua_isuserdata(L,tp)) | |
1747 { | |
1748 usr=(swig_lua_userdata*)lua_touserdata(L,tp); /* get data */ | |
1749 if (usr && usr->type && usr->type->str) | |
1750 return usr->type->str; | |
1751 return "userdata (unknown type)"; | |
1752 } | |
1753 return lua_typename(L,lua_type(L,tp)); | |
1754 } | |
1755 | |
1756 /* lua callable function to get the userdata's type */ | |
1757 SWIGRUNTIME int SWIG_Lua_type(lua_State* L) | |
1758 { | |
1759 lua_pushstring(L,SWIG_Lua_typename(L,1)); | |
1760 return 1; | |
1761 } | |
1762 | |
1763 /* lua callable function to compare userdata's value | |
1764 the issue is that two userdata may point to the same thing | |
1765 but to lua, they are different objects */ | |
1766 SWIGRUNTIME int SWIG_Lua_equal(lua_State* L) | |
1767 { | |
1768 int result; | |
1769 swig_lua_userdata *usr1,*usr2; | |
1770 if (!lua_isuserdata(L,1) || !lua_isuserdata(L,2)) /* just in case */ | |
1771 return 0; /* nil reply */ | |
1772 usr1=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ | |
1773 usr2=(swig_lua_userdata*)lua_touserdata(L,2); /* get data */ | |
1774 /*result=(usr1->ptr==usr2->ptr && usr1->type==usr2->type); only works if type is the same*/ | |
1775 result=(usr1->ptr==usr2->ptr); | |
1776 lua_pushboolean(L,result); | |
1777 return 1; | |
1778 } | |
1779 | |
1780 /* ----------------------------------------------------------------------------- | |
1781 * global variable support code: class/struct typemap functions | |
1782 * ----------------------------------------------------------------------------- */ | |
1783 | |
1784 #if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) | |
1785 /* Install Constants */ | |
1786 SWIGINTERN void | |
1787 SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { | |
1788 int i; | |
1789 for (i = 0; constants[i].type; i++) { | |
1790 switch(constants[i].type) { | |
1791 case SWIG_LUA_INT: | |
1792 lua_pushstring(L,constants[i].name); | |
1793 lua_pushnumber(L,(lua_Number)constants[i].lvalue); | |
1794 lua_rawset(L,-3); | |
1795 break; | |
1796 case SWIG_LUA_FLOAT: | |
1797 lua_pushstring(L,constants[i].name); | |
1798 lua_pushnumber(L,(lua_Number)constants[i].dvalue); | |
1799 lua_rawset(L,-3); | |
1800 break; | |
1801 case SWIG_LUA_CHAR: | |
1802 lua_pushstring(L,constants[i].name); | |
1803 lua_pushfstring(L,"%c",(char)constants[i].lvalue); | |
1804 lua_rawset(L,-3); | |
1805 break; | |
1806 case SWIG_LUA_STRING: | |
1807 lua_pushstring(L,constants[i].name); | |
1808 lua_pushstring(L,(char *) constants[i].pvalue); | |
1809 lua_rawset(L,-3); | |
1810 break; | |
1811 case SWIG_LUA_POINTER: | |
1812 lua_pushstring(L,constants[i].name); | |
1813 SWIG_NewPointerObj(L,constants[i].pvalue, *(constants[i]).ptype,0); | |
1814 lua_rawset(L,-3); | |
1815 break; | |
1816 case SWIG_LUA_BINARY: | |
1817 lua_pushstring(L,constants[i].name); | |
1818 SWIG_NewMemberObj(L,constants[i].pvalue,constants[i].lvalue,*(constants[i]).ptype); | |
1819 lua_rawset(L,-3); | |
1820 break; | |
1821 default: | |
1822 break; | |
1823 } | |
1824 } | |
1825 } | |
1826 #endif | |
1827 | |
1828 /* ----------------------------------------------------------------------------- | |
1829 * executing lua code from within the wrapper | |
1830 * ----------------------------------------------------------------------------- */ | |
1831 | |
1832 #ifndef SWIG_DOSTRING_FAIL /* Allows redefining of error function */ | |
1833 #define SWIG_DOSTRING_FAIL(S) fprintf(stderr,"%s\n",S) | |
1834 #endif | |
1835 /* Executes a C string in Lua which is a really simple way of calling lua from C | |
1836 Unfortunately lua keeps changing its APIs, so we need a conditional compile | |
1837 In lua 5.0.X its lua_dostring() | |
1838 In lua 5.1.X its luaL_dostring() | |
1839 */ | |
1840 SWIGINTERN int | |
1841 SWIG_Lua_dostring(lua_State *L, const char* str) { | |
1842 int ok,top; | |
1843 if (str==0 || str[0]==0) return 0; /* nothing to do */ | |
1844 top=lua_gettop(L); /* save stack */ | |
1845 #if (defined(LUA_VERSION_NUM) && (LUA_VERSION_NUM>=501)) | |
1846 ok=luaL_dostring(L,str); /* looks like this is lua 5.1.X or later, good */ | |
1847 #else | |
1848 ok=lua_dostring(L,str); /* might be lua 5.0.x, using lua_dostring */ | |
1849 #endif | |
1850 if (ok!=0) { | |
1851 SWIG_DOSTRING_FAIL(lua_tostring(L,-1)); | |
1852 } | |
1853 lua_settop(L,top); /* restore the stack */ | |
1854 return ok; | |
1855 } | |
1856 | |
1857 #ifdef __cplusplus | |
1858 } | |
1859 #endif | |
1860 | |
1861 /* ------------------------------ end luarun.swg ------------------------------ */ | |
1862 | |
1863 | |
1864 /* -------- TYPES TABLE (BEGIN) -------- */ | |
1865 | |
1866 #define SWIGTYPE_m_PlayerEquipment__unsigned_int swig_types[0] | |
1867 #define SWIGTYPE_m_Player__unsigned___int16 swig_types[1] | |
1868 #define SWIGTYPE_m_Player__unsigned_short swig_types[2] | |
1869 #define SWIGTYPE_p_Actor swig_types[3] | |
1870 #define SWIGTYPE_p_DAMAGE_TYPE swig_types[4] | |
1871 #define SWIGTYPE_p_ITEM_EQUIP_TYPE swig_types[5] | |
1872 #define SWIGTYPE_p_ItemGen swig_types[6] | |
1873 #define SWIGTYPE_p_LloydBeacon swig_types[7] | |
1874 #define SWIGTYPE_p_NZIArrayT_Player_p_5_t swig_types[8] | |
1875 #define SWIGTYPE_p_Player swig_types[9] | |
1876 #define SWIGTYPE_p_PlayerEquipment swig_types[10] | |
1877 #define SWIGTYPE_p_PlayerSpellbookChapter swig_types[11] | |
1878 #define SWIGTYPE_p_PlayerSpells swig_types[12] | |
1879 #define SWIGTYPE_p___int16 swig_types[13] | |
1880 #define SWIGTYPE_p_char swig_types[14] | |
1881 #define SWIGTYPE_p_int swig_types[15] | |
1882 #define SWIGTYPE_p_std__arrayT_LloydBeacon_5_t swig_types[16] | |
1883 #define SWIGTYPE_p_std__arrayT_SpellBuff_24_t swig_types[17] | |
1884 #define SWIGTYPE_p_std__arrayT___int64_20_t swig_types[18] | |
1885 #define SWIGTYPE_p_std__arrayT_char_11_t swig_types[19] | |
1886 #define SWIGTYPE_p_std__arrayT_int_126_t swig_types[20] | |
1887 #define SWIGTYPE_p_unsigned___int16 swig_types[21] | |
1888 #define SWIGTYPE_p_unsigned___int64 swig_types[22] | |
1889 #define SWIGTYPE_p_unsigned___int8 swig_types[23] | |
1890 #define SWIGTYPE_p_unsigned_char swig_types[24] | |
1891 static swig_type_info *swig_types[26]; | |
1892 static swig_module_info swig_module = {swig_types, 25, 0, 0, 0, 0}; | |
1893 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) | |
1894 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
1895 | |
1896 /* -------- TYPES TABLE (END) -------- */ | |
1897 | |
1898 #define SWIG_name "Player" | |
1899 #define SWIG_init luaopen_Player | |
1900 #define SWIG_init_user luaopen_Player_user | |
1901 | |
1902 #define SWIG_LUACODE luaopen_Player_luacode | |
1903 | |
1904 namespace swig { | |
1905 typedef struct{} LANGUAGE_OBJ; | |
1906 } | |
1907 | |
1908 | |
1909 #include "Player.h" | |
1910 | |
1911 | |
1912 SWIGINTERN int SWIG_lua_isnilstring(lua_State *L, int idx) { | |
1913 int ret = lua_isstring(L, idx); | |
1914 if (!ret) | |
1915 ret = lua_isnil(L, idx); | |
1916 return ret; | |
1917 } | |
1918 | |
1919 #ifdef __cplusplus | |
1920 extern "C" { | |
1921 #endif | |
1922 static int _wrap_LloydBeacon_uBeaconTime_set(lua_State* L) { | |
1923 int SWIG_arg = 0; | |
1924 LloydBeacon *arg1 = (LloydBeacon *) 0 ; | |
1925 unsigned __int64 arg2 ; | |
1926 unsigned __int64 *argp2 ; | |
1927 | |
1928 SWIG_check_num_args("LloydBeacon::uBeaconTime",2,2) | |
1929 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LloydBeacon::uBeaconTime",1,"LloydBeacon *"); | |
1930 if(!lua_isuserdata(L,2)) SWIG_fail_arg("LloydBeacon::uBeaconTime",2,"unsigned __int64"); | |
1931 | |
1932 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LloydBeacon,0))){ | |
1933 SWIG_fail_ptr("LloydBeacon_uBeaconTime_set",1,SWIGTYPE_p_LloydBeacon); | |
1934 } | |
1935 | |
1936 | |
1937 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_unsigned___int64,0))){ | |
1938 SWIG_fail_ptr("LloydBeacon_uBeaconTime_set",2,SWIGTYPE_p_unsigned___int64); | |
1939 } | |
1940 arg2 = *argp2; | |
1941 | |
1942 if (arg1) (arg1)->uBeaconTime = arg2; | |
1943 | |
1944 return SWIG_arg; | |
1945 | |
1946 if(0) SWIG_fail; | |
1947 | |
1948 fail: | |
1949 lua_error(L); | |
1950 return SWIG_arg; | |
1951 } | |
1952 | |
1953 | |
1954 static int _wrap_LloydBeacon_uBeaconTime_get(lua_State* L) { | |
1955 int SWIG_arg = 0; | |
1956 LloydBeacon *arg1 = (LloydBeacon *) 0 ; | |
1957 unsigned __int64 result; | |
1958 | |
1959 SWIG_check_num_args("LloydBeacon::uBeaconTime",1,1) | |
1960 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LloydBeacon::uBeaconTime",1,"LloydBeacon *"); | |
1961 | |
1962 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LloydBeacon,0))){ | |
1963 SWIG_fail_ptr("LloydBeacon_uBeaconTime_get",1,SWIGTYPE_p_LloydBeacon); | |
1964 } | |
1965 | |
1966 result = ((arg1)->uBeaconTime); | |
1967 { | |
1968 unsigned __int64 * resultptr = new unsigned __int64((const unsigned __int64 &) result); | |
1969 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_unsigned___int64,1); SWIG_arg++; | |
1970 } | |
1971 return SWIG_arg; | |
1972 | |
1973 if(0) SWIG_fail; | |
1974 | |
1975 fail: | |
1976 lua_error(L); | |
1977 return SWIG_arg; | |
1978 } | |
1979 | |
1980 | |
1981 static int _wrap_LloydBeacon_PartyPos_X_set(lua_State* L) { | |
1982 int SWIG_arg = 0; | |
1983 LloydBeacon *arg1 = (LloydBeacon *) 0 ; | |
1984 int arg2 ; | |
1985 | |
1986 SWIG_check_num_args("LloydBeacon::PartyPos_X",2,2) | |
1987 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LloydBeacon::PartyPos_X",1,"LloydBeacon *"); | |
1988 if(!lua_isnumber(L,2)) SWIG_fail_arg("LloydBeacon::PartyPos_X",2,"int"); | |
1989 | |
1990 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LloydBeacon,0))){ | |
1991 SWIG_fail_ptr("LloydBeacon_PartyPos_X_set",1,SWIGTYPE_p_LloydBeacon); | |
1992 } | |
1993 | |
1994 arg2 = (int)lua_tonumber(L, 2); | |
1995 if (arg1) (arg1)->PartyPos_X = arg2; | |
1996 | |
1997 return SWIG_arg; | |
1998 | |
1999 if(0) SWIG_fail; | |
2000 | |
2001 fail: | |
2002 lua_error(L); | |
2003 return SWIG_arg; | |
2004 } | |
2005 | |
2006 | |
2007 static int _wrap_LloydBeacon_PartyPos_X_get(lua_State* L) { | |
2008 int SWIG_arg = 0; | |
2009 LloydBeacon *arg1 = (LloydBeacon *) 0 ; | |
2010 int result; | |
2011 | |
2012 SWIG_check_num_args("LloydBeacon::PartyPos_X",1,1) | |
2013 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LloydBeacon::PartyPos_X",1,"LloydBeacon *"); | |
2014 | |
2015 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LloydBeacon,0))){ | |
2016 SWIG_fail_ptr("LloydBeacon_PartyPos_X_get",1,SWIGTYPE_p_LloydBeacon); | |
2017 } | |
2018 | |
2019 result = (int) ((arg1)->PartyPos_X); | |
2020 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
2021 return SWIG_arg; | |
2022 | |
2023 if(0) SWIG_fail; | |
2024 | |
2025 fail: | |
2026 lua_error(L); | |
2027 return SWIG_arg; | |
2028 } | |
2029 | |
2030 | |
2031 static int _wrap_LloydBeacon_PartyPos_Y_set(lua_State* L) { | |
2032 int SWIG_arg = 0; | |
2033 LloydBeacon *arg1 = (LloydBeacon *) 0 ; | |
2034 int arg2 ; | |
2035 | |
2036 SWIG_check_num_args("LloydBeacon::PartyPos_Y",2,2) | |
2037 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LloydBeacon::PartyPos_Y",1,"LloydBeacon *"); | |
2038 if(!lua_isnumber(L,2)) SWIG_fail_arg("LloydBeacon::PartyPos_Y",2,"int"); | |
2039 | |
2040 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LloydBeacon,0))){ | |
2041 SWIG_fail_ptr("LloydBeacon_PartyPos_Y_set",1,SWIGTYPE_p_LloydBeacon); | |
2042 } | |
2043 | |
2044 arg2 = (int)lua_tonumber(L, 2); | |
2045 if (arg1) (arg1)->PartyPos_Y = arg2; | |
2046 | |
2047 return SWIG_arg; | |
2048 | |
2049 if(0) SWIG_fail; | |
2050 | |
2051 fail: | |
2052 lua_error(L); | |
2053 return SWIG_arg; | |
2054 } | |
2055 | |
2056 | |
2057 static int _wrap_LloydBeacon_PartyPos_Y_get(lua_State* L) { | |
2058 int SWIG_arg = 0; | |
2059 LloydBeacon *arg1 = (LloydBeacon *) 0 ; | |
2060 int result; | |
2061 | |
2062 SWIG_check_num_args("LloydBeacon::PartyPos_Y",1,1) | |
2063 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LloydBeacon::PartyPos_Y",1,"LloydBeacon *"); | |
2064 | |
2065 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LloydBeacon,0))){ | |
2066 SWIG_fail_ptr("LloydBeacon_PartyPos_Y_get",1,SWIGTYPE_p_LloydBeacon); | |
2067 } | |
2068 | |
2069 result = (int) ((arg1)->PartyPos_Y); | |
2070 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
2071 return SWIG_arg; | |
2072 | |
2073 if(0) SWIG_fail; | |
2074 | |
2075 fail: | |
2076 lua_error(L); | |
2077 return SWIG_arg; | |
2078 } | |
2079 | |
2080 | |
2081 static int _wrap_LloydBeacon_PartyPos_Z_set(lua_State* L) { | |
2082 int SWIG_arg = 0; | |
2083 LloydBeacon *arg1 = (LloydBeacon *) 0 ; | |
2084 int arg2 ; | |
2085 | |
2086 SWIG_check_num_args("LloydBeacon::PartyPos_Z",2,2) | |
2087 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LloydBeacon::PartyPos_Z",1,"LloydBeacon *"); | |
2088 if(!lua_isnumber(L,2)) SWIG_fail_arg("LloydBeacon::PartyPos_Z",2,"int"); | |
2089 | |
2090 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LloydBeacon,0))){ | |
2091 SWIG_fail_ptr("LloydBeacon_PartyPos_Z_set",1,SWIGTYPE_p_LloydBeacon); | |
2092 } | |
2093 | |
2094 arg2 = (int)lua_tonumber(L, 2); | |
2095 if (arg1) (arg1)->PartyPos_Z = arg2; | |
2096 | |
2097 return SWIG_arg; | |
2098 | |
2099 if(0) SWIG_fail; | |
2100 | |
2101 fail: | |
2102 lua_error(L); | |
2103 return SWIG_arg; | |
2104 } | |
2105 | |
2106 | |
2107 static int _wrap_LloydBeacon_PartyPos_Z_get(lua_State* L) { | |
2108 int SWIG_arg = 0; | |
2109 LloydBeacon *arg1 = (LloydBeacon *) 0 ; | |
2110 int result; | |
2111 | |
2112 SWIG_check_num_args("LloydBeacon::PartyPos_Z",1,1) | |
2113 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LloydBeacon::PartyPos_Z",1,"LloydBeacon *"); | |
2114 | |
2115 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LloydBeacon,0))){ | |
2116 SWIG_fail_ptr("LloydBeacon_PartyPos_Z_get",1,SWIGTYPE_p_LloydBeacon); | |
2117 } | |
2118 | |
2119 result = (int) ((arg1)->PartyPos_Z); | |
2120 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
2121 return SWIG_arg; | |
2122 | |
2123 if(0) SWIG_fail; | |
2124 | |
2125 fail: | |
2126 lua_error(L); | |
2127 return SWIG_arg; | |
2128 } | |
2129 | |
2130 | |
2131 static int _wrap_LloydBeacon_PartyRot_X_set(lua_State* L) { | |
2132 int SWIG_arg = 0; | |
2133 LloydBeacon *arg1 = (LloydBeacon *) 0 ; | |
2134 __int16 arg2 ; | |
2135 __int16 *argp2 ; | |
2136 | |
2137 SWIG_check_num_args("LloydBeacon::PartyRot_X",2,2) | |
2138 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LloydBeacon::PartyRot_X",1,"LloydBeacon *"); | |
2139 if(!lua_isuserdata(L,2)) SWIG_fail_arg("LloydBeacon::PartyRot_X",2,"__int16"); | |
2140 | |
2141 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LloydBeacon,0))){ | |
2142 SWIG_fail_ptr("LloydBeacon_PartyRot_X_set",1,SWIGTYPE_p_LloydBeacon); | |
2143 } | |
2144 | |
2145 | |
2146 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
2147 SWIG_fail_ptr("LloydBeacon_PartyRot_X_set",2,SWIGTYPE_p___int16); | |
2148 } | |
2149 arg2 = *argp2; | |
2150 | |
2151 if (arg1) (arg1)->PartyRot_X = arg2; | |
2152 | |
2153 return SWIG_arg; | |
2154 | |
2155 if(0) SWIG_fail; | |
2156 | |
2157 fail: | |
2158 lua_error(L); | |
2159 return SWIG_arg; | |
2160 } | |
2161 | |
2162 | |
2163 static int _wrap_LloydBeacon_PartyRot_X_get(lua_State* L) { | |
2164 int SWIG_arg = 0; | |
2165 LloydBeacon *arg1 = (LloydBeacon *) 0 ; | |
2166 __int16 result; | |
2167 | |
2168 SWIG_check_num_args("LloydBeacon::PartyRot_X",1,1) | |
2169 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LloydBeacon::PartyRot_X",1,"LloydBeacon *"); | |
2170 | |
2171 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LloydBeacon,0))){ | |
2172 SWIG_fail_ptr("LloydBeacon_PartyRot_X_get",1,SWIGTYPE_p_LloydBeacon); | |
2173 } | |
2174 | |
2175 result = ((arg1)->PartyRot_X); | |
2176 { | |
2177 __int16 * resultptr = new __int16((const __int16 &) result); | |
2178 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
2179 } | |
2180 return SWIG_arg; | |
2181 | |
2182 if(0) SWIG_fail; | |
2183 | |
2184 fail: | |
2185 lua_error(L); | |
2186 return SWIG_arg; | |
2187 } | |
2188 | |
2189 | |
2190 static int _wrap_LloydBeacon_PartyRot_Y_set(lua_State* L) { | |
2191 int SWIG_arg = 0; | |
2192 LloydBeacon *arg1 = (LloydBeacon *) 0 ; | |
2193 __int16 arg2 ; | |
2194 __int16 *argp2 ; | |
2195 | |
2196 SWIG_check_num_args("LloydBeacon::PartyRot_Y",2,2) | |
2197 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LloydBeacon::PartyRot_Y",1,"LloydBeacon *"); | |
2198 if(!lua_isuserdata(L,2)) SWIG_fail_arg("LloydBeacon::PartyRot_Y",2,"__int16"); | |
2199 | |
2200 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LloydBeacon,0))){ | |
2201 SWIG_fail_ptr("LloydBeacon_PartyRot_Y_set",1,SWIGTYPE_p_LloydBeacon); | |
2202 } | |
2203 | |
2204 | |
2205 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
2206 SWIG_fail_ptr("LloydBeacon_PartyRot_Y_set",2,SWIGTYPE_p___int16); | |
2207 } | |
2208 arg2 = *argp2; | |
2209 | |
2210 if (arg1) (arg1)->PartyRot_Y = arg2; | |
2211 | |
2212 return SWIG_arg; | |
2213 | |
2214 if(0) SWIG_fail; | |
2215 | |
2216 fail: | |
2217 lua_error(L); | |
2218 return SWIG_arg; | |
2219 } | |
2220 | |
2221 | |
2222 static int _wrap_LloydBeacon_PartyRot_Y_get(lua_State* L) { | |
2223 int SWIG_arg = 0; | |
2224 LloydBeacon *arg1 = (LloydBeacon *) 0 ; | |
2225 __int16 result; | |
2226 | |
2227 SWIG_check_num_args("LloydBeacon::PartyRot_Y",1,1) | |
2228 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LloydBeacon::PartyRot_Y",1,"LloydBeacon *"); | |
2229 | |
2230 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LloydBeacon,0))){ | |
2231 SWIG_fail_ptr("LloydBeacon_PartyRot_Y_get",1,SWIGTYPE_p_LloydBeacon); | |
2232 } | |
2233 | |
2234 result = ((arg1)->PartyRot_Y); | |
2235 { | |
2236 __int16 * resultptr = new __int16((const __int16 &) result); | |
2237 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
2238 } | |
2239 return SWIG_arg; | |
2240 | |
2241 if(0) SWIG_fail; | |
2242 | |
2243 fail: | |
2244 lua_error(L); | |
2245 return SWIG_arg; | |
2246 } | |
2247 | |
2248 | |
2249 static int _wrap_LloydBeacon_SaveFileID_set(lua_State* L) { | |
2250 int SWIG_arg = 0; | |
2251 LloydBeacon *arg1 = (LloydBeacon *) 0 ; | |
2252 int arg2 ; | |
2253 | |
2254 SWIG_check_num_args("LloydBeacon::SaveFileID",2,2) | |
2255 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LloydBeacon::SaveFileID",1,"LloydBeacon *"); | |
2256 if(!lua_isnumber(L,2)) SWIG_fail_arg("LloydBeacon::SaveFileID",2,"int"); | |
2257 | |
2258 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LloydBeacon,0))){ | |
2259 SWIG_fail_ptr("LloydBeacon_SaveFileID_set",1,SWIGTYPE_p_LloydBeacon); | |
2260 } | |
2261 | |
2262 arg2 = (int)lua_tonumber(L, 2); | |
2263 if (arg1) (arg1)->SaveFileID = arg2; | |
2264 | |
2265 return SWIG_arg; | |
2266 | |
2267 if(0) SWIG_fail; | |
2268 | |
2269 fail: | |
2270 lua_error(L); | |
2271 return SWIG_arg; | |
2272 } | |
2273 | |
2274 | |
2275 static int _wrap_LloydBeacon_SaveFileID_get(lua_State* L) { | |
2276 int SWIG_arg = 0; | |
2277 LloydBeacon *arg1 = (LloydBeacon *) 0 ; | |
2278 int result; | |
2279 | |
2280 SWIG_check_num_args("LloydBeacon::SaveFileID",1,1) | |
2281 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LloydBeacon::SaveFileID",1,"LloydBeacon *"); | |
2282 | |
2283 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LloydBeacon,0))){ | |
2284 SWIG_fail_ptr("LloydBeacon_SaveFileID_get",1,SWIGTYPE_p_LloydBeacon); | |
2285 } | |
2286 | |
2287 result = (int) ((arg1)->SaveFileID); | |
2288 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
2289 return SWIG_arg; | |
2290 | |
2291 if(0) SWIG_fail; | |
2292 | |
2293 fail: | |
2294 lua_error(L); | |
2295 return SWIG_arg; | |
2296 } | |
2297 | |
2298 | |
2299 static int _wrap_new_LloydBeacon(lua_State* L) { | |
2300 int SWIG_arg = 0; | |
2301 LloydBeacon *result = 0 ; | |
2302 | |
2303 SWIG_check_num_args("LloydBeacon::LloydBeacon",0,0) | |
2304 result = (LloydBeacon *)new LloydBeacon(); | |
2305 SWIG_NewPointerObj(L,result,SWIGTYPE_p_LloydBeacon,1); SWIG_arg++; | |
2306 return SWIG_arg; | |
2307 | |
2308 if(0) SWIG_fail; | |
2309 | |
2310 fail: | |
2311 lua_error(L); | |
2312 return SWIG_arg; | |
2313 } | |
2314 | |
2315 | |
2316 static void swig_delete_LloydBeacon(void *obj) { | |
2317 LloydBeacon *arg1 = (LloydBeacon *) obj; | |
2318 delete arg1; | |
2319 } | |
2320 static swig_lua_method swig_LloydBeacon_methods[] = { | |
2321 {0,0} | |
2322 }; | |
2323 static swig_lua_attribute swig_LloydBeacon_attributes[] = { | |
2324 { "uBeaconTime", _wrap_LloydBeacon_uBeaconTime_get, _wrap_LloydBeacon_uBeaconTime_set}, | |
2325 { "PartyPos_X", _wrap_LloydBeacon_PartyPos_X_get, _wrap_LloydBeacon_PartyPos_X_set}, | |
2326 { "PartyPos_Y", _wrap_LloydBeacon_PartyPos_Y_get, _wrap_LloydBeacon_PartyPos_Y_set}, | |
2327 { "PartyPos_Z", _wrap_LloydBeacon_PartyPos_Z_get, _wrap_LloydBeacon_PartyPos_Z_set}, | |
2328 { "PartyRot_X", _wrap_LloydBeacon_PartyRot_X_get, _wrap_LloydBeacon_PartyRot_X_set}, | |
2329 { "PartyRot_Y", _wrap_LloydBeacon_PartyRot_Y_get, _wrap_LloydBeacon_PartyRot_Y_set}, | |
2330 { "SaveFileID", _wrap_LloydBeacon_SaveFileID_get, _wrap_LloydBeacon_SaveFileID_set}, | |
2331 {0,0,0} | |
2332 }; | |
2333 static swig_lua_attribute swig_LloydBeacon_cls_attributes[] = { | |
2334 {0,0,0} | |
2335 }; | |
2336 static swig_lua_method swig_LloydBeacon_cls_methods[] = { | |
2337 {0,0} | |
2338 }; | |
2339 static swig_lua_const_info swig_LloydBeacon_cls_constants[] = { | |
2340 {0,0,0,0,0,0} | |
2341 }; | |
2342 static swig_lua_class *swig_LloydBeacon_bases[] = {0}; | |
2343 static const char *swig_LloydBeacon_base_names[] = {0}; | |
2344 static swig_lua_class _wrap_class_LloydBeacon = { "LloydBeacon", &SWIGTYPE_p_LloydBeacon,_wrap_new_LloydBeacon, swig_delete_LloydBeacon, swig_LloydBeacon_methods, swig_LloydBeacon_attributes, { "LloydBeacon", swig_LloydBeacon_cls_methods, swig_LloydBeacon_cls_attributes, swig_LloydBeacon_cls_constants }, swig_LloydBeacon_bases, swig_LloydBeacon_base_names }; | |
2345 | |
2346 static int _wrap_PlayerSpellbookChapter_bIsSpellAvailable_set(lua_State* L) { | |
2347 int SWIG_arg = 0; | |
2348 PlayerSpellbookChapter *arg1 = (PlayerSpellbookChapter *) 0 ; | |
2349 std::array< char,11 > arg2 ; | |
2350 std::array< char,11 > *argp2 ; | |
2351 | |
2352 SWIG_check_num_args("PlayerSpellbookChapter::bIsSpellAvailable",2,2) | |
2353 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("PlayerSpellbookChapter::bIsSpellAvailable",1,"PlayerSpellbookChapter *"); | |
2354 if(!lua_isuserdata(L,2)) SWIG_fail_arg("PlayerSpellbookChapter::bIsSpellAvailable",2,"std::array< char,11 >"); | |
2355 | |
2356 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_PlayerSpellbookChapter,0))){ | |
2357 SWIG_fail_ptr("PlayerSpellbookChapter_bIsSpellAvailable_set",1,SWIGTYPE_p_PlayerSpellbookChapter); | |
2358 } | |
2359 | |
2360 | |
2361 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_std__arrayT_char_11_t,0))){ | |
2362 SWIG_fail_ptr("PlayerSpellbookChapter_bIsSpellAvailable_set",2,SWIGTYPE_p_std__arrayT_char_11_t); | |
2363 } | |
2364 arg2 = *argp2; | |
2365 | |
2366 if (arg1) (arg1)->bIsSpellAvailable = arg2; | |
2367 | |
2368 return SWIG_arg; | |
2369 | |
2370 if(0) SWIG_fail; | |
2371 | |
2372 fail: | |
2373 lua_error(L); | |
2374 return SWIG_arg; | |
2375 } | |
2376 | |
2377 | |
2378 static int _wrap_PlayerSpellbookChapter_bIsSpellAvailable_get(lua_State* L) { | |
2379 int SWIG_arg = 0; | |
2380 PlayerSpellbookChapter *arg1 = (PlayerSpellbookChapter *) 0 ; | |
2381 std::array< char,11 > result; | |
2382 | |
2383 SWIG_check_num_args("PlayerSpellbookChapter::bIsSpellAvailable",1,1) | |
2384 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("PlayerSpellbookChapter::bIsSpellAvailable",1,"PlayerSpellbookChapter *"); | |
2385 | |
2386 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_PlayerSpellbookChapter,0))){ | |
2387 SWIG_fail_ptr("PlayerSpellbookChapter_bIsSpellAvailable_get",1,SWIGTYPE_p_PlayerSpellbookChapter); | |
2388 } | |
2389 | |
2390 result = ((arg1)->bIsSpellAvailable); | |
2391 { | |
2392 std::array< char,11 > * resultptr = new std::array< char,11 >((const std::array< char,11 > &) result); | |
2393 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_std__arrayT_char_11_t,1); SWIG_arg++; | |
2394 } | |
2395 return SWIG_arg; | |
2396 | |
2397 if(0) SWIG_fail; | |
2398 | |
2399 fail: | |
2400 lua_error(L); | |
2401 return SWIG_arg; | |
2402 } | |
2403 | |
2404 | |
2405 static int _wrap_new_PlayerSpellbookChapter(lua_State* L) { | |
2406 int SWIG_arg = 0; | |
2407 PlayerSpellbookChapter *result = 0 ; | |
2408 | |
2409 SWIG_check_num_args("PlayerSpellbookChapter::PlayerSpellbookChapter",0,0) | |
2410 result = (PlayerSpellbookChapter *)new PlayerSpellbookChapter(); | |
2411 SWIG_NewPointerObj(L,result,SWIGTYPE_p_PlayerSpellbookChapter,1); SWIG_arg++; | |
2412 return SWIG_arg; | |
2413 | |
2414 if(0) SWIG_fail; | |
2415 | |
2416 fail: | |
2417 lua_error(L); | |
2418 return SWIG_arg; | |
2419 } | |
2420 | |
2421 | |
2422 static void swig_delete_PlayerSpellbookChapter(void *obj) { | |
2423 PlayerSpellbookChapter *arg1 = (PlayerSpellbookChapter *) obj; | |
2424 delete arg1; | |
2425 } | |
2426 static swig_lua_method swig_PlayerSpellbookChapter_methods[] = { | |
2427 {0,0} | |
2428 }; | |
2429 static swig_lua_attribute swig_PlayerSpellbookChapter_attributes[] = { | |
2430 { "bIsSpellAvailable", _wrap_PlayerSpellbookChapter_bIsSpellAvailable_get, _wrap_PlayerSpellbookChapter_bIsSpellAvailable_set}, | |
2431 {0,0,0} | |
2432 }; | |
2433 static swig_lua_attribute swig_PlayerSpellbookChapter_cls_attributes[] = { | |
2434 {0,0,0} | |
2435 }; | |
2436 static swig_lua_method swig_PlayerSpellbookChapter_cls_methods[] = { | |
2437 {0,0} | |
2438 }; | |
2439 static swig_lua_const_info swig_PlayerSpellbookChapter_cls_constants[] = { | |
2440 {0,0,0,0,0,0} | |
2441 }; | |
2442 static swig_lua_class *swig_PlayerSpellbookChapter_bases[] = {0}; | |
2443 static const char *swig_PlayerSpellbookChapter_base_names[] = {0}; | |
2444 static swig_lua_class _wrap_class_PlayerSpellbookChapter = { "PlayerSpellbookChapter", &SWIGTYPE_p_PlayerSpellbookChapter,_wrap_new_PlayerSpellbookChapter, swig_delete_PlayerSpellbookChapter, swig_PlayerSpellbookChapter_methods, swig_PlayerSpellbookChapter_attributes, { "PlayerSpellbookChapter", swig_PlayerSpellbookChapter_cls_methods, swig_PlayerSpellbookChapter_cls_attributes, swig_PlayerSpellbookChapter_cls_constants }, swig_PlayerSpellbookChapter_bases, swig_PlayerSpellbookChapter_base_names }; | |
2445 | |
2446 static int _wrap_new_PlayerSpells(lua_State* L) { | |
2447 int SWIG_arg = 0; | |
2448 PlayerSpells *result = 0 ; | |
2449 | |
2450 SWIG_check_num_args("PlayerSpells::PlayerSpells",0,0) | |
2451 result = (PlayerSpells *)new PlayerSpells(); | |
2452 SWIG_NewPointerObj(L,result,SWIGTYPE_p_PlayerSpells,1); SWIG_arg++; | |
2453 return SWIG_arg; | |
2454 | |
2455 if(0) SWIG_fail; | |
2456 | |
2457 fail: | |
2458 lua_error(L); | |
2459 return SWIG_arg; | |
2460 } | |
2461 | |
2462 | |
2463 static void swig_delete_PlayerSpells(void *obj) { | |
2464 PlayerSpells *arg1 = (PlayerSpells *) obj; | |
2465 delete arg1; | |
2466 } | |
2467 static swig_lua_method swig_PlayerSpells_methods[] = { | |
2468 {0,0} | |
2469 }; | |
2470 static swig_lua_attribute swig_PlayerSpells_attributes[] = { | |
2471 {0,0,0} | |
2472 }; | |
2473 static swig_lua_attribute swig_PlayerSpells_cls_attributes[] = { | |
2474 {0,0,0} | |
2475 }; | |
2476 static swig_lua_method swig_PlayerSpells_cls_methods[] = { | |
2477 {0,0} | |
2478 }; | |
2479 static swig_lua_const_info swig_PlayerSpells_cls_constants[] = { | |
2480 {0,0,0,0,0,0} | |
2481 }; | |
2482 static swig_lua_class *swig_PlayerSpells_bases[] = {0}; | |
2483 static const char *swig_PlayerSpells_base_names[] = {0}; | |
2484 static swig_lua_class _wrap_class_PlayerSpells = { "PlayerSpells", &SWIGTYPE_p_PlayerSpells,_wrap_new_PlayerSpells, swig_delete_PlayerSpells, swig_PlayerSpells_methods, swig_PlayerSpells_attributes, { "PlayerSpells", swig_PlayerSpells_cls_methods, swig_PlayerSpells_cls_attributes, swig_PlayerSpells_cls_constants }, swig_PlayerSpells_bases, swig_PlayerSpells_base_names }; | |
2485 | |
2486 static int _wrap_new_PlayerEquipment(lua_State* L) { | |
2487 int SWIG_arg = 0; | |
2488 PlayerEquipment *result = 0 ; | |
2489 | |
2490 SWIG_check_num_args("PlayerEquipment::PlayerEquipment",0,0) | |
2491 result = (PlayerEquipment *)new PlayerEquipment(); | |
2492 SWIG_NewPointerObj(L,result,SWIGTYPE_p_PlayerEquipment,1); SWIG_arg++; | |
2493 return SWIG_arg; | |
2494 | |
2495 if(0) SWIG_fail; | |
2496 | |
2497 fail: | |
2498 lua_error(L); | |
2499 return SWIG_arg; | |
2500 } | |
2501 | |
2502 | |
2503 static void swig_delete_PlayerEquipment(void *obj) { | |
2504 PlayerEquipment *arg1 = (PlayerEquipment *) obj; | |
2505 delete arg1; | |
2506 } | |
2507 static swig_lua_method swig_PlayerEquipment_methods[] = { | |
2508 {0,0} | |
2509 }; | |
2510 static swig_lua_attribute swig_PlayerEquipment_attributes[] = { | |
2511 {0,0,0} | |
2512 }; | |
2513 static swig_lua_attribute swig_PlayerEquipment_cls_attributes[] = { | |
2514 {0,0,0} | |
2515 }; | |
2516 static swig_lua_method swig_PlayerEquipment_cls_methods[] = { | |
2517 {0,0} | |
2518 }; | |
2519 static swig_lua_const_info swig_PlayerEquipment_cls_constants[] = { | |
2520 {0,0,0,0,0,0} | |
2521 }; | |
2522 static swig_lua_class *swig_PlayerEquipment_bases[] = {0}; | |
2523 static const char *swig_PlayerEquipment_base_names[] = {0}; | |
2524 static swig_lua_class _wrap_class_PlayerEquipment = { "PlayerEquipment", &SWIGTYPE_p_PlayerEquipment,_wrap_new_PlayerEquipment, swig_delete_PlayerEquipment, swig_PlayerEquipment_methods, swig_PlayerEquipment_attributes, { "PlayerEquipment", swig_PlayerEquipment_cls_methods, swig_PlayerEquipment_cls_attributes, swig_PlayerEquipment_cls_constants }, swig_PlayerEquipment_bases, swig_PlayerEquipment_base_names }; | |
2525 | |
2526 static int _wrap_new_Player(lua_State* L) { | |
2527 int SWIG_arg = 0; | |
2528 Player *result = 0 ; | |
2529 | |
2530 SWIG_check_num_args("Player::Player",0,0) | |
2531 result = (Player *)new Player(); | |
2532 SWIG_NewPointerObj(L,result,SWIGTYPE_p_Player,1); SWIG_arg++; | |
2533 return SWIG_arg; | |
2534 | |
2535 if(0) SWIG_fail; | |
2536 | |
2537 fail: | |
2538 lua_error(L); | |
2539 return SWIG_arg; | |
2540 } | |
2541 | |
2542 | |
2543 static int _wrap_Player_SetVariable(lua_State* L) { | |
2544 int SWIG_arg = 0; | |
2545 Player *arg1 = (Player *) 0 ; | |
2546 enum VariableType arg2 ; | |
2547 int arg3 ; | |
2548 | |
2549 SWIG_check_num_args("Player::SetVariable",3,3) | |
2550 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetVariable",1,"Player *"); | |
2551 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::SetVariable",2,"enum VariableType"); | |
2552 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::SetVariable",3,"int"); | |
2553 | |
2554 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
2555 SWIG_fail_ptr("Player_SetVariable",1,SWIGTYPE_p_Player); | |
2556 } | |
2557 | |
2558 arg2 = (enum VariableType)(int)lua_tonumber(L, 2); | |
2559 arg3 = (int)lua_tonumber(L, 3); | |
2560 (arg1)->SetVariable(arg2,arg3); | |
2561 | |
2562 return SWIG_arg; | |
2563 | |
2564 if(0) SWIG_fail; | |
2565 | |
2566 fail: | |
2567 lua_error(L); | |
2568 return SWIG_arg; | |
2569 } | |
2570 | |
2571 | |
2572 static int _wrap_Player_AddVariable(lua_State* L) { | |
2573 int SWIG_arg = 0; | |
2574 Player *arg1 = (Player *) 0 ; | |
2575 enum VariableType arg2 ; | |
2576 int arg3 ; | |
2577 | |
2578 SWIG_check_num_args("Player::AddVariable",3,3) | |
2579 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::AddVariable",1,"Player *"); | |
2580 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::AddVariable",2,"enum VariableType"); | |
2581 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::AddVariable",3,"int"); | |
2582 | |
2583 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
2584 SWIG_fail_ptr("Player_AddVariable",1,SWIGTYPE_p_Player); | |
2585 } | |
2586 | |
2587 arg2 = (enum VariableType)(int)lua_tonumber(L, 2); | |
2588 arg3 = (int)lua_tonumber(L, 3); | |
2589 (arg1)->AddVariable(arg2,arg3); | |
2590 | |
2591 return SWIG_arg; | |
2592 | |
2593 if(0) SWIG_fail; | |
2594 | |
2595 fail: | |
2596 lua_error(L); | |
2597 return SWIG_arg; | |
2598 } | |
2599 | |
2600 | |
2601 static int _wrap_Player_SubtractVariable(lua_State* L) { | |
2602 int SWIG_arg = 0; | |
2603 Player *arg1 = (Player *) 0 ; | |
2604 enum VariableType arg2 ; | |
2605 int arg3 ; | |
2606 | |
2607 SWIG_check_num_args("Player::SubtractVariable",3,3) | |
2608 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SubtractVariable",1,"Player *"); | |
2609 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::SubtractVariable",2,"enum VariableType"); | |
2610 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::SubtractVariable",3,"int"); | |
2611 | |
2612 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
2613 SWIG_fail_ptr("Player_SubtractVariable",1,SWIGTYPE_p_Player); | |
2614 } | |
2615 | |
2616 arg2 = (enum VariableType)(int)lua_tonumber(L, 2); | |
2617 arg3 = (int)lua_tonumber(L, 3); | |
2618 (arg1)->SubtractVariable(arg2,arg3); | |
2619 | |
2620 return SWIG_arg; | |
2621 | |
2622 if(0) SWIG_fail; | |
2623 | |
2624 fail: | |
2625 lua_error(L); | |
2626 return SWIG_arg; | |
2627 } | |
2628 | |
2629 | |
2630 static int _wrap_Player_CompareVariable(lua_State* L) { | |
2631 int SWIG_arg = 0; | |
2632 Player *arg1 = (Player *) 0 ; | |
2633 enum VariableType arg2 ; | |
2634 int arg3 ; | |
2635 bool result; | |
2636 | |
2637 SWIG_check_num_args("Player::CompareVariable",3,3) | |
2638 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::CompareVariable",1,"Player *"); | |
2639 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::CompareVariable",2,"enum VariableType"); | |
2640 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::CompareVariable",3,"int"); | |
2641 | |
2642 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
2643 SWIG_fail_ptr("Player_CompareVariable",1,SWIGTYPE_p_Player); | |
2644 } | |
2645 | |
2646 arg2 = (enum VariableType)(int)lua_tonumber(L, 2); | |
2647 arg3 = (int)lua_tonumber(L, 3); | |
2648 result = (bool)(arg1)->CompareVariable(arg2,arg3); | |
2649 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
2650 return SWIG_arg; | |
2651 | |
2652 if(0) SWIG_fail; | |
2653 | |
2654 fail: | |
2655 lua_error(L); | |
2656 return SWIG_arg; | |
2657 } | |
2658 | |
2659 | |
2660 static int _wrap_Player_UseItem_DrinkPotion_etc(lua_State* L) { | |
2661 int SWIG_arg = 0; | |
2662 Player *arg1 = (Player *) 0 ; | |
2663 int arg2 ; | |
2664 int arg3 ; | |
2665 | |
2666 SWIG_check_num_args("Player::UseItem_DrinkPotion_etc",3,3) | |
2667 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::UseItem_DrinkPotion_etc",1,"Player *"); | |
2668 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::UseItem_DrinkPotion_etc",2,"int"); | |
2669 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::UseItem_DrinkPotion_etc",3,"int"); | |
2670 | |
2671 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
2672 SWIG_fail_ptr("Player_UseItem_DrinkPotion_etc",1,SWIGTYPE_p_Player); | |
2673 } | |
2674 | |
2675 arg2 = (int)lua_tonumber(L, 2); | |
2676 arg3 = (int)lua_tonumber(L, 3); | |
2677 (arg1)->UseItem_DrinkPotion_etc(arg2,arg3); | |
2678 | |
2679 return SWIG_arg; | |
2680 | |
2681 if(0) SWIG_fail; | |
2682 | |
2683 fail: | |
2684 lua_error(L); | |
2685 return SWIG_arg; | |
2686 } | |
2687 | |
2688 | |
2689 static int _wrap_Player_AddItem__SWIG_0(lua_State* L) { | |
2690 int SWIG_arg = 0; | |
2691 Player *arg1 = (Player *) 0 ; | |
2692 ItemGen *arg2 = (ItemGen *) 0 ; | |
2693 bool result; | |
2694 | |
2695 SWIG_check_num_args("Player::AddItem",2,2) | |
2696 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::AddItem",1,"Player *"); | |
2697 if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("Player::AddItem",2,"ItemGen *"); | |
2698 | |
2699 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
2700 SWIG_fail_ptr("Player_AddItem",1,SWIGTYPE_p_Player); | |
2701 } | |
2702 | |
2703 | |
2704 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_ItemGen,0))){ | |
2705 SWIG_fail_ptr("Player_AddItem",2,SWIGTYPE_p_ItemGen); | |
2706 } | |
2707 | |
2708 result = (bool)(arg1)->AddItem(arg2); | |
2709 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
2710 return SWIG_arg; | |
2711 | |
2712 if(0) SWIG_fail; | |
2713 | |
2714 fail: | |
2715 lua_error(L); | |
2716 return SWIG_arg; | |
2717 } | |
2718 | |
2719 | |
2720 static int _wrap_Player_GetActualAttribute(lua_State* L) { | |
2721 int SWIG_arg = 0; | |
2722 Player *arg1 = (Player *) 0 ; | |
2723 CHARACTER_ATTRIBUTE_TYPE arg2 ; | |
2724 unsigned short Player::*arg3 ; | |
2725 unsigned short Player::*arg4 ; | |
2726 int result; | |
2727 | |
2728 SWIG_check_num_args("Player::GetActualAttribute",4,4) | |
2729 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetActualAttribute",1,"Player *"); | |
2730 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetActualAttribute",2,"CHARACTER_ATTRIBUTE_TYPE"); | |
2731 if(!lua_isuserdata(L,3)) SWIG_fail_arg("Player::GetActualAttribute",3,"unsigned short Player::*"); | |
2732 if(!lua_isuserdata(L,4)) SWIG_fail_arg("Player::GetActualAttribute",4,"unsigned short Player::*"); | |
2733 | |
2734 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
2735 SWIG_fail_ptr("Player_GetActualAttribute",1,SWIGTYPE_p_Player); | |
2736 } | |
2737 | |
2738 arg2 = (CHARACTER_ATTRIBUTE_TYPE)(int)lua_tonumber(L, 2); | |
2739 | |
2740 if (!SWIG_IsOK(SWIG_ConvertMember(L,3,(void*)(&arg3),sizeof(unsigned short Player::*),SWIGTYPE_m_Player__unsigned_short))) | |
2741 SWIG_fail_ptr("Player_GetActualAttribute",3,SWIGTYPE_m_Player__unsigned_short); | |
2742 | |
2743 | |
2744 if (!SWIG_IsOK(SWIG_ConvertMember(L,4,(void*)(&arg4),sizeof(unsigned short Player::*),SWIGTYPE_m_Player__unsigned_short))) | |
2745 SWIG_fail_ptr("Player_GetActualAttribute",4,SWIGTYPE_m_Player__unsigned_short); | |
2746 | |
2747 result = (int)(arg1)->GetActualAttribute(arg2,arg3,arg4); | |
2748 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
2749 return SWIG_arg; | |
2750 | |
2751 if(0) SWIG_fail; | |
2752 | |
2753 fail: | |
2754 lua_error(L); | |
2755 return SWIG_arg; | |
2756 } | |
2757 | |
2758 | |
2759 static int _wrap_Player_GetBaseStrength(lua_State* L) { | |
2760 int SWIG_arg = 0; | |
2761 Player *arg1 = (Player *) 0 ; | |
2762 int result; | |
2763 | |
2764 SWIG_check_num_args("Player::GetBaseStrength",1,1) | |
2765 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetBaseStrength",1,"Player *"); | |
2766 | |
2767 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
2768 SWIG_fail_ptr("Player_GetBaseStrength",1,SWIGTYPE_p_Player); | |
2769 } | |
2770 | |
2771 result = (int)(arg1)->GetBaseStrength(); | |
2772 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
2773 return SWIG_arg; | |
2774 | |
2775 if(0) SWIG_fail; | |
2776 | |
2777 fail: | |
2778 lua_error(L); | |
2779 return SWIG_arg; | |
2780 } | |
2781 | |
2782 | |
2783 static int _wrap_Player_GetBaseIntelligence(lua_State* L) { | |
2784 int SWIG_arg = 0; | |
2785 Player *arg1 = (Player *) 0 ; | |
2786 int result; | |
2787 | |
2788 SWIG_check_num_args("Player::GetBaseIntelligence",1,1) | |
2789 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetBaseIntelligence",1,"Player *"); | |
2790 | |
2791 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
2792 SWIG_fail_ptr("Player_GetBaseIntelligence",1,SWIGTYPE_p_Player); | |
2793 } | |
2794 | |
2795 result = (int)(arg1)->GetBaseIntelligence(); | |
2796 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
2797 return SWIG_arg; | |
2798 | |
2799 if(0) SWIG_fail; | |
2800 | |
2801 fail: | |
2802 lua_error(L); | |
2803 return SWIG_arg; | |
2804 } | |
2805 | |
2806 | |
2807 static int _wrap_Player_GetBaseWillpower(lua_State* L) { | |
2808 int SWIG_arg = 0; | |
2809 Player *arg1 = (Player *) 0 ; | |
2810 int result; | |
2811 | |
2812 SWIG_check_num_args("Player::GetBaseWillpower",1,1) | |
2813 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetBaseWillpower",1,"Player *"); | |
2814 | |
2815 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
2816 SWIG_fail_ptr("Player_GetBaseWillpower",1,SWIGTYPE_p_Player); | |
2817 } | |
2818 | |
2819 result = (int)(arg1)->GetBaseWillpower(); | |
2820 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
2821 return SWIG_arg; | |
2822 | |
2823 if(0) SWIG_fail; | |
2824 | |
2825 fail: | |
2826 lua_error(L); | |
2827 return SWIG_arg; | |
2828 } | |
2829 | |
2830 | |
2831 static int _wrap_Player_GetBaseEndurance(lua_State* L) { | |
2832 int SWIG_arg = 0; | |
2833 Player *arg1 = (Player *) 0 ; | |
2834 int result; | |
2835 | |
2836 SWIG_check_num_args("Player::GetBaseEndurance",1,1) | |
2837 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetBaseEndurance",1,"Player *"); | |
2838 | |
2839 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
2840 SWIG_fail_ptr("Player_GetBaseEndurance",1,SWIGTYPE_p_Player); | |
2841 } | |
2842 | |
2843 result = (int)(arg1)->GetBaseEndurance(); | |
2844 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
2845 return SWIG_arg; | |
2846 | |
2847 if(0) SWIG_fail; | |
2848 | |
2849 fail: | |
2850 lua_error(L); | |
2851 return SWIG_arg; | |
2852 } | |
2853 | |
2854 | |
2855 static int _wrap_Player_GetBaseAccuracy(lua_State* L) { | |
2856 int SWIG_arg = 0; | |
2857 Player *arg1 = (Player *) 0 ; | |
2858 int result; | |
2859 | |
2860 SWIG_check_num_args("Player::GetBaseAccuracy",1,1) | |
2861 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetBaseAccuracy",1,"Player *"); | |
2862 | |
2863 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
2864 SWIG_fail_ptr("Player_GetBaseAccuracy",1,SWIGTYPE_p_Player); | |
2865 } | |
2866 | |
2867 result = (int)(arg1)->GetBaseAccuracy(); | |
2868 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
2869 return SWIG_arg; | |
2870 | |
2871 if(0) SWIG_fail; | |
2872 | |
2873 fail: | |
2874 lua_error(L); | |
2875 return SWIG_arg; | |
2876 } | |
2877 | |
2878 | |
2879 static int _wrap_Player_GetBaseSpeed(lua_State* L) { | |
2880 int SWIG_arg = 0; | |
2881 Player *arg1 = (Player *) 0 ; | |
2882 int result; | |
2883 | |
2884 SWIG_check_num_args("Player::GetBaseSpeed",1,1) | |
2885 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetBaseSpeed",1,"Player *"); | |
2886 | |
2887 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
2888 SWIG_fail_ptr("Player_GetBaseSpeed",1,SWIGTYPE_p_Player); | |
2889 } | |
2890 | |
2891 result = (int)(arg1)->GetBaseSpeed(); | |
2892 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
2893 return SWIG_arg; | |
2894 | |
2895 if(0) SWIG_fail; | |
2896 | |
2897 fail: | |
2898 lua_error(L); | |
2899 return SWIG_arg; | |
2900 } | |
2901 | |
2902 | |
2903 static int _wrap_Player_GetBaseLuck(lua_State* L) { | |
2904 int SWIG_arg = 0; | |
2905 Player *arg1 = (Player *) 0 ; | |
2906 int result; | |
2907 | |
2908 SWIG_check_num_args("Player::GetBaseLuck",1,1) | |
2909 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetBaseLuck",1,"Player *"); | |
2910 | |
2911 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
2912 SWIG_fail_ptr("Player_GetBaseLuck",1,SWIGTYPE_p_Player); | |
2913 } | |
2914 | |
2915 result = (int)(arg1)->GetBaseLuck(); | |
2916 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
2917 return SWIG_arg; | |
2918 | |
2919 if(0) SWIG_fail; | |
2920 | |
2921 fail: | |
2922 lua_error(L); | |
2923 return SWIG_arg; | |
2924 } | |
2925 | |
2926 | |
2927 static int _wrap_Player_GetBaseLevel(lua_State* L) { | |
2928 int SWIG_arg = 0; | |
2929 Player *arg1 = (Player *) 0 ; | |
2930 int result; | |
2931 | |
2932 SWIG_check_num_args("Player::GetBaseLevel",1,1) | |
2933 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetBaseLevel",1,"Player *"); | |
2934 | |
2935 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
2936 SWIG_fail_ptr("Player_GetBaseLevel",1,SWIGTYPE_p_Player); | |
2937 } | |
2938 | |
2939 result = (int)(arg1)->GetBaseLevel(); | |
2940 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
2941 return SWIG_arg; | |
2942 | |
2943 if(0) SWIG_fail; | |
2944 | |
2945 fail: | |
2946 lua_error(L); | |
2947 return SWIG_arg; | |
2948 } | |
2949 | |
2950 | |
2951 static int _wrap_Player_GetActualLevel(lua_State* L) { | |
2952 int SWIG_arg = 0; | |
2953 Player *arg1 = (Player *) 0 ; | |
2954 int result; | |
2955 | |
2956 SWIG_check_num_args("Player::GetActualLevel",1,1) | |
2957 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetActualLevel",1,"Player *"); | |
2958 | |
2959 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
2960 SWIG_fail_ptr("Player_GetActualLevel",1,SWIGTYPE_p_Player); | |
2961 } | |
2962 | |
2963 result = (int)(arg1)->GetActualLevel(); | |
2964 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
2965 return SWIG_arg; | |
2966 | |
2967 if(0) SWIG_fail; | |
2968 | |
2969 fail: | |
2970 lua_error(L); | |
2971 return SWIG_arg; | |
2972 } | |
2973 | |
2974 | |
2975 static int _wrap_Player_GetActualMight(lua_State* L) { | |
2976 int SWIG_arg = 0; | |
2977 Player *arg1 = (Player *) 0 ; | |
2978 int result; | |
2979 | |
2980 SWIG_check_num_args("Player::GetActualMight",1,1) | |
2981 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetActualMight",1,"Player *"); | |
2982 | |
2983 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
2984 SWIG_fail_ptr("Player_GetActualMight",1,SWIGTYPE_p_Player); | |
2985 } | |
2986 | |
2987 result = (int)(arg1)->GetActualMight(); | |
2988 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
2989 return SWIG_arg; | |
2990 | |
2991 if(0) SWIG_fail; | |
2992 | |
2993 fail: | |
2994 lua_error(L); | |
2995 return SWIG_arg; | |
2996 } | |
2997 | |
2998 | |
2999 static int _wrap_Player_GetActualIntelligence(lua_State* L) { | |
3000 int SWIG_arg = 0; | |
3001 Player *arg1 = (Player *) 0 ; | |
3002 int result; | |
3003 | |
3004 SWIG_check_num_args("Player::GetActualIntelligence",1,1) | |
3005 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetActualIntelligence",1,"Player *"); | |
3006 | |
3007 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3008 SWIG_fail_ptr("Player_GetActualIntelligence",1,SWIGTYPE_p_Player); | |
3009 } | |
3010 | |
3011 result = (int)(arg1)->GetActualIntelligence(); | |
3012 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3013 return SWIG_arg; | |
3014 | |
3015 if(0) SWIG_fail; | |
3016 | |
3017 fail: | |
3018 lua_error(L); | |
3019 return SWIG_arg; | |
3020 } | |
3021 | |
3022 | |
3023 static int _wrap_Player_GetActualWillpower(lua_State* L) { | |
3024 int SWIG_arg = 0; | |
3025 Player *arg1 = (Player *) 0 ; | |
3026 int result; | |
3027 | |
3028 SWIG_check_num_args("Player::GetActualWillpower",1,1) | |
3029 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetActualWillpower",1,"Player *"); | |
3030 | |
3031 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3032 SWIG_fail_ptr("Player_GetActualWillpower",1,SWIGTYPE_p_Player); | |
3033 } | |
3034 | |
3035 result = (int)(arg1)->GetActualWillpower(); | |
3036 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3037 return SWIG_arg; | |
3038 | |
3039 if(0) SWIG_fail; | |
3040 | |
3041 fail: | |
3042 lua_error(L); | |
3043 return SWIG_arg; | |
3044 } | |
3045 | |
3046 | |
3047 static int _wrap_Player_GetActualEndurance(lua_State* L) { | |
3048 int SWIG_arg = 0; | |
3049 Player *arg1 = (Player *) 0 ; | |
3050 int result; | |
3051 | |
3052 SWIG_check_num_args("Player::GetActualEndurance",1,1) | |
3053 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetActualEndurance",1,"Player *"); | |
3054 | |
3055 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3056 SWIG_fail_ptr("Player_GetActualEndurance",1,SWIGTYPE_p_Player); | |
3057 } | |
3058 | |
3059 result = (int)(arg1)->GetActualEndurance(); | |
3060 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3061 return SWIG_arg; | |
3062 | |
3063 if(0) SWIG_fail; | |
3064 | |
3065 fail: | |
3066 lua_error(L); | |
3067 return SWIG_arg; | |
3068 } | |
3069 | |
3070 | |
3071 static int _wrap_Player_GetActualAccuracy(lua_State* L) { | |
3072 int SWIG_arg = 0; | |
3073 Player *arg1 = (Player *) 0 ; | |
3074 int result; | |
3075 | |
3076 SWIG_check_num_args("Player::GetActualAccuracy",1,1) | |
3077 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetActualAccuracy",1,"Player *"); | |
3078 | |
3079 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3080 SWIG_fail_ptr("Player_GetActualAccuracy",1,SWIGTYPE_p_Player); | |
3081 } | |
3082 | |
3083 result = (int)(arg1)->GetActualAccuracy(); | |
3084 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3085 return SWIG_arg; | |
3086 | |
3087 if(0) SWIG_fail; | |
3088 | |
3089 fail: | |
3090 lua_error(L); | |
3091 return SWIG_arg; | |
3092 } | |
3093 | |
3094 | |
3095 static int _wrap_Player_GetActualSpeed(lua_State* L) { | |
3096 int SWIG_arg = 0; | |
3097 Player *arg1 = (Player *) 0 ; | |
3098 int result; | |
3099 | |
3100 SWIG_check_num_args("Player::GetActualSpeed",1,1) | |
3101 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetActualSpeed",1,"Player *"); | |
3102 | |
3103 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3104 SWIG_fail_ptr("Player_GetActualSpeed",1,SWIGTYPE_p_Player); | |
3105 } | |
3106 | |
3107 result = (int)(arg1)->GetActualSpeed(); | |
3108 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3109 return SWIG_arg; | |
3110 | |
3111 if(0) SWIG_fail; | |
3112 | |
3113 fail: | |
3114 lua_error(L); | |
3115 return SWIG_arg; | |
3116 } | |
3117 | |
3118 | |
3119 static int _wrap_Player_GetActualLuck(lua_State* L) { | |
3120 int SWIG_arg = 0; | |
3121 Player *arg1 = (Player *) 0 ; | |
3122 int result; | |
3123 | |
3124 SWIG_check_num_args("Player::GetActualLuck",1,1) | |
3125 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetActualLuck",1,"Player *"); | |
3126 | |
3127 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3128 SWIG_fail_ptr("Player_GetActualLuck",1,SWIGTYPE_p_Player); | |
3129 } | |
3130 | |
3131 result = (int)(arg1)->GetActualLuck(); | |
3132 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3133 return SWIG_arg; | |
3134 | |
3135 if(0) SWIG_fail; | |
3136 | |
3137 fail: | |
3138 lua_error(L); | |
3139 return SWIG_arg; | |
3140 } | |
3141 | |
3142 | |
3143 static int _wrap_Player_GetActualAttack(lua_State* L) { | |
3144 int SWIG_arg = 0; | |
3145 Player *arg1 = (Player *) 0 ; | |
3146 bool arg2 ; | |
3147 int result; | |
3148 | |
3149 SWIG_check_num_args("Player::GetActualAttack",2,2) | |
3150 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetActualAttack",1,"Player *"); | |
3151 if(!lua_isboolean(L,2)) SWIG_fail_arg("Player::GetActualAttack",2,"bool"); | |
3152 | |
3153 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3154 SWIG_fail_ptr("Player_GetActualAttack",1,SWIGTYPE_p_Player); | |
3155 } | |
3156 | |
3157 arg2 = (lua_toboolean(L, 2)!=0); | |
3158 result = (int)(arg1)->GetActualAttack(arg2); | |
3159 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3160 return SWIG_arg; | |
3161 | |
3162 if(0) SWIG_fail; | |
3163 | |
3164 fail: | |
3165 lua_error(L); | |
3166 return SWIG_arg; | |
3167 } | |
3168 | |
3169 | |
3170 static int _wrap_Player_GetMeleeDamageMinimal(lua_State* L) { | |
3171 int SWIG_arg = 0; | |
3172 Player *arg1 = (Player *) 0 ; | |
3173 int result; | |
3174 | |
3175 SWIG_check_num_args("Player::GetMeleeDamageMinimal",1,1) | |
3176 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetMeleeDamageMinimal",1,"Player *"); | |
3177 | |
3178 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3179 SWIG_fail_ptr("Player_GetMeleeDamageMinimal",1,SWIGTYPE_p_Player); | |
3180 } | |
3181 | |
3182 result = (int)(arg1)->GetMeleeDamageMinimal(); | |
3183 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3184 return SWIG_arg; | |
3185 | |
3186 if(0) SWIG_fail; | |
3187 | |
3188 fail: | |
3189 lua_error(L); | |
3190 return SWIG_arg; | |
3191 } | |
3192 | |
3193 | |
3194 static int _wrap_Player_GetMeleeDamageMaximal(lua_State* L) { | |
3195 int SWIG_arg = 0; | |
3196 Player *arg1 = (Player *) 0 ; | |
3197 int result; | |
3198 | |
3199 SWIG_check_num_args("Player::GetMeleeDamageMaximal",1,1) | |
3200 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetMeleeDamageMaximal",1,"Player *"); | |
3201 | |
3202 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3203 SWIG_fail_ptr("Player_GetMeleeDamageMaximal",1,SWIGTYPE_p_Player); | |
3204 } | |
3205 | |
3206 result = (int)(arg1)->GetMeleeDamageMaximal(); | |
3207 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3208 return SWIG_arg; | |
3209 | |
3210 if(0) SWIG_fail; | |
3211 | |
3212 fail: | |
3213 lua_error(L); | |
3214 return SWIG_arg; | |
3215 } | |
3216 | |
3217 | |
3218 static int _wrap_Player_CalculateMeleeDamageTo(lua_State* L) { | |
3219 int SWIG_arg = 0; | |
3220 Player *arg1 = (Player *) 0 ; | |
3221 bool arg2 ; | |
3222 bool arg3 ; | |
3223 unsigned int arg4 ; | |
3224 int result; | |
3225 | |
3226 SWIG_check_num_args("Player::CalculateMeleeDamageTo",4,4) | |
3227 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::CalculateMeleeDamageTo",1,"Player *"); | |
3228 if(!lua_isboolean(L,2)) SWIG_fail_arg("Player::CalculateMeleeDamageTo",2,"bool"); | |
3229 if(!lua_isboolean(L,3)) SWIG_fail_arg("Player::CalculateMeleeDamageTo",3,"bool"); | |
3230 if(!lua_isnumber(L,4)) SWIG_fail_arg("Player::CalculateMeleeDamageTo",4,"unsigned int"); | |
3231 | |
3232 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3233 SWIG_fail_ptr("Player_CalculateMeleeDamageTo",1,SWIGTYPE_p_Player); | |
3234 } | |
3235 | |
3236 arg2 = (lua_toboolean(L, 2)!=0); | |
3237 arg3 = (lua_toboolean(L, 3)!=0); | |
3238 SWIG_contract_assert((lua_tonumber(L,4)>=0),"number must not be negative") | |
3239 arg4 = (unsigned int)lua_tonumber(L, 4); | |
3240 result = (int)(arg1)->CalculateMeleeDamageTo(arg2,arg3,arg4); | |
3241 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3242 return SWIG_arg; | |
3243 | |
3244 if(0) SWIG_fail; | |
3245 | |
3246 fail: | |
3247 lua_error(L); | |
3248 return SWIG_arg; | |
3249 } | |
3250 | |
3251 | |
3252 static int _wrap_Player_GetRangedAttack(lua_State* L) { | |
3253 int SWIG_arg = 0; | |
3254 Player *arg1 = (Player *) 0 ; | |
3255 int result; | |
3256 | |
3257 SWIG_check_num_args("Player::GetRangedAttack",1,1) | |
3258 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetRangedAttack",1,"Player *"); | |
3259 | |
3260 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3261 SWIG_fail_ptr("Player_GetRangedAttack",1,SWIGTYPE_p_Player); | |
3262 } | |
3263 | |
3264 result = (int)(arg1)->GetRangedAttack(); | |
3265 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3266 return SWIG_arg; | |
3267 | |
3268 if(0) SWIG_fail; | |
3269 | |
3270 fail: | |
3271 lua_error(L); | |
3272 return SWIG_arg; | |
3273 } | |
3274 | |
3275 | |
3276 static int _wrap_Player_GetRangedDamageMin(lua_State* L) { | |
3277 int SWIG_arg = 0; | |
3278 Player *arg1 = (Player *) 0 ; | |
3279 int result; | |
3280 | |
3281 SWIG_check_num_args("Player::GetRangedDamageMin",1,1) | |
3282 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetRangedDamageMin",1,"Player *"); | |
3283 | |
3284 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3285 SWIG_fail_ptr("Player_GetRangedDamageMin",1,SWIGTYPE_p_Player); | |
3286 } | |
3287 | |
3288 result = (int)(arg1)->GetRangedDamageMin(); | |
3289 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3290 return SWIG_arg; | |
3291 | |
3292 if(0) SWIG_fail; | |
3293 | |
3294 fail: | |
3295 lua_error(L); | |
3296 return SWIG_arg; | |
3297 } | |
3298 | |
3299 | |
3300 static int _wrap_Player_GetRangedDamageMax(lua_State* L) { | |
3301 int SWIG_arg = 0; | |
3302 Player *arg1 = (Player *) 0 ; | |
3303 int result; | |
3304 | |
3305 SWIG_check_num_args("Player::GetRangedDamageMax",1,1) | |
3306 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetRangedDamageMax",1,"Player *"); | |
3307 | |
3308 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3309 SWIG_fail_ptr("Player_GetRangedDamageMax",1,SWIGTYPE_p_Player); | |
3310 } | |
3311 | |
3312 result = (int)(arg1)->GetRangedDamageMax(); | |
3313 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3314 return SWIG_arg; | |
3315 | |
3316 if(0) SWIG_fail; | |
3317 | |
3318 fail: | |
3319 lua_error(L); | |
3320 return SWIG_arg; | |
3321 } | |
3322 | |
3323 | |
3324 static int _wrap_Player_CalculateRangedDamageTo(lua_State* L) { | |
3325 int SWIG_arg = 0; | |
3326 Player *arg1 = (Player *) 0 ; | |
3327 int arg2 ; | |
3328 int result; | |
3329 | |
3330 SWIG_check_num_args("Player::CalculateRangedDamageTo",2,2) | |
3331 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::CalculateRangedDamageTo",1,"Player *"); | |
3332 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::CalculateRangedDamageTo",2,"int"); | |
3333 | |
3334 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3335 SWIG_fail_ptr("Player_CalculateRangedDamageTo",1,SWIGTYPE_p_Player); | |
3336 } | |
3337 | |
3338 arg2 = (int)lua_tonumber(L, 2); | |
3339 result = (int)(arg1)->CalculateRangedDamageTo(arg2); | |
3340 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3341 return SWIG_arg; | |
3342 | |
3343 if(0) SWIG_fail; | |
3344 | |
3345 fail: | |
3346 lua_error(L); | |
3347 return SWIG_arg; | |
3348 } | |
3349 | |
3350 | |
3351 static int _wrap_Player_GetMeleeDamageString(lua_State* L) { | |
3352 int SWIG_arg = 0; | |
3353 Player *arg1 = (Player *) 0 ; | |
3354 char *result = 0 ; | |
3355 | |
3356 SWIG_check_num_args("Player::GetMeleeDamageString",1,1) | |
3357 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetMeleeDamageString",1,"Player *"); | |
3358 | |
3359 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3360 SWIG_fail_ptr("Player_GetMeleeDamageString",1,SWIGTYPE_p_Player); | |
3361 } | |
3362 | |
3363 result = (char *)(arg1)->GetMeleeDamageString(); | |
3364 lua_pushstring(L,(const char *)result); SWIG_arg++; | |
3365 return SWIG_arg; | |
3366 | |
3367 if(0) SWIG_fail; | |
3368 | |
3369 fail: | |
3370 lua_error(L); | |
3371 return SWIG_arg; | |
3372 } | |
3373 | |
3374 | |
3375 static int _wrap_Player_GetRangedDamageString(lua_State* L) { | |
3376 int SWIG_arg = 0; | |
3377 Player *arg1 = (Player *) 0 ; | |
3378 char *result = 0 ; | |
3379 | |
3380 SWIG_check_num_args("Player::GetRangedDamageString",1,1) | |
3381 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetRangedDamageString",1,"Player *"); | |
3382 | |
3383 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3384 SWIG_fail_ptr("Player_GetRangedDamageString",1,SWIGTYPE_p_Player); | |
3385 } | |
3386 | |
3387 result = (char *)(arg1)->GetRangedDamageString(); | |
3388 lua_pushstring(L,(const char *)result); SWIG_arg++; | |
3389 return SWIG_arg; | |
3390 | |
3391 if(0) SWIG_fail; | |
3392 | |
3393 fail: | |
3394 lua_error(L); | |
3395 return SWIG_arg; | |
3396 } | |
3397 | |
3398 | |
3399 static int _wrap_Player_CanTrainToNextLevel(lua_State* L) { | |
3400 int SWIG_arg = 0; | |
3401 Player *arg1 = (Player *) 0 ; | |
3402 bool result; | |
3403 | |
3404 SWIG_check_num_args("Player::CanTrainToNextLevel",1,1) | |
3405 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::CanTrainToNextLevel",1,"Player *"); | |
3406 | |
3407 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3408 SWIG_fail_ptr("Player_CanTrainToNextLevel",1,SWIGTYPE_p_Player); | |
3409 } | |
3410 | |
3411 result = (bool)(arg1)->CanTrainToNextLevel(); | |
3412 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
3413 return SWIG_arg; | |
3414 | |
3415 if(0) SWIG_fail; | |
3416 | |
3417 fail: | |
3418 lua_error(L); | |
3419 return SWIG_arg; | |
3420 } | |
3421 | |
3422 | |
3423 static int _wrap_Player_GetExperienceDisplayColor(lua_State* L) { | |
3424 int SWIG_arg = 0; | |
3425 Player *arg1 = (Player *) 0 ; | |
3426 unsigned int result; | |
3427 | |
3428 SWIG_check_num_args("Player::GetExperienceDisplayColor",1,1) | |
3429 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetExperienceDisplayColor",1,"Player *"); | |
3430 | |
3431 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3432 SWIG_fail_ptr("Player_GetExperienceDisplayColor",1,SWIGTYPE_p_Player); | |
3433 } | |
3434 | |
3435 result = (unsigned int)(arg1)->GetExperienceDisplayColor(); | |
3436 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3437 return SWIG_arg; | |
3438 | |
3439 if(0) SWIG_fail; | |
3440 | |
3441 fail: | |
3442 lua_error(L); | |
3443 return SWIG_arg; | |
3444 } | |
3445 | |
3446 | |
3447 static int _wrap_Player_CalculateIncommingDamage(lua_State* L) { | |
3448 int SWIG_arg = 0; | |
3449 Player *arg1 = (Player *) 0 ; | |
3450 DAMAGE_TYPE arg2 ; | |
3451 int arg3 ; | |
3452 DAMAGE_TYPE *argp2 ; | |
3453 int result; | |
3454 | |
3455 SWIG_check_num_args("Player::CalculateIncommingDamage",3,3) | |
3456 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::CalculateIncommingDamage",1,"Player *"); | |
3457 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::CalculateIncommingDamage",2,"DAMAGE_TYPE"); | |
3458 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::CalculateIncommingDamage",3,"int"); | |
3459 | |
3460 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3461 SWIG_fail_ptr("Player_CalculateIncommingDamage",1,SWIGTYPE_p_Player); | |
3462 } | |
3463 | |
3464 | |
3465 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_DAMAGE_TYPE,0))){ | |
3466 SWIG_fail_ptr("Player_CalculateIncommingDamage",2,SWIGTYPE_p_DAMAGE_TYPE); | |
3467 } | |
3468 arg2 = *argp2; | |
3469 | |
3470 arg3 = (int)lua_tonumber(L, 3); | |
3471 result = (int)(arg1)->CalculateIncommingDamage(arg2,arg3); | |
3472 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3473 return SWIG_arg; | |
3474 | |
3475 if(0) SWIG_fail; | |
3476 | |
3477 fail: | |
3478 lua_error(L); | |
3479 return SWIG_arg; | |
3480 } | |
3481 | |
3482 | |
3483 static int _wrap_Player_GetEquippedItemEquipType(lua_State* L) { | |
3484 int SWIG_arg = 0; | |
3485 Player *arg1 = (Player *) 0 ; | |
3486 ITEM_EQUIP_TYPE arg2 ; | |
3487 ITEM_EQUIP_TYPE *argp2 ; | |
3488 ITEM_EQUIP_TYPE result; | |
3489 | |
3490 SWIG_check_num_args("Player::GetEquippedItemEquipType",2,2) | |
3491 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetEquippedItemEquipType",1,"Player *"); | |
3492 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::GetEquippedItemEquipType",2,"ITEM_EQUIP_TYPE"); | |
3493 | |
3494 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3495 SWIG_fail_ptr("Player_GetEquippedItemEquipType",1,SWIGTYPE_p_Player); | |
3496 } | |
3497 | |
3498 | |
3499 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_ITEM_EQUIP_TYPE,0))){ | |
3500 SWIG_fail_ptr("Player_GetEquippedItemEquipType",2,SWIGTYPE_p_ITEM_EQUIP_TYPE); | |
3501 } | |
3502 arg2 = *argp2; | |
3503 | |
3504 result = (arg1)->GetEquippedItemEquipType(arg2); | |
3505 { | |
3506 ITEM_EQUIP_TYPE * resultptr = new ITEM_EQUIP_TYPE((const ITEM_EQUIP_TYPE &) result); | |
3507 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_ITEM_EQUIP_TYPE,1); SWIG_arg++; | |
3508 } | |
3509 return SWIG_arg; | |
3510 | |
3511 if(0) SWIG_fail; | |
3512 | |
3513 fail: | |
3514 lua_error(L); | |
3515 return SWIG_arg; | |
3516 } | |
3517 | |
3518 | |
3519 static int _wrap_Player_GetEquippedItemSkillType(lua_State* L) { | |
3520 int SWIG_arg = 0; | |
3521 Player *arg1 = (Player *) 0 ; | |
3522 ITEM_EQUIP_TYPE arg2 ; | |
3523 ITEM_EQUIP_TYPE *argp2 ; | |
3524 PLAYER_SKILL_TYPE result; | |
3525 | |
3526 SWIG_check_num_args("Player::GetEquippedItemSkillType",2,2) | |
3527 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetEquippedItemSkillType",1,"Player *"); | |
3528 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::GetEquippedItemSkillType",2,"ITEM_EQUIP_TYPE"); | |
3529 | |
3530 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3531 SWIG_fail_ptr("Player_GetEquippedItemSkillType",1,SWIGTYPE_p_Player); | |
3532 } | |
3533 | |
3534 | |
3535 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_ITEM_EQUIP_TYPE,0))){ | |
3536 SWIG_fail_ptr("Player_GetEquippedItemSkillType",2,SWIGTYPE_p_ITEM_EQUIP_TYPE); | |
3537 } | |
3538 arg2 = *argp2; | |
3539 | |
3540 result = (PLAYER_SKILL_TYPE)(arg1)->GetEquippedItemSkillType(arg2); | |
3541 lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++; | |
3542 return SWIG_arg; | |
3543 | |
3544 if(0) SWIG_fail; | |
3545 | |
3546 fail: | |
3547 lua_error(L); | |
3548 return SWIG_arg; | |
3549 } | |
3550 | |
3551 | |
3552 static int _wrap_Player_IsUnarmed(lua_State* L) { | |
3553 int SWIG_arg = 0; | |
3554 Player *arg1 = (Player *) 0 ; | |
3555 bool result; | |
3556 | |
3557 SWIG_check_num_args("Player::IsUnarmed",1,1) | |
3558 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::IsUnarmed",1,"Player *"); | |
3559 | |
3560 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3561 SWIG_fail_ptr("Player_IsUnarmed",1,SWIGTYPE_p_Player); | |
3562 } | |
3563 | |
3564 result = (bool)(arg1)->IsUnarmed(); | |
3565 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
3566 return SWIG_arg; | |
3567 | |
3568 if(0) SWIG_fail; | |
3569 | |
3570 fail: | |
3571 lua_error(L); | |
3572 return SWIG_arg; | |
3573 } | |
3574 | |
3575 | |
3576 static int _wrap_Player_HasItemEquipped(lua_State* L) { | |
3577 int SWIG_arg = 0; | |
3578 Player *arg1 = (Player *) 0 ; | |
3579 ITEM_EQUIP_TYPE arg2 ; | |
3580 ITEM_EQUIP_TYPE *argp2 ; | |
3581 bool result; | |
3582 | |
3583 SWIG_check_num_args("Player::HasItemEquipped",2,2) | |
3584 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::HasItemEquipped",1,"Player *"); | |
3585 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::HasItemEquipped",2,"ITEM_EQUIP_TYPE"); | |
3586 | |
3587 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3588 SWIG_fail_ptr("Player_HasItemEquipped",1,SWIGTYPE_p_Player); | |
3589 } | |
3590 | |
3591 | |
3592 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_ITEM_EQUIP_TYPE,0))){ | |
3593 SWIG_fail_ptr("Player_HasItemEquipped",2,SWIGTYPE_p_ITEM_EQUIP_TYPE); | |
3594 } | |
3595 arg2 = *argp2; | |
3596 | |
3597 result = (bool)(arg1)->HasItemEquipped(arg2); | |
3598 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
3599 return SWIG_arg; | |
3600 | |
3601 if(0) SWIG_fail; | |
3602 | |
3603 fail: | |
3604 lua_error(L); | |
3605 return SWIG_arg; | |
3606 } | |
3607 | |
3608 | |
3609 static int _wrap_Player_HasEnchantedItemEquipped(lua_State* L) { | |
3610 int SWIG_arg = 0; | |
3611 Player *arg1 = (Player *) 0 ; | |
3612 int arg2 ; | |
3613 bool result; | |
3614 | |
3615 SWIG_check_num_args("Player::HasEnchantedItemEquipped",2,2) | |
3616 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::HasEnchantedItemEquipped",1,"Player *"); | |
3617 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::HasEnchantedItemEquipped",2,"int"); | |
3618 | |
3619 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3620 SWIG_fail_ptr("Player_HasEnchantedItemEquipped",1,SWIGTYPE_p_Player); | |
3621 } | |
3622 | |
3623 arg2 = (int)lua_tonumber(L, 2); | |
3624 result = (bool)(arg1)->HasEnchantedItemEquipped(arg2); | |
3625 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
3626 return SWIG_arg; | |
3627 | |
3628 if(0) SWIG_fail; | |
3629 | |
3630 fail: | |
3631 lua_error(L); | |
3632 return SWIG_arg; | |
3633 } | |
3634 | |
3635 | |
3636 static int _wrap_Player_WearsItem(lua_State* L) { | |
3637 int SWIG_arg = 0; | |
3638 Player *arg1 = (Player *) 0 ; | |
3639 int arg2 ; | |
3640 ITEM_EQUIP_TYPE arg3 ; | |
3641 ITEM_EQUIP_TYPE *argp3 ; | |
3642 bool result; | |
3643 | |
3644 SWIG_check_num_args("Player::WearsItem",3,3) | |
3645 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::WearsItem",1,"Player *"); | |
3646 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::WearsItem",2,"int"); | |
3647 if(!lua_isuserdata(L,3)) SWIG_fail_arg("Player::WearsItem",3,"ITEM_EQUIP_TYPE"); | |
3648 | |
3649 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3650 SWIG_fail_ptr("Player_WearsItem",1,SWIGTYPE_p_Player); | |
3651 } | |
3652 | |
3653 arg2 = (int)lua_tonumber(L, 2); | |
3654 | |
3655 if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_ITEM_EQUIP_TYPE,0))){ | |
3656 SWIG_fail_ptr("Player_WearsItem",3,SWIGTYPE_p_ITEM_EQUIP_TYPE); | |
3657 } | |
3658 arg3 = *argp3; | |
3659 | |
3660 result = (bool)(arg1)->WearsItem(arg2,arg3); | |
3661 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
3662 return SWIG_arg; | |
3663 | |
3664 if(0) SWIG_fail; | |
3665 | |
3666 fail: | |
3667 lua_error(L); | |
3668 return SWIG_arg; | |
3669 } | |
3670 | |
3671 | |
3672 static int _wrap_Player_StealFromShop(lua_State* L) { | |
3673 int SWIG_arg = 0; | |
3674 Player *arg1 = (Player *) 0 ; | |
3675 ItemGen *arg2 = (ItemGen *) 0 ; | |
3676 int arg3 ; | |
3677 int arg4 ; | |
3678 int arg5 ; | |
3679 int *arg6 = (int *) 0 ; | |
3680 int result; | |
3681 | |
3682 SWIG_check_num_args("Player::StealFromShop",6,6) | |
3683 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::StealFromShop",1,"Player *"); | |
3684 if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("Player::StealFromShop",2,"ItemGen *"); | |
3685 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::StealFromShop",3,"int"); | |
3686 if(!lua_isnumber(L,4)) SWIG_fail_arg("Player::StealFromShop",4,"int"); | |
3687 if(!lua_isnumber(L,5)) SWIG_fail_arg("Player::StealFromShop",5,"int"); | |
3688 if(!SWIG_isptrtype(L,6)) SWIG_fail_arg("Player::StealFromShop",6,"int *"); | |
3689 | |
3690 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3691 SWIG_fail_ptr("Player_StealFromShop",1,SWIGTYPE_p_Player); | |
3692 } | |
3693 | |
3694 | |
3695 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_ItemGen,0))){ | |
3696 SWIG_fail_ptr("Player_StealFromShop",2,SWIGTYPE_p_ItemGen); | |
3697 } | |
3698 | |
3699 arg3 = (int)lua_tonumber(L, 3); | |
3700 arg4 = (int)lua_tonumber(L, 4); | |
3701 arg5 = (int)lua_tonumber(L, 5); | |
3702 | |
3703 if (!SWIG_IsOK(SWIG_ConvertPtr(L,6,(void**)&arg6,SWIGTYPE_p_int,0))){ | |
3704 SWIG_fail_ptr("Player_StealFromShop",6,SWIGTYPE_p_int); | |
3705 } | |
3706 | |
3707 result = (int)(arg1)->StealFromShop(arg2,arg3,arg4,arg5,arg6); | |
3708 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3709 return SWIG_arg; | |
3710 | |
3711 if(0) SWIG_fail; | |
3712 | |
3713 fail: | |
3714 lua_error(L); | |
3715 return SWIG_arg; | |
3716 } | |
3717 | |
3718 | |
3719 static int _wrap_Player_StealFromActor(lua_State* L) { | |
3720 int SWIG_arg = 0; | |
3721 Player *arg1 = (Player *) 0 ; | |
3722 unsigned int arg2 ; | |
3723 int arg3 ; | |
3724 int arg4 ; | |
3725 int result; | |
3726 | |
3727 SWIG_check_num_args("Player::StealFromActor",4,4) | |
3728 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::StealFromActor",1,"Player *"); | |
3729 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::StealFromActor",2,"unsigned int"); | |
3730 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::StealFromActor",3,"int"); | |
3731 if(!lua_isnumber(L,4)) SWIG_fail_arg("Player::StealFromActor",4,"int"); | |
3732 | |
3733 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3734 SWIG_fail_ptr("Player_StealFromActor",1,SWIGTYPE_p_Player); | |
3735 } | |
3736 | |
3737 SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative") | |
3738 arg2 = (unsigned int)lua_tonumber(L, 2); | |
3739 arg3 = (int)lua_tonumber(L, 3); | |
3740 arg4 = (int)lua_tonumber(L, 4); | |
3741 result = (int)(arg1)->StealFromActor(arg2,arg3,arg4); | |
3742 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3743 return SWIG_arg; | |
3744 | |
3745 if(0) SWIG_fail; | |
3746 | |
3747 fail: | |
3748 lua_error(L); | |
3749 return SWIG_arg; | |
3750 } | |
3751 | |
3752 | |
3753 static int _wrap_Player_Heal(lua_State* L) { | |
3754 int SWIG_arg = 0; | |
3755 Player *arg1 = (Player *) 0 ; | |
3756 int arg2 ; | |
3757 | |
3758 SWIG_check_num_args("Player::Heal",2,2) | |
3759 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::Heal",1,"Player *"); | |
3760 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::Heal",2,"int"); | |
3761 | |
3762 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3763 SWIG_fail_ptr("Player_Heal",1,SWIGTYPE_p_Player); | |
3764 } | |
3765 | |
3766 arg2 = (int)lua_tonumber(L, 2); | |
3767 (arg1)->Heal(arg2); | |
3768 | |
3769 return SWIG_arg; | |
3770 | |
3771 if(0) SWIG_fail; | |
3772 | |
3773 fail: | |
3774 lua_error(L); | |
3775 return SWIG_arg; | |
3776 } | |
3777 | |
3778 | |
3779 static int _wrap_Player_ReceiveDamage(lua_State* L) { | |
3780 int SWIG_arg = 0; | |
3781 Player *arg1 = (Player *) 0 ; | |
3782 int arg2 ; | |
3783 DAMAGE_TYPE arg3 ; | |
3784 DAMAGE_TYPE *argp3 ; | |
3785 int result; | |
3786 | |
3787 SWIG_check_num_args("Player::ReceiveDamage",3,3) | |
3788 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::ReceiveDamage",1,"Player *"); | |
3789 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::ReceiveDamage",2,"int"); | |
3790 if(!lua_isuserdata(L,3)) SWIG_fail_arg("Player::ReceiveDamage",3,"DAMAGE_TYPE"); | |
3791 | |
3792 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3793 SWIG_fail_ptr("Player_ReceiveDamage",1,SWIGTYPE_p_Player); | |
3794 } | |
3795 | |
3796 arg2 = (int)lua_tonumber(L, 2); | |
3797 | |
3798 if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_DAMAGE_TYPE,0))){ | |
3799 SWIG_fail_ptr("Player_ReceiveDamage",3,SWIGTYPE_p_DAMAGE_TYPE); | |
3800 } | |
3801 arg3 = *argp3; | |
3802 | |
3803 result = (int)(arg1)->ReceiveDamage(arg2,arg3); | |
3804 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3805 return SWIG_arg; | |
3806 | |
3807 if(0) SWIG_fail; | |
3808 | |
3809 fail: | |
3810 lua_error(L); | |
3811 return SWIG_arg; | |
3812 } | |
3813 | |
3814 | |
3815 static int _wrap_Player_ReceiveSpecialAttackEffect(lua_State* L) { | |
3816 int SWIG_arg = 0; | |
3817 Player *arg1 = (Player *) 0 ; | |
3818 int arg2 ; | |
3819 Actor *arg3 = (Actor *) 0 ; | |
3820 int result; | |
3821 | |
3822 SWIG_check_num_args("Player::ReceiveSpecialAttackEffect",3,3) | |
3823 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::ReceiveSpecialAttackEffect",1,"Player *"); | |
3824 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::ReceiveSpecialAttackEffect",2,"int"); | |
3825 if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("Player::ReceiveSpecialAttackEffect",3,"Actor *"); | |
3826 | |
3827 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3828 SWIG_fail_ptr("Player_ReceiveSpecialAttackEffect",1,SWIGTYPE_p_Player); | |
3829 } | |
3830 | |
3831 arg2 = (int)lua_tonumber(L, 2); | |
3832 | |
3833 if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_Actor,0))){ | |
3834 SWIG_fail_ptr("Player_ReceiveSpecialAttackEffect",3,SWIGTYPE_p_Actor); | |
3835 } | |
3836 | |
3837 result = (int)(arg1)->ReceiveSpecialAttackEffect(arg2,arg3); | |
3838 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3839 return SWIG_arg; | |
3840 | |
3841 if(0) SWIG_fail; | |
3842 | |
3843 fail: | |
3844 lua_error(L); | |
3845 return SWIG_arg; | |
3846 } | |
3847 | |
3848 | |
3849 static int _wrap_Player_GetSpellSchool(lua_State* L) { | |
3850 int SWIG_arg = 0; | |
3851 Player *arg1 = (Player *) 0 ; | |
3852 unsigned int arg2 ; | |
3853 unsigned int result; | |
3854 | |
3855 SWIG_check_num_args("Player::GetSpellSchool",2,2) | |
3856 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetSpellSchool",1,"Player *"); | |
3857 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetSpellSchool",2,"unsigned int"); | |
3858 | |
3859 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3860 SWIG_fail_ptr("Player_GetSpellSchool",1,SWIGTYPE_p_Player); | |
3861 } | |
3862 | |
3863 SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative") | |
3864 arg2 = (unsigned int)lua_tonumber(L, 2); | |
3865 result = (unsigned int)(arg1)->GetSpellSchool(arg2); | |
3866 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3867 return SWIG_arg; | |
3868 | |
3869 if(0) SWIG_fail; | |
3870 | |
3871 fail: | |
3872 lua_error(L); | |
3873 return SWIG_arg; | |
3874 } | |
3875 | |
3876 | |
3877 static int _wrap_Player_GetAttackRecoveryTime(lua_State* L) { | |
3878 int SWIG_arg = 0; | |
3879 Player *arg1 = (Player *) 0 ; | |
3880 bool arg2 ; | |
3881 int result; | |
3882 | |
3883 SWIG_check_num_args("Player::GetAttackRecoveryTime",2,2) | |
3884 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetAttackRecoveryTime",1,"Player *"); | |
3885 if(!lua_isboolean(L,2)) SWIG_fail_arg("Player::GetAttackRecoveryTime",2,"bool"); | |
3886 | |
3887 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3888 SWIG_fail_ptr("Player_GetAttackRecoveryTime",1,SWIGTYPE_p_Player); | |
3889 } | |
3890 | |
3891 arg2 = (lua_toboolean(L, 2)!=0); | |
3892 result = (int)(arg1)->GetAttackRecoveryTime(arg2); | |
3893 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3894 return SWIG_arg; | |
3895 | |
3896 if(0) SWIG_fail; | |
3897 | |
3898 fail: | |
3899 lua_error(L); | |
3900 return SWIG_arg; | |
3901 } | |
3902 | |
3903 | |
3904 static int _wrap_Player_GetMaxHealth(lua_State* L) { | |
3905 int SWIG_arg = 0; | |
3906 Player *arg1 = (Player *) 0 ; | |
3907 int result; | |
3908 | |
3909 SWIG_check_num_args("Player::GetMaxHealth",1,1) | |
3910 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetMaxHealth",1,"Player *"); | |
3911 | |
3912 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3913 SWIG_fail_ptr("Player_GetMaxHealth",1,SWIGTYPE_p_Player); | |
3914 } | |
3915 | |
3916 result = (int)(arg1)->GetMaxHealth(); | |
3917 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3918 return SWIG_arg; | |
3919 | |
3920 if(0) SWIG_fail; | |
3921 | |
3922 fail: | |
3923 lua_error(L); | |
3924 return SWIG_arg; | |
3925 } | |
3926 | |
3927 | |
3928 static int _wrap_Player_GetMaxMana(lua_State* L) { | |
3929 int SWIG_arg = 0; | |
3930 Player *arg1 = (Player *) 0 ; | |
3931 int result; | |
3932 | |
3933 SWIG_check_num_args("Player::GetMaxMana",1,1) | |
3934 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetMaxMana",1,"Player *"); | |
3935 | |
3936 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3937 SWIG_fail_ptr("Player_GetMaxMana",1,SWIGTYPE_p_Player); | |
3938 } | |
3939 | |
3940 result = (int)(arg1)->GetMaxMana(); | |
3941 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3942 return SWIG_arg; | |
3943 | |
3944 if(0) SWIG_fail; | |
3945 | |
3946 fail: | |
3947 lua_error(L); | |
3948 return SWIG_arg; | |
3949 } | |
3950 | |
3951 | |
3952 static int _wrap_Player_GetBaseAC(lua_State* L) { | |
3953 int SWIG_arg = 0; | |
3954 Player *arg1 = (Player *) 0 ; | |
3955 int result; | |
3956 | |
3957 SWIG_check_num_args("Player::GetBaseAC",1,1) | |
3958 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetBaseAC",1,"Player *"); | |
3959 | |
3960 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3961 SWIG_fail_ptr("Player_GetBaseAC",1,SWIGTYPE_p_Player); | |
3962 } | |
3963 | |
3964 result = (int)(arg1)->GetBaseAC(); | |
3965 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3966 return SWIG_arg; | |
3967 | |
3968 if(0) SWIG_fail; | |
3969 | |
3970 fail: | |
3971 lua_error(L); | |
3972 return SWIG_arg; | |
3973 } | |
3974 | |
3975 | |
3976 static int _wrap_Player_GetActualAC(lua_State* L) { | |
3977 int SWIG_arg = 0; | |
3978 Player *arg1 = (Player *) 0 ; | |
3979 int result; | |
3980 | |
3981 SWIG_check_num_args("Player::GetActualAC",1,1) | |
3982 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetActualAC",1,"Player *"); | |
3983 | |
3984 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
3985 SWIG_fail_ptr("Player_GetActualAC",1,SWIGTYPE_p_Player); | |
3986 } | |
3987 | |
3988 result = (int)(arg1)->GetActualAC(); | |
3989 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
3990 return SWIG_arg; | |
3991 | |
3992 if(0) SWIG_fail; | |
3993 | |
3994 fail: | |
3995 lua_error(L); | |
3996 return SWIG_arg; | |
3997 } | |
3998 | |
3999 | |
4000 static int _wrap_Player_GetBaseAge(lua_State* L) { | |
4001 int SWIG_arg = 0; | |
4002 Player *arg1 = (Player *) 0 ; | |
4003 unsigned int result; | |
4004 | |
4005 SWIG_check_num_args("Player::GetBaseAge",1,1) | |
4006 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetBaseAge",1,"Player *"); | |
4007 | |
4008 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4009 SWIG_fail_ptr("Player_GetBaseAge",1,SWIGTYPE_p_Player); | |
4010 } | |
4011 | |
4012 result = (unsigned int)(arg1)->GetBaseAge(); | |
4013 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
4014 return SWIG_arg; | |
4015 | |
4016 if(0) SWIG_fail; | |
4017 | |
4018 fail: | |
4019 lua_error(L); | |
4020 return SWIG_arg; | |
4021 } | |
4022 | |
4023 | |
4024 static int _wrap_Player_GetActualAge(lua_State* L) { | |
4025 int SWIG_arg = 0; | |
4026 Player *arg1 = (Player *) 0 ; | |
4027 unsigned int result; | |
4028 | |
4029 SWIG_check_num_args("Player::GetActualAge",1,1) | |
4030 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetActualAge",1,"Player *"); | |
4031 | |
4032 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4033 SWIG_fail_ptr("Player_GetActualAge",1,SWIGTYPE_p_Player); | |
4034 } | |
4035 | |
4036 result = (unsigned int)(arg1)->GetActualAge(); | |
4037 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
4038 return SWIG_arg; | |
4039 | |
4040 if(0) SWIG_fail; | |
4041 | |
4042 fail: | |
4043 lua_error(L); | |
4044 return SWIG_arg; | |
4045 } | |
4046 | |
4047 | |
4048 static int _wrap_Player_GetBaseResistance(lua_State* L) { | |
4049 int SWIG_arg = 0; | |
4050 Player *arg1 = (Player *) 0 ; | |
4051 enum CHARACTER_ATTRIBUTE_TYPE arg2 ; | |
4052 int result; | |
4053 | |
4054 SWIG_check_num_args("Player::GetBaseResistance",2,2) | |
4055 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetBaseResistance",1,"Player *"); | |
4056 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetBaseResistance",2,"enum CHARACTER_ATTRIBUTE_TYPE"); | |
4057 | |
4058 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4059 SWIG_fail_ptr("Player_GetBaseResistance",1,SWIGTYPE_p_Player); | |
4060 } | |
4061 | |
4062 arg2 = (enum CHARACTER_ATTRIBUTE_TYPE)(int)lua_tonumber(L, 2); | |
4063 result = (int)(arg1)->GetBaseResistance(arg2); | |
4064 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
4065 return SWIG_arg; | |
4066 | |
4067 if(0) SWIG_fail; | |
4068 | |
4069 fail: | |
4070 lua_error(L); | |
4071 return SWIG_arg; | |
4072 } | |
4073 | |
4074 | |
4075 static int _wrap_Player_GetActualResistance(lua_State* L) { | |
4076 int SWIG_arg = 0; | |
4077 Player *arg1 = (Player *) 0 ; | |
4078 enum CHARACTER_ATTRIBUTE_TYPE arg2 ; | |
4079 int result; | |
4080 | |
4081 SWIG_check_num_args("Player::GetActualResistance",2,2) | |
4082 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetActualResistance",1,"Player *"); | |
4083 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetActualResistance",2,"enum CHARACTER_ATTRIBUTE_TYPE"); | |
4084 | |
4085 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4086 SWIG_fail_ptr("Player_GetActualResistance",1,SWIGTYPE_p_Player); | |
4087 } | |
4088 | |
4089 arg2 = (enum CHARACTER_ATTRIBUTE_TYPE)(int)lua_tonumber(L, 2); | |
4090 result = (int)(arg1)->GetActualResistance(arg2); | |
4091 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
4092 return SWIG_arg; | |
4093 | |
4094 if(0) SWIG_fail; | |
4095 | |
4096 fail: | |
4097 lua_error(L); | |
4098 return SWIG_arg; | |
4099 } | |
4100 | |
4101 | |
4102 static int _wrap_Player_SetRecoveryTime(lua_State* L) { | |
4103 int SWIG_arg = 0; | |
4104 Player *arg1 = (Player *) 0 ; | |
4105 int arg2 ; | |
4106 | |
4107 SWIG_check_num_args("Player::SetRecoveryTime",2,2) | |
4108 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetRecoveryTime",1,"Player *"); | |
4109 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::SetRecoveryTime",2,"int"); | |
4110 | |
4111 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4112 SWIG_fail_ptr("Player_SetRecoveryTime",1,SWIGTYPE_p_Player); | |
4113 } | |
4114 | |
4115 arg2 = (int)lua_tonumber(L, 2); | |
4116 (arg1)->SetRecoveryTime(arg2); | |
4117 | |
4118 return SWIG_arg; | |
4119 | |
4120 if(0) SWIG_fail; | |
4121 | |
4122 fail: | |
4123 lua_error(L); | |
4124 return SWIG_arg; | |
4125 } | |
4126 | |
4127 | |
4128 static int _wrap_Player_RandomizeName(lua_State* L) { | |
4129 int SWIG_arg = 0; | |
4130 Player *arg1 = (Player *) 0 ; | |
4131 | |
4132 SWIG_check_num_args("Player::RandomizeName",1,1) | |
4133 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::RandomizeName",1,"Player *"); | |
4134 | |
4135 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4136 SWIG_fail_ptr("Player_RandomizeName",1,SWIGTYPE_p_Player); | |
4137 } | |
4138 | |
4139 (arg1)->RandomizeName(); | |
4140 | |
4141 return SWIG_arg; | |
4142 | |
4143 if(0) SWIG_fail; | |
4144 | |
4145 fail: | |
4146 lua_error(L); | |
4147 return SWIG_arg; | |
4148 } | |
4149 | |
4150 | |
4151 static int _wrap_Player_GetMajorConditionIdx(lua_State* L) { | |
4152 int SWIG_arg = 0; | |
4153 Player *arg1 = (Player *) 0 ; | |
4154 unsigned int result; | |
4155 | |
4156 SWIG_check_num_args("Player::GetMajorConditionIdx",1,1) | |
4157 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetMajorConditionIdx",1,"Player *"); | |
4158 | |
4159 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4160 SWIG_fail_ptr("Player_GetMajorConditionIdx",1,SWIGTYPE_p_Player); | |
4161 } | |
4162 | |
4163 result = (unsigned int)(arg1)->GetMajorConditionIdx(); | |
4164 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
4165 return SWIG_arg; | |
4166 | |
4167 if(0) SWIG_fail; | |
4168 | |
4169 fail: | |
4170 lua_error(L); | |
4171 return SWIG_arg; | |
4172 } | |
4173 | |
4174 | |
4175 static int _wrap_Player_GetParameterBonus(lua_State* L) { | |
4176 int SWIG_arg = 0; | |
4177 Player *arg1 = (Player *) 0 ; | |
4178 int arg2 ; | |
4179 int result; | |
4180 | |
4181 SWIG_check_num_args("Player::GetParameterBonus",2,2) | |
4182 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetParameterBonus",1,"Player *"); | |
4183 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetParameterBonus",2,"int"); | |
4184 | |
4185 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4186 SWIG_fail_ptr("Player_GetParameterBonus",1,SWIGTYPE_p_Player); | |
4187 } | |
4188 | |
4189 arg2 = (int)lua_tonumber(L, 2); | |
4190 result = (int)(arg1)->GetParameterBonus(arg2); | |
4191 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
4192 return SWIG_arg; | |
4193 | |
4194 if(0) SWIG_fail; | |
4195 | |
4196 fail: | |
4197 lua_error(L); | |
4198 return SWIG_arg; | |
4199 } | |
4200 | |
4201 | |
4202 static int _wrap_Player_GetSpecialItemBonus(lua_State* L) { | |
4203 int SWIG_arg = 0; | |
4204 Player *arg1 = (Player *) 0 ; | |
4205 int arg2 ; | |
4206 int result; | |
4207 | |
4208 SWIG_check_num_args("Player::GetSpecialItemBonus",2,2) | |
4209 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetSpecialItemBonus",1,"Player *"); | |
4210 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetSpecialItemBonus",2,"int"); | |
4211 | |
4212 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4213 SWIG_fail_ptr("Player_GetSpecialItemBonus",1,SWIGTYPE_p_Player); | |
4214 } | |
4215 | |
4216 arg2 = (int)lua_tonumber(L, 2); | |
4217 result = (int)(arg1)->GetSpecialItemBonus(arg2); | |
4218 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
4219 return SWIG_arg; | |
4220 | |
4221 if(0) SWIG_fail; | |
4222 | |
4223 fail: | |
4224 lua_error(L); | |
4225 return SWIG_arg; | |
4226 } | |
4227 | |
4228 | |
4229 static int _wrap_Player_GetItemsBonus__SWIG_0(lua_State* L) { | |
4230 int SWIG_arg = 0; | |
4231 Player *arg1 = (Player *) 0 ; | |
4232 enum CHARACTER_ATTRIBUTE_TYPE arg2 ; | |
4233 bool arg3 ; | |
4234 int result; | |
4235 | |
4236 SWIG_check_num_args("Player::GetItemsBonus",3,3) | |
4237 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetItemsBonus",1,"Player *"); | |
4238 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetItemsBonus",2,"enum CHARACTER_ATTRIBUTE_TYPE"); | |
4239 if(!lua_isboolean(L,3)) SWIG_fail_arg("Player::GetItemsBonus",3,"bool"); | |
4240 | |
4241 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4242 SWIG_fail_ptr("Player_GetItemsBonus",1,SWIGTYPE_p_Player); | |
4243 } | |
4244 | |
4245 arg2 = (enum CHARACTER_ATTRIBUTE_TYPE)(int)lua_tonumber(L, 2); | |
4246 arg3 = (lua_toboolean(L, 3)!=0); | |
4247 result = (int)(arg1)->GetItemsBonus(arg2,arg3); | |
4248 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
4249 return SWIG_arg; | |
4250 | |
4251 if(0) SWIG_fail; | |
4252 | |
4253 fail: | |
4254 lua_error(L); | |
4255 return SWIG_arg; | |
4256 } | |
4257 | |
4258 | |
4259 static int _wrap_Player_GetItemsBonus__SWIG_1(lua_State* L) { | |
4260 int SWIG_arg = 0; | |
4261 Player *arg1 = (Player *) 0 ; | |
4262 enum CHARACTER_ATTRIBUTE_TYPE arg2 ; | |
4263 int result; | |
4264 | |
4265 SWIG_check_num_args("Player::GetItemsBonus",2,2) | |
4266 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetItemsBonus",1,"Player *"); | |
4267 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetItemsBonus",2,"enum CHARACTER_ATTRIBUTE_TYPE"); | |
4268 | |
4269 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4270 SWIG_fail_ptr("Player_GetItemsBonus",1,SWIGTYPE_p_Player); | |
4271 } | |
4272 | |
4273 arg2 = (enum CHARACTER_ATTRIBUTE_TYPE)(int)lua_tonumber(L, 2); | |
4274 result = (int)(arg1)->GetItemsBonus(arg2); | |
4275 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
4276 return SWIG_arg; | |
4277 | |
4278 if(0) SWIG_fail; | |
4279 | |
4280 fail: | |
4281 lua_error(L); | |
4282 return SWIG_arg; | |
4283 } | |
4284 | |
4285 | |
4286 static int _wrap_Player_GetItemsBonus(lua_State* L) { | |
4287 int argc; | |
4288 int argv[4]={ | |
4289 1,2,3,4 | |
4290 }; | |
4291 | |
4292 argc = lua_gettop(L); | |
4293 if (argc == 2) { | |
4294 int _v; | |
4295 { | |
4296 void *ptr; | |
4297 if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_Player, 0)) { | |
4298 _v = 0; | |
4299 } else { | |
4300 _v = 1; | |
4301 } | |
4302 } | |
4303 if (_v) { | |
4304 { | |
4305 _v = lua_isnumber(L,argv[1]); | |
4306 } | |
4307 if (_v) { | |
4308 return _wrap_Player_GetItemsBonus__SWIG_1(L); | |
4309 } | |
4310 } | |
4311 } | |
4312 if (argc == 3) { | |
4313 int _v; | |
4314 { | |
4315 void *ptr; | |
4316 if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_Player, 0)) { | |
4317 _v = 0; | |
4318 } else { | |
4319 _v = 1; | |
4320 } | |
4321 } | |
4322 if (_v) { | |
4323 { | |
4324 _v = lua_isnumber(L,argv[1]); | |
4325 } | |
4326 if (_v) { | |
4327 { | |
4328 _v = lua_isboolean(L,argv[2]); | |
4329 } | |
4330 if (_v) { | |
4331 return _wrap_Player_GetItemsBonus__SWIG_0(L); | |
4332 } | |
4333 } | |
4334 } | |
4335 } | |
4336 | |
4337 SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'Player_GetItemsBonus'\n" | |
4338 " Possible C/C++ prototypes are:\n" | |
4339 " Player::GetItemsBonus(enum CHARACTER_ATTRIBUTE_TYPE,bool)\n" | |
4340 " Player::GetItemsBonus(enum CHARACTER_ATTRIBUTE_TYPE)\n"); | |
4341 lua_error(L);return 0; | |
4342 } | |
4343 | |
4344 | |
4345 static int _wrap_Player_GetMagicalBonus(lua_State* L) { | |
4346 int SWIG_arg = 0; | |
4347 Player *arg1 = (Player *) 0 ; | |
4348 enum CHARACTER_ATTRIBUTE_TYPE arg2 ; | |
4349 int result; | |
4350 | |
4351 SWIG_check_num_args("Player::GetMagicalBonus",2,2) | |
4352 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetMagicalBonus",1,"Player *"); | |
4353 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetMagicalBonus",2,"enum CHARACTER_ATTRIBUTE_TYPE"); | |
4354 | |
4355 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4356 SWIG_fail_ptr("Player_GetMagicalBonus",1,SWIGTYPE_p_Player); | |
4357 } | |
4358 | |
4359 arg2 = (enum CHARACTER_ATTRIBUTE_TYPE)(int)lua_tonumber(L, 2); | |
4360 result = (int)(arg1)->GetMagicalBonus(arg2); | |
4361 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
4362 return SWIG_arg; | |
4363 | |
4364 if(0) SWIG_fail; | |
4365 | |
4366 fail: | |
4367 lua_error(L); | |
4368 return SWIG_arg; | |
4369 } | |
4370 | |
4371 | |
4372 static int _wrap_Player_GetActualSkillLevel(lua_State* L) { | |
4373 int SWIG_arg = 0; | |
4374 Player *arg1 = (Player *) 0 ; | |
4375 PLAYER_SKILL_TYPE arg2 ; | |
4376 int result; | |
4377 | |
4378 SWIG_check_num_args("Player::GetActualSkillLevel",2,2) | |
4379 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetActualSkillLevel",1,"Player *"); | |
4380 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetActualSkillLevel",2,"PLAYER_SKILL_TYPE"); | |
4381 | |
4382 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4383 SWIG_fail_ptr("Player_GetActualSkillLevel",1,SWIGTYPE_p_Player); | |
4384 } | |
4385 | |
4386 arg2 = (PLAYER_SKILL_TYPE)(int)lua_tonumber(L, 2); | |
4387 result = (int)(arg1)->GetActualSkillLevel(arg2); | |
4388 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
4389 return SWIG_arg; | |
4390 | |
4391 if(0) SWIG_fail; | |
4392 | |
4393 fail: | |
4394 lua_error(L); | |
4395 return SWIG_arg; | |
4396 } | |
4397 | |
4398 | |
4399 static int _wrap_Player_GetSkillBonus(lua_State* L) { | |
4400 int SWIG_arg = 0; | |
4401 Player *arg1 = (Player *) 0 ; | |
4402 enum CHARACTER_ATTRIBUTE_TYPE arg2 ; | |
4403 int result; | |
4404 | |
4405 SWIG_check_num_args("Player::GetSkillBonus",2,2) | |
4406 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetSkillBonus",1,"Player *"); | |
4407 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetSkillBonus",2,"enum CHARACTER_ATTRIBUTE_TYPE"); | |
4408 | |
4409 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4410 SWIG_fail_ptr("Player_GetSkillBonus",1,SWIGTYPE_p_Player); | |
4411 } | |
4412 | |
4413 arg2 = (enum CHARACTER_ATTRIBUTE_TYPE)(int)lua_tonumber(L, 2); | |
4414 result = (int)(arg1)->GetSkillBonus(arg2); | |
4415 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
4416 return SWIG_arg; | |
4417 | |
4418 if(0) SWIG_fail; | |
4419 | |
4420 fail: | |
4421 lua_error(L); | |
4422 return SWIG_arg; | |
4423 } | |
4424 | |
4425 | |
4426 static int _wrap_Player_GetRace(lua_State* L) { | |
4427 int SWIG_arg = 0; | |
4428 Player *arg1 = (Player *) 0 ; | |
4429 enum CHARACTER_RACE result; | |
4430 | |
4431 SWIG_check_num_args("Player::GetRace",1,1) | |
4432 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetRace",1,"Player *"); | |
4433 | |
4434 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4435 SWIG_fail_ptr("Player_GetRace",1,SWIGTYPE_p_Player); | |
4436 } | |
4437 | |
4438 result = (enum CHARACTER_RACE)(arg1)->GetRace(); | |
4439 lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++; | |
4440 return SWIG_arg; | |
4441 | |
4442 if(0) SWIG_fail; | |
4443 | |
4444 fail: | |
4445 lua_error(L); | |
4446 return SWIG_arg; | |
4447 } | |
4448 | |
4449 | |
4450 static int _wrap_Player_GetSexByVoice(lua_State* L) { | |
4451 int SWIG_arg = 0; | |
4452 Player *arg1 = (Player *) 0 ; | |
4453 PLAYER_SEX result; | |
4454 | |
4455 SWIG_check_num_args("Player::GetSexByVoice",1,1) | |
4456 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetSexByVoice",1,"Player *"); | |
4457 | |
4458 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4459 SWIG_fail_ptr("Player_GetSexByVoice",1,SWIGTYPE_p_Player); | |
4460 } | |
4461 | |
4462 result = (PLAYER_SEX)(arg1)->GetSexByVoice(); | |
4463 lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++; | |
4464 return SWIG_arg; | |
4465 | |
4466 if(0) SWIG_fail; | |
4467 | |
4468 fail: | |
4469 lua_error(L); | |
4470 return SWIG_arg; | |
4471 } | |
4472 | |
4473 | |
4474 static int _wrap_Player_SetInitialStats(lua_State* L) { | |
4475 int SWIG_arg = 0; | |
4476 Player *arg1 = (Player *) 0 ; | |
4477 | |
4478 SWIG_check_num_args("Player::SetInitialStats",1,1) | |
4479 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetInitialStats",1,"Player *"); | |
4480 | |
4481 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4482 SWIG_fail_ptr("Player_SetInitialStats",1,SWIGTYPE_p_Player); | |
4483 } | |
4484 | |
4485 (arg1)->SetInitialStats(); | |
4486 | |
4487 return SWIG_arg; | |
4488 | |
4489 if(0) SWIG_fail; | |
4490 | |
4491 fail: | |
4492 lua_error(L); | |
4493 return SWIG_arg; | |
4494 } | |
4495 | |
4496 | |
4497 static int _wrap_Player_SetSexByVoice(lua_State* L) { | |
4498 int SWIG_arg = 0; | |
4499 Player *arg1 = (Player *) 0 ; | |
4500 | |
4501 SWIG_check_num_args("Player::SetSexByVoice",1,1) | |
4502 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetSexByVoice",1,"Player *"); | |
4503 | |
4504 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4505 SWIG_fail_ptr("Player_SetSexByVoice",1,SWIGTYPE_p_Player); | |
4506 } | |
4507 | |
4508 (arg1)->SetSexByVoice(); | |
4509 | |
4510 return SWIG_arg; | |
4511 | |
4512 if(0) SWIG_fail; | |
4513 | |
4514 fail: | |
4515 lua_error(L); | |
4516 return SWIG_arg; | |
4517 } | |
4518 | |
4519 | |
4520 static int _wrap_Player_Reset(lua_State* L) { | |
4521 int SWIG_arg = 0; | |
4522 Player *arg1 = (Player *) 0 ; | |
4523 PLAYER_CLASS_TYPE arg2 ; | |
4524 | |
4525 SWIG_check_num_args("Player::Reset",2,2) | |
4526 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::Reset",1,"Player *"); | |
4527 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::Reset",2,"PLAYER_CLASS_TYPE"); | |
4528 | |
4529 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4530 SWIG_fail_ptr("Player_Reset",1,SWIGTYPE_p_Player); | |
4531 } | |
4532 | |
4533 arg2 = (PLAYER_CLASS_TYPE)(int)lua_tonumber(L, 2); | |
4534 (arg1)->Reset(arg2); | |
4535 | |
4536 return SWIG_arg; | |
4537 | |
4538 if(0) SWIG_fail; | |
4539 | |
4540 fail: | |
4541 lua_error(L); | |
4542 return SWIG_arg; | |
4543 } | |
4544 | |
4545 | |
4546 static int _wrap_Player_GetSkillIdxByOrder(lua_State* L) { | |
4547 int SWIG_arg = 0; | |
4548 Player *arg1 = (Player *) 0 ; | |
4549 int arg2 ; | |
4550 PLAYER_SKILL_TYPE result; | |
4551 | |
4552 SWIG_check_num_args("Player::GetSkillIdxByOrder",2,2) | |
4553 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetSkillIdxByOrder",1,"Player *"); | |
4554 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetSkillIdxByOrder",2,"int"); | |
4555 | |
4556 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4557 SWIG_fail_ptr("Player_GetSkillIdxByOrder",1,SWIGTYPE_p_Player); | |
4558 } | |
4559 | |
4560 arg2 = (int)lua_tonumber(L, 2); | |
4561 result = (PLAYER_SKILL_TYPE)(arg1)->GetSkillIdxByOrder(arg2); | |
4562 lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++; | |
4563 return SWIG_arg; | |
4564 | |
4565 if(0) SWIG_fail; | |
4566 | |
4567 fail: | |
4568 lua_error(L); | |
4569 return SWIG_arg; | |
4570 } | |
4571 | |
4572 | |
4573 static int _wrap_Player_DecreaseAttribute(lua_State* L) { | |
4574 int SWIG_arg = 0; | |
4575 Player *arg1 = (Player *) 0 ; | |
4576 int arg2 ; | |
4577 | |
4578 SWIG_check_num_args("Player::DecreaseAttribute",2,2) | |
4579 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::DecreaseAttribute",1,"Player *"); | |
4580 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::DecreaseAttribute",2,"int"); | |
4581 | |
4582 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4583 SWIG_fail_ptr("Player_DecreaseAttribute",1,SWIGTYPE_p_Player); | |
4584 } | |
4585 | |
4586 arg2 = (int)lua_tonumber(L, 2); | |
4587 (arg1)->DecreaseAttribute(arg2); | |
4588 | |
4589 return SWIG_arg; | |
4590 | |
4591 if(0) SWIG_fail; | |
4592 | |
4593 fail: | |
4594 lua_error(L); | |
4595 return SWIG_arg; | |
4596 } | |
4597 | |
4598 | |
4599 static int _wrap_Player_IncreaseAttribute(lua_State* L) { | |
4600 int SWIG_arg = 0; | |
4601 Player *arg1 = (Player *) 0 ; | |
4602 int arg2 ; | |
4603 | |
4604 SWIG_check_num_args("Player::IncreaseAttribute",2,2) | |
4605 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::IncreaseAttribute",1,"Player *"); | |
4606 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::IncreaseAttribute",2,"int"); | |
4607 | |
4608 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4609 SWIG_fail_ptr("Player_IncreaseAttribute",1,SWIGTYPE_p_Player); | |
4610 } | |
4611 | |
4612 arg2 = (int)lua_tonumber(L, 2); | |
4613 (arg1)->IncreaseAttribute(arg2); | |
4614 | |
4615 return SWIG_arg; | |
4616 | |
4617 if(0) SWIG_fail; | |
4618 | |
4619 fail: | |
4620 lua_error(L); | |
4621 return SWIG_arg; | |
4622 } | |
4623 | |
4624 | |
4625 static int _wrap_Player_Zero(lua_State* L) { | |
4626 int SWIG_arg = 0; | |
4627 Player *arg1 = (Player *) 0 ; | |
4628 | |
4629 SWIG_check_num_args("Player::Zero",1,1) | |
4630 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::Zero",1,"Player *"); | |
4631 | |
4632 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4633 SWIG_fail_ptr("Player_Zero",1,SWIGTYPE_p_Player); | |
4634 } | |
4635 | |
4636 (arg1)->Zero(); | |
4637 | |
4638 return SWIG_arg; | |
4639 | |
4640 if(0) SWIG_fail; | |
4641 | |
4642 fail: | |
4643 lua_error(L); | |
4644 return SWIG_arg; | |
4645 } | |
4646 | |
4647 | |
4648 static int _wrap_Player_GetStatColor(lua_State* L) { | |
4649 int SWIG_arg = 0; | |
4650 Player *arg1 = (Player *) 0 ; | |
4651 int arg2 ; | |
4652 unsigned int result; | |
4653 | |
4654 SWIG_check_num_args("Player::GetStatColor",2,2) | |
4655 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetStatColor",1,"Player *"); | |
4656 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetStatColor",2,"int"); | |
4657 | |
4658 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4659 SWIG_fail_ptr("Player_GetStatColor",1,SWIGTYPE_p_Player); | |
4660 } | |
4661 | |
4662 arg2 = (int)lua_tonumber(L, 2); | |
4663 result = (unsigned int)(arg1)->GetStatColor(arg2); | |
4664 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
4665 return SWIG_arg; | |
4666 | |
4667 if(0) SWIG_fail; | |
4668 | |
4669 fail: | |
4670 lua_error(L); | |
4671 return SWIG_arg; | |
4672 } | |
4673 | |
4674 | |
4675 static int _wrap_Player_DiscardConditionIfLastsLongerThan(lua_State* L) { | |
4676 int SWIG_arg = 0; | |
4677 Player *arg1 = (Player *) 0 ; | |
4678 unsigned int arg2 ; | |
4679 unsigned __int64 arg3 ; | |
4680 unsigned __int64 *argp3 ; | |
4681 bool result; | |
4682 | |
4683 SWIG_check_num_args("Player::DiscardConditionIfLastsLongerThan",3,3) | |
4684 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::DiscardConditionIfLastsLongerThan",1,"Player *"); | |
4685 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::DiscardConditionIfLastsLongerThan",2,"unsigned int"); | |
4686 if(!lua_isuserdata(L,3)) SWIG_fail_arg("Player::DiscardConditionIfLastsLongerThan",3,"unsigned __int64"); | |
4687 | |
4688 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4689 SWIG_fail_ptr("Player_DiscardConditionIfLastsLongerThan",1,SWIGTYPE_p_Player); | |
4690 } | |
4691 | |
4692 SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative") | |
4693 arg2 = (unsigned int)lua_tonumber(L, 2); | |
4694 | |
4695 if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_unsigned___int64,0))){ | |
4696 SWIG_fail_ptr("Player_DiscardConditionIfLastsLongerThan",3,SWIGTYPE_p_unsigned___int64); | |
4697 } | |
4698 arg3 = *argp3; | |
4699 | |
4700 result = (bool)(arg1)->DiscardConditionIfLastsLongerThan(arg2,arg3); | |
4701 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
4702 return SWIG_arg; | |
4703 | |
4704 if(0) SWIG_fail; | |
4705 | |
4706 fail: | |
4707 lua_error(L); | |
4708 return SWIG_arg; | |
4709 } | |
4710 | |
4711 | |
4712 static int _wrap_Player_SelectPhrasesTransaction(lua_State* L) { | |
4713 int SWIG_arg = 0; | |
4714 Player *arg1 = (Player *) 0 ; | |
4715 ItemGen *arg2 = (ItemGen *) 0 ; | |
4716 int arg3 ; | |
4717 int arg4 ; | |
4718 int arg5 ; | |
4719 int result; | |
4720 | |
4721 SWIG_check_num_args("Player::SelectPhrasesTransaction",5,5) | |
4722 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SelectPhrasesTransaction",1,"Player *"); | |
4723 if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("Player::SelectPhrasesTransaction",2,"ItemGen *"); | |
4724 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::SelectPhrasesTransaction",3,"int"); | |
4725 if(!lua_isnumber(L,4)) SWIG_fail_arg("Player::SelectPhrasesTransaction",4,"int"); | |
4726 if(!lua_isnumber(L,5)) SWIG_fail_arg("Player::SelectPhrasesTransaction",5,"int"); | |
4727 | |
4728 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4729 SWIG_fail_ptr("Player_SelectPhrasesTransaction",1,SWIGTYPE_p_Player); | |
4730 } | |
4731 | |
4732 | |
4733 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_ItemGen,0))){ | |
4734 SWIG_fail_ptr("Player_SelectPhrasesTransaction",2,SWIGTYPE_p_ItemGen); | |
4735 } | |
4736 | |
4737 arg3 = (int)lua_tonumber(L, 3); | |
4738 arg4 = (int)lua_tonumber(L, 4); | |
4739 arg5 = (int)lua_tonumber(L, 5); | |
4740 result = (int)(arg1)->SelectPhrasesTransaction(arg2,arg3,arg4,arg5); | |
4741 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
4742 return SWIG_arg; | |
4743 | |
4744 if(0) SWIG_fail; | |
4745 | |
4746 fail: | |
4747 lua_error(L); | |
4748 return SWIG_arg; | |
4749 } | |
4750 | |
4751 | |
4752 static int _wrap_Player_GetBodybuilding(lua_State* L) { | |
4753 int SWIG_arg = 0; | |
4754 Player *arg1 = (Player *) 0 ; | |
4755 int result; | |
4756 | |
4757 SWIG_check_num_args("Player::GetBodybuilding",1,1) | |
4758 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetBodybuilding",1,"Player *"); | |
4759 | |
4760 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4761 SWIG_fail_ptr("Player_GetBodybuilding",1,SWIGTYPE_p_Player); | |
4762 } | |
4763 | |
4764 result = (int)(arg1)->GetBodybuilding(); | |
4765 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
4766 return SWIG_arg; | |
4767 | |
4768 if(0) SWIG_fail; | |
4769 | |
4770 fail: | |
4771 lua_error(L); | |
4772 return SWIG_arg; | |
4773 } | |
4774 | |
4775 | |
4776 static int _wrap_Player_GetMeditation(lua_State* L) { | |
4777 int SWIG_arg = 0; | |
4778 Player *arg1 = (Player *) 0 ; | |
4779 int result; | |
4780 | |
4781 SWIG_check_num_args("Player::GetMeditation",1,1) | |
4782 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetMeditation",1,"Player *"); | |
4783 | |
4784 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4785 SWIG_fail_ptr("Player_GetMeditation",1,SWIGTYPE_p_Player); | |
4786 } | |
4787 | |
4788 result = (int)(arg1)->GetMeditation(); | |
4789 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
4790 return SWIG_arg; | |
4791 | |
4792 if(0) SWIG_fail; | |
4793 | |
4794 fail: | |
4795 lua_error(L); | |
4796 return SWIG_arg; | |
4797 } | |
4798 | |
4799 | |
4800 static int _wrap_Player_CanIdentify(lua_State* L) { | |
4801 int SWIG_arg = 0; | |
4802 Player *arg1 = (Player *) 0 ; | |
4803 ItemGen *arg2 = (ItemGen *) 0 ; | |
4804 bool result; | |
4805 | |
4806 SWIG_check_num_args("Player::CanIdentify",2,2) | |
4807 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::CanIdentify",1,"Player *"); | |
4808 if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("Player::CanIdentify",2,"ItemGen *"); | |
4809 | |
4810 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4811 SWIG_fail_ptr("Player_CanIdentify",1,SWIGTYPE_p_Player); | |
4812 } | |
4813 | |
4814 | |
4815 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_ItemGen,0))){ | |
4816 SWIG_fail_ptr("Player_CanIdentify",2,SWIGTYPE_p_ItemGen); | |
4817 } | |
4818 | |
4819 result = (bool)(arg1)->CanIdentify(arg2); | |
4820 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
4821 return SWIG_arg; | |
4822 | |
4823 if(0) SWIG_fail; | |
4824 | |
4825 fail: | |
4826 lua_error(L); | |
4827 return SWIG_arg; | |
4828 } | |
4829 | |
4830 | |
4831 static int _wrap_Player_CanRepair(lua_State* L) { | |
4832 int SWIG_arg = 0; | |
4833 Player *arg1 = (Player *) 0 ; | |
4834 ItemGen *arg2 = (ItemGen *) 0 ; | |
4835 bool result; | |
4836 | |
4837 SWIG_check_num_args("Player::CanRepair",2,2) | |
4838 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::CanRepair",1,"Player *"); | |
4839 if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("Player::CanRepair",2,"ItemGen *"); | |
4840 | |
4841 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4842 SWIG_fail_ptr("Player_CanRepair",1,SWIGTYPE_p_Player); | |
4843 } | |
4844 | |
4845 | |
4846 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_ItemGen,0))){ | |
4847 SWIG_fail_ptr("Player_CanRepair",2,SWIGTYPE_p_ItemGen); | |
4848 } | |
4849 | |
4850 result = (bool)(arg1)->CanRepair(arg2); | |
4851 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
4852 return SWIG_arg; | |
4853 | |
4854 if(0) SWIG_fail; | |
4855 | |
4856 fail: | |
4857 lua_error(L); | |
4858 return SWIG_arg; | |
4859 } | |
4860 | |
4861 | |
4862 static int _wrap_Player_GetMerchant(lua_State* L) { | |
4863 int SWIG_arg = 0; | |
4864 Player *arg1 = (Player *) 0 ; | |
4865 int result; | |
4866 | |
4867 SWIG_check_num_args("Player::GetMerchant",1,1) | |
4868 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetMerchant",1,"Player *"); | |
4869 | |
4870 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4871 SWIG_fail_ptr("Player_GetMerchant",1,SWIGTYPE_p_Player); | |
4872 } | |
4873 | |
4874 result = (int)(arg1)->GetMerchant(); | |
4875 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
4876 return SWIG_arg; | |
4877 | |
4878 if(0) SWIG_fail; | |
4879 | |
4880 fail: | |
4881 lua_error(L); | |
4882 return SWIG_arg; | |
4883 } | |
4884 | |
4885 | |
4886 static int _wrap_Player_GetPerception(lua_State* L) { | |
4887 int SWIG_arg = 0; | |
4888 Player *arg1 = (Player *) 0 ; | |
4889 int result; | |
4890 | |
4891 SWIG_check_num_args("Player::GetPerception",1,1) | |
4892 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetPerception",1,"Player *"); | |
4893 | |
4894 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4895 SWIG_fail_ptr("Player_GetPerception",1,SWIGTYPE_p_Player); | |
4896 } | |
4897 | |
4898 result = (int)(arg1)->GetPerception(); | |
4899 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
4900 return SWIG_arg; | |
4901 | |
4902 if(0) SWIG_fail; | |
4903 | |
4904 fail: | |
4905 lua_error(L); | |
4906 return SWIG_arg; | |
4907 } | |
4908 | |
4909 | |
4910 static int _wrap_Player_GetDisarmTrap(lua_State* L) { | |
4911 int SWIG_arg = 0; | |
4912 Player *arg1 = (Player *) 0 ; | |
4913 int result; | |
4914 | |
4915 SWIG_check_num_args("Player::GetDisarmTrap",1,1) | |
4916 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetDisarmTrap",1,"Player *"); | |
4917 | |
4918 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4919 SWIG_fail_ptr("Player_GetDisarmTrap",1,SWIGTYPE_p_Player); | |
4920 } | |
4921 | |
4922 result = (int)(arg1)->GetDisarmTrap(); | |
4923 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
4924 return SWIG_arg; | |
4925 | |
4926 if(0) SWIG_fail; | |
4927 | |
4928 fail: | |
4929 lua_error(L); | |
4930 return SWIG_arg; | |
4931 } | |
4932 | |
4933 | |
4934 static int _wrap_Player_GetLearningPercent(lua_State* L) { | |
4935 int SWIG_arg = 0; | |
4936 Player *arg1 = (Player *) 0 ; | |
4937 char result; | |
4938 | |
4939 SWIG_check_num_args("Player::GetLearningPercent",1,1) | |
4940 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetLearningPercent",1,"Player *"); | |
4941 | |
4942 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4943 SWIG_fail_ptr("Player_GetLearningPercent",1,SWIGTYPE_p_Player); | |
4944 } | |
4945 | |
4946 result = (char)(arg1)->GetLearningPercent(); | |
4947 lua_pushfstring(L,"%c",result); SWIG_arg++; | |
4948 return SWIG_arg; | |
4949 | |
4950 if(0) SWIG_fail; | |
4951 | |
4952 fail: | |
4953 lua_error(L); | |
4954 return SWIG_arg; | |
4955 } | |
4956 | |
4957 | |
4958 static int _wrap_Player_CanFitItem(lua_State* L) { | |
4959 int SWIG_arg = 0; | |
4960 Player *arg1 = (Player *) 0 ; | |
4961 unsigned int arg2 ; | |
4962 unsigned int arg3 ; | |
4963 bool result; | |
4964 | |
4965 SWIG_check_num_args("Player::CanFitItem",3,3) | |
4966 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::CanFitItem",1,"Player *"); | |
4967 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::CanFitItem",2,"unsigned int"); | |
4968 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::CanFitItem",3,"unsigned int"); | |
4969 | |
4970 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4971 SWIG_fail_ptr("Player_CanFitItem",1,SWIGTYPE_p_Player); | |
4972 } | |
4973 | |
4974 SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative") | |
4975 arg2 = (unsigned int)lua_tonumber(L, 2); | |
4976 SWIG_contract_assert((lua_tonumber(L,3)>=0),"number must not be negative") | |
4977 arg3 = (unsigned int)lua_tonumber(L, 3); | |
4978 result = (bool)(arg1)->CanFitItem(arg2,arg3); | |
4979 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
4980 return SWIG_arg; | |
4981 | |
4982 if(0) SWIG_fail; | |
4983 | |
4984 fail: | |
4985 lua_error(L); | |
4986 return SWIG_arg; | |
4987 } | |
4988 | |
4989 | |
4990 static int _wrap_Player_FindFreeInventoryListSlot(lua_State* L) { | |
4991 int SWIG_arg = 0; | |
4992 Player *arg1 = (Player *) 0 ; | |
4993 int result; | |
4994 | |
4995 SWIG_check_num_args("Player::FindFreeInventoryListSlot",1,1) | |
4996 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::FindFreeInventoryListSlot",1,"Player *"); | |
4997 | |
4998 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
4999 SWIG_fail_ptr("Player_FindFreeInventoryListSlot",1,SWIGTYPE_p_Player); | |
5000 } | |
5001 | |
5002 result = (int)(arg1)->FindFreeInventoryListSlot(); | |
5003 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
5004 return SWIG_arg; | |
5005 | |
5006 if(0) SWIG_fail; | |
5007 | |
5008 fail: | |
5009 lua_error(L); | |
5010 return SWIG_arg; | |
5011 } | |
5012 | |
5013 | |
5014 static int _wrap_Player_CreateItemInInventory(lua_State* L) { | |
5015 int SWIG_arg = 0; | |
5016 Player *arg1 = (Player *) 0 ; | |
5017 unsigned int arg2 ; | |
5018 unsigned int arg3 ; | |
5019 int result; | |
5020 | |
5021 SWIG_check_num_args("Player::CreateItemInInventory",3,3) | |
5022 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::CreateItemInInventory",1,"Player *"); | |
5023 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::CreateItemInInventory",2,"unsigned int"); | |
5024 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::CreateItemInInventory",3,"unsigned int"); | |
5025 | |
5026 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5027 SWIG_fail_ptr("Player_CreateItemInInventory",1,SWIGTYPE_p_Player); | |
5028 } | |
5029 | |
5030 SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative") | |
5031 arg2 = (unsigned int)lua_tonumber(L, 2); | |
5032 SWIG_contract_assert((lua_tonumber(L,3)>=0),"number must not be negative") | |
5033 arg3 = (unsigned int)lua_tonumber(L, 3); | |
5034 result = (int)(arg1)->CreateItemInInventory(arg2,arg3); | |
5035 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
5036 return SWIG_arg; | |
5037 | |
5038 if(0) SWIG_fail; | |
5039 | |
5040 fail: | |
5041 lua_error(L); | |
5042 return SWIG_arg; | |
5043 } | |
5044 | |
5045 | |
5046 static int _wrap_Player_HasSkill(lua_State* L) { | |
5047 int SWIG_arg = 0; | |
5048 Player *arg1 = (Player *) 0 ; | |
5049 unsigned int arg2 ; | |
5050 int result; | |
5051 | |
5052 SWIG_check_num_args("Player::HasSkill",2,2) | |
5053 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::HasSkill",1,"Player *"); | |
5054 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::HasSkill",2,"unsigned int"); | |
5055 | |
5056 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5057 SWIG_fail_ptr("Player_HasSkill",1,SWIGTYPE_p_Player); | |
5058 } | |
5059 | |
5060 SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative") | |
5061 arg2 = (unsigned int)lua_tonumber(L, 2); | |
5062 result = (int)(arg1)->HasSkill(arg2); | |
5063 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
5064 return SWIG_arg; | |
5065 | |
5066 if(0) SWIG_fail; | |
5067 | |
5068 fail: | |
5069 lua_error(L); | |
5070 return SWIG_arg; | |
5071 } | |
5072 | |
5073 | |
5074 static int _wrap_Player_WearItem(lua_State* L) { | |
5075 int SWIG_arg = 0; | |
5076 Player *arg1 = (Player *) 0 ; | |
5077 unsigned int arg2 ; | |
5078 | |
5079 SWIG_check_num_args("Player::WearItem",2,2) | |
5080 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::WearItem",1,"Player *"); | |
5081 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::WearItem",2,"unsigned int"); | |
5082 | |
5083 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5084 SWIG_fail_ptr("Player_WearItem",1,SWIGTYPE_p_Player); | |
5085 } | |
5086 | |
5087 SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative") | |
5088 arg2 = (unsigned int)lua_tonumber(L, 2); | |
5089 (arg1)->WearItem(arg2); | |
5090 | |
5091 return SWIG_arg; | |
5092 | |
5093 if(0) SWIG_fail; | |
5094 | |
5095 fail: | |
5096 lua_error(L); | |
5097 return SWIG_arg; | |
5098 } | |
5099 | |
5100 | |
5101 static int _wrap_Player_AddItem__SWIG_1(lua_State* L) { | |
5102 int SWIG_arg = 0; | |
5103 Player *arg1 = (Player *) 0 ; | |
5104 int arg2 ; | |
5105 unsigned int arg3 ; | |
5106 int result; | |
5107 | |
5108 SWIG_check_num_args("Player::AddItem",3,3) | |
5109 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::AddItem",1,"Player *"); | |
5110 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::AddItem",2,"int"); | |
5111 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::AddItem",3,"unsigned int"); | |
5112 | |
5113 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5114 SWIG_fail_ptr("Player_AddItem",1,SWIGTYPE_p_Player); | |
5115 } | |
5116 | |
5117 arg2 = (int)lua_tonumber(L, 2); | |
5118 SWIG_contract_assert((lua_tonumber(L,3)>=0),"number must not be negative") | |
5119 arg3 = (unsigned int)lua_tonumber(L, 3); | |
5120 result = (int)(arg1)->AddItem(arg2,arg3); | |
5121 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
5122 return SWIG_arg; | |
5123 | |
5124 if(0) SWIG_fail; | |
5125 | |
5126 fail: | |
5127 lua_error(L); | |
5128 return SWIG_arg; | |
5129 } | |
5130 | |
5131 | |
5132 static int _wrap_Player_AddItem(lua_State* L) { | |
5133 int argc; | |
5134 int argv[4]={ | |
5135 1,2,3,4 | |
5136 }; | |
5137 | |
5138 argc = lua_gettop(L); | |
5139 if (argc == 2) { | |
5140 int _v; | |
5141 { | |
5142 void *ptr; | |
5143 if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_Player, 0)) { | |
5144 _v = 0; | |
5145 } else { | |
5146 _v = 1; | |
5147 } | |
5148 } | |
5149 if (_v) { | |
5150 { | |
5151 void *ptr; | |
5152 if (SWIG_isptrtype(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_ItemGen, 0)) { | |
5153 _v = 0; | |
5154 } else { | |
5155 _v = 1; | |
5156 } | |
5157 } | |
5158 if (_v) { | |
5159 return _wrap_Player_AddItem__SWIG_0(L); | |
5160 } | |
5161 } | |
5162 } | |
5163 if (argc == 3) { | |
5164 int _v; | |
5165 { | |
5166 void *ptr; | |
5167 if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_Player, 0)) { | |
5168 _v = 0; | |
5169 } else { | |
5170 _v = 1; | |
5171 } | |
5172 } | |
5173 if (_v) { | |
5174 { | |
5175 _v = lua_isnumber(L,argv[1]); | |
5176 } | |
5177 if (_v) { | |
5178 { | |
5179 _v = lua_isnumber(L,argv[2]); | |
5180 } | |
5181 if (_v) { | |
5182 return _wrap_Player_AddItem__SWIG_1(L); | |
5183 } | |
5184 } | |
5185 } | |
5186 } | |
5187 | |
5188 SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'Player_AddItem'\n" | |
5189 " Possible C/C++ prototypes are:\n" | |
5190 " Player::AddItem(ItemGen *)\n" | |
5191 " Player::AddItem(int,unsigned int)\n"); | |
5192 lua_error(L);return 0; | |
5193 } | |
5194 | |
5195 | |
5196 static int _wrap_Player_AddItem2(lua_State* L) { | |
5197 int SWIG_arg = 0; | |
5198 Player *arg1 = (Player *) 0 ; | |
5199 int arg2 ; | |
5200 ItemGen *arg3 = (ItemGen *) 0 ; | |
5201 int result; | |
5202 | |
5203 SWIG_check_num_args("Player::AddItem2",3,3) | |
5204 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::AddItem2",1,"Player *"); | |
5205 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::AddItem2",2,"int"); | |
5206 if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("Player::AddItem2",3,"ItemGen *"); | |
5207 | |
5208 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5209 SWIG_fail_ptr("Player_AddItem2",1,SWIGTYPE_p_Player); | |
5210 } | |
5211 | |
5212 arg2 = (int)lua_tonumber(L, 2); | |
5213 | |
5214 if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_ItemGen,0))){ | |
5215 SWIG_fail_ptr("Player_AddItem2",3,SWIGTYPE_p_ItemGen); | |
5216 } | |
5217 | |
5218 result = (int)(arg1)->AddItem2(arg2,arg3); | |
5219 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
5220 return SWIG_arg; | |
5221 | |
5222 if(0) SWIG_fail; | |
5223 | |
5224 fail: | |
5225 lua_error(L); | |
5226 return SWIG_arg; | |
5227 } | |
5228 | |
5229 | |
5230 static int _wrap_Player_CreateItemInInventory2(lua_State* L) { | |
5231 int SWIG_arg = 0; | |
5232 Player *arg1 = (Player *) 0 ; | |
5233 unsigned int arg2 ; | |
5234 ItemGen *arg3 = (ItemGen *) 0 ; | |
5235 int result; | |
5236 | |
5237 SWIG_check_num_args("Player::CreateItemInInventory2",3,3) | |
5238 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::CreateItemInInventory2",1,"Player *"); | |
5239 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::CreateItemInInventory2",2,"unsigned int"); | |
5240 if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("Player::CreateItemInInventory2",3,"ItemGen *"); | |
5241 | |
5242 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5243 SWIG_fail_ptr("Player_CreateItemInInventory2",1,SWIGTYPE_p_Player); | |
5244 } | |
5245 | |
5246 SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative") | |
5247 arg2 = (unsigned int)lua_tonumber(L, 2); | |
5248 | |
5249 if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_ItemGen,0))){ | |
5250 SWIG_fail_ptr("Player_CreateItemInInventory2",3,SWIGTYPE_p_ItemGen); | |
5251 } | |
5252 | |
5253 result = (int)(arg1)->CreateItemInInventory2(arg2,arg3); | |
5254 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
5255 return SWIG_arg; | |
5256 | |
5257 if(0) SWIG_fail; | |
5258 | |
5259 fail: | |
5260 lua_error(L); | |
5261 return SWIG_arg; | |
5262 } | |
5263 | |
5264 | |
5265 static int _wrap_Player_PutItemArInventoryIndex(lua_State* L) { | |
5266 int SWIG_arg = 0; | |
5267 Player *arg1 = (Player *) 0 ; | |
5268 int arg2 ; | |
5269 int arg3 ; | |
5270 int arg4 ; | |
5271 | |
5272 SWIG_check_num_args("Player::PutItemArInventoryIndex",4,4) | |
5273 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::PutItemArInventoryIndex",1,"Player *"); | |
5274 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::PutItemArInventoryIndex",2,"int"); | |
5275 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::PutItemArInventoryIndex",3,"int"); | |
5276 if(!lua_isnumber(L,4)) SWIG_fail_arg("Player::PutItemArInventoryIndex",4,"int"); | |
5277 | |
5278 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5279 SWIG_fail_ptr("Player_PutItemArInventoryIndex",1,SWIGTYPE_p_Player); | |
5280 } | |
5281 | |
5282 arg2 = (int)lua_tonumber(L, 2); | |
5283 arg3 = (int)lua_tonumber(L, 3); | |
5284 arg4 = (int)lua_tonumber(L, 4); | |
5285 (arg1)->PutItemArInventoryIndex(arg2,arg3,arg4); | |
5286 | |
5287 return SWIG_arg; | |
5288 | |
5289 if(0) SWIG_fail; | |
5290 | |
5291 fail: | |
5292 lua_error(L); | |
5293 return SWIG_arg; | |
5294 } | |
5295 | |
5296 | |
5297 static int _wrap_Player_RemoveItemAtInventoryIndex(lua_State* L) { | |
5298 int SWIG_arg = 0; | |
5299 Player *arg1 = (Player *) 0 ; | |
5300 unsigned int arg2 ; | |
5301 | |
5302 SWIG_check_num_args("Player::RemoveItemAtInventoryIndex",2,2) | |
5303 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::RemoveItemAtInventoryIndex",1,"Player *"); | |
5304 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::RemoveItemAtInventoryIndex",2,"unsigned int"); | |
5305 | |
5306 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5307 SWIG_fail_ptr("Player_RemoveItemAtInventoryIndex",1,SWIGTYPE_p_Player); | |
5308 } | |
5309 | |
5310 SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative") | |
5311 arg2 = (unsigned int)lua_tonumber(L, 2); | |
5312 (arg1)->RemoveItemAtInventoryIndex(arg2); | |
5313 | |
5314 return SWIG_arg; | |
5315 | |
5316 if(0) SWIG_fail; | |
5317 | |
5318 fail: | |
5319 lua_error(L); | |
5320 return SWIG_arg; | |
5321 } | |
5322 | |
5323 | |
5324 static int _wrap_Player_CanAct(lua_State* L) { | |
5325 int SWIG_arg = 0; | |
5326 Player *arg1 = (Player *) 0 ; | |
5327 bool result; | |
5328 | |
5329 SWIG_check_num_args("Player::CanAct",1,1) | |
5330 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::CanAct",1,"Player *"); | |
5331 | |
5332 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5333 SWIG_fail_ptr("Player_CanAct",1,SWIGTYPE_p_Player); | |
5334 } | |
5335 | |
5336 result = (bool)(arg1)->CanAct(); | |
5337 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
5338 return SWIG_arg; | |
5339 | |
5340 if(0) SWIG_fail; | |
5341 | |
5342 fail: | |
5343 lua_error(L); | |
5344 return SWIG_arg; | |
5345 } | |
5346 | |
5347 | |
5348 static int _wrap_Player_CanSteal(lua_State* L) { | |
5349 int SWIG_arg = 0; | |
5350 Player *arg1 = (Player *) 0 ; | |
5351 bool result; | |
5352 | |
5353 SWIG_check_num_args("Player::CanSteal",1,1) | |
5354 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::CanSteal",1,"Player *"); | |
5355 | |
5356 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5357 SWIG_fail_ptr("Player_CanSteal",1,SWIGTYPE_p_Player); | |
5358 } | |
5359 | |
5360 result = (bool)(arg1)->CanSteal(); | |
5361 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
5362 return SWIG_arg; | |
5363 | |
5364 if(0) SWIG_fail; | |
5365 | |
5366 fail: | |
5367 lua_error(L); | |
5368 return SWIG_arg; | |
5369 } | |
5370 | |
5371 | |
5372 static int _wrap_Player_CanEquip_RaceAndAlignmentCheck(lua_State* L) { | |
5373 int SWIG_arg = 0; | |
5374 Player *arg1 = (Player *) 0 ; | |
5375 unsigned int arg2 ; | |
5376 bool result; | |
5377 | |
5378 SWIG_check_num_args("Player::CanEquip_RaceAndAlignmentCheck",2,2) | |
5379 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::CanEquip_RaceAndAlignmentCheck",1,"Player *"); | |
5380 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::CanEquip_RaceAndAlignmentCheck",2,"unsigned int"); | |
5381 | |
5382 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5383 SWIG_fail_ptr("Player_CanEquip_RaceAndAlignmentCheck",1,SWIGTYPE_p_Player); | |
5384 } | |
5385 | |
5386 SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative") | |
5387 arg2 = (unsigned int)lua_tonumber(L, 2); | |
5388 result = (bool)(arg1)->CanEquip_RaceAndAlignmentCheck(arg2); | |
5389 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
5390 return SWIG_arg; | |
5391 | |
5392 if(0) SWIG_fail; | |
5393 | |
5394 fail: | |
5395 lua_error(L); | |
5396 return SWIG_arg; | |
5397 } | |
5398 | |
5399 | |
5400 static int _wrap_Player_SetCondition(lua_State* L) { | |
5401 int SWIG_arg = 0; | |
5402 Player *arg1 = (Player *) 0 ; | |
5403 unsigned int arg2 ; | |
5404 int arg3 ; | |
5405 | |
5406 SWIG_check_num_args("Player::SetCondition",3,3) | |
5407 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetCondition",1,"Player *"); | |
5408 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::SetCondition",2,"unsigned int"); | |
5409 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::SetCondition",3,"int"); | |
5410 | |
5411 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5412 SWIG_fail_ptr("Player_SetCondition",1,SWIGTYPE_p_Player); | |
5413 } | |
5414 | |
5415 SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative") | |
5416 arg2 = (unsigned int)lua_tonumber(L, 2); | |
5417 arg3 = (int)lua_tonumber(L, 3); | |
5418 (arg1)->SetCondition(arg2,arg3); | |
5419 | |
5420 return SWIG_arg; | |
5421 | |
5422 if(0) SWIG_fail; | |
5423 | |
5424 fail: | |
5425 lua_error(L); | |
5426 return SWIG_arg; | |
5427 } | |
5428 | |
5429 | |
5430 static int _wrap_Player_ProfessionOrGuildFlagsCorrect(lua_State* L) { | |
5431 int SWIG_arg = 0; | |
5432 Player *arg1 = (Player *) 0 ; | |
5433 unsigned int arg2 ; | |
5434 int arg3 ; | |
5435 bool result; | |
5436 | |
5437 SWIG_check_num_args("Player::ProfessionOrGuildFlagsCorrect",3,3) | |
5438 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::ProfessionOrGuildFlagsCorrect",1,"Player *"); | |
5439 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::ProfessionOrGuildFlagsCorrect",2,"unsigned int"); | |
5440 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::ProfessionOrGuildFlagsCorrect",3,"int"); | |
5441 | |
5442 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5443 SWIG_fail_ptr("Player_ProfessionOrGuildFlagsCorrect",1,SWIGTYPE_p_Player); | |
5444 } | |
5445 | |
5446 SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative") | |
5447 arg2 = (unsigned int)lua_tonumber(L, 2); | |
5448 arg3 = (int)lua_tonumber(L, 3); | |
5449 result = (bool)(arg1)->ProfessionOrGuildFlagsCorrect(arg2,arg3); | |
5450 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
5451 return SWIG_arg; | |
5452 | |
5453 if(0) SWIG_fail; | |
5454 | |
5455 fail: | |
5456 lua_error(L); | |
5457 return SWIG_arg; | |
5458 } | |
5459 | |
5460 | |
5461 static int _wrap_Player_PlaySound(lua_State* L) { | |
5462 int SWIG_arg = 0; | |
5463 Player *arg1 = (Player *) 0 ; | |
5464 PlayerSpeech arg2 ; | |
5465 int arg3 ; | |
5466 | |
5467 SWIG_check_num_args("Player::PlaySound",3,3) | |
5468 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::PlaySound",1,"Player *"); | |
5469 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::PlaySound",2,"PlayerSpeech"); | |
5470 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::PlaySound",3,"int"); | |
5471 | |
5472 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5473 SWIG_fail_ptr("Player_PlaySound",1,SWIGTYPE_p_Player); | |
5474 } | |
5475 | |
5476 arg2 = (PlayerSpeech)(int)lua_tonumber(L, 2); | |
5477 arg3 = (int)lua_tonumber(L, 3); | |
5478 (arg1)->PlaySound(arg2,arg3); | |
5479 | |
5480 return SWIG_arg; | |
5481 | |
5482 if(0) SWIG_fail; | |
5483 | |
5484 fail: | |
5485 lua_error(L); | |
5486 return SWIG_arg; | |
5487 } | |
5488 | |
5489 | |
5490 static int _wrap_Player_PlayEmotion(lua_State* L) { | |
5491 int SWIG_arg = 0; | |
5492 Player *arg1 = (Player *) 0 ; | |
5493 CHARACTER_EXPRESSION_ID arg2 ; | |
5494 int arg3 ; | |
5495 | |
5496 SWIG_check_num_args("Player::PlayEmotion",3,3) | |
5497 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::PlayEmotion",1,"Player *"); | |
5498 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::PlayEmotion",2,"CHARACTER_EXPRESSION_ID"); | |
5499 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::PlayEmotion",3,"int"); | |
5500 | |
5501 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5502 SWIG_fail_ptr("Player_PlayEmotion",1,SWIGTYPE_p_Player); | |
5503 } | |
5504 | |
5505 arg2 = (CHARACTER_EXPRESSION_ID)(int)lua_tonumber(L, 2); | |
5506 arg3 = (int)lua_tonumber(L, 3); | |
5507 (arg1)->PlayEmotion(arg2,arg3); | |
5508 | |
5509 return SWIG_arg; | |
5510 | |
5511 if(0) SWIG_fail; | |
5512 | |
5513 fail: | |
5514 lua_error(L); | |
5515 return SWIG_arg; | |
5516 } | |
5517 | |
5518 | |
5519 static int _wrap_Player_ItemsEnchant(lua_State* L) { | |
5520 int SWIG_arg = 0; | |
5521 Player *arg1 = (Player *) 0 ; | |
5522 int arg2 ; | |
5523 | |
5524 SWIG_check_num_args("Player::ItemsEnchant",2,2) | |
5525 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::ItemsEnchant",1,"Player *"); | |
5526 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::ItemsEnchant",2,"int"); | |
5527 | |
5528 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5529 SWIG_fail_ptr("Player_ItemsEnchant",1,SWIGTYPE_p_Player); | |
5530 } | |
5531 | |
5532 arg2 = (int)lua_tonumber(L, 2); | |
5533 (arg1)->ItemsEnchant(arg2); | |
5534 | |
5535 return SWIG_arg; | |
5536 | |
5537 if(0) SWIG_fail; | |
5538 | |
5539 fail: | |
5540 lua_error(L); | |
5541 return SWIG_arg; | |
5542 } | |
5543 | |
5544 | |
5545 static int _wrap_Player_GetItemIDAtInventoryIndex(lua_State* L) { | |
5546 int SWIG_arg = 0; | |
5547 Player *arg1 = (Player *) 0 ; | |
5548 int *arg2 = (int *) 0 ; | |
5549 unsigned int result; | |
5550 | |
5551 SWIG_check_num_args("Player::GetItemIDAtInventoryIndex",2,2) | |
5552 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetItemIDAtInventoryIndex",1,"Player *"); | |
5553 if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("Player::GetItemIDAtInventoryIndex",2,"int *"); | |
5554 | |
5555 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5556 SWIG_fail_ptr("Player_GetItemIDAtInventoryIndex",1,SWIGTYPE_p_Player); | |
5557 } | |
5558 | |
5559 | |
5560 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_int,0))){ | |
5561 SWIG_fail_ptr("Player_GetItemIDAtInventoryIndex",2,SWIGTYPE_p_int); | |
5562 } | |
5563 | |
5564 result = (unsigned int)(arg1)->GetItemIDAtInventoryIndex(arg2); | |
5565 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
5566 return SWIG_arg; | |
5567 | |
5568 if(0) SWIG_fail; | |
5569 | |
5570 fail: | |
5571 lua_error(L); | |
5572 return SWIG_arg; | |
5573 } | |
5574 | |
5575 | |
5576 static int _wrap_Player_IsPlayerHealableByTemple(lua_State* L) { | |
5577 int SWIG_arg = 0; | |
5578 Player *arg1 = (Player *) 0 ; | |
5579 bool result; | |
5580 | |
5581 SWIG_check_num_args("Player::IsPlayerHealableByTemple",1,1) | |
5582 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::IsPlayerHealableByTemple",1,"Player *"); | |
5583 | |
5584 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5585 SWIG_fail_ptr("Player_IsPlayerHealableByTemple",1,SWIGTYPE_p_Player); | |
5586 } | |
5587 | |
5588 result = (bool)(arg1)->IsPlayerHealableByTemple(); | |
5589 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
5590 return SWIG_arg; | |
5591 | |
5592 if(0) SWIG_fail; | |
5593 | |
5594 fail: | |
5595 lua_error(L); | |
5596 return SWIG_arg; | |
5597 } | |
5598 | |
5599 | |
5600 static int _wrap_Player_GetBaseIdentifyPrice(lua_State* L) { | |
5601 int SWIG_arg = 0; | |
5602 Player *arg1 = (Player *) 0 ; | |
5603 float arg2 ; | |
5604 int result; | |
5605 | |
5606 SWIG_check_num_args("Player::GetBaseIdentifyPrice",2,2) | |
5607 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetBaseIdentifyPrice",1,"Player *"); | |
5608 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetBaseIdentifyPrice",2,"float"); | |
5609 | |
5610 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5611 SWIG_fail_ptr("Player_GetBaseIdentifyPrice",1,SWIGTYPE_p_Player); | |
5612 } | |
5613 | |
5614 arg2 = (float)lua_tonumber(L, 2); | |
5615 result = (int)(arg1)->GetBaseIdentifyPrice(arg2); | |
5616 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
5617 return SWIG_arg; | |
5618 | |
5619 if(0) SWIG_fail; | |
5620 | |
5621 fail: | |
5622 lua_error(L); | |
5623 return SWIG_arg; | |
5624 } | |
5625 | |
5626 | |
5627 static int _wrap_Player_GetBaseRepairPrice(lua_State* L) { | |
5628 int SWIG_arg = 0; | |
5629 Player *arg1 = (Player *) 0 ; | |
5630 int arg2 ; | |
5631 float arg3 ; | |
5632 int result; | |
5633 | |
5634 SWIG_check_num_args("Player::GetBaseRepairPrice",3,3) | |
5635 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetBaseRepairPrice",1,"Player *"); | |
5636 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetBaseRepairPrice",2,"int"); | |
5637 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::GetBaseRepairPrice",3,"float"); | |
5638 | |
5639 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5640 SWIG_fail_ptr("Player_GetBaseRepairPrice",1,SWIGTYPE_p_Player); | |
5641 } | |
5642 | |
5643 arg2 = (int)lua_tonumber(L, 2); | |
5644 arg3 = (float)lua_tonumber(L, 3); | |
5645 result = (int)(arg1)->GetBaseRepairPrice(arg2,arg3); | |
5646 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
5647 return SWIG_arg; | |
5648 | |
5649 if(0) SWIG_fail; | |
5650 | |
5651 fail: | |
5652 lua_error(L); | |
5653 return SWIG_arg; | |
5654 } | |
5655 | |
5656 | |
5657 static int _wrap_Player_GetBaseBuyingPrice(lua_State* L) { | |
5658 int SWIG_arg = 0; | |
5659 Player *arg1 = (Player *) 0 ; | |
5660 int arg2 ; | |
5661 float arg3 ; | |
5662 int result; | |
5663 | |
5664 SWIG_check_num_args("Player::GetBaseBuyingPrice",3,3) | |
5665 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetBaseBuyingPrice",1,"Player *"); | |
5666 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetBaseBuyingPrice",2,"int"); | |
5667 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::GetBaseBuyingPrice",3,"float"); | |
5668 | |
5669 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5670 SWIG_fail_ptr("Player_GetBaseBuyingPrice",1,SWIGTYPE_p_Player); | |
5671 } | |
5672 | |
5673 arg2 = (int)lua_tonumber(L, 2); | |
5674 arg3 = (float)lua_tonumber(L, 3); | |
5675 result = (int)(arg1)->GetBaseBuyingPrice(arg2,arg3); | |
5676 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
5677 return SWIG_arg; | |
5678 | |
5679 if(0) SWIG_fail; | |
5680 | |
5681 fail: | |
5682 lua_error(L); | |
5683 return SWIG_arg; | |
5684 } | |
5685 | |
5686 | |
5687 static int _wrap_Player_GetBaseSellingPrice(lua_State* L) { | |
5688 int SWIG_arg = 0; | |
5689 Player *arg1 = (Player *) 0 ; | |
5690 int arg2 ; | |
5691 float arg3 ; | |
5692 int result; | |
5693 | |
5694 SWIG_check_num_args("Player::GetBaseSellingPrice",3,3) | |
5695 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetBaseSellingPrice",1,"Player *"); | |
5696 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetBaseSellingPrice",2,"int"); | |
5697 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::GetBaseSellingPrice",3,"float"); | |
5698 | |
5699 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5700 SWIG_fail_ptr("Player_GetBaseSellingPrice",1,SWIGTYPE_p_Player); | |
5701 } | |
5702 | |
5703 arg2 = (int)lua_tonumber(L, 2); | |
5704 arg3 = (float)lua_tonumber(L, 3); | |
5705 result = (int)(arg1)->GetBaseSellingPrice(arg2,arg3); | |
5706 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
5707 return SWIG_arg; | |
5708 | |
5709 if(0) SWIG_fail; | |
5710 | |
5711 fail: | |
5712 lua_error(L); | |
5713 return SWIG_arg; | |
5714 } | |
5715 | |
5716 | |
5717 static int _wrap_Player_GetPriceRepair(lua_State* L) { | |
5718 int SWIG_arg = 0; | |
5719 Player *arg1 = (Player *) 0 ; | |
5720 int arg2 ; | |
5721 float arg3 ; | |
5722 int result; | |
5723 | |
5724 SWIG_check_num_args("Player::GetPriceRepair",3,3) | |
5725 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetPriceRepair",1,"Player *"); | |
5726 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetPriceRepair",2,"int"); | |
5727 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::GetPriceRepair",3,"float"); | |
5728 | |
5729 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5730 SWIG_fail_ptr("Player_GetPriceRepair",1,SWIGTYPE_p_Player); | |
5731 } | |
5732 | |
5733 arg2 = (int)lua_tonumber(L, 2); | |
5734 arg3 = (float)lua_tonumber(L, 3); | |
5735 result = (int)(arg1)->GetPriceRepair(arg2,arg3); | |
5736 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
5737 return SWIG_arg; | |
5738 | |
5739 if(0) SWIG_fail; | |
5740 | |
5741 fail: | |
5742 lua_error(L); | |
5743 return SWIG_arg; | |
5744 } | |
5745 | |
5746 | |
5747 static int _wrap_Player_GetPriceIdentification(lua_State* L) { | |
5748 int SWIG_arg = 0; | |
5749 Player *arg1 = (Player *) 0 ; | |
5750 float arg2 ; | |
5751 int result; | |
5752 | |
5753 SWIG_check_num_args("Player::GetPriceIdentification",2,2) | |
5754 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetPriceIdentification",1,"Player *"); | |
5755 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetPriceIdentification",2,"float"); | |
5756 | |
5757 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5758 SWIG_fail_ptr("Player_GetPriceIdentification",1,SWIGTYPE_p_Player); | |
5759 } | |
5760 | |
5761 arg2 = (float)lua_tonumber(L, 2); | |
5762 result = (int)(arg1)->GetPriceIdentification(arg2); | |
5763 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
5764 return SWIG_arg; | |
5765 | |
5766 if(0) SWIG_fail; | |
5767 | |
5768 fail: | |
5769 lua_error(L); | |
5770 return SWIG_arg; | |
5771 } | |
5772 | |
5773 | |
5774 static int _wrap_Player_GetBuyingPrice(lua_State* L) { | |
5775 int SWIG_arg = 0; | |
5776 Player *arg1 = (Player *) 0 ; | |
5777 unsigned int arg2 ; | |
5778 float arg3 ; | |
5779 int result; | |
5780 | |
5781 SWIG_check_num_args("Player::GetBuyingPrice",3,3) | |
5782 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetBuyingPrice",1,"Player *"); | |
5783 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetBuyingPrice",2,"unsigned int"); | |
5784 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::GetBuyingPrice",3,"float"); | |
5785 | |
5786 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5787 SWIG_fail_ptr("Player_GetBuyingPrice",1,SWIGTYPE_p_Player); | |
5788 } | |
5789 | |
5790 SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative") | |
5791 arg2 = (unsigned int)lua_tonumber(L, 2); | |
5792 arg3 = (float)lua_tonumber(L, 3); | |
5793 result = (int)(arg1)->GetBuyingPrice(arg2,arg3); | |
5794 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
5795 return SWIG_arg; | |
5796 | |
5797 if(0) SWIG_fail; | |
5798 | |
5799 fail: | |
5800 lua_error(L); | |
5801 return SWIG_arg; | |
5802 } | |
5803 | |
5804 | |
5805 static int _wrap_Player_GetPriceSell(lua_State* L) { | |
5806 int SWIG_arg = 0; | |
5807 Player *arg1 = (Player *) 0 ; | |
5808 int arg2 ; | |
5809 float arg3 ; | |
5810 int result; | |
5811 | |
5812 SWIG_check_num_args("Player::GetPriceSell",3,3) | |
5813 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetPriceSell",1,"Player *"); | |
5814 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetPriceSell",2,"int"); | |
5815 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::GetPriceSell",3,"float"); | |
5816 | |
5817 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5818 SWIG_fail_ptr("Player_GetPriceSell",1,SWIGTYPE_p_Player); | |
5819 } | |
5820 | |
5821 arg2 = (int)lua_tonumber(L, 2); | |
5822 arg3 = (float)lua_tonumber(L, 3); | |
5823 result = (int)(arg1)->GetPriceSell(arg2,arg3); | |
5824 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
5825 return SWIG_arg; | |
5826 | |
5827 if(0) SWIG_fail; | |
5828 | |
5829 fail: | |
5830 lua_error(L); | |
5831 return SWIG_arg; | |
5832 } | |
5833 | |
5834 | |
5835 static int _wrap_Player_GetTempleHealCostModifier(lua_State* L) { | |
5836 int SWIG_arg = 0; | |
5837 Player *arg1 = (Player *) 0 ; | |
5838 float arg2 ; | |
5839 int result; | |
5840 | |
5841 SWIG_check_num_args("Player::GetTempleHealCostModifier",2,2) | |
5842 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetTempleHealCostModifier",1,"Player *"); | |
5843 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetTempleHealCostModifier",2,"float"); | |
5844 | |
5845 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5846 SWIG_fail_ptr("Player_GetTempleHealCostModifier",1,SWIGTYPE_p_Player); | |
5847 } | |
5848 | |
5849 arg2 = (float)lua_tonumber(L, 2); | |
5850 result = (int)(arg1)->GetTempleHealCostModifier(arg2); | |
5851 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
5852 return SWIG_arg; | |
5853 | |
5854 if(0) SWIG_fail; | |
5855 | |
5856 fail: | |
5857 lua_error(L); | |
5858 return SWIG_arg; | |
5859 } | |
5860 | |
5861 | |
5862 static int _wrap_Player_GetConditionDayOfWeek(lua_State* L) { | |
5863 int SWIG_arg = 0; | |
5864 Player *arg1 = (Player *) 0 ; | |
5865 unsigned int arg2 ; | |
5866 int result; | |
5867 | |
5868 SWIG_check_num_args("Player::GetConditionDayOfWeek",2,2) | |
5869 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetConditionDayOfWeek",1,"Player *"); | |
5870 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetConditionDayOfWeek",2,"unsigned int"); | |
5871 | |
5872 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5873 SWIG_fail_ptr("Player_GetConditionDayOfWeek",1,SWIGTYPE_p_Player); | |
5874 } | |
5875 | |
5876 SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative") | |
5877 arg2 = (unsigned int)lua_tonumber(L, 2); | |
5878 result = (int)(arg1)->GetConditionDayOfWeek(arg2); | |
5879 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
5880 return SWIG_arg; | |
5881 | |
5882 if(0) SWIG_fail; | |
5883 | |
5884 fail: | |
5885 lua_error(L); | |
5886 return SWIG_arg; | |
5887 } | |
5888 | |
5889 | |
5890 static int _wrap_Player_NothingOrJustBlastersEquipped(lua_State* L) { | |
5891 int SWIG_arg = 0; | |
5892 Player *arg1 = (Player *) 0 ; | |
5893 bool result; | |
5894 | |
5895 SWIG_check_num_args("Player::NothingOrJustBlastersEquipped",1,1) | |
5896 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::NothingOrJustBlastersEquipped",1,"Player *"); | |
5897 | |
5898 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5899 SWIG_fail_ptr("Player_NothingOrJustBlastersEquipped",1,SWIGTYPE_p_Player); | |
5900 } | |
5901 | |
5902 result = (bool)(arg1)->NothingOrJustBlastersEquipped(); | |
5903 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
5904 return SWIG_arg; | |
5905 | |
5906 if(0) SWIG_fail; | |
5907 | |
5908 fail: | |
5909 lua_error(L); | |
5910 return SWIG_arg; | |
5911 } | |
5912 | |
5913 | |
5914 static int _wrap_Player_SalesProcess(lua_State* L) { | |
5915 int SWIG_arg = 0; | |
5916 Player *arg1 = (Player *) 0 ; | |
5917 unsigned int arg2 ; | |
5918 int arg3 ; | |
5919 int arg4 ; | |
5920 | |
5921 SWIG_check_num_args("Player::SalesProcess",4,4) | |
5922 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SalesProcess",1,"Player *"); | |
5923 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::SalesProcess",2,"unsigned int"); | |
5924 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::SalesProcess",3,"int"); | |
5925 if(!lua_isnumber(L,4)) SWIG_fail_arg("Player::SalesProcess",4,"int"); | |
5926 | |
5927 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5928 SWIG_fail_ptr("Player_SalesProcess",1,SWIGTYPE_p_Player); | |
5929 } | |
5930 | |
5931 SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative") | |
5932 arg2 = (unsigned int)lua_tonumber(L, 2); | |
5933 arg3 = (int)lua_tonumber(L, 3); | |
5934 arg4 = (int)lua_tonumber(L, 4); | |
5935 (arg1)->SalesProcess(arg2,arg3,arg4); | |
5936 | |
5937 return SWIG_arg; | |
5938 | |
5939 if(0) SWIG_fail; | |
5940 | |
5941 fail: | |
5942 lua_error(L); | |
5943 return SWIG_arg; | |
5944 } | |
5945 | |
5946 | |
5947 static int _wrap_Player_Recover(lua_State* L) { | |
5948 int SWIG_arg = 0; | |
5949 Player *arg1 = (Player *) 0 ; | |
5950 int arg2 ; | |
5951 bool result; | |
5952 | |
5953 SWIG_check_num_args("Player::Recover",2,2) | |
5954 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::Recover",1,"Player *"); | |
5955 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::Recover",2,"int"); | |
5956 | |
5957 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5958 SWIG_fail_ptr("Player_Recover",1,SWIGTYPE_p_Player); | |
5959 } | |
5960 | |
5961 arg2 = (int)lua_tonumber(L, 2); | |
5962 result = (bool)(arg1)->Recover(arg2); | |
5963 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
5964 return SWIG_arg; | |
5965 | |
5966 if(0) SWIG_fail; | |
5967 | |
5968 fail: | |
5969 lua_error(L); | |
5970 return SWIG_arg; | |
5971 } | |
5972 | |
5973 | |
5974 static int _wrap_Player_CanCastSpell(lua_State* L) { | |
5975 int SWIG_arg = 0; | |
5976 Player *arg1 = (Player *) 0 ; | |
5977 unsigned int arg2 ; | |
5978 bool result; | |
5979 | |
5980 SWIG_check_num_args("Player::CanCastSpell",2,2) | |
5981 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::CanCastSpell",1,"Player *"); | |
5982 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::CanCastSpell",2,"unsigned int"); | |
5983 | |
5984 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
5985 SWIG_fail_ptr("Player_CanCastSpell",1,SWIGTYPE_p_Player); | |
5986 } | |
5987 | |
5988 SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative") | |
5989 arg2 = (unsigned int)lua_tonumber(L, 2); | |
5990 result = (bool)(arg1)->CanCastSpell(arg2); | |
5991 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
5992 return SWIG_arg; | |
5993 | |
5994 if(0) SWIG_fail; | |
5995 | |
5996 fail: | |
5997 lua_error(L); | |
5998 return SWIG_arg; | |
5999 } | |
6000 | |
6001 | |
6002 static int _wrap_Player_PlayAwardSound(lua_State* L) { | |
6003 int SWIG_arg = 0; | |
6004 Player *arg1 = (Player *) 0 ; | |
6005 | |
6006 SWIG_check_num_args("Player::PlayAwardSound",1,1) | |
6007 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::PlayAwardSound",1,"Player *"); | |
6008 | |
6009 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6010 SWIG_fail_ptr("Player_PlayAwardSound",1,SWIGTYPE_p_Player); | |
6011 } | |
6012 | |
6013 (arg1)->PlayAwardSound(); | |
6014 | |
6015 return SWIG_arg; | |
6016 | |
6017 if(0) SWIG_fail; | |
6018 | |
6019 fail: | |
6020 lua_error(L); | |
6021 return SWIG_arg; | |
6022 } | |
6023 | |
6024 | |
6025 static int _wrap_Player_EquipBody(lua_State* L) { | |
6026 int SWIG_arg = 0; | |
6027 Player *arg1 = (Player *) 0 ; | |
6028 ITEM_EQUIP_TYPE arg2 ; | |
6029 ITEM_EQUIP_TYPE *argp2 ; | |
6030 | |
6031 SWIG_check_num_args("Player::EquipBody",2,2) | |
6032 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::EquipBody",1,"Player *"); | |
6033 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::EquipBody",2,"ITEM_EQUIP_TYPE"); | |
6034 | |
6035 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6036 SWIG_fail_ptr("Player_EquipBody",1,SWIGTYPE_p_Player); | |
6037 } | |
6038 | |
6039 | |
6040 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_ITEM_EQUIP_TYPE,0))){ | |
6041 SWIG_fail_ptr("Player_EquipBody",2,SWIGTYPE_p_ITEM_EQUIP_TYPE); | |
6042 } | |
6043 arg2 = *argp2; | |
6044 | |
6045 (arg1)->EquipBody(arg2); | |
6046 | |
6047 return SWIG_arg; | |
6048 | |
6049 if(0) SWIG_fail; | |
6050 | |
6051 fail: | |
6052 lua_error(L); | |
6053 return SWIG_arg; | |
6054 } | |
6055 | |
6056 | |
6057 static int _wrap_Player_HasUnderwaterSuitEquipped(lua_State* L) { | |
6058 int SWIG_arg = 0; | |
6059 Player *arg1 = (Player *) 0 ; | |
6060 bool result; | |
6061 | |
6062 SWIG_check_num_args("Player::HasUnderwaterSuitEquipped",1,1) | |
6063 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::HasUnderwaterSuitEquipped",1,"Player *"); | |
6064 | |
6065 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6066 SWIG_fail_ptr("Player_HasUnderwaterSuitEquipped",1,SWIGTYPE_p_Player); | |
6067 } | |
6068 | |
6069 result = (bool)(arg1)->HasUnderwaterSuitEquipped(); | |
6070 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
6071 return SWIG_arg; | |
6072 | |
6073 if(0) SWIG_fail; | |
6074 | |
6075 fail: | |
6076 lua_error(L); | |
6077 return SWIG_arg; | |
6078 } | |
6079 | |
6080 | |
6081 static int _wrap_Player_HasItem(lua_State* L) { | |
6082 int SWIG_arg = 0; | |
6083 Player *arg1 = (Player *) 0 ; | |
6084 unsigned int arg2 ; | |
6085 bool arg3 ; | |
6086 bool result; | |
6087 | |
6088 SWIG_check_num_args("Player::HasItem",3,3) | |
6089 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::HasItem",1,"Player *"); | |
6090 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::HasItem",2,"unsigned int"); | |
6091 if(!lua_isboolean(L,3)) SWIG_fail_arg("Player::HasItem",3,"bool"); | |
6092 | |
6093 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6094 SWIG_fail_ptr("Player_HasItem",1,SWIGTYPE_p_Player); | |
6095 } | |
6096 | |
6097 SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative") | |
6098 arg2 = (unsigned int)lua_tonumber(L, 2); | |
6099 arg3 = (lua_toboolean(L, 3)!=0); | |
6100 result = (bool)(arg1)->HasItem(arg2,arg3); | |
6101 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
6102 return SWIG_arg; | |
6103 | |
6104 if(0) SWIG_fail; | |
6105 | |
6106 fail: | |
6107 lua_error(L); | |
6108 return SWIG_arg; | |
6109 } | |
6110 | |
6111 | |
6112 static int _wrap_Player_OnInventoryLeftClick(lua_State* L) { | |
6113 int SWIG_arg = 0; | |
6114 Player *arg1 = (Player *) 0 ; | |
6115 | |
6116 SWIG_check_num_args("Player::OnInventoryLeftClick",1,1) | |
6117 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::OnInventoryLeftClick",1,"Player *"); | |
6118 | |
6119 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6120 SWIG_fail_ptr("Player_OnInventoryLeftClick",1,SWIGTYPE_p_Player); | |
6121 } | |
6122 | |
6123 (arg1)->OnInventoryLeftClick(); | |
6124 | |
6125 return SWIG_arg; | |
6126 | |
6127 if(0) SWIG_fail; | |
6128 | |
6129 fail: | |
6130 lua_error(L); | |
6131 return SWIG_arg; | |
6132 } | |
6133 | |
6134 | |
6135 static int _wrap_Player_GetMultiplierForSkillLevel(lua_State* L) { | |
6136 int SWIG_arg = 0; | |
6137 Player *arg1 = (Player *) 0 ; | |
6138 unsigned int arg2 ; | |
6139 int arg3 ; | |
6140 int arg4 ; | |
6141 int arg5 ; | |
6142 int arg6 ; | |
6143 unsigned int result; | |
6144 | |
6145 SWIG_check_num_args("Player::GetMultiplierForSkillLevel",6,6) | |
6146 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetMultiplierForSkillLevel",1,"Player *"); | |
6147 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetMultiplierForSkillLevel",2,"unsigned int"); | |
6148 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::GetMultiplierForSkillLevel",3,"int"); | |
6149 if(!lua_isnumber(L,4)) SWIG_fail_arg("Player::GetMultiplierForSkillLevel",4,"int"); | |
6150 if(!lua_isnumber(L,5)) SWIG_fail_arg("Player::GetMultiplierForSkillLevel",5,"int"); | |
6151 if(!lua_isnumber(L,6)) SWIG_fail_arg("Player::GetMultiplierForSkillLevel",6,"int"); | |
6152 | |
6153 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6154 SWIG_fail_ptr("Player_GetMultiplierForSkillLevel",1,SWIGTYPE_p_Player); | |
6155 } | |
6156 | |
6157 SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative") | |
6158 arg2 = (unsigned int)lua_tonumber(L, 2); | |
6159 arg3 = (int)lua_tonumber(L, 3); | |
6160 arg4 = (int)lua_tonumber(L, 4); | |
6161 arg5 = (int)lua_tonumber(L, 5); | |
6162 arg6 = (int)lua_tonumber(L, 6); | |
6163 result = (unsigned int)(arg1)->GetMultiplierForSkillLevel(arg2,arg3,arg4,arg5,arg6); | |
6164 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
6165 return SWIG_arg; | |
6166 | |
6167 if(0) SWIG_fail; | |
6168 | |
6169 fail: | |
6170 lua_error(L); | |
6171 return SWIG_arg; | |
6172 } | |
6173 | |
6174 | |
6175 static int _wrap_Player_CalculateMeleeDmgToEnemyWithWeapon(lua_State* L) { | |
6176 int SWIG_arg = 0; | |
6177 Player *arg1 = (Player *) 0 ; | |
6178 ItemGen *arg2 = (ItemGen *) 0 ; | |
6179 unsigned int arg3 ; | |
6180 bool arg4 ; | |
6181 int result; | |
6182 | |
6183 SWIG_check_num_args("Player::CalculateMeleeDmgToEnemyWithWeapon",4,4) | |
6184 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::CalculateMeleeDmgToEnemyWithWeapon",1,"Player *"); | |
6185 if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("Player::CalculateMeleeDmgToEnemyWithWeapon",2,"ItemGen *"); | |
6186 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::CalculateMeleeDmgToEnemyWithWeapon",3,"unsigned int"); | |
6187 if(!lua_isboolean(L,4)) SWIG_fail_arg("Player::CalculateMeleeDmgToEnemyWithWeapon",4,"bool"); | |
6188 | |
6189 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6190 SWIG_fail_ptr("Player_CalculateMeleeDmgToEnemyWithWeapon",1,SWIGTYPE_p_Player); | |
6191 } | |
6192 | |
6193 | |
6194 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_ItemGen,0))){ | |
6195 SWIG_fail_ptr("Player_CalculateMeleeDmgToEnemyWithWeapon",2,SWIGTYPE_p_ItemGen); | |
6196 } | |
6197 | |
6198 SWIG_contract_assert((lua_tonumber(L,3)>=0),"number must not be negative") | |
6199 arg3 = (unsigned int)lua_tonumber(L, 3); | |
6200 arg4 = (lua_toboolean(L, 4)!=0); | |
6201 result = (int)(arg1)->CalculateMeleeDmgToEnemyWithWeapon(arg2,arg3,arg4); | |
6202 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
6203 return SWIG_arg; | |
6204 | |
6205 if(0) SWIG_fail; | |
6206 | |
6207 fail: | |
6208 lua_error(L); | |
6209 return SWIG_arg; | |
6210 } | |
6211 | |
6212 | |
6213 static int _wrap_Player_WearsItemAnyWhere(lua_State* L) { | |
6214 int SWIG_arg = 0; | |
6215 Player *arg1 = (Player *) 0 ; | |
6216 int arg2 ; | |
6217 bool result; | |
6218 | |
6219 SWIG_check_num_args("Player::WearsItemAnyWhere",2,2) | |
6220 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::WearsItemAnyWhere",1,"Player *"); | |
6221 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::WearsItemAnyWhere",2,"int"); | |
6222 | |
6223 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6224 SWIG_fail_ptr("Player_WearsItemAnyWhere",1,SWIGTYPE_p_Player); | |
6225 } | |
6226 | |
6227 arg2 = (int)lua_tonumber(L, 2); | |
6228 result = (bool)(arg1)->WearsItemAnyWhere(arg2); | |
6229 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
6230 return SWIG_arg; | |
6231 | |
6232 if(0) SWIG_fail; | |
6233 | |
6234 fail: | |
6235 lua_error(L); | |
6236 return SWIG_arg; | |
6237 } | |
6238 | |
6239 | |
6240 static int _wrap_Player_GetArmorRecoveryMultiplierFromSkillLevel(lua_State* L) { | |
6241 int SWIG_arg = 0; | |
6242 Player *arg1 = (Player *) 0 ; | |
6243 unsigned char arg2 ; | |
6244 float arg3 ; | |
6245 float arg4 ; | |
6246 float arg5 ; | |
6247 float arg6 ; | |
6248 float result; | |
6249 | |
6250 SWIG_check_num_args("Player::GetArmorRecoveryMultiplierFromSkillLevel",6,6) | |
6251 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetArmorRecoveryMultiplierFromSkillLevel",1,"Player *"); | |
6252 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetArmorRecoveryMultiplierFromSkillLevel",2,"unsigned char"); | |
6253 if(!lua_isnumber(L,3)) SWIG_fail_arg("Player::GetArmorRecoveryMultiplierFromSkillLevel",3,"float"); | |
6254 if(!lua_isnumber(L,4)) SWIG_fail_arg("Player::GetArmorRecoveryMultiplierFromSkillLevel",4,"float"); | |
6255 if(!lua_isnumber(L,5)) SWIG_fail_arg("Player::GetArmorRecoveryMultiplierFromSkillLevel",5,"float"); | |
6256 if(!lua_isnumber(L,6)) SWIG_fail_arg("Player::GetArmorRecoveryMultiplierFromSkillLevel",6,"float"); | |
6257 | |
6258 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6259 SWIG_fail_ptr("Player_GetArmorRecoveryMultiplierFromSkillLevel",1,SWIGTYPE_p_Player); | |
6260 } | |
6261 | |
6262 SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative") | |
6263 arg2 = (unsigned char)lua_tonumber(L, 2); | |
6264 arg3 = (float)lua_tonumber(L, 3); | |
6265 arg4 = (float)lua_tonumber(L, 4); | |
6266 arg5 = (float)lua_tonumber(L, 5); | |
6267 arg6 = (float)lua_tonumber(L, 6); | |
6268 result = (float)(arg1)->GetArmorRecoveryMultiplierFromSkillLevel(arg2,arg3,arg4,arg5,arg6); | |
6269 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
6270 return SWIG_arg; | |
6271 | |
6272 if(0) SWIG_fail; | |
6273 | |
6274 fail: | |
6275 lua_error(L); | |
6276 return SWIG_arg; | |
6277 } | |
6278 | |
6279 | |
6280 static int _wrap_Player_SetSkillByEvent(lua_State* L) { | |
6281 int SWIG_arg = 0; | |
6282 Player *arg1 = (Player *) 0 ; | |
6283 unsigned __int16 Player::*arg2 ; | |
6284 unsigned __int16 arg3 ; | |
6285 unsigned __int16 *argp3 ; | |
6286 | |
6287 SWIG_check_num_args("Player::SetSkillByEvent",3,3) | |
6288 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetSkillByEvent",1,"Player *"); | |
6289 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::SetSkillByEvent",2,"unsigned __int16 Player::*"); | |
6290 if(!lua_isuserdata(L,3)) SWIG_fail_arg("Player::SetSkillByEvent",3,"unsigned __int16"); | |
6291 | |
6292 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6293 SWIG_fail_ptr("Player_SetSkillByEvent",1,SWIGTYPE_p_Player); | |
6294 } | |
6295 | |
6296 | |
6297 if (!SWIG_IsOK(SWIG_ConvertMember(L,2,(void*)(&arg2),sizeof(unsigned __int16 Player::*),SWIGTYPE_m_Player__unsigned___int16))) | |
6298 SWIG_fail_ptr("Player_SetSkillByEvent",2,SWIGTYPE_m_Player__unsigned___int16); | |
6299 | |
6300 | |
6301 if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_unsigned___int16,0))){ | |
6302 SWIG_fail_ptr("Player_SetSkillByEvent",3,SWIGTYPE_p_unsigned___int16); | |
6303 } | |
6304 arg3 = *argp3; | |
6305 | |
6306 (arg1)->SetSkillByEvent(arg2,arg3); | |
6307 | |
6308 return SWIG_arg; | |
6309 | |
6310 if(0) SWIG_fail; | |
6311 | |
6312 fail: | |
6313 lua_error(L); | |
6314 return SWIG_arg; | |
6315 } | |
6316 | |
6317 | |
6318 static int _wrap_Player_AddSkillByEvent(lua_State* L) { | |
6319 int SWIG_arg = 0; | |
6320 Player *arg1 = (Player *) 0 ; | |
6321 unsigned __int16 Player::*arg2 ; | |
6322 unsigned __int16 arg3 ; | |
6323 unsigned __int16 *argp3 ; | |
6324 | |
6325 SWIG_check_num_args("Player::AddSkillByEvent",3,3) | |
6326 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::AddSkillByEvent",1,"Player *"); | |
6327 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::AddSkillByEvent",2,"unsigned __int16 Player::*"); | |
6328 if(!lua_isuserdata(L,3)) SWIG_fail_arg("Player::AddSkillByEvent",3,"unsigned __int16"); | |
6329 | |
6330 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6331 SWIG_fail_ptr("Player_AddSkillByEvent",1,SWIGTYPE_p_Player); | |
6332 } | |
6333 | |
6334 | |
6335 if (!SWIG_IsOK(SWIG_ConvertMember(L,2,(void*)(&arg2),sizeof(unsigned __int16 Player::*),SWIGTYPE_m_Player__unsigned___int16))) | |
6336 SWIG_fail_ptr("Player_AddSkillByEvent",2,SWIGTYPE_m_Player__unsigned___int16); | |
6337 | |
6338 | |
6339 if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_unsigned___int16,0))){ | |
6340 SWIG_fail_ptr("Player_AddSkillByEvent",3,SWIGTYPE_p_unsigned___int16); | |
6341 } | |
6342 arg3 = *argp3; | |
6343 | |
6344 (arg1)->AddSkillByEvent(arg2,arg3); | |
6345 | |
6346 return SWIG_arg; | |
6347 | |
6348 if(0) SWIG_fail; | |
6349 | |
6350 fail: | |
6351 lua_error(L); | |
6352 return SWIG_arg; | |
6353 } | |
6354 | |
6355 | |
6356 static int _wrap_Player_PlayAwardSound_Anim(lua_State* L) { | |
6357 int SWIG_arg = 0; | |
6358 Player *arg1 = (Player *) 0 ; | |
6359 | |
6360 SWIG_check_num_args("Player::PlayAwardSound_Anim",1,1) | |
6361 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::PlayAwardSound_Anim",1,"Player *"); | |
6362 | |
6363 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6364 SWIG_fail_ptr("Player_PlayAwardSound_Anim",1,SWIGTYPE_p_Player); | |
6365 } | |
6366 | |
6367 (arg1)->PlayAwardSound_Anim(); | |
6368 | |
6369 return SWIG_arg; | |
6370 | |
6371 if(0) SWIG_fail; | |
6372 | |
6373 fail: | |
6374 lua_error(L); | |
6375 return SWIG_arg; | |
6376 } | |
6377 | |
6378 | |
6379 static int _wrap_Player_PlayAwardSound_Anim_Face(lua_State* L) { | |
6380 int SWIG_arg = 0; | |
6381 Player *arg1 = (Player *) 0 ; | |
6382 PlayerSpeech arg2 ; | |
6383 | |
6384 SWIG_check_num_args("Player::PlayAwardSound_Anim_Face",2,2) | |
6385 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::PlayAwardSound_Anim_Face",1,"Player *"); | |
6386 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::PlayAwardSound_Anim_Face",2,"PlayerSpeech"); | |
6387 | |
6388 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6389 SWIG_fail_ptr("Player_PlayAwardSound_Anim_Face",1,SWIGTYPE_p_Player); | |
6390 } | |
6391 | |
6392 arg2 = (PlayerSpeech)(int)lua_tonumber(L, 2); | |
6393 (arg1)->PlayAwardSound_Anim_Face(arg2); | |
6394 | |
6395 return SWIG_arg; | |
6396 | |
6397 if(0) SWIG_fail; | |
6398 | |
6399 fail: | |
6400 lua_error(L); | |
6401 return SWIG_arg; | |
6402 } | |
6403 | |
6404 | |
6405 static int _wrap_Player_PlayAwardSound_Anim97(lua_State* L) { | |
6406 int SWIG_arg = 0; | |
6407 Player *arg1 = (Player *) 0 ; | |
6408 | |
6409 SWIG_check_num_args("Player::PlayAwardSound_Anim97",1,1) | |
6410 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::PlayAwardSound_Anim97",1,"Player *"); | |
6411 | |
6412 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6413 SWIG_fail_ptr("Player_PlayAwardSound_Anim97",1,SWIGTYPE_p_Player); | |
6414 } | |
6415 | |
6416 (arg1)->PlayAwardSound_Anim97(); | |
6417 | |
6418 return SWIG_arg; | |
6419 | |
6420 if(0) SWIG_fail; | |
6421 | |
6422 fail: | |
6423 lua_error(L); | |
6424 return SWIG_arg; | |
6425 } | |
6426 | |
6427 | |
6428 static int _wrap_Player_PlayAwardSound_Anim97_Face(lua_State* L) { | |
6429 int SWIG_arg = 0; | |
6430 Player *arg1 = (Player *) 0 ; | |
6431 PlayerSpeech arg2 ; | |
6432 | |
6433 SWIG_check_num_args("Player::PlayAwardSound_Anim97_Face",2,2) | |
6434 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::PlayAwardSound_Anim97_Face",1,"Player *"); | |
6435 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::PlayAwardSound_Anim97_Face",2,"PlayerSpeech"); | |
6436 | |
6437 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6438 SWIG_fail_ptr("Player_PlayAwardSound_Anim97_Face",1,SWIGTYPE_p_Player); | |
6439 } | |
6440 | |
6441 arg2 = (PlayerSpeech)(int)lua_tonumber(L, 2); | |
6442 (arg1)->PlayAwardSound_Anim97_Face(arg2); | |
6443 | |
6444 return SWIG_arg; | |
6445 | |
6446 if(0) SWIG_fail; | |
6447 | |
6448 fail: | |
6449 lua_error(L); | |
6450 return SWIG_arg; | |
6451 } | |
6452 | |
6453 | |
6454 static int _wrap_Player_PlayAwardSound_Anim98(lua_State* L) { | |
6455 int SWIG_arg = 0; | |
6456 Player *arg1 = (Player *) 0 ; | |
6457 | |
6458 SWIG_check_num_args("Player::PlayAwardSound_Anim98",1,1) | |
6459 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::PlayAwardSound_Anim98",1,"Player *"); | |
6460 | |
6461 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6462 SWIG_fail_ptr("Player_PlayAwardSound_Anim98",1,SWIGTYPE_p_Player); | |
6463 } | |
6464 | |
6465 (arg1)->PlayAwardSound_Anim98(); | |
6466 | |
6467 return SWIG_arg; | |
6468 | |
6469 if(0) SWIG_fail; | |
6470 | |
6471 fail: | |
6472 lua_error(L); | |
6473 return SWIG_arg; | |
6474 } | |
6475 | |
6476 | |
6477 static int _wrap_Player_PlayAwardSound_Anim98_Face(lua_State* L) { | |
6478 int SWIG_arg = 0; | |
6479 Player *arg1 = (Player *) 0 ; | |
6480 PlayerSpeech arg2 ; | |
6481 | |
6482 SWIG_check_num_args("Player::PlayAwardSound_Anim98_Face",2,2) | |
6483 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::PlayAwardSound_Anim98_Face",1,"Player *"); | |
6484 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::PlayAwardSound_Anim98_Face",2,"PlayerSpeech"); | |
6485 | |
6486 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6487 SWIG_fail_ptr("Player_PlayAwardSound_Anim98_Face",1,SWIGTYPE_p_Player); | |
6488 } | |
6489 | |
6490 arg2 = (PlayerSpeech)(int)lua_tonumber(L, 2); | |
6491 (arg1)->PlayAwardSound_Anim98_Face(arg2); | |
6492 | |
6493 return SWIG_arg; | |
6494 | |
6495 if(0) SWIG_fail; | |
6496 | |
6497 fail: | |
6498 lua_error(L); | |
6499 return SWIG_arg; | |
6500 } | |
6501 | |
6502 | |
6503 static int _wrap_Player_IsWeak(lua_State* L) { | |
6504 int SWIG_arg = 0; | |
6505 Player *arg1 = (Player *) 0 ; | |
6506 bool result; | |
6507 | |
6508 SWIG_check_num_args("Player::IsWeak",1,1) | |
6509 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::IsWeak",1,"Player *"); | |
6510 | |
6511 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6512 SWIG_fail_ptr("Player_IsWeak",1,SWIGTYPE_p_Player); | |
6513 } | |
6514 | |
6515 result = (bool)(arg1)->IsWeak(); | |
6516 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
6517 return SWIG_arg; | |
6518 | |
6519 if(0) SWIG_fail; | |
6520 | |
6521 fail: | |
6522 lua_error(L); | |
6523 return SWIG_arg; | |
6524 } | |
6525 | |
6526 | |
6527 static int _wrap_Player_IsDead(lua_State* L) { | |
6528 int SWIG_arg = 0; | |
6529 Player *arg1 = (Player *) 0 ; | |
6530 bool result; | |
6531 | |
6532 SWIG_check_num_args("Player::IsDead",1,1) | |
6533 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::IsDead",1,"Player *"); | |
6534 | |
6535 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6536 SWIG_fail_ptr("Player_IsDead",1,SWIGTYPE_p_Player); | |
6537 } | |
6538 | |
6539 result = (bool)(arg1)->IsDead(); | |
6540 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
6541 return SWIG_arg; | |
6542 | |
6543 if(0) SWIG_fail; | |
6544 | |
6545 fail: | |
6546 lua_error(L); | |
6547 return SWIG_arg; | |
6548 } | |
6549 | |
6550 | |
6551 static int _wrap_Player_IsEradicated(lua_State* L) { | |
6552 int SWIG_arg = 0; | |
6553 Player *arg1 = (Player *) 0 ; | |
6554 bool result; | |
6555 | |
6556 SWIG_check_num_args("Player::IsEradicated",1,1) | |
6557 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::IsEradicated",1,"Player *"); | |
6558 | |
6559 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6560 SWIG_fail_ptr("Player_IsEradicated",1,SWIGTYPE_p_Player); | |
6561 } | |
6562 | |
6563 result = (bool)(arg1)->IsEradicated(); | |
6564 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
6565 return SWIG_arg; | |
6566 | |
6567 if(0) SWIG_fail; | |
6568 | |
6569 fail: | |
6570 lua_error(L); | |
6571 return SWIG_arg; | |
6572 } | |
6573 | |
6574 | |
6575 static int _wrap_Player_IsZombie(lua_State* L) { | |
6576 int SWIG_arg = 0; | |
6577 Player *arg1 = (Player *) 0 ; | |
6578 bool result; | |
6579 | |
6580 SWIG_check_num_args("Player::IsZombie",1,1) | |
6581 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::IsZombie",1,"Player *"); | |
6582 | |
6583 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6584 SWIG_fail_ptr("Player_IsZombie",1,SWIGTYPE_p_Player); | |
6585 } | |
6586 | |
6587 result = (bool)(arg1)->IsZombie(); | |
6588 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
6589 return SWIG_arg; | |
6590 | |
6591 if(0) SWIG_fail; | |
6592 | |
6593 fail: | |
6594 lua_error(L); | |
6595 return SWIG_arg; | |
6596 } | |
6597 | |
6598 | |
6599 static int _wrap_Player_IsCursed(lua_State* L) { | |
6600 int SWIG_arg = 0; | |
6601 Player *arg1 = (Player *) 0 ; | |
6602 bool result; | |
6603 | |
6604 SWIG_check_num_args("Player::IsCursed",1,1) | |
6605 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::IsCursed",1,"Player *"); | |
6606 | |
6607 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6608 SWIG_fail_ptr("Player_IsCursed",1,SWIGTYPE_p_Player); | |
6609 } | |
6610 | |
6611 result = (bool)(arg1)->IsCursed(); | |
6612 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
6613 return SWIG_arg; | |
6614 | |
6615 if(0) SWIG_fail; | |
6616 | |
6617 fail: | |
6618 lua_error(L); | |
6619 return SWIG_arg; | |
6620 } | |
6621 | |
6622 | |
6623 static int _wrap_Player_IsPertified(lua_State* L) { | |
6624 int SWIG_arg = 0; | |
6625 Player *arg1 = (Player *) 0 ; | |
6626 bool result; | |
6627 | |
6628 SWIG_check_num_args("Player::IsPertified",1,1) | |
6629 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::IsPertified",1,"Player *"); | |
6630 | |
6631 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6632 SWIG_fail_ptr("Player_IsPertified",1,SWIGTYPE_p_Player); | |
6633 } | |
6634 | |
6635 result = (bool)(arg1)->IsPertified(); | |
6636 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
6637 return SWIG_arg; | |
6638 | |
6639 if(0) SWIG_fail; | |
6640 | |
6641 fail: | |
6642 lua_error(L); | |
6643 return SWIG_arg; | |
6644 } | |
6645 | |
6646 | |
6647 static int _wrap_Player_IsUnconcious(lua_State* L) { | |
6648 int SWIG_arg = 0; | |
6649 Player *arg1 = (Player *) 0 ; | |
6650 bool result; | |
6651 | |
6652 SWIG_check_num_args("Player::IsUnconcious",1,1) | |
6653 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::IsUnconcious",1,"Player *"); | |
6654 | |
6655 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6656 SWIG_fail_ptr("Player_IsUnconcious",1,SWIGTYPE_p_Player); | |
6657 } | |
6658 | |
6659 result = (bool)(arg1)->IsUnconcious(); | |
6660 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
6661 return SWIG_arg; | |
6662 | |
6663 if(0) SWIG_fail; | |
6664 | |
6665 fail: | |
6666 lua_error(L); | |
6667 return SWIG_arg; | |
6668 } | |
6669 | |
6670 | |
6671 static int _wrap_Player_IsAsleep(lua_State* L) { | |
6672 int SWIG_arg = 0; | |
6673 Player *arg1 = (Player *) 0 ; | |
6674 bool result; | |
6675 | |
6676 SWIG_check_num_args("Player::IsAsleep",1,1) | |
6677 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::IsAsleep",1,"Player *"); | |
6678 | |
6679 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6680 SWIG_fail_ptr("Player_IsAsleep",1,SWIGTYPE_p_Player); | |
6681 } | |
6682 | |
6683 result = (bool)(arg1)->IsAsleep(); | |
6684 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
6685 return SWIG_arg; | |
6686 | |
6687 if(0) SWIG_fail; | |
6688 | |
6689 fail: | |
6690 lua_error(L); | |
6691 return SWIG_arg; | |
6692 } | |
6693 | |
6694 | |
6695 static int _wrap_Player_IsParalyzed(lua_State* L) { | |
6696 int SWIG_arg = 0; | |
6697 Player *arg1 = (Player *) 0 ; | |
6698 bool result; | |
6699 | |
6700 SWIG_check_num_args("Player::IsParalyzed",1,1) | |
6701 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::IsParalyzed",1,"Player *"); | |
6702 | |
6703 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6704 SWIG_fail_ptr("Player_IsParalyzed",1,SWIGTYPE_p_Player); | |
6705 } | |
6706 | |
6707 result = (bool)(arg1)->IsParalyzed(); | |
6708 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
6709 return SWIG_arg; | |
6710 | |
6711 if(0) SWIG_fail; | |
6712 | |
6713 fail: | |
6714 lua_error(L); | |
6715 return SWIG_arg; | |
6716 } | |
6717 | |
6718 | |
6719 static int _wrap_Player_IsDrunk(lua_State* L) { | |
6720 int SWIG_arg = 0; | |
6721 Player *arg1 = (Player *) 0 ; | |
6722 bool result; | |
6723 | |
6724 SWIG_check_num_args("Player::IsDrunk",1,1) | |
6725 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::IsDrunk",1,"Player *"); | |
6726 | |
6727 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6728 SWIG_fail_ptr("Player_IsDrunk",1,SWIGTYPE_p_Player); | |
6729 } | |
6730 | |
6731 result = (bool)(arg1)->IsDrunk(); | |
6732 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
6733 return SWIG_arg; | |
6734 | |
6735 if(0) SWIG_fail; | |
6736 | |
6737 fail: | |
6738 lua_error(L); | |
6739 return SWIG_arg; | |
6740 } | |
6741 | |
6742 | |
6743 static int _wrap_Player_SetCursed(lua_State* L) { | |
6744 int SWIG_arg = 0; | |
6745 Player *arg1 = (Player *) 0 ; | |
6746 bool arg2 ; | |
6747 | |
6748 SWIG_check_num_args("Player::SetCursed",2,2) | |
6749 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetCursed",1,"Player *"); | |
6750 if(!lua_isboolean(L,2)) SWIG_fail_arg("Player::SetCursed",2,"bool"); | |
6751 | |
6752 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6753 SWIG_fail_ptr("Player_SetCursed",1,SWIGTYPE_p_Player); | |
6754 } | |
6755 | |
6756 arg2 = (lua_toboolean(L, 2)!=0); | |
6757 (arg1)->SetCursed(arg2); | |
6758 | |
6759 return SWIG_arg; | |
6760 | |
6761 if(0) SWIG_fail; | |
6762 | |
6763 fail: | |
6764 lua_error(L); | |
6765 return SWIG_arg; | |
6766 } | |
6767 | |
6768 | |
6769 static int _wrap_Player_SetWeak(lua_State* L) { | |
6770 int SWIG_arg = 0; | |
6771 Player *arg1 = (Player *) 0 ; | |
6772 bool arg2 ; | |
6773 | |
6774 SWIG_check_num_args("Player::SetWeak",2,2) | |
6775 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetWeak",1,"Player *"); | |
6776 if(!lua_isboolean(L,2)) SWIG_fail_arg("Player::SetWeak",2,"bool"); | |
6777 | |
6778 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6779 SWIG_fail_ptr("Player_SetWeak",1,SWIGTYPE_p_Player); | |
6780 } | |
6781 | |
6782 arg2 = (lua_toboolean(L, 2)!=0); | |
6783 (arg1)->SetWeak(arg2); | |
6784 | |
6785 return SWIG_arg; | |
6786 | |
6787 if(0) SWIG_fail; | |
6788 | |
6789 fail: | |
6790 lua_error(L); | |
6791 return SWIG_arg; | |
6792 } | |
6793 | |
6794 | |
6795 static int _wrap_Player_SetAsleep(lua_State* L) { | |
6796 int SWIG_arg = 0; | |
6797 Player *arg1 = (Player *) 0 ; | |
6798 bool arg2 ; | |
6799 | |
6800 SWIG_check_num_args("Player::SetAsleep",2,2) | |
6801 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetAsleep",1,"Player *"); | |
6802 if(!lua_isboolean(L,2)) SWIG_fail_arg("Player::SetAsleep",2,"bool"); | |
6803 | |
6804 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6805 SWIG_fail_ptr("Player_SetAsleep",1,SWIGTYPE_p_Player); | |
6806 } | |
6807 | |
6808 arg2 = (lua_toboolean(L, 2)!=0); | |
6809 (arg1)->SetAsleep(arg2); | |
6810 | |
6811 return SWIG_arg; | |
6812 | |
6813 if(0) SWIG_fail; | |
6814 | |
6815 fail: | |
6816 lua_error(L); | |
6817 return SWIG_arg; | |
6818 } | |
6819 | |
6820 | |
6821 static int _wrap_Player_SetAfraid(lua_State* L) { | |
6822 int SWIG_arg = 0; | |
6823 Player *arg1 = (Player *) 0 ; | |
6824 bool arg2 ; | |
6825 | |
6826 SWIG_check_num_args("Player::SetAfraid",2,2) | |
6827 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetAfraid",1,"Player *"); | |
6828 if(!lua_isboolean(L,2)) SWIG_fail_arg("Player::SetAfraid",2,"bool"); | |
6829 | |
6830 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6831 SWIG_fail_ptr("Player_SetAfraid",1,SWIGTYPE_p_Player); | |
6832 } | |
6833 | |
6834 arg2 = (lua_toboolean(L, 2)!=0); | |
6835 (arg1)->SetAfraid(arg2); | |
6836 | |
6837 return SWIG_arg; | |
6838 | |
6839 if(0) SWIG_fail; | |
6840 | |
6841 fail: | |
6842 lua_error(L); | |
6843 return SWIG_arg; | |
6844 } | |
6845 | |
6846 | |
6847 static int _wrap_Player_SetDrunk(lua_State* L) { | |
6848 int SWIG_arg = 0; | |
6849 Player *arg1 = (Player *) 0 ; | |
6850 bool arg2 ; | |
6851 | |
6852 SWIG_check_num_args("Player::SetDrunk",2,2) | |
6853 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetDrunk",1,"Player *"); | |
6854 if(!lua_isboolean(L,2)) SWIG_fail_arg("Player::SetDrunk",2,"bool"); | |
6855 | |
6856 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6857 SWIG_fail_ptr("Player_SetDrunk",1,SWIGTYPE_p_Player); | |
6858 } | |
6859 | |
6860 arg2 = (lua_toboolean(L, 2)!=0); | |
6861 (arg1)->SetDrunk(arg2); | |
6862 | |
6863 return SWIG_arg; | |
6864 | |
6865 if(0) SWIG_fail; | |
6866 | |
6867 fail: | |
6868 lua_error(L); | |
6869 return SWIG_arg; | |
6870 } | |
6871 | |
6872 | |
6873 static int _wrap_Player_SetInsane(lua_State* L) { | |
6874 int SWIG_arg = 0; | |
6875 Player *arg1 = (Player *) 0 ; | |
6876 bool arg2 ; | |
6877 | |
6878 SWIG_check_num_args("Player::SetInsane",2,2) | |
6879 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetInsane",1,"Player *"); | |
6880 if(!lua_isboolean(L,2)) SWIG_fail_arg("Player::SetInsane",2,"bool"); | |
6881 | |
6882 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6883 SWIG_fail_ptr("Player_SetInsane",1,SWIGTYPE_p_Player); | |
6884 } | |
6885 | |
6886 arg2 = (lua_toboolean(L, 2)!=0); | |
6887 (arg1)->SetInsane(arg2); | |
6888 | |
6889 return SWIG_arg; | |
6890 | |
6891 if(0) SWIG_fail; | |
6892 | |
6893 fail: | |
6894 lua_error(L); | |
6895 return SWIG_arg; | |
6896 } | |
6897 | |
6898 | |
6899 static int _wrap_Player_SetPoison1(lua_State* L) { | |
6900 int SWIG_arg = 0; | |
6901 Player *arg1 = (Player *) 0 ; | |
6902 bool arg2 ; | |
6903 | |
6904 SWIG_check_num_args("Player::SetPoison1",2,2) | |
6905 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetPoison1",1,"Player *"); | |
6906 if(!lua_isboolean(L,2)) SWIG_fail_arg("Player::SetPoison1",2,"bool"); | |
6907 | |
6908 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6909 SWIG_fail_ptr("Player_SetPoison1",1,SWIGTYPE_p_Player); | |
6910 } | |
6911 | |
6912 arg2 = (lua_toboolean(L, 2)!=0); | |
6913 (arg1)->SetPoison1(arg2); | |
6914 | |
6915 return SWIG_arg; | |
6916 | |
6917 if(0) SWIG_fail; | |
6918 | |
6919 fail: | |
6920 lua_error(L); | |
6921 return SWIG_arg; | |
6922 } | |
6923 | |
6924 | |
6925 static int _wrap_Player_SetDisease1(lua_State* L) { | |
6926 int SWIG_arg = 0; | |
6927 Player *arg1 = (Player *) 0 ; | |
6928 bool arg2 ; | |
6929 | |
6930 SWIG_check_num_args("Player::SetDisease1",2,2) | |
6931 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetDisease1",1,"Player *"); | |
6932 if(!lua_isboolean(L,2)) SWIG_fail_arg("Player::SetDisease1",2,"bool"); | |
6933 | |
6934 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6935 SWIG_fail_ptr("Player_SetDisease1",1,SWIGTYPE_p_Player); | |
6936 } | |
6937 | |
6938 arg2 = (lua_toboolean(L, 2)!=0); | |
6939 (arg1)->SetDisease1(arg2); | |
6940 | |
6941 return SWIG_arg; | |
6942 | |
6943 if(0) SWIG_fail; | |
6944 | |
6945 fail: | |
6946 lua_error(L); | |
6947 return SWIG_arg; | |
6948 } | |
6949 | |
6950 | |
6951 static int _wrap_Player_SetPoison2(lua_State* L) { | |
6952 int SWIG_arg = 0; | |
6953 Player *arg1 = (Player *) 0 ; | |
6954 bool arg2 ; | |
6955 | |
6956 SWIG_check_num_args("Player::SetPoison2",2,2) | |
6957 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetPoison2",1,"Player *"); | |
6958 if(!lua_isboolean(L,2)) SWIG_fail_arg("Player::SetPoison2",2,"bool"); | |
6959 | |
6960 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6961 SWIG_fail_ptr("Player_SetPoison2",1,SWIGTYPE_p_Player); | |
6962 } | |
6963 | |
6964 arg2 = (lua_toboolean(L, 2)!=0); | |
6965 (arg1)->SetPoison2(arg2); | |
6966 | |
6967 return SWIG_arg; | |
6968 | |
6969 if(0) SWIG_fail; | |
6970 | |
6971 fail: | |
6972 lua_error(L); | |
6973 return SWIG_arg; | |
6974 } | |
6975 | |
6976 | |
6977 static int _wrap_Player_SetDisease2(lua_State* L) { | |
6978 int SWIG_arg = 0; | |
6979 Player *arg1 = (Player *) 0 ; | |
6980 bool arg2 ; | |
6981 | |
6982 SWIG_check_num_args("Player::SetDisease2",2,2) | |
6983 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetDisease2",1,"Player *"); | |
6984 if(!lua_isboolean(L,2)) SWIG_fail_arg("Player::SetDisease2",2,"bool"); | |
6985 | |
6986 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
6987 SWIG_fail_ptr("Player_SetDisease2",1,SWIGTYPE_p_Player); | |
6988 } | |
6989 | |
6990 arg2 = (lua_toboolean(L, 2)!=0); | |
6991 (arg1)->SetDisease2(arg2); | |
6992 | |
6993 return SWIG_arg; | |
6994 | |
6995 if(0) SWIG_fail; | |
6996 | |
6997 fail: | |
6998 lua_error(L); | |
6999 return SWIG_arg; | |
7000 } | |
7001 | |
7002 | |
7003 static int _wrap_Player_SetPoison3(lua_State* L) { | |
7004 int SWIG_arg = 0; | |
7005 Player *arg1 = (Player *) 0 ; | |
7006 bool arg2 ; | |
7007 | |
7008 SWIG_check_num_args("Player::SetPoison3",2,2) | |
7009 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetPoison3",1,"Player *"); | |
7010 if(!lua_isboolean(L,2)) SWIG_fail_arg("Player::SetPoison3",2,"bool"); | |
7011 | |
7012 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7013 SWIG_fail_ptr("Player_SetPoison3",1,SWIGTYPE_p_Player); | |
7014 } | |
7015 | |
7016 arg2 = (lua_toboolean(L, 2)!=0); | |
7017 (arg1)->SetPoison3(arg2); | |
7018 | |
7019 return SWIG_arg; | |
7020 | |
7021 if(0) SWIG_fail; | |
7022 | |
7023 fail: | |
7024 lua_error(L); | |
7025 return SWIG_arg; | |
7026 } | |
7027 | |
7028 | |
7029 static int _wrap_Player_SetDisease3(lua_State* L) { | |
7030 int SWIG_arg = 0; | |
7031 Player *arg1 = (Player *) 0 ; | |
7032 bool arg2 ; | |
7033 | |
7034 SWIG_check_num_args("Player::SetDisease3",2,2) | |
7035 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetDisease3",1,"Player *"); | |
7036 if(!lua_isboolean(L,2)) SWIG_fail_arg("Player::SetDisease3",2,"bool"); | |
7037 | |
7038 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7039 SWIG_fail_ptr("Player_SetDisease3",1,SWIGTYPE_p_Player); | |
7040 } | |
7041 | |
7042 arg2 = (lua_toboolean(L, 2)!=0); | |
7043 (arg1)->SetDisease3(arg2); | |
7044 | |
7045 return SWIG_arg; | |
7046 | |
7047 if(0) SWIG_fail; | |
7048 | |
7049 fail: | |
7050 lua_error(L); | |
7051 return SWIG_arg; | |
7052 } | |
7053 | |
7054 | |
7055 static int _wrap_Player_SetParalyzed(lua_State* L) { | |
7056 int SWIG_arg = 0; | |
7057 Player *arg1 = (Player *) 0 ; | |
7058 bool arg2 ; | |
7059 | |
7060 SWIG_check_num_args("Player::SetParalyzed",2,2) | |
7061 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetParalyzed",1,"Player *"); | |
7062 if(!lua_isboolean(L,2)) SWIG_fail_arg("Player::SetParalyzed",2,"bool"); | |
7063 | |
7064 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7065 SWIG_fail_ptr("Player_SetParalyzed",1,SWIGTYPE_p_Player); | |
7066 } | |
7067 | |
7068 arg2 = (lua_toboolean(L, 2)!=0); | |
7069 (arg1)->SetParalyzed(arg2); | |
7070 | |
7071 return SWIG_arg; | |
7072 | |
7073 if(0) SWIG_fail; | |
7074 | |
7075 fail: | |
7076 lua_error(L); | |
7077 return SWIG_arg; | |
7078 } | |
7079 | |
7080 | |
7081 static int _wrap_Player_SetUnconcious(lua_State* L) { | |
7082 int SWIG_arg = 0; | |
7083 Player *arg1 = (Player *) 0 ; | |
7084 bool arg2 ; | |
7085 | |
7086 SWIG_check_num_args("Player::SetUnconcious",2,2) | |
7087 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetUnconcious",1,"Player *"); | |
7088 if(!lua_isboolean(L,2)) SWIG_fail_arg("Player::SetUnconcious",2,"bool"); | |
7089 | |
7090 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7091 SWIG_fail_ptr("Player_SetUnconcious",1,SWIGTYPE_p_Player); | |
7092 } | |
7093 | |
7094 arg2 = (lua_toboolean(L, 2)!=0); | |
7095 (arg1)->SetUnconcious(arg2); | |
7096 | |
7097 return SWIG_arg; | |
7098 | |
7099 if(0) SWIG_fail; | |
7100 | |
7101 fail: | |
7102 lua_error(L); | |
7103 return SWIG_arg; | |
7104 } | |
7105 | |
7106 | |
7107 static int _wrap_Player_SetDead(lua_State* L) { | |
7108 int SWIG_arg = 0; | |
7109 Player *arg1 = (Player *) 0 ; | |
7110 bool arg2 ; | |
7111 | |
7112 SWIG_check_num_args("Player::SetDead",2,2) | |
7113 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetDead",1,"Player *"); | |
7114 if(!lua_isboolean(L,2)) SWIG_fail_arg("Player::SetDead",2,"bool"); | |
7115 | |
7116 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7117 SWIG_fail_ptr("Player_SetDead",1,SWIGTYPE_p_Player); | |
7118 } | |
7119 | |
7120 arg2 = (lua_toboolean(L, 2)!=0); | |
7121 (arg1)->SetDead(arg2); | |
7122 | |
7123 return SWIG_arg; | |
7124 | |
7125 if(0) SWIG_fail; | |
7126 | |
7127 fail: | |
7128 lua_error(L); | |
7129 return SWIG_arg; | |
7130 } | |
7131 | |
7132 | |
7133 static int _wrap_Player_SetPertified(lua_State* L) { | |
7134 int SWIG_arg = 0; | |
7135 Player *arg1 = (Player *) 0 ; | |
7136 bool arg2 ; | |
7137 | |
7138 SWIG_check_num_args("Player::SetPertified",2,2) | |
7139 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetPertified",1,"Player *"); | |
7140 if(!lua_isboolean(L,2)) SWIG_fail_arg("Player::SetPertified",2,"bool"); | |
7141 | |
7142 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7143 SWIG_fail_ptr("Player_SetPertified",1,SWIGTYPE_p_Player); | |
7144 } | |
7145 | |
7146 arg2 = (lua_toboolean(L, 2)!=0); | |
7147 (arg1)->SetPertified(arg2); | |
7148 | |
7149 return SWIG_arg; | |
7150 | |
7151 if(0) SWIG_fail; | |
7152 | |
7153 fail: | |
7154 lua_error(L); | |
7155 return SWIG_arg; | |
7156 } | |
7157 | |
7158 | |
7159 static int _wrap_Player_SetEradicated(lua_State* L) { | |
7160 int SWIG_arg = 0; | |
7161 Player *arg1 = (Player *) 0 ; | |
7162 bool arg2 ; | |
7163 | |
7164 SWIG_check_num_args("Player::SetEradicated",2,2) | |
7165 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetEradicated",1,"Player *"); | |
7166 if(!lua_isboolean(L,2)) SWIG_fail_arg("Player::SetEradicated",2,"bool"); | |
7167 | |
7168 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7169 SWIG_fail_ptr("Player_SetEradicated",1,SWIGTYPE_p_Player); | |
7170 } | |
7171 | |
7172 arg2 = (lua_toboolean(L, 2)!=0); | |
7173 (arg1)->SetEradicated(arg2); | |
7174 | |
7175 return SWIG_arg; | |
7176 | |
7177 if(0) SWIG_fail; | |
7178 | |
7179 fail: | |
7180 lua_error(L); | |
7181 return SWIG_arg; | |
7182 } | |
7183 | |
7184 | |
7185 static int _wrap_Player_SetZombie(lua_State* L) { | |
7186 int SWIG_arg = 0; | |
7187 Player *arg1 = (Player *) 0 ; | |
7188 bool arg2 ; | |
7189 | |
7190 SWIG_check_num_args("Player::SetZombie",2,2) | |
7191 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetZombie",1,"Player *"); | |
7192 if(!lua_isboolean(L,2)) SWIG_fail_arg("Player::SetZombie",2,"bool"); | |
7193 | |
7194 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7195 SWIG_fail_ptr("Player_SetZombie",1,SWIGTYPE_p_Player); | |
7196 } | |
7197 | |
7198 arg2 = (lua_toboolean(L, 2)!=0); | |
7199 (arg1)->SetZombie(arg2); | |
7200 | |
7201 return SWIG_arg; | |
7202 | |
7203 if(0) SWIG_fail; | |
7204 | |
7205 fail: | |
7206 lua_error(L); | |
7207 return SWIG_arg; | |
7208 } | |
7209 | |
7210 | |
7211 static int _wrap_Player_SetCondWeakWithBlockCheck(lua_State* L) { | |
7212 int SWIG_arg = 0; | |
7213 Player *arg1 = (Player *) 0 ; | |
7214 int arg2 ; | |
7215 | |
7216 SWIG_check_num_args("Player::SetCondWeakWithBlockCheck",2,2) | |
7217 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetCondWeakWithBlockCheck",1,"Player *"); | |
7218 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::SetCondWeakWithBlockCheck",2,"int"); | |
7219 | |
7220 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7221 SWIG_fail_ptr("Player_SetCondWeakWithBlockCheck",1,SWIGTYPE_p_Player); | |
7222 } | |
7223 | |
7224 arg2 = (int)lua_tonumber(L, 2); | |
7225 (arg1)->SetCondWeakWithBlockCheck(arg2); | |
7226 | |
7227 return SWIG_arg; | |
7228 | |
7229 if(0) SWIG_fail; | |
7230 | |
7231 fail: | |
7232 lua_error(L); | |
7233 return SWIG_arg; | |
7234 } | |
7235 | |
7236 | |
7237 static int _wrap_Player_SetCondInsaneWithBlockCheck(lua_State* L) { | |
7238 int SWIG_arg = 0; | |
7239 Player *arg1 = (Player *) 0 ; | |
7240 int arg2 ; | |
7241 | |
7242 SWIG_check_num_args("Player::SetCondInsaneWithBlockCheck",2,2) | |
7243 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetCondInsaneWithBlockCheck",1,"Player *"); | |
7244 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::SetCondInsaneWithBlockCheck",2,"int"); | |
7245 | |
7246 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7247 SWIG_fail_ptr("Player_SetCondInsaneWithBlockCheck",1,SWIGTYPE_p_Player); | |
7248 } | |
7249 | |
7250 arg2 = (int)lua_tonumber(L, 2); | |
7251 (arg1)->SetCondInsaneWithBlockCheck(arg2); | |
7252 | |
7253 return SWIG_arg; | |
7254 | |
7255 if(0) SWIG_fail; | |
7256 | |
7257 fail: | |
7258 lua_error(L); | |
7259 return SWIG_arg; | |
7260 } | |
7261 | |
7262 | |
7263 static int _wrap_Player_SetCondDeadWithBlockCheck(lua_State* L) { | |
7264 int SWIG_arg = 0; | |
7265 Player *arg1 = (Player *) 0 ; | |
7266 int arg2 ; | |
7267 | |
7268 SWIG_check_num_args("Player::SetCondDeadWithBlockCheck",2,2) | |
7269 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetCondDeadWithBlockCheck",1,"Player *"); | |
7270 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::SetCondDeadWithBlockCheck",2,"int"); | |
7271 | |
7272 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7273 SWIG_fail_ptr("Player_SetCondDeadWithBlockCheck",1,SWIGTYPE_p_Player); | |
7274 } | |
7275 | |
7276 arg2 = (int)lua_tonumber(L, 2); | |
7277 (arg1)->SetCondDeadWithBlockCheck(arg2); | |
7278 | |
7279 return SWIG_arg; | |
7280 | |
7281 if(0) SWIG_fail; | |
7282 | |
7283 fail: | |
7284 lua_error(L); | |
7285 return SWIG_arg; | |
7286 } | |
7287 | |
7288 | |
7289 static int _wrap_Player_SetCondUnconsciousWithBlockCheck(lua_State* L) { | |
7290 int SWIG_arg = 0; | |
7291 Player *arg1 = (Player *) 0 ; | |
7292 int arg2 ; | |
7293 | |
7294 SWIG_check_num_args("Player::SetCondUnconsciousWithBlockCheck",2,2) | |
7295 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::SetCondUnconsciousWithBlockCheck",1,"Player *"); | |
7296 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::SetCondUnconsciousWithBlockCheck",2,"int"); | |
7297 | |
7298 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7299 SWIG_fail_ptr("Player_SetCondUnconsciousWithBlockCheck",1,SWIGTYPE_p_Player); | |
7300 } | |
7301 | |
7302 arg2 = (int)lua_tonumber(L, 2); | |
7303 (arg1)->SetCondUnconsciousWithBlockCheck(arg2); | |
7304 | |
7305 return SWIG_arg; | |
7306 | |
7307 if(0) SWIG_fail; | |
7308 | |
7309 fail: | |
7310 lua_error(L); | |
7311 return SWIG_arg; | |
7312 } | |
7313 | |
7314 | |
7315 static int _wrap_Player_IsRaceHuman(lua_State* L) { | |
7316 int SWIG_arg = 0; | |
7317 Player *arg1 = (Player *) 0 ; | |
7318 bool result; | |
7319 | |
7320 SWIG_check_num_args("Player::IsRaceHuman",1,1) | |
7321 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::IsRaceHuman",1,"Player *"); | |
7322 | |
7323 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7324 SWIG_fail_ptr("Player_IsRaceHuman",1,SWIGTYPE_p_Player); | |
7325 } | |
7326 | |
7327 result = (bool)(arg1)->IsRaceHuman(); | |
7328 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
7329 return SWIG_arg; | |
7330 | |
7331 if(0) SWIG_fail; | |
7332 | |
7333 fail: | |
7334 lua_error(L); | |
7335 return SWIG_arg; | |
7336 } | |
7337 | |
7338 | |
7339 static int _wrap_Player_IsRaceDwarf(lua_State* L) { | |
7340 int SWIG_arg = 0; | |
7341 Player *arg1 = (Player *) 0 ; | |
7342 bool result; | |
7343 | |
7344 SWIG_check_num_args("Player::IsRaceDwarf",1,1) | |
7345 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::IsRaceDwarf",1,"Player *"); | |
7346 | |
7347 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7348 SWIG_fail_ptr("Player_IsRaceDwarf",1,SWIGTYPE_p_Player); | |
7349 } | |
7350 | |
7351 result = (bool)(arg1)->IsRaceDwarf(); | |
7352 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
7353 return SWIG_arg; | |
7354 | |
7355 if(0) SWIG_fail; | |
7356 | |
7357 fail: | |
7358 lua_error(L); | |
7359 return SWIG_arg; | |
7360 } | |
7361 | |
7362 | |
7363 static int _wrap_Player_IsRaceElf(lua_State* L) { | |
7364 int SWIG_arg = 0; | |
7365 Player *arg1 = (Player *) 0 ; | |
7366 bool result; | |
7367 | |
7368 SWIG_check_num_args("Player::IsRaceElf",1,1) | |
7369 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::IsRaceElf",1,"Player *"); | |
7370 | |
7371 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7372 SWIG_fail_ptr("Player_IsRaceElf",1,SWIGTYPE_p_Player); | |
7373 } | |
7374 | |
7375 result = (bool)(arg1)->IsRaceElf(); | |
7376 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
7377 return SWIG_arg; | |
7378 | |
7379 if(0) SWIG_fail; | |
7380 | |
7381 fail: | |
7382 lua_error(L); | |
7383 return SWIG_arg; | |
7384 } | |
7385 | |
7386 | |
7387 static int _wrap_Player_IsRaceGoblin(lua_State* L) { | |
7388 int SWIG_arg = 0; | |
7389 Player *arg1 = (Player *) 0 ; | |
7390 bool result; | |
7391 | |
7392 SWIG_check_num_args("Player::IsRaceGoblin",1,1) | |
7393 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::IsRaceGoblin",1,"Player *"); | |
7394 | |
7395 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7396 SWIG_fail_ptr("Player_IsRaceGoblin",1,SWIGTYPE_p_Player); | |
7397 } | |
7398 | |
7399 result = (bool)(arg1)->IsRaceGoblin(); | |
7400 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
7401 return SWIG_arg; | |
7402 | |
7403 if(0) SWIG_fail; | |
7404 | |
7405 fail: | |
7406 lua_error(L); | |
7407 return SWIG_arg; | |
7408 } | |
7409 | |
7410 | |
7411 static int _wrap_Player_IsMale(lua_State* L) { | |
7412 int SWIG_arg = 0; | |
7413 Player *arg1 = (Player *) 0 ; | |
7414 bool result; | |
7415 | |
7416 SWIG_check_num_args("Player::IsMale",1,1) | |
7417 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::IsMale",1,"Player *"); | |
7418 | |
7419 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7420 SWIG_fail_ptr("Player_IsMale",1,SWIGTYPE_p_Player); | |
7421 } | |
7422 | |
7423 result = (bool)(arg1)->IsMale(); | |
7424 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
7425 return SWIG_arg; | |
7426 | |
7427 if(0) SWIG_fail; | |
7428 | |
7429 fail: | |
7430 lua_error(L); | |
7431 return SWIG_arg; | |
7432 } | |
7433 | |
7434 | |
7435 static int _wrap_Player_IsFemale(lua_State* L) { | |
7436 int SWIG_arg = 0; | |
7437 Player *arg1 = (Player *) 0 ; | |
7438 bool result; | |
7439 | |
7440 SWIG_check_num_args("Player::IsFemale",1,1) | |
7441 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::IsFemale",1,"Player *"); | |
7442 | |
7443 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7444 SWIG_fail_ptr("Player_IsFemale",1,SWIGTYPE_p_Player); | |
7445 } | |
7446 | |
7447 result = (bool)(arg1)->IsFemale(); | |
7448 lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; | |
7449 return SWIG_arg; | |
7450 | |
7451 if(0) SWIG_fail; | |
7452 | |
7453 fail: | |
7454 lua_error(L); | |
7455 return SWIG_arg; | |
7456 } | |
7457 | |
7458 | |
7459 static int _wrap_Player_GetMainHandItem(lua_State* L) { | |
7460 int SWIG_arg = 0; | |
7461 Player *arg1 = (Player *) 0 ; | |
7462 ItemGen *result = 0 ; | |
7463 | |
7464 SWIG_check_num_args("Player::GetMainHandItem",1,1) | |
7465 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetMainHandItem",1,"Player *"); | |
7466 | |
7467 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7468 SWIG_fail_ptr("Player_GetMainHandItem",1,SWIGTYPE_p_Player); | |
7469 } | |
7470 | |
7471 result = (ItemGen *)(arg1)->GetMainHandItem(); | |
7472 SWIG_NewPointerObj(L,result,SWIGTYPE_p_ItemGen,0); SWIG_arg++; | |
7473 return SWIG_arg; | |
7474 | |
7475 if(0) SWIG_fail; | |
7476 | |
7477 fail: | |
7478 lua_error(L); | |
7479 return SWIG_arg; | |
7480 } | |
7481 | |
7482 | |
7483 static int _wrap_Player_GetOffHandItem(lua_State* L) { | |
7484 int SWIG_arg = 0; | |
7485 Player *arg1 = (Player *) 0 ; | |
7486 ItemGen *result = 0 ; | |
7487 | |
7488 SWIG_check_num_args("Player::GetOffHandItem",1,1) | |
7489 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetOffHandItem",1,"Player *"); | |
7490 | |
7491 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7492 SWIG_fail_ptr("Player_GetOffHandItem",1,SWIGTYPE_p_Player); | |
7493 } | |
7494 | |
7495 result = (ItemGen *)(arg1)->GetOffHandItem(); | |
7496 SWIG_NewPointerObj(L,result,SWIGTYPE_p_ItemGen,0); SWIG_arg++; | |
7497 return SWIG_arg; | |
7498 | |
7499 if(0) SWIG_fail; | |
7500 | |
7501 fail: | |
7502 lua_error(L); | |
7503 return SWIG_arg; | |
7504 } | |
7505 | |
7506 | |
7507 static int _wrap_Player_GetBowItem(lua_State* L) { | |
7508 int SWIG_arg = 0; | |
7509 Player *arg1 = (Player *) 0 ; | |
7510 ItemGen *result = 0 ; | |
7511 | |
7512 SWIG_check_num_args("Player::GetBowItem",1,1) | |
7513 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetBowItem",1,"Player *"); | |
7514 | |
7515 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7516 SWIG_fail_ptr("Player_GetBowItem",1,SWIGTYPE_p_Player); | |
7517 } | |
7518 | |
7519 result = (ItemGen *)(arg1)->GetBowItem(); | |
7520 SWIG_NewPointerObj(L,result,SWIGTYPE_p_ItemGen,0); SWIG_arg++; | |
7521 return SWIG_arg; | |
7522 | |
7523 if(0) SWIG_fail; | |
7524 | |
7525 fail: | |
7526 lua_error(L); | |
7527 return SWIG_arg; | |
7528 } | |
7529 | |
7530 | |
7531 static int _wrap_Player_GetArmorItem(lua_State* L) { | |
7532 int SWIG_arg = 0; | |
7533 Player *arg1 = (Player *) 0 ; | |
7534 ItemGen *result = 0 ; | |
7535 | |
7536 SWIG_check_num_args("Player::GetArmorItem",1,1) | |
7537 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetArmorItem",1,"Player *"); | |
7538 | |
7539 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7540 SWIG_fail_ptr("Player_GetArmorItem",1,SWIGTYPE_p_Player); | |
7541 } | |
7542 | |
7543 result = (ItemGen *)(arg1)->GetArmorItem(); | |
7544 SWIG_NewPointerObj(L,result,SWIGTYPE_p_ItemGen,0); SWIG_arg++; | |
7545 return SWIG_arg; | |
7546 | |
7547 if(0) SWIG_fail; | |
7548 | |
7549 fail: | |
7550 lua_error(L); | |
7551 return SWIG_arg; | |
7552 } | |
7553 | |
7554 | |
7555 static int _wrap_Player_GetHelmItem(lua_State* L) { | |
7556 int SWIG_arg = 0; | |
7557 Player *arg1 = (Player *) 0 ; | |
7558 ItemGen *result = 0 ; | |
7559 | |
7560 SWIG_check_num_args("Player::GetHelmItem",1,1) | |
7561 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetHelmItem",1,"Player *"); | |
7562 | |
7563 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7564 SWIG_fail_ptr("Player_GetHelmItem",1,SWIGTYPE_p_Player); | |
7565 } | |
7566 | |
7567 result = (ItemGen *)(arg1)->GetHelmItem(); | |
7568 SWIG_NewPointerObj(L,result,SWIGTYPE_p_ItemGen,0); SWIG_arg++; | |
7569 return SWIG_arg; | |
7570 | |
7571 if(0) SWIG_fail; | |
7572 | |
7573 fail: | |
7574 lua_error(L); | |
7575 return SWIG_arg; | |
7576 } | |
7577 | |
7578 | |
7579 static int _wrap_Player_GetBeltItem(lua_State* L) { | |
7580 int SWIG_arg = 0; | |
7581 Player *arg1 = (Player *) 0 ; | |
7582 ItemGen *result = 0 ; | |
7583 | |
7584 SWIG_check_num_args("Player::GetBeltItem",1,1) | |
7585 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetBeltItem",1,"Player *"); | |
7586 | |
7587 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7588 SWIG_fail_ptr("Player_GetBeltItem",1,SWIGTYPE_p_Player); | |
7589 } | |
7590 | |
7591 result = (ItemGen *)(arg1)->GetBeltItem(); | |
7592 SWIG_NewPointerObj(L,result,SWIGTYPE_p_ItemGen,0); SWIG_arg++; | |
7593 return SWIG_arg; | |
7594 | |
7595 if(0) SWIG_fail; | |
7596 | |
7597 fail: | |
7598 lua_error(L); | |
7599 return SWIG_arg; | |
7600 } | |
7601 | |
7602 | |
7603 static int _wrap_Player_GetCloakItem(lua_State* L) { | |
7604 int SWIG_arg = 0; | |
7605 Player *arg1 = (Player *) 0 ; | |
7606 ItemGen *result = 0 ; | |
7607 | |
7608 SWIG_check_num_args("Player::GetCloakItem",1,1) | |
7609 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetCloakItem",1,"Player *"); | |
7610 | |
7611 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7612 SWIG_fail_ptr("Player_GetCloakItem",1,SWIGTYPE_p_Player); | |
7613 } | |
7614 | |
7615 result = (ItemGen *)(arg1)->GetCloakItem(); | |
7616 SWIG_NewPointerObj(L,result,SWIGTYPE_p_ItemGen,0); SWIG_arg++; | |
7617 return SWIG_arg; | |
7618 | |
7619 if(0) SWIG_fail; | |
7620 | |
7621 fail: | |
7622 lua_error(L); | |
7623 return SWIG_arg; | |
7624 } | |
7625 | |
7626 | |
7627 static int _wrap_Player_GetGloveItem(lua_State* L) { | |
7628 int SWIG_arg = 0; | |
7629 Player *arg1 = (Player *) 0 ; | |
7630 ItemGen *result = 0 ; | |
7631 | |
7632 SWIG_check_num_args("Player::GetGloveItem",1,1) | |
7633 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetGloveItem",1,"Player *"); | |
7634 | |
7635 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7636 SWIG_fail_ptr("Player_GetGloveItem",1,SWIGTYPE_p_Player); | |
7637 } | |
7638 | |
7639 result = (ItemGen *)(arg1)->GetGloveItem(); | |
7640 SWIG_NewPointerObj(L,result,SWIGTYPE_p_ItemGen,0); SWIG_arg++; | |
7641 return SWIG_arg; | |
7642 | |
7643 if(0) SWIG_fail; | |
7644 | |
7645 fail: | |
7646 lua_error(L); | |
7647 return SWIG_arg; | |
7648 } | |
7649 | |
7650 | |
7651 static int _wrap_Player_GetBootItem(lua_State* L) { | |
7652 int SWIG_arg = 0; | |
7653 Player *arg1 = (Player *) 0 ; | |
7654 ItemGen *result = 0 ; | |
7655 | |
7656 SWIG_check_num_args("Player::GetBootItem",1,1) | |
7657 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetBootItem",1,"Player *"); | |
7658 | |
7659 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7660 SWIG_fail_ptr("Player_GetBootItem",1,SWIGTYPE_p_Player); | |
7661 } | |
7662 | |
7663 result = (ItemGen *)(arg1)->GetBootItem(); | |
7664 SWIG_NewPointerObj(L,result,SWIGTYPE_p_ItemGen,0); SWIG_arg++; | |
7665 return SWIG_arg; | |
7666 | |
7667 if(0) SWIG_fail; | |
7668 | |
7669 fail: | |
7670 lua_error(L); | |
7671 return SWIG_arg; | |
7672 } | |
7673 | |
7674 | |
7675 static int _wrap_Player_GetAmuletItem(lua_State* L) { | |
7676 int SWIG_arg = 0; | |
7677 Player *arg1 = (Player *) 0 ; | |
7678 ItemGen *result = 0 ; | |
7679 | |
7680 SWIG_check_num_args("Player::GetAmuletItem",1,1) | |
7681 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetAmuletItem",1,"Player *"); | |
7682 | |
7683 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7684 SWIG_fail_ptr("Player_GetAmuletItem",1,SWIGTYPE_p_Player); | |
7685 } | |
7686 | |
7687 result = (ItemGen *)(arg1)->GetAmuletItem(); | |
7688 SWIG_NewPointerObj(L,result,SWIGTYPE_p_ItemGen,0); SWIG_arg++; | |
7689 return SWIG_arg; | |
7690 | |
7691 if(0) SWIG_fail; | |
7692 | |
7693 fail: | |
7694 lua_error(L); | |
7695 return SWIG_arg; | |
7696 } | |
7697 | |
7698 | |
7699 static int _wrap_Player_GetNthRingItem(lua_State* L) { | |
7700 int SWIG_arg = 0; | |
7701 Player *arg1 = (Player *) 0 ; | |
7702 int arg2 ; | |
7703 ItemGen *result = 0 ; | |
7704 | |
7705 SWIG_check_num_args("Player::GetNthRingItem",2,2) | |
7706 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetNthRingItem",1,"Player *"); | |
7707 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetNthRingItem",2,"int"); | |
7708 | |
7709 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7710 SWIG_fail_ptr("Player_GetNthRingItem",1,SWIGTYPE_p_Player); | |
7711 } | |
7712 | |
7713 arg2 = (int)lua_tonumber(L, 2); | |
7714 result = (ItemGen *)(arg1)->GetNthRingItem(arg2); | |
7715 SWIG_NewPointerObj(L,result,SWIGTYPE_p_ItemGen,0); SWIG_arg++; | |
7716 return SWIG_arg; | |
7717 | |
7718 if(0) SWIG_fail; | |
7719 | |
7720 fail: | |
7721 lua_error(L); | |
7722 return SWIG_arg; | |
7723 } | |
7724 | |
7725 | |
7726 static int _wrap_Player_GetNthEquippedIndexItem(lua_State* L) { | |
7727 int SWIG_arg = 0; | |
7728 Player *arg1 = (Player *) 0 ; | |
7729 int arg2 ; | |
7730 ItemGen *result = 0 ; | |
7731 | |
7732 SWIG_check_num_args("Player::GetNthEquippedIndexItem",2,2) | |
7733 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetNthEquippedIndexItem",1,"Player *"); | |
7734 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::GetNthEquippedIndexItem",2,"int"); | |
7735 | |
7736 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7737 SWIG_fail_ptr("Player_GetNthEquippedIndexItem",1,SWIGTYPE_p_Player); | |
7738 } | |
7739 | |
7740 arg2 = (int)lua_tonumber(L, 2); | |
7741 result = (ItemGen *)(arg1)->GetNthEquippedIndexItem(arg2); | |
7742 SWIG_NewPointerObj(L,result,SWIGTYPE_p_ItemGen,0); SWIG_arg++; | |
7743 return SWIG_arg; | |
7744 | |
7745 if(0) SWIG_fail; | |
7746 | |
7747 fail: | |
7748 lua_error(L); | |
7749 return SWIG_arg; | |
7750 } | |
7751 | |
7752 | |
7753 static int _wrap_Player_GetItem(lua_State* L) { | |
7754 int SWIG_arg = 0; | |
7755 Player *arg1 = (Player *) 0 ; | |
7756 unsigned int PlayerEquipment::*arg2 ; | |
7757 ItemGen *result = 0 ; | |
7758 | |
7759 SWIG_check_num_args("Player::GetItem",2,2) | |
7760 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetItem",1,"Player *"); | |
7761 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::GetItem",2,"unsigned int PlayerEquipment::*"); | |
7762 | |
7763 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7764 SWIG_fail_ptr("Player_GetItem",1,SWIGTYPE_p_Player); | |
7765 } | |
7766 | |
7767 | |
7768 if (!SWIG_IsOK(SWIG_ConvertMember(L,2,(void*)(&arg2),sizeof(unsigned int PlayerEquipment::*),SWIGTYPE_m_PlayerEquipment__unsigned_int))) | |
7769 SWIG_fail_ptr("Player_GetItem",2,SWIGTYPE_m_PlayerEquipment__unsigned_int); | |
7770 | |
7771 result = (ItemGen *)(arg1)->GetItem(arg2); | |
7772 SWIG_NewPointerObj(L,result,SWIGTYPE_p_ItemGen,0); SWIG_arg++; | |
7773 return SWIG_arg; | |
7774 | |
7775 if(0) SWIG_fail; | |
7776 | |
7777 fail: | |
7778 lua_error(L); | |
7779 return SWIG_arg; | |
7780 } | |
7781 | |
7782 | |
7783 static int _wrap_Player_GetPlayerIndex(lua_State* L) { | |
7784 int SWIG_arg = 0; | |
7785 Player *arg1 = (Player *) 0 ; | |
7786 int result; | |
7787 | |
7788 SWIG_check_num_args("Player::GetPlayerIndex",1,1) | |
7789 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::GetPlayerIndex",1,"Player *"); | |
7790 | |
7791 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7792 SWIG_fail_ptr("Player_GetPlayerIndex",1,SWIGTYPE_p_Player); | |
7793 } | |
7794 | |
7795 result = (int)(arg1)->GetPlayerIndex(); | |
7796 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
7797 return SWIG_arg; | |
7798 | |
7799 if(0) SWIG_fail; | |
7800 | |
7801 fail: | |
7802 lua_error(L); | |
7803 return SWIG_arg; | |
7804 } | |
7805 | |
7806 | |
7807 static int _wrap_Player_pConditions_set(lua_State* L) { | |
7808 int SWIG_arg = 0; | |
7809 Player *arg1 = (Player *) 0 ; | |
7810 std::array< __int64,20 > arg2 ; | |
7811 std::array< __int64,20 > *argp2 ; | |
7812 | |
7813 SWIG_check_num_args("Player::pConditions",2,2) | |
7814 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pConditions",1,"Player *"); | |
7815 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::pConditions",2,"std::array< __int64,20 >"); | |
7816 | |
7817 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7818 SWIG_fail_ptr("Player_pConditions_set",1,SWIGTYPE_p_Player); | |
7819 } | |
7820 | |
7821 | |
7822 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_std__arrayT___int64_20_t,0))){ | |
7823 SWIG_fail_ptr("Player_pConditions_set",2,SWIGTYPE_p_std__arrayT___int64_20_t); | |
7824 } | |
7825 arg2 = *argp2; | |
7826 | |
7827 if (arg1) (arg1)->pConditions = arg2; | |
7828 | |
7829 return SWIG_arg; | |
7830 | |
7831 if(0) SWIG_fail; | |
7832 | |
7833 fail: | |
7834 lua_error(L); | |
7835 return SWIG_arg; | |
7836 } | |
7837 | |
7838 | |
7839 static int _wrap_Player_pConditions_get(lua_State* L) { | |
7840 int SWIG_arg = 0; | |
7841 Player *arg1 = (Player *) 0 ; | |
7842 std::array< __int64,20 > result; | |
7843 | |
7844 SWIG_check_num_args("Player::pConditions",1,1) | |
7845 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pConditions",1,"Player *"); | |
7846 | |
7847 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7848 SWIG_fail_ptr("Player_pConditions_get",1,SWIGTYPE_p_Player); | |
7849 } | |
7850 | |
7851 result = ((arg1)->pConditions); | |
7852 { | |
7853 std::array< __int64,20 > * resultptr = new std::array< __int64,20 >((const std::array< __int64,20 > &) result); | |
7854 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_std__arrayT___int64_20_t,1); SWIG_arg++; | |
7855 } | |
7856 return SWIG_arg; | |
7857 | |
7858 if(0) SWIG_fail; | |
7859 | |
7860 fail: | |
7861 lua_error(L); | |
7862 return SWIG_arg; | |
7863 } | |
7864 | |
7865 | |
7866 static int _wrap_Player_uExperience_set(lua_State* L) { | |
7867 int SWIG_arg = 0; | |
7868 Player *arg1 = (Player *) 0 ; | |
7869 unsigned __int64 arg2 ; | |
7870 unsigned __int64 *argp2 ; | |
7871 | |
7872 SWIG_check_num_args("Player::uExperience",2,2) | |
7873 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uExperience",1,"Player *"); | |
7874 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::uExperience",2,"unsigned __int64"); | |
7875 | |
7876 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7877 SWIG_fail_ptr("Player_uExperience_set",1,SWIGTYPE_p_Player); | |
7878 } | |
7879 | |
7880 | |
7881 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_unsigned___int64,0))){ | |
7882 SWIG_fail_ptr("Player_uExperience_set",2,SWIGTYPE_p_unsigned___int64); | |
7883 } | |
7884 arg2 = *argp2; | |
7885 | |
7886 if (arg1) (arg1)->uExperience = arg2; | |
7887 | |
7888 return SWIG_arg; | |
7889 | |
7890 if(0) SWIG_fail; | |
7891 | |
7892 fail: | |
7893 lua_error(L); | |
7894 return SWIG_arg; | |
7895 } | |
7896 | |
7897 | |
7898 static int _wrap_Player_uExperience_get(lua_State* L) { | |
7899 int SWIG_arg = 0; | |
7900 Player *arg1 = (Player *) 0 ; | |
7901 unsigned __int64 result; | |
7902 | |
7903 SWIG_check_num_args("Player::uExperience",1,1) | |
7904 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uExperience",1,"Player *"); | |
7905 | |
7906 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7907 SWIG_fail_ptr("Player_uExperience_get",1,SWIGTYPE_p_Player); | |
7908 } | |
7909 | |
7910 result = ((arg1)->uExperience); | |
7911 { | |
7912 unsigned __int64 * resultptr = new unsigned __int64((const unsigned __int64 &) result); | |
7913 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_unsigned___int64,1); SWIG_arg++; | |
7914 } | |
7915 return SWIG_arg; | |
7916 | |
7917 if(0) SWIG_fail; | |
7918 | |
7919 fail: | |
7920 lua_error(L); | |
7921 return SWIG_arg; | |
7922 } | |
7923 | |
7924 | |
7925 static int _wrap_Player_pName_set(lua_State* L) { | |
7926 int SWIG_arg = 0; | |
7927 Player *arg1 = (Player *) 0 ; | |
7928 char *arg2 ; | |
7929 | |
7930 SWIG_check_num_args("Player::pName",2,2) | |
7931 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pName",1,"Player *"); | |
7932 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::pName",2,"char [16]"); | |
7933 | |
7934 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7935 SWIG_fail_ptr("Player_pName_set",1,SWIGTYPE_p_Player); | |
7936 } | |
7937 | |
7938 arg2 = (char *)lua_tostring(L, 2); | |
7939 { | |
7940 if(arg2) { | |
7941 strncpy((char*)arg1->pName, (const char *)arg2, 16-1); | |
7942 arg1->pName[16-1] = 0; | |
7943 } else { | |
7944 arg1->pName[0] = 0; | |
7945 } | |
7946 } | |
7947 | |
7948 return SWIG_arg; | |
7949 | |
7950 if(0) SWIG_fail; | |
7951 | |
7952 fail: | |
7953 lua_error(L); | |
7954 return SWIG_arg; | |
7955 } | |
7956 | |
7957 | |
7958 static int _wrap_Player_pName_get(lua_State* L) { | |
7959 int SWIG_arg = 0; | |
7960 Player *arg1 = (Player *) 0 ; | |
7961 char *result = 0 ; | |
7962 | |
7963 SWIG_check_num_args("Player::pName",1,1) | |
7964 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pName",1,"Player *"); | |
7965 | |
7966 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7967 SWIG_fail_ptr("Player_pName_get",1,SWIGTYPE_p_Player); | |
7968 } | |
7969 | |
7970 result = (char *)(char *) ((arg1)->pName); | |
7971 lua_pushstring(L,(const char *)result); SWIG_arg++; | |
7972 return SWIG_arg; | |
7973 | |
7974 if(0) SWIG_fail; | |
7975 | |
7976 fail: | |
7977 lua_error(L); | |
7978 return SWIG_arg; | |
7979 } | |
7980 | |
7981 | |
7982 static int _wrap_Player_uSex_set(lua_State* L) { | |
7983 int SWIG_arg = 0; | |
7984 Player *arg1 = (Player *) 0 ; | |
7985 PLAYER_SEX arg2 ; | |
7986 | |
7987 SWIG_check_num_args("Player::uSex",2,2) | |
7988 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uSex",1,"Player *"); | |
7989 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::uSex",2,"PLAYER_SEX"); | |
7990 | |
7991 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
7992 SWIG_fail_ptr("Player_uSex_set",1,SWIGTYPE_p_Player); | |
7993 } | |
7994 | |
7995 arg2 = (PLAYER_SEX)(int)lua_tonumber(L, 2); | |
7996 if (arg1) (arg1)->uSex = arg2; | |
7997 | |
7998 return SWIG_arg; | |
7999 | |
8000 if(0) SWIG_fail; | |
8001 | |
8002 fail: | |
8003 lua_error(L); | |
8004 return SWIG_arg; | |
8005 } | |
8006 | |
8007 | |
8008 static int _wrap_Player_uSex_get(lua_State* L) { | |
8009 int SWIG_arg = 0; | |
8010 Player *arg1 = (Player *) 0 ; | |
8011 PLAYER_SEX result; | |
8012 | |
8013 SWIG_check_num_args("Player::uSex",1,1) | |
8014 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uSex",1,"Player *"); | |
8015 | |
8016 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8017 SWIG_fail_ptr("Player_uSex_get",1,SWIGTYPE_p_Player); | |
8018 } | |
8019 | |
8020 result = (PLAYER_SEX) ((arg1)->uSex); | |
8021 lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++; | |
8022 return SWIG_arg; | |
8023 | |
8024 if(0) SWIG_fail; | |
8025 | |
8026 fail: | |
8027 lua_error(L); | |
8028 return SWIG_arg; | |
8029 } | |
8030 | |
8031 | |
8032 static int _wrap_Player_classType_set(lua_State* L) { | |
8033 int SWIG_arg = 0; | |
8034 Player *arg1 = (Player *) 0 ; | |
8035 PLAYER_CLASS_TYPE arg2 ; | |
8036 | |
8037 SWIG_check_num_args("Player::classType",2,2) | |
8038 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::classType",1,"Player *"); | |
8039 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::classType",2,"PLAYER_CLASS_TYPE"); | |
8040 | |
8041 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8042 SWIG_fail_ptr("Player_classType_set",1,SWIGTYPE_p_Player); | |
8043 } | |
8044 | |
8045 arg2 = (PLAYER_CLASS_TYPE)(int)lua_tonumber(L, 2); | |
8046 if (arg1) (arg1)->classType = arg2; | |
8047 | |
8048 return SWIG_arg; | |
8049 | |
8050 if(0) SWIG_fail; | |
8051 | |
8052 fail: | |
8053 lua_error(L); | |
8054 return SWIG_arg; | |
8055 } | |
8056 | |
8057 | |
8058 static int _wrap_Player_classType_get(lua_State* L) { | |
8059 int SWIG_arg = 0; | |
8060 Player *arg1 = (Player *) 0 ; | |
8061 PLAYER_CLASS_TYPE result; | |
8062 | |
8063 SWIG_check_num_args("Player::classType",1,1) | |
8064 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::classType",1,"Player *"); | |
8065 | |
8066 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8067 SWIG_fail_ptr("Player_classType_get",1,SWIGTYPE_p_Player); | |
8068 } | |
8069 | |
8070 result = (PLAYER_CLASS_TYPE) ((arg1)->classType); | |
8071 lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++; | |
8072 return SWIG_arg; | |
8073 | |
8074 if(0) SWIG_fail; | |
8075 | |
8076 fail: | |
8077 lua_error(L); | |
8078 return SWIG_arg; | |
8079 } | |
8080 | |
8081 | |
8082 static int _wrap_Player_uCurrentFace_set(lua_State* L) { | |
8083 int SWIG_arg = 0; | |
8084 Player *arg1 = (Player *) 0 ; | |
8085 unsigned __int8 arg2 ; | |
8086 unsigned __int8 *argp2 ; | |
8087 | |
8088 SWIG_check_num_args("Player::uCurrentFace",2,2) | |
8089 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uCurrentFace",1,"Player *"); | |
8090 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::uCurrentFace",2,"unsigned __int8"); | |
8091 | |
8092 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8093 SWIG_fail_ptr("Player_uCurrentFace_set",1,SWIGTYPE_p_Player); | |
8094 } | |
8095 | |
8096 | |
8097 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_unsigned___int8,0))){ | |
8098 SWIG_fail_ptr("Player_uCurrentFace_set",2,SWIGTYPE_p_unsigned___int8); | |
8099 } | |
8100 arg2 = *argp2; | |
8101 | |
8102 if (arg1) (arg1)->uCurrentFace = arg2; | |
8103 | |
8104 return SWIG_arg; | |
8105 | |
8106 if(0) SWIG_fail; | |
8107 | |
8108 fail: | |
8109 lua_error(L); | |
8110 return SWIG_arg; | |
8111 } | |
8112 | |
8113 | |
8114 static int _wrap_Player_uCurrentFace_get(lua_State* L) { | |
8115 int SWIG_arg = 0; | |
8116 Player *arg1 = (Player *) 0 ; | |
8117 unsigned __int8 result; | |
8118 | |
8119 SWIG_check_num_args("Player::uCurrentFace",1,1) | |
8120 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uCurrentFace",1,"Player *"); | |
8121 | |
8122 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8123 SWIG_fail_ptr("Player_uCurrentFace_get",1,SWIGTYPE_p_Player); | |
8124 } | |
8125 | |
8126 result = ((arg1)->uCurrentFace); | |
8127 { | |
8128 unsigned __int8 * resultptr = new unsigned __int8((const unsigned __int8 &) result); | |
8129 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_unsigned___int8,1); SWIG_arg++; | |
8130 } | |
8131 return SWIG_arg; | |
8132 | |
8133 if(0) SWIG_fail; | |
8134 | |
8135 fail: | |
8136 lua_error(L); | |
8137 return SWIG_arg; | |
8138 } | |
8139 | |
8140 | |
8141 static int _wrap_Player_field_BB_set(lua_State* L) { | |
8142 int SWIG_arg = 0; | |
8143 Player *arg1 = (Player *) 0 ; | |
8144 char arg2 ; | |
8145 | |
8146 SWIG_check_num_args("Player::field_BB",2,2) | |
8147 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_BB",1,"Player *"); | |
8148 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::field_BB",2,"char"); | |
8149 | |
8150 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8151 SWIG_fail_ptr("Player_field_BB_set",1,SWIGTYPE_p_Player); | |
8152 } | |
8153 | |
8154 arg2 = (lua_tostring(L, 2))[0]; | |
8155 if (arg1) (arg1)->field_BB = arg2; | |
8156 | |
8157 return SWIG_arg; | |
8158 | |
8159 if(0) SWIG_fail; | |
8160 | |
8161 fail: | |
8162 lua_error(L); | |
8163 return SWIG_arg; | |
8164 } | |
8165 | |
8166 | |
8167 static int _wrap_Player_field_BB_get(lua_State* L) { | |
8168 int SWIG_arg = 0; | |
8169 Player *arg1 = (Player *) 0 ; | |
8170 char result; | |
8171 | |
8172 SWIG_check_num_args("Player::field_BB",1,1) | |
8173 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_BB",1,"Player *"); | |
8174 | |
8175 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8176 SWIG_fail_ptr("Player_field_BB_get",1,SWIGTYPE_p_Player); | |
8177 } | |
8178 | |
8179 result = (char) ((arg1)->field_BB); | |
8180 lua_pushfstring(L,"%c",result); SWIG_arg++; | |
8181 return SWIG_arg; | |
8182 | |
8183 if(0) SWIG_fail; | |
8184 | |
8185 fail: | |
8186 lua_error(L); | |
8187 return SWIG_arg; | |
8188 } | |
8189 | |
8190 | |
8191 static int _wrap_Player_uMight_set(lua_State* L) { | |
8192 int SWIG_arg = 0; | |
8193 Player *arg1 = (Player *) 0 ; | |
8194 unsigned __int16 arg2 ; | |
8195 unsigned __int16 *argp2 ; | |
8196 | |
8197 SWIG_check_num_args("Player::uMight",2,2) | |
8198 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uMight",1,"Player *"); | |
8199 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::uMight",2,"unsigned __int16"); | |
8200 | |
8201 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8202 SWIG_fail_ptr("Player_uMight_set",1,SWIGTYPE_p_Player); | |
8203 } | |
8204 | |
8205 | |
8206 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_unsigned___int16,0))){ | |
8207 SWIG_fail_ptr("Player_uMight_set",2,SWIGTYPE_p_unsigned___int16); | |
8208 } | |
8209 arg2 = *argp2; | |
8210 | |
8211 if (arg1) (arg1)->uMight = arg2; | |
8212 | |
8213 return SWIG_arg; | |
8214 | |
8215 if(0) SWIG_fail; | |
8216 | |
8217 fail: | |
8218 lua_error(L); | |
8219 return SWIG_arg; | |
8220 } | |
8221 | |
8222 | |
8223 static int _wrap_Player_uMight_get(lua_State* L) { | |
8224 int SWIG_arg = 0; | |
8225 Player *arg1 = (Player *) 0 ; | |
8226 unsigned __int16 result; | |
8227 | |
8228 SWIG_check_num_args("Player::uMight",1,1) | |
8229 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uMight",1,"Player *"); | |
8230 | |
8231 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8232 SWIG_fail_ptr("Player_uMight_get",1,SWIGTYPE_p_Player); | |
8233 } | |
8234 | |
8235 result = ((arg1)->uMight); | |
8236 { | |
8237 unsigned __int16 * resultptr = new unsigned __int16((const unsigned __int16 &) result); | |
8238 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_unsigned___int16,1); SWIG_arg++; | |
8239 } | |
8240 return SWIG_arg; | |
8241 | |
8242 if(0) SWIG_fail; | |
8243 | |
8244 fail: | |
8245 lua_error(L); | |
8246 return SWIG_arg; | |
8247 } | |
8248 | |
8249 | |
8250 static int _wrap_Player_uMightBonus_set(lua_State* L) { | |
8251 int SWIG_arg = 0; | |
8252 Player *arg1 = (Player *) 0 ; | |
8253 unsigned __int16 arg2 ; | |
8254 unsigned __int16 *argp2 ; | |
8255 | |
8256 SWIG_check_num_args("Player::uMightBonus",2,2) | |
8257 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uMightBonus",1,"Player *"); | |
8258 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::uMightBonus",2,"unsigned __int16"); | |
8259 | |
8260 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8261 SWIG_fail_ptr("Player_uMightBonus_set",1,SWIGTYPE_p_Player); | |
8262 } | |
8263 | |
8264 | |
8265 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_unsigned___int16,0))){ | |
8266 SWIG_fail_ptr("Player_uMightBonus_set",2,SWIGTYPE_p_unsigned___int16); | |
8267 } | |
8268 arg2 = *argp2; | |
8269 | |
8270 if (arg1) (arg1)->uMightBonus = arg2; | |
8271 | |
8272 return SWIG_arg; | |
8273 | |
8274 if(0) SWIG_fail; | |
8275 | |
8276 fail: | |
8277 lua_error(L); | |
8278 return SWIG_arg; | |
8279 } | |
8280 | |
8281 | |
8282 static int _wrap_Player_uMightBonus_get(lua_State* L) { | |
8283 int SWIG_arg = 0; | |
8284 Player *arg1 = (Player *) 0 ; | |
8285 unsigned __int16 result; | |
8286 | |
8287 SWIG_check_num_args("Player::uMightBonus",1,1) | |
8288 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uMightBonus",1,"Player *"); | |
8289 | |
8290 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8291 SWIG_fail_ptr("Player_uMightBonus_get",1,SWIGTYPE_p_Player); | |
8292 } | |
8293 | |
8294 result = ((arg1)->uMightBonus); | |
8295 { | |
8296 unsigned __int16 * resultptr = new unsigned __int16((const unsigned __int16 &) result); | |
8297 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_unsigned___int16,1); SWIG_arg++; | |
8298 } | |
8299 return SWIG_arg; | |
8300 | |
8301 if(0) SWIG_fail; | |
8302 | |
8303 fail: | |
8304 lua_error(L); | |
8305 return SWIG_arg; | |
8306 } | |
8307 | |
8308 | |
8309 static int _wrap_Player_uIntelligence_set(lua_State* L) { | |
8310 int SWIG_arg = 0; | |
8311 Player *arg1 = (Player *) 0 ; | |
8312 unsigned __int16 arg2 ; | |
8313 unsigned __int16 *argp2 ; | |
8314 | |
8315 SWIG_check_num_args("Player::uIntelligence",2,2) | |
8316 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uIntelligence",1,"Player *"); | |
8317 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::uIntelligence",2,"unsigned __int16"); | |
8318 | |
8319 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8320 SWIG_fail_ptr("Player_uIntelligence_set",1,SWIGTYPE_p_Player); | |
8321 } | |
8322 | |
8323 | |
8324 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_unsigned___int16,0))){ | |
8325 SWIG_fail_ptr("Player_uIntelligence_set",2,SWIGTYPE_p_unsigned___int16); | |
8326 } | |
8327 arg2 = *argp2; | |
8328 | |
8329 if (arg1) (arg1)->uIntelligence = arg2; | |
8330 | |
8331 return SWIG_arg; | |
8332 | |
8333 if(0) SWIG_fail; | |
8334 | |
8335 fail: | |
8336 lua_error(L); | |
8337 return SWIG_arg; | |
8338 } | |
8339 | |
8340 | |
8341 static int _wrap_Player_uIntelligence_get(lua_State* L) { | |
8342 int SWIG_arg = 0; | |
8343 Player *arg1 = (Player *) 0 ; | |
8344 unsigned __int16 result; | |
8345 | |
8346 SWIG_check_num_args("Player::uIntelligence",1,1) | |
8347 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uIntelligence",1,"Player *"); | |
8348 | |
8349 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8350 SWIG_fail_ptr("Player_uIntelligence_get",1,SWIGTYPE_p_Player); | |
8351 } | |
8352 | |
8353 result = ((arg1)->uIntelligence); | |
8354 { | |
8355 unsigned __int16 * resultptr = new unsigned __int16((const unsigned __int16 &) result); | |
8356 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_unsigned___int16,1); SWIG_arg++; | |
8357 } | |
8358 return SWIG_arg; | |
8359 | |
8360 if(0) SWIG_fail; | |
8361 | |
8362 fail: | |
8363 lua_error(L); | |
8364 return SWIG_arg; | |
8365 } | |
8366 | |
8367 | |
8368 static int _wrap_Player_uIntelligenceBonus_set(lua_State* L) { | |
8369 int SWIG_arg = 0; | |
8370 Player *arg1 = (Player *) 0 ; | |
8371 unsigned __int16 arg2 ; | |
8372 unsigned __int16 *argp2 ; | |
8373 | |
8374 SWIG_check_num_args("Player::uIntelligenceBonus",2,2) | |
8375 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uIntelligenceBonus",1,"Player *"); | |
8376 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::uIntelligenceBonus",2,"unsigned __int16"); | |
8377 | |
8378 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8379 SWIG_fail_ptr("Player_uIntelligenceBonus_set",1,SWIGTYPE_p_Player); | |
8380 } | |
8381 | |
8382 | |
8383 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_unsigned___int16,0))){ | |
8384 SWIG_fail_ptr("Player_uIntelligenceBonus_set",2,SWIGTYPE_p_unsigned___int16); | |
8385 } | |
8386 arg2 = *argp2; | |
8387 | |
8388 if (arg1) (arg1)->uIntelligenceBonus = arg2; | |
8389 | |
8390 return SWIG_arg; | |
8391 | |
8392 if(0) SWIG_fail; | |
8393 | |
8394 fail: | |
8395 lua_error(L); | |
8396 return SWIG_arg; | |
8397 } | |
8398 | |
8399 | |
8400 static int _wrap_Player_uIntelligenceBonus_get(lua_State* L) { | |
8401 int SWIG_arg = 0; | |
8402 Player *arg1 = (Player *) 0 ; | |
8403 unsigned __int16 result; | |
8404 | |
8405 SWIG_check_num_args("Player::uIntelligenceBonus",1,1) | |
8406 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uIntelligenceBonus",1,"Player *"); | |
8407 | |
8408 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8409 SWIG_fail_ptr("Player_uIntelligenceBonus_get",1,SWIGTYPE_p_Player); | |
8410 } | |
8411 | |
8412 result = ((arg1)->uIntelligenceBonus); | |
8413 { | |
8414 unsigned __int16 * resultptr = new unsigned __int16((const unsigned __int16 &) result); | |
8415 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_unsigned___int16,1); SWIG_arg++; | |
8416 } | |
8417 return SWIG_arg; | |
8418 | |
8419 if(0) SWIG_fail; | |
8420 | |
8421 fail: | |
8422 lua_error(L); | |
8423 return SWIG_arg; | |
8424 } | |
8425 | |
8426 | |
8427 static int _wrap_Player_uWillpower_set(lua_State* L) { | |
8428 int SWIG_arg = 0; | |
8429 Player *arg1 = (Player *) 0 ; | |
8430 unsigned __int16 arg2 ; | |
8431 unsigned __int16 *argp2 ; | |
8432 | |
8433 SWIG_check_num_args("Player::uWillpower",2,2) | |
8434 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uWillpower",1,"Player *"); | |
8435 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::uWillpower",2,"unsigned __int16"); | |
8436 | |
8437 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8438 SWIG_fail_ptr("Player_uWillpower_set",1,SWIGTYPE_p_Player); | |
8439 } | |
8440 | |
8441 | |
8442 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_unsigned___int16,0))){ | |
8443 SWIG_fail_ptr("Player_uWillpower_set",2,SWIGTYPE_p_unsigned___int16); | |
8444 } | |
8445 arg2 = *argp2; | |
8446 | |
8447 if (arg1) (arg1)->uWillpower = arg2; | |
8448 | |
8449 return SWIG_arg; | |
8450 | |
8451 if(0) SWIG_fail; | |
8452 | |
8453 fail: | |
8454 lua_error(L); | |
8455 return SWIG_arg; | |
8456 } | |
8457 | |
8458 | |
8459 static int _wrap_Player_uWillpower_get(lua_State* L) { | |
8460 int SWIG_arg = 0; | |
8461 Player *arg1 = (Player *) 0 ; | |
8462 unsigned __int16 result; | |
8463 | |
8464 SWIG_check_num_args("Player::uWillpower",1,1) | |
8465 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uWillpower",1,"Player *"); | |
8466 | |
8467 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8468 SWIG_fail_ptr("Player_uWillpower_get",1,SWIGTYPE_p_Player); | |
8469 } | |
8470 | |
8471 result = ((arg1)->uWillpower); | |
8472 { | |
8473 unsigned __int16 * resultptr = new unsigned __int16((const unsigned __int16 &) result); | |
8474 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_unsigned___int16,1); SWIG_arg++; | |
8475 } | |
8476 return SWIG_arg; | |
8477 | |
8478 if(0) SWIG_fail; | |
8479 | |
8480 fail: | |
8481 lua_error(L); | |
8482 return SWIG_arg; | |
8483 } | |
8484 | |
8485 | |
8486 static int _wrap_Player_uWillpowerBonus_set(lua_State* L) { | |
8487 int SWIG_arg = 0; | |
8488 Player *arg1 = (Player *) 0 ; | |
8489 unsigned __int16 arg2 ; | |
8490 unsigned __int16 *argp2 ; | |
8491 | |
8492 SWIG_check_num_args("Player::uWillpowerBonus",2,2) | |
8493 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uWillpowerBonus",1,"Player *"); | |
8494 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::uWillpowerBonus",2,"unsigned __int16"); | |
8495 | |
8496 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8497 SWIG_fail_ptr("Player_uWillpowerBonus_set",1,SWIGTYPE_p_Player); | |
8498 } | |
8499 | |
8500 | |
8501 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_unsigned___int16,0))){ | |
8502 SWIG_fail_ptr("Player_uWillpowerBonus_set",2,SWIGTYPE_p_unsigned___int16); | |
8503 } | |
8504 arg2 = *argp2; | |
8505 | |
8506 if (arg1) (arg1)->uWillpowerBonus = arg2; | |
8507 | |
8508 return SWIG_arg; | |
8509 | |
8510 if(0) SWIG_fail; | |
8511 | |
8512 fail: | |
8513 lua_error(L); | |
8514 return SWIG_arg; | |
8515 } | |
8516 | |
8517 | |
8518 static int _wrap_Player_uWillpowerBonus_get(lua_State* L) { | |
8519 int SWIG_arg = 0; | |
8520 Player *arg1 = (Player *) 0 ; | |
8521 unsigned __int16 result; | |
8522 | |
8523 SWIG_check_num_args("Player::uWillpowerBonus",1,1) | |
8524 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uWillpowerBonus",1,"Player *"); | |
8525 | |
8526 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8527 SWIG_fail_ptr("Player_uWillpowerBonus_get",1,SWIGTYPE_p_Player); | |
8528 } | |
8529 | |
8530 result = ((arg1)->uWillpowerBonus); | |
8531 { | |
8532 unsigned __int16 * resultptr = new unsigned __int16((const unsigned __int16 &) result); | |
8533 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_unsigned___int16,1); SWIG_arg++; | |
8534 } | |
8535 return SWIG_arg; | |
8536 | |
8537 if(0) SWIG_fail; | |
8538 | |
8539 fail: | |
8540 lua_error(L); | |
8541 return SWIG_arg; | |
8542 } | |
8543 | |
8544 | |
8545 static int _wrap_Player_uEndurance_set(lua_State* L) { | |
8546 int SWIG_arg = 0; | |
8547 Player *arg1 = (Player *) 0 ; | |
8548 unsigned __int16 arg2 ; | |
8549 unsigned __int16 *argp2 ; | |
8550 | |
8551 SWIG_check_num_args("Player::uEndurance",2,2) | |
8552 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uEndurance",1,"Player *"); | |
8553 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::uEndurance",2,"unsigned __int16"); | |
8554 | |
8555 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8556 SWIG_fail_ptr("Player_uEndurance_set",1,SWIGTYPE_p_Player); | |
8557 } | |
8558 | |
8559 | |
8560 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_unsigned___int16,0))){ | |
8561 SWIG_fail_ptr("Player_uEndurance_set",2,SWIGTYPE_p_unsigned___int16); | |
8562 } | |
8563 arg2 = *argp2; | |
8564 | |
8565 if (arg1) (arg1)->uEndurance = arg2; | |
8566 | |
8567 return SWIG_arg; | |
8568 | |
8569 if(0) SWIG_fail; | |
8570 | |
8571 fail: | |
8572 lua_error(L); | |
8573 return SWIG_arg; | |
8574 } | |
8575 | |
8576 | |
8577 static int _wrap_Player_uEndurance_get(lua_State* L) { | |
8578 int SWIG_arg = 0; | |
8579 Player *arg1 = (Player *) 0 ; | |
8580 unsigned __int16 result; | |
8581 | |
8582 SWIG_check_num_args("Player::uEndurance",1,1) | |
8583 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uEndurance",1,"Player *"); | |
8584 | |
8585 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8586 SWIG_fail_ptr("Player_uEndurance_get",1,SWIGTYPE_p_Player); | |
8587 } | |
8588 | |
8589 result = ((arg1)->uEndurance); | |
8590 { | |
8591 unsigned __int16 * resultptr = new unsigned __int16((const unsigned __int16 &) result); | |
8592 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_unsigned___int16,1); SWIG_arg++; | |
8593 } | |
8594 return SWIG_arg; | |
8595 | |
8596 if(0) SWIG_fail; | |
8597 | |
8598 fail: | |
8599 lua_error(L); | |
8600 return SWIG_arg; | |
8601 } | |
8602 | |
8603 | |
8604 static int _wrap_Player_uEnduranceBonus_set(lua_State* L) { | |
8605 int SWIG_arg = 0; | |
8606 Player *arg1 = (Player *) 0 ; | |
8607 unsigned __int16 arg2 ; | |
8608 unsigned __int16 *argp2 ; | |
8609 | |
8610 SWIG_check_num_args("Player::uEnduranceBonus",2,2) | |
8611 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uEnduranceBonus",1,"Player *"); | |
8612 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::uEnduranceBonus",2,"unsigned __int16"); | |
8613 | |
8614 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8615 SWIG_fail_ptr("Player_uEnduranceBonus_set",1,SWIGTYPE_p_Player); | |
8616 } | |
8617 | |
8618 | |
8619 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_unsigned___int16,0))){ | |
8620 SWIG_fail_ptr("Player_uEnduranceBonus_set",2,SWIGTYPE_p_unsigned___int16); | |
8621 } | |
8622 arg2 = *argp2; | |
8623 | |
8624 if (arg1) (arg1)->uEnduranceBonus = arg2; | |
8625 | |
8626 return SWIG_arg; | |
8627 | |
8628 if(0) SWIG_fail; | |
8629 | |
8630 fail: | |
8631 lua_error(L); | |
8632 return SWIG_arg; | |
8633 } | |
8634 | |
8635 | |
8636 static int _wrap_Player_uEnduranceBonus_get(lua_State* L) { | |
8637 int SWIG_arg = 0; | |
8638 Player *arg1 = (Player *) 0 ; | |
8639 unsigned __int16 result; | |
8640 | |
8641 SWIG_check_num_args("Player::uEnduranceBonus",1,1) | |
8642 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uEnduranceBonus",1,"Player *"); | |
8643 | |
8644 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8645 SWIG_fail_ptr("Player_uEnduranceBonus_get",1,SWIGTYPE_p_Player); | |
8646 } | |
8647 | |
8648 result = ((arg1)->uEnduranceBonus); | |
8649 { | |
8650 unsigned __int16 * resultptr = new unsigned __int16((const unsigned __int16 &) result); | |
8651 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_unsigned___int16,1); SWIG_arg++; | |
8652 } | |
8653 return SWIG_arg; | |
8654 | |
8655 if(0) SWIG_fail; | |
8656 | |
8657 fail: | |
8658 lua_error(L); | |
8659 return SWIG_arg; | |
8660 } | |
8661 | |
8662 | |
8663 static int _wrap_Player_uSpeed_set(lua_State* L) { | |
8664 int SWIG_arg = 0; | |
8665 Player *arg1 = (Player *) 0 ; | |
8666 unsigned __int16 arg2 ; | |
8667 unsigned __int16 *argp2 ; | |
8668 | |
8669 SWIG_check_num_args("Player::uSpeed",2,2) | |
8670 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uSpeed",1,"Player *"); | |
8671 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::uSpeed",2,"unsigned __int16"); | |
8672 | |
8673 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8674 SWIG_fail_ptr("Player_uSpeed_set",1,SWIGTYPE_p_Player); | |
8675 } | |
8676 | |
8677 | |
8678 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_unsigned___int16,0))){ | |
8679 SWIG_fail_ptr("Player_uSpeed_set",2,SWIGTYPE_p_unsigned___int16); | |
8680 } | |
8681 arg2 = *argp2; | |
8682 | |
8683 if (arg1) (arg1)->uSpeed = arg2; | |
8684 | |
8685 return SWIG_arg; | |
8686 | |
8687 if(0) SWIG_fail; | |
8688 | |
8689 fail: | |
8690 lua_error(L); | |
8691 return SWIG_arg; | |
8692 } | |
8693 | |
8694 | |
8695 static int _wrap_Player_uSpeed_get(lua_State* L) { | |
8696 int SWIG_arg = 0; | |
8697 Player *arg1 = (Player *) 0 ; | |
8698 unsigned __int16 result; | |
8699 | |
8700 SWIG_check_num_args("Player::uSpeed",1,1) | |
8701 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uSpeed",1,"Player *"); | |
8702 | |
8703 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8704 SWIG_fail_ptr("Player_uSpeed_get",1,SWIGTYPE_p_Player); | |
8705 } | |
8706 | |
8707 result = ((arg1)->uSpeed); | |
8708 { | |
8709 unsigned __int16 * resultptr = new unsigned __int16((const unsigned __int16 &) result); | |
8710 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_unsigned___int16,1); SWIG_arg++; | |
8711 } | |
8712 return SWIG_arg; | |
8713 | |
8714 if(0) SWIG_fail; | |
8715 | |
8716 fail: | |
8717 lua_error(L); | |
8718 return SWIG_arg; | |
8719 } | |
8720 | |
8721 | |
8722 static int _wrap_Player_uSpeedBonus_set(lua_State* L) { | |
8723 int SWIG_arg = 0; | |
8724 Player *arg1 = (Player *) 0 ; | |
8725 unsigned __int16 arg2 ; | |
8726 unsigned __int16 *argp2 ; | |
8727 | |
8728 SWIG_check_num_args("Player::uSpeedBonus",2,2) | |
8729 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uSpeedBonus",1,"Player *"); | |
8730 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::uSpeedBonus",2,"unsigned __int16"); | |
8731 | |
8732 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8733 SWIG_fail_ptr("Player_uSpeedBonus_set",1,SWIGTYPE_p_Player); | |
8734 } | |
8735 | |
8736 | |
8737 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_unsigned___int16,0))){ | |
8738 SWIG_fail_ptr("Player_uSpeedBonus_set",2,SWIGTYPE_p_unsigned___int16); | |
8739 } | |
8740 arg2 = *argp2; | |
8741 | |
8742 if (arg1) (arg1)->uSpeedBonus = arg2; | |
8743 | |
8744 return SWIG_arg; | |
8745 | |
8746 if(0) SWIG_fail; | |
8747 | |
8748 fail: | |
8749 lua_error(L); | |
8750 return SWIG_arg; | |
8751 } | |
8752 | |
8753 | |
8754 static int _wrap_Player_uSpeedBonus_get(lua_State* L) { | |
8755 int SWIG_arg = 0; | |
8756 Player *arg1 = (Player *) 0 ; | |
8757 unsigned __int16 result; | |
8758 | |
8759 SWIG_check_num_args("Player::uSpeedBonus",1,1) | |
8760 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uSpeedBonus",1,"Player *"); | |
8761 | |
8762 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8763 SWIG_fail_ptr("Player_uSpeedBonus_get",1,SWIGTYPE_p_Player); | |
8764 } | |
8765 | |
8766 result = ((arg1)->uSpeedBonus); | |
8767 { | |
8768 unsigned __int16 * resultptr = new unsigned __int16((const unsigned __int16 &) result); | |
8769 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_unsigned___int16,1); SWIG_arg++; | |
8770 } | |
8771 return SWIG_arg; | |
8772 | |
8773 if(0) SWIG_fail; | |
8774 | |
8775 fail: | |
8776 lua_error(L); | |
8777 return SWIG_arg; | |
8778 } | |
8779 | |
8780 | |
8781 static int _wrap_Player_uAccuracy_set(lua_State* L) { | |
8782 int SWIG_arg = 0; | |
8783 Player *arg1 = (Player *) 0 ; | |
8784 unsigned __int16 arg2 ; | |
8785 unsigned __int16 *argp2 ; | |
8786 | |
8787 SWIG_check_num_args("Player::uAccuracy",2,2) | |
8788 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uAccuracy",1,"Player *"); | |
8789 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::uAccuracy",2,"unsigned __int16"); | |
8790 | |
8791 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8792 SWIG_fail_ptr("Player_uAccuracy_set",1,SWIGTYPE_p_Player); | |
8793 } | |
8794 | |
8795 | |
8796 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_unsigned___int16,0))){ | |
8797 SWIG_fail_ptr("Player_uAccuracy_set",2,SWIGTYPE_p_unsigned___int16); | |
8798 } | |
8799 arg2 = *argp2; | |
8800 | |
8801 if (arg1) (arg1)->uAccuracy = arg2; | |
8802 | |
8803 return SWIG_arg; | |
8804 | |
8805 if(0) SWIG_fail; | |
8806 | |
8807 fail: | |
8808 lua_error(L); | |
8809 return SWIG_arg; | |
8810 } | |
8811 | |
8812 | |
8813 static int _wrap_Player_uAccuracy_get(lua_State* L) { | |
8814 int SWIG_arg = 0; | |
8815 Player *arg1 = (Player *) 0 ; | |
8816 unsigned __int16 result; | |
8817 | |
8818 SWIG_check_num_args("Player::uAccuracy",1,1) | |
8819 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uAccuracy",1,"Player *"); | |
8820 | |
8821 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8822 SWIG_fail_ptr("Player_uAccuracy_get",1,SWIGTYPE_p_Player); | |
8823 } | |
8824 | |
8825 result = ((arg1)->uAccuracy); | |
8826 { | |
8827 unsigned __int16 * resultptr = new unsigned __int16((const unsigned __int16 &) result); | |
8828 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_unsigned___int16,1); SWIG_arg++; | |
8829 } | |
8830 return SWIG_arg; | |
8831 | |
8832 if(0) SWIG_fail; | |
8833 | |
8834 fail: | |
8835 lua_error(L); | |
8836 return SWIG_arg; | |
8837 } | |
8838 | |
8839 | |
8840 static int _wrap_Player_uAccuracyBonus_set(lua_State* L) { | |
8841 int SWIG_arg = 0; | |
8842 Player *arg1 = (Player *) 0 ; | |
8843 unsigned __int16 arg2 ; | |
8844 unsigned __int16 *argp2 ; | |
8845 | |
8846 SWIG_check_num_args("Player::uAccuracyBonus",2,2) | |
8847 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uAccuracyBonus",1,"Player *"); | |
8848 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::uAccuracyBonus",2,"unsigned __int16"); | |
8849 | |
8850 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8851 SWIG_fail_ptr("Player_uAccuracyBonus_set",1,SWIGTYPE_p_Player); | |
8852 } | |
8853 | |
8854 | |
8855 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_unsigned___int16,0))){ | |
8856 SWIG_fail_ptr("Player_uAccuracyBonus_set",2,SWIGTYPE_p_unsigned___int16); | |
8857 } | |
8858 arg2 = *argp2; | |
8859 | |
8860 if (arg1) (arg1)->uAccuracyBonus = arg2; | |
8861 | |
8862 return SWIG_arg; | |
8863 | |
8864 if(0) SWIG_fail; | |
8865 | |
8866 fail: | |
8867 lua_error(L); | |
8868 return SWIG_arg; | |
8869 } | |
8870 | |
8871 | |
8872 static int _wrap_Player_uAccuracyBonus_get(lua_State* L) { | |
8873 int SWIG_arg = 0; | |
8874 Player *arg1 = (Player *) 0 ; | |
8875 unsigned __int16 result; | |
8876 | |
8877 SWIG_check_num_args("Player::uAccuracyBonus",1,1) | |
8878 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uAccuracyBonus",1,"Player *"); | |
8879 | |
8880 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8881 SWIG_fail_ptr("Player_uAccuracyBonus_get",1,SWIGTYPE_p_Player); | |
8882 } | |
8883 | |
8884 result = ((arg1)->uAccuracyBonus); | |
8885 { | |
8886 unsigned __int16 * resultptr = new unsigned __int16((const unsigned __int16 &) result); | |
8887 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_unsigned___int16,1); SWIG_arg++; | |
8888 } | |
8889 return SWIG_arg; | |
8890 | |
8891 if(0) SWIG_fail; | |
8892 | |
8893 fail: | |
8894 lua_error(L); | |
8895 return SWIG_arg; | |
8896 } | |
8897 | |
8898 | |
8899 static int _wrap_Player_uLuck_set(lua_State* L) { | |
8900 int SWIG_arg = 0; | |
8901 Player *arg1 = (Player *) 0 ; | |
8902 unsigned __int16 arg2 ; | |
8903 unsigned __int16 *argp2 ; | |
8904 | |
8905 SWIG_check_num_args("Player::uLuck",2,2) | |
8906 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uLuck",1,"Player *"); | |
8907 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::uLuck",2,"unsigned __int16"); | |
8908 | |
8909 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8910 SWIG_fail_ptr("Player_uLuck_set",1,SWIGTYPE_p_Player); | |
8911 } | |
8912 | |
8913 | |
8914 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_unsigned___int16,0))){ | |
8915 SWIG_fail_ptr("Player_uLuck_set",2,SWIGTYPE_p_unsigned___int16); | |
8916 } | |
8917 arg2 = *argp2; | |
8918 | |
8919 if (arg1) (arg1)->uLuck = arg2; | |
8920 | |
8921 return SWIG_arg; | |
8922 | |
8923 if(0) SWIG_fail; | |
8924 | |
8925 fail: | |
8926 lua_error(L); | |
8927 return SWIG_arg; | |
8928 } | |
8929 | |
8930 | |
8931 static int _wrap_Player_uLuck_get(lua_State* L) { | |
8932 int SWIG_arg = 0; | |
8933 Player *arg1 = (Player *) 0 ; | |
8934 unsigned __int16 result; | |
8935 | |
8936 SWIG_check_num_args("Player::uLuck",1,1) | |
8937 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uLuck",1,"Player *"); | |
8938 | |
8939 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8940 SWIG_fail_ptr("Player_uLuck_get",1,SWIGTYPE_p_Player); | |
8941 } | |
8942 | |
8943 result = ((arg1)->uLuck); | |
8944 { | |
8945 unsigned __int16 * resultptr = new unsigned __int16((const unsigned __int16 &) result); | |
8946 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_unsigned___int16,1); SWIG_arg++; | |
8947 } | |
8948 return SWIG_arg; | |
8949 | |
8950 if(0) SWIG_fail; | |
8951 | |
8952 fail: | |
8953 lua_error(L); | |
8954 return SWIG_arg; | |
8955 } | |
8956 | |
8957 | |
8958 static int _wrap_Player_uLuckBonus_set(lua_State* L) { | |
8959 int SWIG_arg = 0; | |
8960 Player *arg1 = (Player *) 0 ; | |
8961 unsigned __int16 arg2 ; | |
8962 unsigned __int16 *argp2 ; | |
8963 | |
8964 SWIG_check_num_args("Player::uLuckBonus",2,2) | |
8965 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uLuckBonus",1,"Player *"); | |
8966 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::uLuckBonus",2,"unsigned __int16"); | |
8967 | |
8968 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8969 SWIG_fail_ptr("Player_uLuckBonus_set",1,SWIGTYPE_p_Player); | |
8970 } | |
8971 | |
8972 | |
8973 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_unsigned___int16,0))){ | |
8974 SWIG_fail_ptr("Player_uLuckBonus_set",2,SWIGTYPE_p_unsigned___int16); | |
8975 } | |
8976 arg2 = *argp2; | |
8977 | |
8978 if (arg1) (arg1)->uLuckBonus = arg2; | |
8979 | |
8980 return SWIG_arg; | |
8981 | |
8982 if(0) SWIG_fail; | |
8983 | |
8984 fail: | |
8985 lua_error(L); | |
8986 return SWIG_arg; | |
8987 } | |
8988 | |
8989 | |
8990 static int _wrap_Player_uLuckBonus_get(lua_State* L) { | |
8991 int SWIG_arg = 0; | |
8992 Player *arg1 = (Player *) 0 ; | |
8993 unsigned __int16 result; | |
8994 | |
8995 SWIG_check_num_args("Player::uLuckBonus",1,1) | |
8996 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uLuckBonus",1,"Player *"); | |
8997 | |
8998 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
8999 SWIG_fail_ptr("Player_uLuckBonus_get",1,SWIGTYPE_p_Player); | |
9000 } | |
9001 | |
9002 result = ((arg1)->uLuckBonus); | |
9003 { | |
9004 unsigned __int16 * resultptr = new unsigned __int16((const unsigned __int16 &) result); | |
9005 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_unsigned___int16,1); SWIG_arg++; | |
9006 } | |
9007 return SWIG_arg; | |
9008 | |
9009 if(0) SWIG_fail; | |
9010 | |
9011 fail: | |
9012 lua_error(L); | |
9013 return SWIG_arg; | |
9014 } | |
9015 | |
9016 | |
9017 static int _wrap_Player_sACModifier_set(lua_State* L) { | |
9018 int SWIG_arg = 0; | |
9019 Player *arg1 = (Player *) 0 ; | |
9020 __int16 arg2 ; | |
9021 __int16 *argp2 ; | |
9022 | |
9023 SWIG_check_num_args("Player::sACModifier",2,2) | |
9024 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sACModifier",1,"Player *"); | |
9025 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::sACModifier",2,"__int16"); | |
9026 | |
9027 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9028 SWIG_fail_ptr("Player_sACModifier_set",1,SWIGTYPE_p_Player); | |
9029 } | |
9030 | |
9031 | |
9032 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
9033 SWIG_fail_ptr("Player_sACModifier_set",2,SWIGTYPE_p___int16); | |
9034 } | |
9035 arg2 = *argp2; | |
9036 | |
9037 if (arg1) (arg1)->sACModifier = arg2; | |
9038 | |
9039 return SWIG_arg; | |
9040 | |
9041 if(0) SWIG_fail; | |
9042 | |
9043 fail: | |
9044 lua_error(L); | |
9045 return SWIG_arg; | |
9046 } | |
9047 | |
9048 | |
9049 static int _wrap_Player_sACModifier_get(lua_State* L) { | |
9050 int SWIG_arg = 0; | |
9051 Player *arg1 = (Player *) 0 ; | |
9052 __int16 result; | |
9053 | |
9054 SWIG_check_num_args("Player::sACModifier",1,1) | |
9055 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sACModifier",1,"Player *"); | |
9056 | |
9057 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9058 SWIG_fail_ptr("Player_sACModifier_get",1,SWIGTYPE_p_Player); | |
9059 } | |
9060 | |
9061 result = ((arg1)->sACModifier); | |
9062 { | |
9063 __int16 * resultptr = new __int16((const __int16 &) result); | |
9064 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
9065 } | |
9066 return SWIG_arg; | |
9067 | |
9068 if(0) SWIG_fail; | |
9069 | |
9070 fail: | |
9071 lua_error(L); | |
9072 return SWIG_arg; | |
9073 } | |
9074 | |
9075 | |
9076 static int _wrap_Player_uLevel_set(lua_State* L) { | |
9077 int SWIG_arg = 0; | |
9078 Player *arg1 = (Player *) 0 ; | |
9079 unsigned __int16 arg2 ; | |
9080 unsigned __int16 *argp2 ; | |
9081 | |
9082 SWIG_check_num_args("Player::uLevel",2,2) | |
9083 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uLevel",1,"Player *"); | |
9084 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::uLevel",2,"unsigned __int16"); | |
9085 | |
9086 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9087 SWIG_fail_ptr("Player_uLevel_set",1,SWIGTYPE_p_Player); | |
9088 } | |
9089 | |
9090 | |
9091 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_unsigned___int16,0))){ | |
9092 SWIG_fail_ptr("Player_uLevel_set",2,SWIGTYPE_p_unsigned___int16); | |
9093 } | |
9094 arg2 = *argp2; | |
9095 | |
9096 if (arg1) (arg1)->uLevel = arg2; | |
9097 | |
9098 return SWIG_arg; | |
9099 | |
9100 if(0) SWIG_fail; | |
9101 | |
9102 fail: | |
9103 lua_error(L); | |
9104 return SWIG_arg; | |
9105 } | |
9106 | |
9107 | |
9108 static int _wrap_Player_uLevel_get(lua_State* L) { | |
9109 int SWIG_arg = 0; | |
9110 Player *arg1 = (Player *) 0 ; | |
9111 unsigned __int16 result; | |
9112 | |
9113 SWIG_check_num_args("Player::uLevel",1,1) | |
9114 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uLevel",1,"Player *"); | |
9115 | |
9116 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9117 SWIG_fail_ptr("Player_uLevel_get",1,SWIGTYPE_p_Player); | |
9118 } | |
9119 | |
9120 result = ((arg1)->uLevel); | |
9121 { | |
9122 unsigned __int16 * resultptr = new unsigned __int16((const unsigned __int16 &) result); | |
9123 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_unsigned___int16,1); SWIG_arg++; | |
9124 } | |
9125 return SWIG_arg; | |
9126 | |
9127 if(0) SWIG_fail; | |
9128 | |
9129 fail: | |
9130 lua_error(L); | |
9131 return SWIG_arg; | |
9132 } | |
9133 | |
9134 | |
9135 static int _wrap_Player_sLevelModifier_set(lua_State* L) { | |
9136 int SWIG_arg = 0; | |
9137 Player *arg1 = (Player *) 0 ; | |
9138 __int16 arg2 ; | |
9139 __int16 *argp2 ; | |
9140 | |
9141 SWIG_check_num_args("Player::sLevelModifier",2,2) | |
9142 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sLevelModifier",1,"Player *"); | |
9143 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::sLevelModifier",2,"__int16"); | |
9144 | |
9145 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9146 SWIG_fail_ptr("Player_sLevelModifier_set",1,SWIGTYPE_p_Player); | |
9147 } | |
9148 | |
9149 | |
9150 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
9151 SWIG_fail_ptr("Player_sLevelModifier_set",2,SWIGTYPE_p___int16); | |
9152 } | |
9153 arg2 = *argp2; | |
9154 | |
9155 if (arg1) (arg1)->sLevelModifier = arg2; | |
9156 | |
9157 return SWIG_arg; | |
9158 | |
9159 if(0) SWIG_fail; | |
9160 | |
9161 fail: | |
9162 lua_error(L); | |
9163 return SWIG_arg; | |
9164 } | |
9165 | |
9166 | |
9167 static int _wrap_Player_sLevelModifier_get(lua_State* L) { | |
9168 int SWIG_arg = 0; | |
9169 Player *arg1 = (Player *) 0 ; | |
9170 __int16 result; | |
9171 | |
9172 SWIG_check_num_args("Player::sLevelModifier",1,1) | |
9173 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sLevelModifier",1,"Player *"); | |
9174 | |
9175 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9176 SWIG_fail_ptr("Player_sLevelModifier_get",1,SWIGTYPE_p_Player); | |
9177 } | |
9178 | |
9179 result = ((arg1)->sLevelModifier); | |
9180 { | |
9181 __int16 * resultptr = new __int16((const __int16 &) result); | |
9182 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
9183 } | |
9184 return SWIG_arg; | |
9185 | |
9186 if(0) SWIG_fail; | |
9187 | |
9188 fail: | |
9189 lua_error(L); | |
9190 return SWIG_arg; | |
9191 } | |
9192 | |
9193 | |
9194 static int _wrap_Player_sAgeModifier_set(lua_State* L) { | |
9195 int SWIG_arg = 0; | |
9196 Player *arg1 = (Player *) 0 ; | |
9197 __int16 arg2 ; | |
9198 __int16 *argp2 ; | |
9199 | |
9200 SWIG_check_num_args("Player::sAgeModifier",2,2) | |
9201 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sAgeModifier",1,"Player *"); | |
9202 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::sAgeModifier",2,"__int16"); | |
9203 | |
9204 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9205 SWIG_fail_ptr("Player_sAgeModifier_set",1,SWIGTYPE_p_Player); | |
9206 } | |
9207 | |
9208 | |
9209 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
9210 SWIG_fail_ptr("Player_sAgeModifier_set",2,SWIGTYPE_p___int16); | |
9211 } | |
9212 arg2 = *argp2; | |
9213 | |
9214 if (arg1) (arg1)->sAgeModifier = arg2; | |
9215 | |
9216 return SWIG_arg; | |
9217 | |
9218 if(0) SWIG_fail; | |
9219 | |
9220 fail: | |
9221 lua_error(L); | |
9222 return SWIG_arg; | |
9223 } | |
9224 | |
9225 | |
9226 static int _wrap_Player_sAgeModifier_get(lua_State* L) { | |
9227 int SWIG_arg = 0; | |
9228 Player *arg1 = (Player *) 0 ; | |
9229 __int16 result; | |
9230 | |
9231 SWIG_check_num_args("Player::sAgeModifier",1,1) | |
9232 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sAgeModifier",1,"Player *"); | |
9233 | |
9234 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9235 SWIG_fail_ptr("Player_sAgeModifier_get",1,SWIGTYPE_p_Player); | |
9236 } | |
9237 | |
9238 result = ((arg1)->sAgeModifier); | |
9239 { | |
9240 __int16 * resultptr = new __int16((const __int16 &) result); | |
9241 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
9242 } | |
9243 return SWIG_arg; | |
9244 | |
9245 if(0) SWIG_fail; | |
9246 | |
9247 fail: | |
9248 lua_error(L); | |
9249 return SWIG_arg; | |
9250 } | |
9251 | |
9252 | |
9253 static int _wrap_Player_field_E0_set(lua_State* L) { | |
9254 int SWIG_arg = 0; | |
9255 Player *arg1 = (Player *) 0 ; | |
9256 int arg2 ; | |
9257 | |
9258 SWIG_check_num_args("Player::field_E0",2,2) | |
9259 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_E0",1,"Player *"); | |
9260 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::field_E0",2,"int"); | |
9261 | |
9262 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9263 SWIG_fail_ptr("Player_field_E0_set",1,SWIGTYPE_p_Player); | |
9264 } | |
9265 | |
9266 arg2 = (int)lua_tonumber(L, 2); | |
9267 if (arg1) (arg1)->field_E0 = arg2; | |
9268 | |
9269 return SWIG_arg; | |
9270 | |
9271 if(0) SWIG_fail; | |
9272 | |
9273 fail: | |
9274 lua_error(L); | |
9275 return SWIG_arg; | |
9276 } | |
9277 | |
9278 | |
9279 static int _wrap_Player_field_E0_get(lua_State* L) { | |
9280 int SWIG_arg = 0; | |
9281 Player *arg1 = (Player *) 0 ; | |
9282 int result; | |
9283 | |
9284 SWIG_check_num_args("Player::field_E0",1,1) | |
9285 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_E0",1,"Player *"); | |
9286 | |
9287 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9288 SWIG_fail_ptr("Player_field_E0_get",1,SWIGTYPE_p_Player); | |
9289 } | |
9290 | |
9291 result = (int) ((arg1)->field_E0); | |
9292 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
9293 return SWIG_arg; | |
9294 | |
9295 if(0) SWIG_fail; | |
9296 | |
9297 fail: | |
9298 lua_error(L); | |
9299 return SWIG_arg; | |
9300 } | |
9301 | |
9302 | |
9303 static int _wrap_Player_field_E4_set(lua_State* L) { | |
9304 int SWIG_arg = 0; | |
9305 Player *arg1 = (Player *) 0 ; | |
9306 int arg2 ; | |
9307 | |
9308 SWIG_check_num_args("Player::field_E4",2,2) | |
9309 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_E4",1,"Player *"); | |
9310 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::field_E4",2,"int"); | |
9311 | |
9312 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9313 SWIG_fail_ptr("Player_field_E4_set",1,SWIGTYPE_p_Player); | |
9314 } | |
9315 | |
9316 arg2 = (int)lua_tonumber(L, 2); | |
9317 if (arg1) (arg1)->field_E4 = arg2; | |
9318 | |
9319 return SWIG_arg; | |
9320 | |
9321 if(0) SWIG_fail; | |
9322 | |
9323 fail: | |
9324 lua_error(L); | |
9325 return SWIG_arg; | |
9326 } | |
9327 | |
9328 | |
9329 static int _wrap_Player_field_E4_get(lua_State* L) { | |
9330 int SWIG_arg = 0; | |
9331 Player *arg1 = (Player *) 0 ; | |
9332 int result; | |
9333 | |
9334 SWIG_check_num_args("Player::field_E4",1,1) | |
9335 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_E4",1,"Player *"); | |
9336 | |
9337 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9338 SWIG_fail_ptr("Player_field_E4_get",1,SWIGTYPE_p_Player); | |
9339 } | |
9340 | |
9341 result = (int) ((arg1)->field_E4); | |
9342 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
9343 return SWIG_arg; | |
9344 | |
9345 if(0) SWIG_fail; | |
9346 | |
9347 fail: | |
9348 lua_error(L); | |
9349 return SWIG_arg; | |
9350 } | |
9351 | |
9352 | |
9353 static int _wrap_Player_field_E8_set(lua_State* L) { | |
9354 int SWIG_arg = 0; | |
9355 Player *arg1 = (Player *) 0 ; | |
9356 int arg2 ; | |
9357 | |
9358 SWIG_check_num_args("Player::field_E8",2,2) | |
9359 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_E8",1,"Player *"); | |
9360 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::field_E8",2,"int"); | |
9361 | |
9362 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9363 SWIG_fail_ptr("Player_field_E8_set",1,SWIGTYPE_p_Player); | |
9364 } | |
9365 | |
9366 arg2 = (int)lua_tonumber(L, 2); | |
9367 if (arg1) (arg1)->field_E8 = arg2; | |
9368 | |
9369 return SWIG_arg; | |
9370 | |
9371 if(0) SWIG_fail; | |
9372 | |
9373 fail: | |
9374 lua_error(L); | |
9375 return SWIG_arg; | |
9376 } | |
9377 | |
9378 | |
9379 static int _wrap_Player_field_E8_get(lua_State* L) { | |
9380 int SWIG_arg = 0; | |
9381 Player *arg1 = (Player *) 0 ; | |
9382 int result; | |
9383 | |
9384 SWIG_check_num_args("Player::field_E8",1,1) | |
9385 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_E8",1,"Player *"); | |
9386 | |
9387 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9388 SWIG_fail_ptr("Player_field_E8_get",1,SWIGTYPE_p_Player); | |
9389 } | |
9390 | |
9391 result = (int) ((arg1)->field_E8); | |
9392 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
9393 return SWIG_arg; | |
9394 | |
9395 if(0) SWIG_fail; | |
9396 | |
9397 fail: | |
9398 lua_error(L); | |
9399 return SWIG_arg; | |
9400 } | |
9401 | |
9402 | |
9403 static int _wrap_Player_field_EC_set(lua_State* L) { | |
9404 int SWIG_arg = 0; | |
9405 Player *arg1 = (Player *) 0 ; | |
9406 int arg2 ; | |
9407 | |
9408 SWIG_check_num_args("Player::field_EC",2,2) | |
9409 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_EC",1,"Player *"); | |
9410 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::field_EC",2,"int"); | |
9411 | |
9412 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9413 SWIG_fail_ptr("Player_field_EC_set",1,SWIGTYPE_p_Player); | |
9414 } | |
9415 | |
9416 arg2 = (int)lua_tonumber(L, 2); | |
9417 if (arg1) (arg1)->field_EC = arg2; | |
9418 | |
9419 return SWIG_arg; | |
9420 | |
9421 if(0) SWIG_fail; | |
9422 | |
9423 fail: | |
9424 lua_error(L); | |
9425 return SWIG_arg; | |
9426 } | |
9427 | |
9428 | |
9429 static int _wrap_Player_field_EC_get(lua_State* L) { | |
9430 int SWIG_arg = 0; | |
9431 Player *arg1 = (Player *) 0 ; | |
9432 int result; | |
9433 | |
9434 SWIG_check_num_args("Player::field_EC",1,1) | |
9435 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_EC",1,"Player *"); | |
9436 | |
9437 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9438 SWIG_fail_ptr("Player_field_EC_get",1,SWIGTYPE_p_Player); | |
9439 } | |
9440 | |
9441 result = (int) ((arg1)->field_EC); | |
9442 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
9443 return SWIG_arg; | |
9444 | |
9445 if(0) SWIG_fail; | |
9446 | |
9447 fail: | |
9448 lua_error(L); | |
9449 return SWIG_arg; | |
9450 } | |
9451 | |
9452 | |
9453 static int _wrap_Player_field_F0_set(lua_State* L) { | |
9454 int SWIG_arg = 0; | |
9455 Player *arg1 = (Player *) 0 ; | |
9456 int arg2 ; | |
9457 | |
9458 SWIG_check_num_args("Player::field_F0",2,2) | |
9459 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_F0",1,"Player *"); | |
9460 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::field_F0",2,"int"); | |
9461 | |
9462 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9463 SWIG_fail_ptr("Player_field_F0_set",1,SWIGTYPE_p_Player); | |
9464 } | |
9465 | |
9466 arg2 = (int)lua_tonumber(L, 2); | |
9467 if (arg1) (arg1)->field_F0 = arg2; | |
9468 | |
9469 return SWIG_arg; | |
9470 | |
9471 if(0) SWIG_fail; | |
9472 | |
9473 fail: | |
9474 lua_error(L); | |
9475 return SWIG_arg; | |
9476 } | |
9477 | |
9478 | |
9479 static int _wrap_Player_field_F0_get(lua_State* L) { | |
9480 int SWIG_arg = 0; | |
9481 Player *arg1 = (Player *) 0 ; | |
9482 int result; | |
9483 | |
9484 SWIG_check_num_args("Player::field_F0",1,1) | |
9485 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_F0",1,"Player *"); | |
9486 | |
9487 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9488 SWIG_fail_ptr("Player_field_F0_get",1,SWIGTYPE_p_Player); | |
9489 } | |
9490 | |
9491 result = (int) ((arg1)->field_F0); | |
9492 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
9493 return SWIG_arg; | |
9494 | |
9495 if(0) SWIG_fail; | |
9496 | |
9497 fail: | |
9498 lua_error(L); | |
9499 return SWIG_arg; | |
9500 } | |
9501 | |
9502 | |
9503 static int _wrap_Player_field_F4_set(lua_State* L) { | |
9504 int SWIG_arg = 0; | |
9505 Player *arg1 = (Player *) 0 ; | |
9506 int arg2 ; | |
9507 | |
9508 SWIG_check_num_args("Player::field_F4",2,2) | |
9509 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_F4",1,"Player *"); | |
9510 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::field_F4",2,"int"); | |
9511 | |
9512 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9513 SWIG_fail_ptr("Player_field_F4_set",1,SWIGTYPE_p_Player); | |
9514 } | |
9515 | |
9516 arg2 = (int)lua_tonumber(L, 2); | |
9517 if (arg1) (arg1)->field_F4 = arg2; | |
9518 | |
9519 return SWIG_arg; | |
9520 | |
9521 if(0) SWIG_fail; | |
9522 | |
9523 fail: | |
9524 lua_error(L); | |
9525 return SWIG_arg; | |
9526 } | |
9527 | |
9528 | |
9529 static int _wrap_Player_field_F4_get(lua_State* L) { | |
9530 int SWIG_arg = 0; | |
9531 Player *arg1 = (Player *) 0 ; | |
9532 int result; | |
9533 | |
9534 SWIG_check_num_args("Player::field_F4",1,1) | |
9535 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_F4",1,"Player *"); | |
9536 | |
9537 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9538 SWIG_fail_ptr("Player_field_F4_get",1,SWIGTYPE_p_Player); | |
9539 } | |
9540 | |
9541 result = (int) ((arg1)->field_F4); | |
9542 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
9543 return SWIG_arg; | |
9544 | |
9545 if(0) SWIG_fail; | |
9546 | |
9547 fail: | |
9548 lua_error(L); | |
9549 return SWIG_arg; | |
9550 } | |
9551 | |
9552 | |
9553 static int _wrap_Player_field_F8_set(lua_State* L) { | |
9554 int SWIG_arg = 0; | |
9555 Player *arg1 = (Player *) 0 ; | |
9556 int arg2 ; | |
9557 | |
9558 SWIG_check_num_args("Player::field_F8",2,2) | |
9559 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_F8",1,"Player *"); | |
9560 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::field_F8",2,"int"); | |
9561 | |
9562 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9563 SWIG_fail_ptr("Player_field_F8_set",1,SWIGTYPE_p_Player); | |
9564 } | |
9565 | |
9566 arg2 = (int)lua_tonumber(L, 2); | |
9567 if (arg1) (arg1)->field_F8 = arg2; | |
9568 | |
9569 return SWIG_arg; | |
9570 | |
9571 if(0) SWIG_fail; | |
9572 | |
9573 fail: | |
9574 lua_error(L); | |
9575 return SWIG_arg; | |
9576 } | |
9577 | |
9578 | |
9579 static int _wrap_Player_field_F8_get(lua_State* L) { | |
9580 int SWIG_arg = 0; | |
9581 Player *arg1 = (Player *) 0 ; | |
9582 int result; | |
9583 | |
9584 SWIG_check_num_args("Player::field_F8",1,1) | |
9585 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_F8",1,"Player *"); | |
9586 | |
9587 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9588 SWIG_fail_ptr("Player_field_F8_get",1,SWIGTYPE_p_Player); | |
9589 } | |
9590 | |
9591 result = (int) ((arg1)->field_F8); | |
9592 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
9593 return SWIG_arg; | |
9594 | |
9595 if(0) SWIG_fail; | |
9596 | |
9597 fail: | |
9598 lua_error(L); | |
9599 return SWIG_arg; | |
9600 } | |
9601 | |
9602 | |
9603 static int _wrap_Player_field_FC_set(lua_State* L) { | |
9604 int SWIG_arg = 0; | |
9605 Player *arg1 = (Player *) 0 ; | |
9606 int arg2 ; | |
9607 | |
9608 SWIG_check_num_args("Player::field_FC",2,2) | |
9609 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_FC",1,"Player *"); | |
9610 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::field_FC",2,"int"); | |
9611 | |
9612 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9613 SWIG_fail_ptr("Player_field_FC_set",1,SWIGTYPE_p_Player); | |
9614 } | |
9615 | |
9616 arg2 = (int)lua_tonumber(L, 2); | |
9617 if (arg1) (arg1)->field_FC = arg2; | |
9618 | |
9619 return SWIG_arg; | |
9620 | |
9621 if(0) SWIG_fail; | |
9622 | |
9623 fail: | |
9624 lua_error(L); | |
9625 return SWIG_arg; | |
9626 } | |
9627 | |
9628 | |
9629 static int _wrap_Player_field_FC_get(lua_State* L) { | |
9630 int SWIG_arg = 0; | |
9631 Player *arg1 = (Player *) 0 ; | |
9632 int result; | |
9633 | |
9634 SWIG_check_num_args("Player::field_FC",1,1) | |
9635 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_FC",1,"Player *"); | |
9636 | |
9637 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9638 SWIG_fail_ptr("Player_field_FC_get",1,SWIGTYPE_p_Player); | |
9639 } | |
9640 | |
9641 result = (int) ((arg1)->field_FC); | |
9642 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
9643 return SWIG_arg; | |
9644 | |
9645 if(0) SWIG_fail; | |
9646 | |
9647 fail: | |
9648 lua_error(L); | |
9649 return SWIG_arg; | |
9650 } | |
9651 | |
9652 | |
9653 static int _wrap_Player_field_100_set(lua_State* L) { | |
9654 int SWIG_arg = 0; | |
9655 Player *arg1 = (Player *) 0 ; | |
9656 int arg2 ; | |
9657 | |
9658 SWIG_check_num_args("Player::field_100",2,2) | |
9659 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_100",1,"Player *"); | |
9660 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::field_100",2,"int"); | |
9661 | |
9662 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9663 SWIG_fail_ptr("Player_field_100_set",1,SWIGTYPE_p_Player); | |
9664 } | |
9665 | |
9666 arg2 = (int)lua_tonumber(L, 2); | |
9667 if (arg1) (arg1)->field_100 = arg2; | |
9668 | |
9669 return SWIG_arg; | |
9670 | |
9671 if(0) SWIG_fail; | |
9672 | |
9673 fail: | |
9674 lua_error(L); | |
9675 return SWIG_arg; | |
9676 } | |
9677 | |
9678 | |
9679 static int _wrap_Player_field_100_get(lua_State* L) { | |
9680 int SWIG_arg = 0; | |
9681 Player *arg1 = (Player *) 0 ; | |
9682 int result; | |
9683 | |
9684 SWIG_check_num_args("Player::field_100",1,1) | |
9685 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_100",1,"Player *"); | |
9686 | |
9687 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9688 SWIG_fail_ptr("Player_field_100_get",1,SWIGTYPE_p_Player); | |
9689 } | |
9690 | |
9691 result = (int) ((arg1)->field_100); | |
9692 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
9693 return SWIG_arg; | |
9694 | |
9695 if(0) SWIG_fail; | |
9696 | |
9697 fail: | |
9698 lua_error(L); | |
9699 return SWIG_arg; | |
9700 } | |
9701 | |
9702 | |
9703 static int _wrap_Player_field_104_set(lua_State* L) { | |
9704 int SWIG_arg = 0; | |
9705 Player *arg1 = (Player *) 0 ; | |
9706 int arg2 ; | |
9707 | |
9708 SWIG_check_num_args("Player::field_104",2,2) | |
9709 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_104",1,"Player *"); | |
9710 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::field_104",2,"int"); | |
9711 | |
9712 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9713 SWIG_fail_ptr("Player_field_104_set",1,SWIGTYPE_p_Player); | |
9714 } | |
9715 | |
9716 arg2 = (int)lua_tonumber(L, 2); | |
9717 if (arg1) (arg1)->field_104 = arg2; | |
9718 | |
9719 return SWIG_arg; | |
9720 | |
9721 if(0) SWIG_fail; | |
9722 | |
9723 fail: | |
9724 lua_error(L); | |
9725 return SWIG_arg; | |
9726 } | |
9727 | |
9728 | |
9729 static int _wrap_Player_field_104_get(lua_State* L) { | |
9730 int SWIG_arg = 0; | |
9731 Player *arg1 = (Player *) 0 ; | |
9732 int result; | |
9733 | |
9734 SWIG_check_num_args("Player::field_104",1,1) | |
9735 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_104",1,"Player *"); | |
9736 | |
9737 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9738 SWIG_fail_ptr("Player_field_104_get",1,SWIGTYPE_p_Player); | |
9739 } | |
9740 | |
9741 result = (int) ((arg1)->field_104); | |
9742 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
9743 return SWIG_arg; | |
9744 | |
9745 if(0) SWIG_fail; | |
9746 | |
9747 fail: | |
9748 lua_error(L); | |
9749 return SWIG_arg; | |
9750 } | |
9751 | |
9752 | |
9753 static int _wrap_Player__achieved_awards_bits_set(lua_State* L) { | |
9754 int SWIG_arg = 0; | |
9755 Player *arg1 = (Player *) 0 ; | |
9756 unsigned char *arg2 ; | |
9757 | |
9758 SWIG_check_num_args("Player::_achieved_awards_bits",2,2) | |
9759 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::_achieved_awards_bits",1,"Player *"); | |
9760 if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("Player::_achieved_awards_bits",2,"unsigned char [64]"); | |
9761 | |
9762 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9763 SWIG_fail_ptr("Player__achieved_awards_bits_set",1,SWIGTYPE_p_Player); | |
9764 } | |
9765 | |
9766 | |
9767 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_unsigned_char,0))){ | |
9768 SWIG_fail_ptr("Player__achieved_awards_bits_set",2,SWIGTYPE_p_unsigned_char); | |
9769 } | |
9770 | |
9771 { | |
9772 size_t ii; | |
9773 unsigned char *b = (unsigned char *) arg1->_achieved_awards_bits; | |
9774 for (ii = 0; ii < (size_t)64; ii++) b[ii] = *((unsigned char *) arg2 + ii); | |
9775 } | |
9776 | |
9777 return SWIG_arg; | |
9778 | |
9779 if(0) SWIG_fail; | |
9780 | |
9781 fail: | |
9782 lua_error(L); | |
9783 return SWIG_arg; | |
9784 } | |
9785 | |
9786 | |
9787 static int _wrap_Player__achieved_awards_bits_get(lua_State* L) { | |
9788 int SWIG_arg = 0; | |
9789 Player *arg1 = (Player *) 0 ; | |
9790 unsigned char *result = 0 ; | |
9791 | |
9792 SWIG_check_num_args("Player::_achieved_awards_bits",1,1) | |
9793 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::_achieved_awards_bits",1,"Player *"); | |
9794 | |
9795 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9796 SWIG_fail_ptr("Player__achieved_awards_bits_get",1,SWIGTYPE_p_Player); | |
9797 } | |
9798 | |
9799 result = (unsigned char *)(unsigned char *) ((arg1)->_achieved_awards_bits); | |
9800 SWIG_NewPointerObj(L,result,SWIGTYPE_p_unsigned_char,0); SWIG_arg++; | |
9801 return SWIG_arg; | |
9802 | |
9803 if(0) SWIG_fail; | |
9804 | |
9805 fail: | |
9806 lua_error(L); | |
9807 return SWIG_arg; | |
9808 } | |
9809 | |
9810 | |
9811 static int _wrap_Player_spellbook_set(lua_State* L) { | |
9812 int SWIG_arg = 0; | |
9813 Player *arg1 = (Player *) 0 ; | |
9814 PlayerSpells *arg2 = (PlayerSpells *) 0 ; | |
9815 | |
9816 SWIG_check_num_args("Player::spellbook",2,2) | |
9817 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::spellbook",1,"Player *"); | |
9818 if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("Player::spellbook",2,"PlayerSpells *"); | |
9819 | |
9820 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9821 SWIG_fail_ptr("Player_spellbook_set",1,SWIGTYPE_p_Player); | |
9822 } | |
9823 | |
9824 | |
9825 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_PlayerSpells,0))){ | |
9826 SWIG_fail_ptr("Player_spellbook_set",2,SWIGTYPE_p_PlayerSpells); | |
9827 } | |
9828 | |
9829 if (arg1) (arg1)->spellbook = *arg2; | |
9830 | |
9831 return SWIG_arg; | |
9832 | |
9833 if(0) SWIG_fail; | |
9834 | |
9835 fail: | |
9836 lua_error(L); | |
9837 return SWIG_arg; | |
9838 } | |
9839 | |
9840 | |
9841 static int _wrap_Player_spellbook_get(lua_State* L) { | |
9842 int SWIG_arg = 0; | |
9843 Player *arg1 = (Player *) 0 ; | |
9844 PlayerSpells *result = 0 ; | |
9845 | |
9846 SWIG_check_num_args("Player::spellbook",1,1) | |
9847 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::spellbook",1,"Player *"); | |
9848 | |
9849 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9850 SWIG_fail_ptr("Player_spellbook_get",1,SWIGTYPE_p_Player); | |
9851 } | |
9852 | |
9853 result = (PlayerSpells *)& ((arg1)->spellbook); | |
9854 SWIG_NewPointerObj(L,result,SWIGTYPE_p_PlayerSpells,0); SWIG_arg++; | |
9855 return SWIG_arg; | |
9856 | |
9857 if(0) SWIG_fail; | |
9858 | |
9859 fail: | |
9860 lua_error(L); | |
9861 return SWIG_arg; | |
9862 } | |
9863 | |
9864 | |
9865 static int _wrap_Player_field__1F5_set(lua_State* L) { | |
9866 int SWIG_arg = 0; | |
9867 Player *arg1 = (Player *) 0 ; | |
9868 char *arg2 ; | |
9869 | |
9870 SWIG_check_num_args("Player::field__1F5",2,2) | |
9871 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field__1F5",1,"Player *"); | |
9872 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::field__1F5",2,"char [2]"); | |
9873 | |
9874 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9875 SWIG_fail_ptr("Player_field__1F5_set",1,SWIGTYPE_p_Player); | |
9876 } | |
9877 | |
9878 arg2 = (char *)lua_tostring(L, 2); | |
9879 { | |
9880 if(arg2) { | |
9881 strncpy((char*)arg1->field__1F5, (const char *)arg2, 2-1); | |
9882 arg1->field__1F5[2-1] = 0; | |
9883 } else { | |
9884 arg1->field__1F5[0] = 0; | |
9885 } | |
9886 } | |
9887 | |
9888 return SWIG_arg; | |
9889 | |
9890 if(0) SWIG_fail; | |
9891 | |
9892 fail: | |
9893 lua_error(L); | |
9894 return SWIG_arg; | |
9895 } | |
9896 | |
9897 | |
9898 static int _wrap_Player_field__1F5_get(lua_State* L) { | |
9899 int SWIG_arg = 0; | |
9900 Player *arg1 = (Player *) 0 ; | |
9901 char *result = 0 ; | |
9902 | |
9903 SWIG_check_num_args("Player::field__1F5",1,1) | |
9904 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field__1F5",1,"Player *"); | |
9905 | |
9906 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9907 SWIG_fail_ptr("Player_field__1F5_get",1,SWIGTYPE_p_Player); | |
9908 } | |
9909 | |
9910 result = (char *)(char *) ((arg1)->field__1F5); | |
9911 lua_pushstring(L,(const char *)result); SWIG_arg++; | |
9912 return SWIG_arg; | |
9913 | |
9914 if(0) SWIG_fail; | |
9915 | |
9916 fail: | |
9917 lua_error(L); | |
9918 return SWIG_arg; | |
9919 } | |
9920 | |
9921 | |
9922 static int _wrap_Player_pure_luck_used_set(lua_State* L) { | |
9923 int SWIG_arg = 0; | |
9924 Player *arg1 = (Player *) 0 ; | |
9925 int arg2 ; | |
9926 | |
9927 SWIG_check_num_args("Player::pure_luck_used",2,2) | |
9928 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pure_luck_used",1,"Player *"); | |
9929 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::pure_luck_used",2,"int"); | |
9930 | |
9931 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9932 SWIG_fail_ptr("Player_pure_luck_used_set",1,SWIGTYPE_p_Player); | |
9933 } | |
9934 | |
9935 arg2 = (int)lua_tonumber(L, 2); | |
9936 if (arg1) (arg1)->pure_luck_used = arg2; | |
9937 | |
9938 return SWIG_arg; | |
9939 | |
9940 if(0) SWIG_fail; | |
9941 | |
9942 fail: | |
9943 lua_error(L); | |
9944 return SWIG_arg; | |
9945 } | |
9946 | |
9947 | |
9948 static int _wrap_Player_pure_luck_used_get(lua_State* L) { | |
9949 int SWIG_arg = 0; | |
9950 Player *arg1 = (Player *) 0 ; | |
9951 int result; | |
9952 | |
9953 SWIG_check_num_args("Player::pure_luck_used",1,1) | |
9954 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pure_luck_used",1,"Player *"); | |
9955 | |
9956 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9957 SWIG_fail_ptr("Player_pure_luck_used_get",1,SWIGTYPE_p_Player); | |
9958 } | |
9959 | |
9960 result = (int) ((arg1)->pure_luck_used); | |
9961 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
9962 return SWIG_arg; | |
9963 | |
9964 if(0) SWIG_fail; | |
9965 | |
9966 fail: | |
9967 lua_error(L); | |
9968 return SWIG_arg; | |
9969 } | |
9970 | |
9971 | |
9972 static int _wrap_Player_pure_speed_used_set(lua_State* L) { | |
9973 int SWIG_arg = 0; | |
9974 Player *arg1 = (Player *) 0 ; | |
9975 int arg2 ; | |
9976 | |
9977 SWIG_check_num_args("Player::pure_speed_used",2,2) | |
9978 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pure_speed_used",1,"Player *"); | |
9979 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::pure_speed_used",2,"int"); | |
9980 | |
9981 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
9982 SWIG_fail_ptr("Player_pure_speed_used_set",1,SWIGTYPE_p_Player); | |
9983 } | |
9984 | |
9985 arg2 = (int)lua_tonumber(L, 2); | |
9986 if (arg1) (arg1)->pure_speed_used = arg2; | |
9987 | |
9988 return SWIG_arg; | |
9989 | |
9990 if(0) SWIG_fail; | |
9991 | |
9992 fail: | |
9993 lua_error(L); | |
9994 return SWIG_arg; | |
9995 } | |
9996 | |
9997 | |
9998 static int _wrap_Player_pure_speed_used_get(lua_State* L) { | |
9999 int SWIG_arg = 0; | |
10000 Player *arg1 = (Player *) 0 ; | |
10001 int result; | |
10002 | |
10003 SWIG_check_num_args("Player::pure_speed_used",1,1) | |
10004 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pure_speed_used",1,"Player *"); | |
10005 | |
10006 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10007 SWIG_fail_ptr("Player_pure_speed_used_get",1,SWIGTYPE_p_Player); | |
10008 } | |
10009 | |
10010 result = (int) ((arg1)->pure_speed_used); | |
10011 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
10012 return SWIG_arg; | |
10013 | |
10014 if(0) SWIG_fail; | |
10015 | |
10016 fail: | |
10017 lua_error(L); | |
10018 return SWIG_arg; | |
10019 } | |
10020 | |
10021 | |
10022 static int _wrap_Player_pure_intellect_used_set(lua_State* L) { | |
10023 int SWIG_arg = 0; | |
10024 Player *arg1 = (Player *) 0 ; | |
10025 int arg2 ; | |
10026 | |
10027 SWIG_check_num_args("Player::pure_intellect_used",2,2) | |
10028 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pure_intellect_used",1,"Player *"); | |
10029 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::pure_intellect_used",2,"int"); | |
10030 | |
10031 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10032 SWIG_fail_ptr("Player_pure_intellect_used_set",1,SWIGTYPE_p_Player); | |
10033 } | |
10034 | |
10035 arg2 = (int)lua_tonumber(L, 2); | |
10036 if (arg1) (arg1)->pure_intellect_used = arg2; | |
10037 | |
10038 return SWIG_arg; | |
10039 | |
10040 if(0) SWIG_fail; | |
10041 | |
10042 fail: | |
10043 lua_error(L); | |
10044 return SWIG_arg; | |
10045 } | |
10046 | |
10047 | |
10048 static int _wrap_Player_pure_intellect_used_get(lua_State* L) { | |
10049 int SWIG_arg = 0; | |
10050 Player *arg1 = (Player *) 0 ; | |
10051 int result; | |
10052 | |
10053 SWIG_check_num_args("Player::pure_intellect_used",1,1) | |
10054 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pure_intellect_used",1,"Player *"); | |
10055 | |
10056 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10057 SWIG_fail_ptr("Player_pure_intellect_used_get",1,SWIGTYPE_p_Player); | |
10058 } | |
10059 | |
10060 result = (int) ((arg1)->pure_intellect_used); | |
10061 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
10062 return SWIG_arg; | |
10063 | |
10064 if(0) SWIG_fail; | |
10065 | |
10066 fail: | |
10067 lua_error(L); | |
10068 return SWIG_arg; | |
10069 } | |
10070 | |
10071 | |
10072 static int _wrap_Player_pure_endurance_used_set(lua_State* L) { | |
10073 int SWIG_arg = 0; | |
10074 Player *arg1 = (Player *) 0 ; | |
10075 int arg2 ; | |
10076 | |
10077 SWIG_check_num_args("Player::pure_endurance_used",2,2) | |
10078 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pure_endurance_used",1,"Player *"); | |
10079 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::pure_endurance_used",2,"int"); | |
10080 | |
10081 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10082 SWIG_fail_ptr("Player_pure_endurance_used_set",1,SWIGTYPE_p_Player); | |
10083 } | |
10084 | |
10085 arg2 = (int)lua_tonumber(L, 2); | |
10086 if (arg1) (arg1)->pure_endurance_used = arg2; | |
10087 | |
10088 return SWIG_arg; | |
10089 | |
10090 if(0) SWIG_fail; | |
10091 | |
10092 fail: | |
10093 lua_error(L); | |
10094 return SWIG_arg; | |
10095 } | |
10096 | |
10097 | |
10098 static int _wrap_Player_pure_endurance_used_get(lua_State* L) { | |
10099 int SWIG_arg = 0; | |
10100 Player *arg1 = (Player *) 0 ; | |
10101 int result; | |
10102 | |
10103 SWIG_check_num_args("Player::pure_endurance_used",1,1) | |
10104 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pure_endurance_used",1,"Player *"); | |
10105 | |
10106 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10107 SWIG_fail_ptr("Player_pure_endurance_used_get",1,SWIGTYPE_p_Player); | |
10108 } | |
10109 | |
10110 result = (int) ((arg1)->pure_endurance_used); | |
10111 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
10112 return SWIG_arg; | |
10113 | |
10114 if(0) SWIG_fail; | |
10115 | |
10116 fail: | |
10117 lua_error(L); | |
10118 return SWIG_arg; | |
10119 } | |
10120 | |
10121 | |
10122 static int _wrap_Player_pure_willpower_used_set(lua_State* L) { | |
10123 int SWIG_arg = 0; | |
10124 Player *arg1 = (Player *) 0 ; | |
10125 int arg2 ; | |
10126 | |
10127 SWIG_check_num_args("Player::pure_willpower_used",2,2) | |
10128 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pure_willpower_used",1,"Player *"); | |
10129 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::pure_willpower_used",2,"int"); | |
10130 | |
10131 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10132 SWIG_fail_ptr("Player_pure_willpower_used_set",1,SWIGTYPE_p_Player); | |
10133 } | |
10134 | |
10135 arg2 = (int)lua_tonumber(L, 2); | |
10136 if (arg1) (arg1)->pure_willpower_used = arg2; | |
10137 | |
10138 return SWIG_arg; | |
10139 | |
10140 if(0) SWIG_fail; | |
10141 | |
10142 fail: | |
10143 lua_error(L); | |
10144 return SWIG_arg; | |
10145 } | |
10146 | |
10147 | |
10148 static int _wrap_Player_pure_willpower_used_get(lua_State* L) { | |
10149 int SWIG_arg = 0; | |
10150 Player *arg1 = (Player *) 0 ; | |
10151 int result; | |
10152 | |
10153 SWIG_check_num_args("Player::pure_willpower_used",1,1) | |
10154 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pure_willpower_used",1,"Player *"); | |
10155 | |
10156 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10157 SWIG_fail_ptr("Player_pure_willpower_used_get",1,SWIGTYPE_p_Player); | |
10158 } | |
10159 | |
10160 result = (int) ((arg1)->pure_willpower_used); | |
10161 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
10162 return SWIG_arg; | |
10163 | |
10164 if(0) SWIG_fail; | |
10165 | |
10166 fail: | |
10167 lua_error(L); | |
10168 return SWIG_arg; | |
10169 } | |
10170 | |
10171 | |
10172 static int _wrap_Player_pure_accuracy_used_set(lua_State* L) { | |
10173 int SWIG_arg = 0; | |
10174 Player *arg1 = (Player *) 0 ; | |
10175 int arg2 ; | |
10176 | |
10177 SWIG_check_num_args("Player::pure_accuracy_used",2,2) | |
10178 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pure_accuracy_used",1,"Player *"); | |
10179 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::pure_accuracy_used",2,"int"); | |
10180 | |
10181 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10182 SWIG_fail_ptr("Player_pure_accuracy_used_set",1,SWIGTYPE_p_Player); | |
10183 } | |
10184 | |
10185 arg2 = (int)lua_tonumber(L, 2); | |
10186 if (arg1) (arg1)->pure_accuracy_used = arg2; | |
10187 | |
10188 return SWIG_arg; | |
10189 | |
10190 if(0) SWIG_fail; | |
10191 | |
10192 fail: | |
10193 lua_error(L); | |
10194 return SWIG_arg; | |
10195 } | |
10196 | |
10197 | |
10198 static int _wrap_Player_pure_accuracy_used_get(lua_State* L) { | |
10199 int SWIG_arg = 0; | |
10200 Player *arg1 = (Player *) 0 ; | |
10201 int result; | |
10202 | |
10203 SWIG_check_num_args("Player::pure_accuracy_used",1,1) | |
10204 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pure_accuracy_used",1,"Player *"); | |
10205 | |
10206 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10207 SWIG_fail_ptr("Player_pure_accuracy_used_get",1,SWIGTYPE_p_Player); | |
10208 } | |
10209 | |
10210 result = (int) ((arg1)->pure_accuracy_used); | |
10211 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
10212 return SWIG_arg; | |
10213 | |
10214 if(0) SWIG_fail; | |
10215 | |
10216 fail: | |
10217 lua_error(L); | |
10218 return SWIG_arg; | |
10219 } | |
10220 | |
10221 | |
10222 static int _wrap_Player_pure_might_used_set(lua_State* L) { | |
10223 int SWIG_arg = 0; | |
10224 Player *arg1 = (Player *) 0 ; | |
10225 int arg2 ; | |
10226 | |
10227 SWIG_check_num_args("Player::pure_might_used",2,2) | |
10228 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pure_might_used",1,"Player *"); | |
10229 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::pure_might_used",2,"int"); | |
10230 | |
10231 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10232 SWIG_fail_ptr("Player_pure_might_used_set",1,SWIGTYPE_p_Player); | |
10233 } | |
10234 | |
10235 arg2 = (int)lua_tonumber(L, 2); | |
10236 if (arg1) (arg1)->pure_might_used = arg2; | |
10237 | |
10238 return SWIG_arg; | |
10239 | |
10240 if(0) SWIG_fail; | |
10241 | |
10242 fail: | |
10243 lua_error(L); | |
10244 return SWIG_arg; | |
10245 } | |
10246 | |
10247 | |
10248 static int _wrap_Player_pure_might_used_get(lua_State* L) { | |
10249 int SWIG_arg = 0; | |
10250 Player *arg1 = (Player *) 0 ; | |
10251 int result; | |
10252 | |
10253 SWIG_check_num_args("Player::pure_might_used",1,1) | |
10254 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pure_might_used",1,"Player *"); | |
10255 | |
10256 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10257 SWIG_fail_ptr("Player_pure_might_used_get",1,SWIGTYPE_p_Player); | |
10258 } | |
10259 | |
10260 result = (int) ((arg1)->pure_might_used); | |
10261 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
10262 return SWIG_arg; | |
10263 | |
10264 if(0) SWIG_fail; | |
10265 | |
10266 fail: | |
10267 lua_error(L); | |
10268 return SWIG_arg; | |
10269 } | |
10270 | |
10271 | |
10272 static int _wrap_Player_pInventoryMatrix_set(lua_State* L) { | |
10273 int SWIG_arg = 0; | |
10274 Player *arg1 = (Player *) 0 ; | |
10275 std::array< int,126 > arg2 ; | |
10276 std::array< int,126 > *argp2 ; | |
10277 | |
10278 SWIG_check_num_args("Player::pInventoryMatrix",2,2) | |
10279 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pInventoryMatrix",1,"Player *"); | |
10280 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::pInventoryMatrix",2,"std::array< int,126 >"); | |
10281 | |
10282 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10283 SWIG_fail_ptr("Player_pInventoryMatrix_set",1,SWIGTYPE_p_Player); | |
10284 } | |
10285 | |
10286 | |
10287 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_std__arrayT_int_126_t,0))){ | |
10288 SWIG_fail_ptr("Player_pInventoryMatrix_set",2,SWIGTYPE_p_std__arrayT_int_126_t); | |
10289 } | |
10290 arg2 = *argp2; | |
10291 | |
10292 if (arg1) (arg1)->pInventoryMatrix = arg2; | |
10293 | |
10294 return SWIG_arg; | |
10295 | |
10296 if(0) SWIG_fail; | |
10297 | |
10298 fail: | |
10299 lua_error(L); | |
10300 return SWIG_arg; | |
10301 } | |
10302 | |
10303 | |
10304 static int _wrap_Player_pInventoryMatrix_get(lua_State* L) { | |
10305 int SWIG_arg = 0; | |
10306 Player *arg1 = (Player *) 0 ; | |
10307 std::array< int,126 > result; | |
10308 | |
10309 SWIG_check_num_args("Player::pInventoryMatrix",1,1) | |
10310 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pInventoryMatrix",1,"Player *"); | |
10311 | |
10312 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10313 SWIG_fail_ptr("Player_pInventoryMatrix_get",1,SWIGTYPE_p_Player); | |
10314 } | |
10315 | |
10316 result = ((arg1)->pInventoryMatrix); | |
10317 { | |
10318 std::array< int,126 > * resultptr = new std::array< int,126 >((const std::array< int,126 > &) result); | |
10319 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_std__arrayT_int_126_t,1); SWIG_arg++; | |
10320 } | |
10321 return SWIG_arg; | |
10322 | |
10323 if(0) SWIG_fail; | |
10324 | |
10325 fail: | |
10326 lua_error(L); | |
10327 return SWIG_arg; | |
10328 } | |
10329 | |
10330 | |
10331 static int _wrap_Player_sResFireBase_set(lua_State* L) { | |
10332 int SWIG_arg = 0; | |
10333 Player *arg1 = (Player *) 0 ; | |
10334 __int16 arg2 ; | |
10335 __int16 *argp2 ; | |
10336 | |
10337 SWIG_check_num_args("Player::sResFireBase",2,2) | |
10338 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResFireBase",1,"Player *"); | |
10339 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::sResFireBase",2,"__int16"); | |
10340 | |
10341 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10342 SWIG_fail_ptr("Player_sResFireBase_set",1,SWIGTYPE_p_Player); | |
10343 } | |
10344 | |
10345 | |
10346 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
10347 SWIG_fail_ptr("Player_sResFireBase_set",2,SWIGTYPE_p___int16); | |
10348 } | |
10349 arg2 = *argp2; | |
10350 | |
10351 if (arg1) (arg1)->sResFireBase = arg2; | |
10352 | |
10353 return SWIG_arg; | |
10354 | |
10355 if(0) SWIG_fail; | |
10356 | |
10357 fail: | |
10358 lua_error(L); | |
10359 return SWIG_arg; | |
10360 } | |
10361 | |
10362 | |
10363 static int _wrap_Player_sResFireBase_get(lua_State* L) { | |
10364 int SWIG_arg = 0; | |
10365 Player *arg1 = (Player *) 0 ; | |
10366 __int16 result; | |
10367 | |
10368 SWIG_check_num_args("Player::sResFireBase",1,1) | |
10369 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResFireBase",1,"Player *"); | |
10370 | |
10371 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10372 SWIG_fail_ptr("Player_sResFireBase_get",1,SWIGTYPE_p_Player); | |
10373 } | |
10374 | |
10375 result = ((arg1)->sResFireBase); | |
10376 { | |
10377 __int16 * resultptr = new __int16((const __int16 &) result); | |
10378 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
10379 } | |
10380 return SWIG_arg; | |
10381 | |
10382 if(0) SWIG_fail; | |
10383 | |
10384 fail: | |
10385 lua_error(L); | |
10386 return SWIG_arg; | |
10387 } | |
10388 | |
10389 | |
10390 static int _wrap_Player_sResAirBase_set(lua_State* L) { | |
10391 int SWIG_arg = 0; | |
10392 Player *arg1 = (Player *) 0 ; | |
10393 __int16 arg2 ; | |
10394 __int16 *argp2 ; | |
10395 | |
10396 SWIG_check_num_args("Player::sResAirBase",2,2) | |
10397 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResAirBase",1,"Player *"); | |
10398 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::sResAirBase",2,"__int16"); | |
10399 | |
10400 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10401 SWIG_fail_ptr("Player_sResAirBase_set",1,SWIGTYPE_p_Player); | |
10402 } | |
10403 | |
10404 | |
10405 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
10406 SWIG_fail_ptr("Player_sResAirBase_set",2,SWIGTYPE_p___int16); | |
10407 } | |
10408 arg2 = *argp2; | |
10409 | |
10410 if (arg1) (arg1)->sResAirBase = arg2; | |
10411 | |
10412 return SWIG_arg; | |
10413 | |
10414 if(0) SWIG_fail; | |
10415 | |
10416 fail: | |
10417 lua_error(L); | |
10418 return SWIG_arg; | |
10419 } | |
10420 | |
10421 | |
10422 static int _wrap_Player_sResAirBase_get(lua_State* L) { | |
10423 int SWIG_arg = 0; | |
10424 Player *arg1 = (Player *) 0 ; | |
10425 __int16 result; | |
10426 | |
10427 SWIG_check_num_args("Player::sResAirBase",1,1) | |
10428 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResAirBase",1,"Player *"); | |
10429 | |
10430 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10431 SWIG_fail_ptr("Player_sResAirBase_get",1,SWIGTYPE_p_Player); | |
10432 } | |
10433 | |
10434 result = ((arg1)->sResAirBase); | |
10435 { | |
10436 __int16 * resultptr = new __int16((const __int16 &) result); | |
10437 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
10438 } | |
10439 return SWIG_arg; | |
10440 | |
10441 if(0) SWIG_fail; | |
10442 | |
10443 fail: | |
10444 lua_error(L); | |
10445 return SWIG_arg; | |
10446 } | |
10447 | |
10448 | |
10449 static int _wrap_Player_sResWaterBase_set(lua_State* L) { | |
10450 int SWIG_arg = 0; | |
10451 Player *arg1 = (Player *) 0 ; | |
10452 __int16 arg2 ; | |
10453 __int16 *argp2 ; | |
10454 | |
10455 SWIG_check_num_args("Player::sResWaterBase",2,2) | |
10456 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResWaterBase",1,"Player *"); | |
10457 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::sResWaterBase",2,"__int16"); | |
10458 | |
10459 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10460 SWIG_fail_ptr("Player_sResWaterBase_set",1,SWIGTYPE_p_Player); | |
10461 } | |
10462 | |
10463 | |
10464 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
10465 SWIG_fail_ptr("Player_sResWaterBase_set",2,SWIGTYPE_p___int16); | |
10466 } | |
10467 arg2 = *argp2; | |
10468 | |
10469 if (arg1) (arg1)->sResWaterBase = arg2; | |
10470 | |
10471 return SWIG_arg; | |
10472 | |
10473 if(0) SWIG_fail; | |
10474 | |
10475 fail: | |
10476 lua_error(L); | |
10477 return SWIG_arg; | |
10478 } | |
10479 | |
10480 | |
10481 static int _wrap_Player_sResWaterBase_get(lua_State* L) { | |
10482 int SWIG_arg = 0; | |
10483 Player *arg1 = (Player *) 0 ; | |
10484 __int16 result; | |
10485 | |
10486 SWIG_check_num_args("Player::sResWaterBase",1,1) | |
10487 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResWaterBase",1,"Player *"); | |
10488 | |
10489 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10490 SWIG_fail_ptr("Player_sResWaterBase_get",1,SWIGTYPE_p_Player); | |
10491 } | |
10492 | |
10493 result = ((arg1)->sResWaterBase); | |
10494 { | |
10495 __int16 * resultptr = new __int16((const __int16 &) result); | |
10496 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
10497 } | |
10498 return SWIG_arg; | |
10499 | |
10500 if(0) SWIG_fail; | |
10501 | |
10502 fail: | |
10503 lua_error(L); | |
10504 return SWIG_arg; | |
10505 } | |
10506 | |
10507 | |
10508 static int _wrap_Player_sResEarthBase_set(lua_State* L) { | |
10509 int SWIG_arg = 0; | |
10510 Player *arg1 = (Player *) 0 ; | |
10511 __int16 arg2 ; | |
10512 __int16 *argp2 ; | |
10513 | |
10514 SWIG_check_num_args("Player::sResEarthBase",2,2) | |
10515 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResEarthBase",1,"Player *"); | |
10516 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::sResEarthBase",2,"__int16"); | |
10517 | |
10518 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10519 SWIG_fail_ptr("Player_sResEarthBase_set",1,SWIGTYPE_p_Player); | |
10520 } | |
10521 | |
10522 | |
10523 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
10524 SWIG_fail_ptr("Player_sResEarthBase_set",2,SWIGTYPE_p___int16); | |
10525 } | |
10526 arg2 = *argp2; | |
10527 | |
10528 if (arg1) (arg1)->sResEarthBase = arg2; | |
10529 | |
10530 return SWIG_arg; | |
10531 | |
10532 if(0) SWIG_fail; | |
10533 | |
10534 fail: | |
10535 lua_error(L); | |
10536 return SWIG_arg; | |
10537 } | |
10538 | |
10539 | |
10540 static int _wrap_Player_sResEarthBase_get(lua_State* L) { | |
10541 int SWIG_arg = 0; | |
10542 Player *arg1 = (Player *) 0 ; | |
10543 __int16 result; | |
10544 | |
10545 SWIG_check_num_args("Player::sResEarthBase",1,1) | |
10546 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResEarthBase",1,"Player *"); | |
10547 | |
10548 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10549 SWIG_fail_ptr("Player_sResEarthBase_get",1,SWIGTYPE_p_Player); | |
10550 } | |
10551 | |
10552 result = ((arg1)->sResEarthBase); | |
10553 { | |
10554 __int16 * resultptr = new __int16((const __int16 &) result); | |
10555 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
10556 } | |
10557 return SWIG_arg; | |
10558 | |
10559 if(0) SWIG_fail; | |
10560 | |
10561 fail: | |
10562 lua_error(L); | |
10563 return SWIG_arg; | |
10564 } | |
10565 | |
10566 | |
10567 static int _wrap_Player_field_177C_set(lua_State* L) { | |
10568 int SWIG_arg = 0; | |
10569 Player *arg1 = (Player *) 0 ; | |
10570 __int16 arg2 ; | |
10571 __int16 *argp2 ; | |
10572 | |
10573 SWIG_check_num_args("Player::field_177C",2,2) | |
10574 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_177C",1,"Player *"); | |
10575 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::field_177C",2,"__int16"); | |
10576 | |
10577 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10578 SWIG_fail_ptr("Player_field_177C_set",1,SWIGTYPE_p_Player); | |
10579 } | |
10580 | |
10581 | |
10582 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
10583 SWIG_fail_ptr("Player_field_177C_set",2,SWIGTYPE_p___int16); | |
10584 } | |
10585 arg2 = *argp2; | |
10586 | |
10587 if (arg1) (arg1)->field_177C = arg2; | |
10588 | |
10589 return SWIG_arg; | |
10590 | |
10591 if(0) SWIG_fail; | |
10592 | |
10593 fail: | |
10594 lua_error(L); | |
10595 return SWIG_arg; | |
10596 } | |
10597 | |
10598 | |
10599 static int _wrap_Player_field_177C_get(lua_State* L) { | |
10600 int SWIG_arg = 0; | |
10601 Player *arg1 = (Player *) 0 ; | |
10602 __int16 result; | |
10603 | |
10604 SWIG_check_num_args("Player::field_177C",1,1) | |
10605 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_177C",1,"Player *"); | |
10606 | |
10607 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10608 SWIG_fail_ptr("Player_field_177C_get",1,SWIGTYPE_p_Player); | |
10609 } | |
10610 | |
10611 result = ((arg1)->field_177C); | |
10612 { | |
10613 __int16 * resultptr = new __int16((const __int16 &) result); | |
10614 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
10615 } | |
10616 return SWIG_arg; | |
10617 | |
10618 if(0) SWIG_fail; | |
10619 | |
10620 fail: | |
10621 lua_error(L); | |
10622 return SWIG_arg; | |
10623 } | |
10624 | |
10625 | |
10626 static int _wrap_Player_sResMagicBase_set(lua_State* L) { | |
10627 int SWIG_arg = 0; | |
10628 Player *arg1 = (Player *) 0 ; | |
10629 __int16 arg2 ; | |
10630 __int16 *argp2 ; | |
10631 | |
10632 SWIG_check_num_args("Player::sResMagicBase",2,2) | |
10633 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResMagicBase",1,"Player *"); | |
10634 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::sResMagicBase",2,"__int16"); | |
10635 | |
10636 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10637 SWIG_fail_ptr("Player_sResMagicBase_set",1,SWIGTYPE_p_Player); | |
10638 } | |
10639 | |
10640 | |
10641 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
10642 SWIG_fail_ptr("Player_sResMagicBase_set",2,SWIGTYPE_p___int16); | |
10643 } | |
10644 arg2 = *argp2; | |
10645 | |
10646 if (arg1) (arg1)->sResMagicBase = arg2; | |
10647 | |
10648 return SWIG_arg; | |
10649 | |
10650 if(0) SWIG_fail; | |
10651 | |
10652 fail: | |
10653 lua_error(L); | |
10654 return SWIG_arg; | |
10655 } | |
10656 | |
10657 | |
10658 static int _wrap_Player_sResMagicBase_get(lua_State* L) { | |
10659 int SWIG_arg = 0; | |
10660 Player *arg1 = (Player *) 0 ; | |
10661 __int16 result; | |
10662 | |
10663 SWIG_check_num_args("Player::sResMagicBase",1,1) | |
10664 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResMagicBase",1,"Player *"); | |
10665 | |
10666 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10667 SWIG_fail_ptr("Player_sResMagicBase_get",1,SWIGTYPE_p_Player); | |
10668 } | |
10669 | |
10670 result = ((arg1)->sResMagicBase); | |
10671 { | |
10672 __int16 * resultptr = new __int16((const __int16 &) result); | |
10673 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
10674 } | |
10675 return SWIG_arg; | |
10676 | |
10677 if(0) SWIG_fail; | |
10678 | |
10679 fail: | |
10680 lua_error(L); | |
10681 return SWIG_arg; | |
10682 } | |
10683 | |
10684 | |
10685 static int _wrap_Player_sResSpiritBase_set(lua_State* L) { | |
10686 int SWIG_arg = 0; | |
10687 Player *arg1 = (Player *) 0 ; | |
10688 __int16 arg2 ; | |
10689 __int16 *argp2 ; | |
10690 | |
10691 SWIG_check_num_args("Player::sResSpiritBase",2,2) | |
10692 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResSpiritBase",1,"Player *"); | |
10693 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::sResSpiritBase",2,"__int16"); | |
10694 | |
10695 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10696 SWIG_fail_ptr("Player_sResSpiritBase_set",1,SWIGTYPE_p_Player); | |
10697 } | |
10698 | |
10699 | |
10700 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
10701 SWIG_fail_ptr("Player_sResSpiritBase_set",2,SWIGTYPE_p___int16); | |
10702 } | |
10703 arg2 = *argp2; | |
10704 | |
10705 if (arg1) (arg1)->sResSpiritBase = arg2; | |
10706 | |
10707 return SWIG_arg; | |
10708 | |
10709 if(0) SWIG_fail; | |
10710 | |
10711 fail: | |
10712 lua_error(L); | |
10713 return SWIG_arg; | |
10714 } | |
10715 | |
10716 | |
10717 static int _wrap_Player_sResSpiritBase_get(lua_State* L) { | |
10718 int SWIG_arg = 0; | |
10719 Player *arg1 = (Player *) 0 ; | |
10720 __int16 result; | |
10721 | |
10722 SWIG_check_num_args("Player::sResSpiritBase",1,1) | |
10723 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResSpiritBase",1,"Player *"); | |
10724 | |
10725 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10726 SWIG_fail_ptr("Player_sResSpiritBase_get",1,SWIGTYPE_p_Player); | |
10727 } | |
10728 | |
10729 result = ((arg1)->sResSpiritBase); | |
10730 { | |
10731 __int16 * resultptr = new __int16((const __int16 &) result); | |
10732 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
10733 } | |
10734 return SWIG_arg; | |
10735 | |
10736 if(0) SWIG_fail; | |
10737 | |
10738 fail: | |
10739 lua_error(L); | |
10740 return SWIG_arg; | |
10741 } | |
10742 | |
10743 | |
10744 static int _wrap_Player_sResMindBase_set(lua_State* L) { | |
10745 int SWIG_arg = 0; | |
10746 Player *arg1 = (Player *) 0 ; | |
10747 __int16 arg2 ; | |
10748 __int16 *argp2 ; | |
10749 | |
10750 SWIG_check_num_args("Player::sResMindBase",2,2) | |
10751 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResMindBase",1,"Player *"); | |
10752 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::sResMindBase",2,"__int16"); | |
10753 | |
10754 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10755 SWIG_fail_ptr("Player_sResMindBase_set",1,SWIGTYPE_p_Player); | |
10756 } | |
10757 | |
10758 | |
10759 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
10760 SWIG_fail_ptr("Player_sResMindBase_set",2,SWIGTYPE_p___int16); | |
10761 } | |
10762 arg2 = *argp2; | |
10763 | |
10764 if (arg1) (arg1)->sResMindBase = arg2; | |
10765 | |
10766 return SWIG_arg; | |
10767 | |
10768 if(0) SWIG_fail; | |
10769 | |
10770 fail: | |
10771 lua_error(L); | |
10772 return SWIG_arg; | |
10773 } | |
10774 | |
10775 | |
10776 static int _wrap_Player_sResMindBase_get(lua_State* L) { | |
10777 int SWIG_arg = 0; | |
10778 Player *arg1 = (Player *) 0 ; | |
10779 __int16 result; | |
10780 | |
10781 SWIG_check_num_args("Player::sResMindBase",1,1) | |
10782 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResMindBase",1,"Player *"); | |
10783 | |
10784 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10785 SWIG_fail_ptr("Player_sResMindBase_get",1,SWIGTYPE_p_Player); | |
10786 } | |
10787 | |
10788 result = ((arg1)->sResMindBase); | |
10789 { | |
10790 __int16 * resultptr = new __int16((const __int16 &) result); | |
10791 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
10792 } | |
10793 return SWIG_arg; | |
10794 | |
10795 if(0) SWIG_fail; | |
10796 | |
10797 fail: | |
10798 lua_error(L); | |
10799 return SWIG_arg; | |
10800 } | |
10801 | |
10802 | |
10803 static int _wrap_Player_sResBodyBase_set(lua_State* L) { | |
10804 int SWIG_arg = 0; | |
10805 Player *arg1 = (Player *) 0 ; | |
10806 __int16 arg2 ; | |
10807 __int16 *argp2 ; | |
10808 | |
10809 SWIG_check_num_args("Player::sResBodyBase",2,2) | |
10810 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResBodyBase",1,"Player *"); | |
10811 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::sResBodyBase",2,"__int16"); | |
10812 | |
10813 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10814 SWIG_fail_ptr("Player_sResBodyBase_set",1,SWIGTYPE_p_Player); | |
10815 } | |
10816 | |
10817 | |
10818 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
10819 SWIG_fail_ptr("Player_sResBodyBase_set",2,SWIGTYPE_p___int16); | |
10820 } | |
10821 arg2 = *argp2; | |
10822 | |
10823 if (arg1) (arg1)->sResBodyBase = arg2; | |
10824 | |
10825 return SWIG_arg; | |
10826 | |
10827 if(0) SWIG_fail; | |
10828 | |
10829 fail: | |
10830 lua_error(L); | |
10831 return SWIG_arg; | |
10832 } | |
10833 | |
10834 | |
10835 static int _wrap_Player_sResBodyBase_get(lua_State* L) { | |
10836 int SWIG_arg = 0; | |
10837 Player *arg1 = (Player *) 0 ; | |
10838 __int16 result; | |
10839 | |
10840 SWIG_check_num_args("Player::sResBodyBase",1,1) | |
10841 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResBodyBase",1,"Player *"); | |
10842 | |
10843 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10844 SWIG_fail_ptr("Player_sResBodyBase_get",1,SWIGTYPE_p_Player); | |
10845 } | |
10846 | |
10847 result = ((arg1)->sResBodyBase); | |
10848 { | |
10849 __int16 * resultptr = new __int16((const __int16 &) result); | |
10850 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
10851 } | |
10852 return SWIG_arg; | |
10853 | |
10854 if(0) SWIG_fail; | |
10855 | |
10856 fail: | |
10857 lua_error(L); | |
10858 return SWIG_arg; | |
10859 } | |
10860 | |
10861 | |
10862 static int _wrap_Player_sResLightBase_set(lua_State* L) { | |
10863 int SWIG_arg = 0; | |
10864 Player *arg1 = (Player *) 0 ; | |
10865 __int16 arg2 ; | |
10866 __int16 *argp2 ; | |
10867 | |
10868 SWIG_check_num_args("Player::sResLightBase",2,2) | |
10869 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResLightBase",1,"Player *"); | |
10870 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::sResLightBase",2,"__int16"); | |
10871 | |
10872 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10873 SWIG_fail_ptr("Player_sResLightBase_set",1,SWIGTYPE_p_Player); | |
10874 } | |
10875 | |
10876 | |
10877 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
10878 SWIG_fail_ptr("Player_sResLightBase_set",2,SWIGTYPE_p___int16); | |
10879 } | |
10880 arg2 = *argp2; | |
10881 | |
10882 if (arg1) (arg1)->sResLightBase = arg2; | |
10883 | |
10884 return SWIG_arg; | |
10885 | |
10886 if(0) SWIG_fail; | |
10887 | |
10888 fail: | |
10889 lua_error(L); | |
10890 return SWIG_arg; | |
10891 } | |
10892 | |
10893 | |
10894 static int _wrap_Player_sResLightBase_get(lua_State* L) { | |
10895 int SWIG_arg = 0; | |
10896 Player *arg1 = (Player *) 0 ; | |
10897 __int16 result; | |
10898 | |
10899 SWIG_check_num_args("Player::sResLightBase",1,1) | |
10900 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResLightBase",1,"Player *"); | |
10901 | |
10902 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10903 SWIG_fail_ptr("Player_sResLightBase_get",1,SWIGTYPE_p_Player); | |
10904 } | |
10905 | |
10906 result = ((arg1)->sResLightBase); | |
10907 { | |
10908 __int16 * resultptr = new __int16((const __int16 &) result); | |
10909 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
10910 } | |
10911 return SWIG_arg; | |
10912 | |
10913 if(0) SWIG_fail; | |
10914 | |
10915 fail: | |
10916 lua_error(L); | |
10917 return SWIG_arg; | |
10918 } | |
10919 | |
10920 | |
10921 static int _wrap_Player_sResDarkBase_set(lua_State* L) { | |
10922 int SWIG_arg = 0; | |
10923 Player *arg1 = (Player *) 0 ; | |
10924 __int16 arg2 ; | |
10925 __int16 *argp2 ; | |
10926 | |
10927 SWIG_check_num_args("Player::sResDarkBase",2,2) | |
10928 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResDarkBase",1,"Player *"); | |
10929 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::sResDarkBase",2,"__int16"); | |
10930 | |
10931 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10932 SWIG_fail_ptr("Player_sResDarkBase_set",1,SWIGTYPE_p_Player); | |
10933 } | |
10934 | |
10935 | |
10936 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
10937 SWIG_fail_ptr("Player_sResDarkBase_set",2,SWIGTYPE_p___int16); | |
10938 } | |
10939 arg2 = *argp2; | |
10940 | |
10941 if (arg1) (arg1)->sResDarkBase = arg2; | |
10942 | |
10943 return SWIG_arg; | |
10944 | |
10945 if(0) SWIG_fail; | |
10946 | |
10947 fail: | |
10948 lua_error(L); | |
10949 return SWIG_arg; | |
10950 } | |
10951 | |
10952 | |
10953 static int _wrap_Player_sResDarkBase_get(lua_State* L) { | |
10954 int SWIG_arg = 0; | |
10955 Player *arg1 = (Player *) 0 ; | |
10956 __int16 result; | |
10957 | |
10958 SWIG_check_num_args("Player::sResDarkBase",1,1) | |
10959 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResDarkBase",1,"Player *"); | |
10960 | |
10961 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10962 SWIG_fail_ptr("Player_sResDarkBase_get",1,SWIGTYPE_p_Player); | |
10963 } | |
10964 | |
10965 result = ((arg1)->sResDarkBase); | |
10966 { | |
10967 __int16 * resultptr = new __int16((const __int16 &) result); | |
10968 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
10969 } | |
10970 return SWIG_arg; | |
10971 | |
10972 if(0) SWIG_fail; | |
10973 | |
10974 fail: | |
10975 lua_error(L); | |
10976 return SWIG_arg; | |
10977 } | |
10978 | |
10979 | |
10980 static int _wrap_Player_sResFireBonus_set(lua_State* L) { | |
10981 int SWIG_arg = 0; | |
10982 Player *arg1 = (Player *) 0 ; | |
10983 __int16 arg2 ; | |
10984 __int16 *argp2 ; | |
10985 | |
10986 SWIG_check_num_args("Player::sResFireBonus",2,2) | |
10987 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResFireBonus",1,"Player *"); | |
10988 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::sResFireBonus",2,"__int16"); | |
10989 | |
10990 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
10991 SWIG_fail_ptr("Player_sResFireBonus_set",1,SWIGTYPE_p_Player); | |
10992 } | |
10993 | |
10994 | |
10995 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
10996 SWIG_fail_ptr("Player_sResFireBonus_set",2,SWIGTYPE_p___int16); | |
10997 } | |
10998 arg2 = *argp2; | |
10999 | |
11000 if (arg1) (arg1)->sResFireBonus = arg2; | |
11001 | |
11002 return SWIG_arg; | |
11003 | |
11004 if(0) SWIG_fail; | |
11005 | |
11006 fail: | |
11007 lua_error(L); | |
11008 return SWIG_arg; | |
11009 } | |
11010 | |
11011 | |
11012 static int _wrap_Player_sResFireBonus_get(lua_State* L) { | |
11013 int SWIG_arg = 0; | |
11014 Player *arg1 = (Player *) 0 ; | |
11015 __int16 result; | |
11016 | |
11017 SWIG_check_num_args("Player::sResFireBonus",1,1) | |
11018 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResFireBonus",1,"Player *"); | |
11019 | |
11020 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11021 SWIG_fail_ptr("Player_sResFireBonus_get",1,SWIGTYPE_p_Player); | |
11022 } | |
11023 | |
11024 result = ((arg1)->sResFireBonus); | |
11025 { | |
11026 __int16 * resultptr = new __int16((const __int16 &) result); | |
11027 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
11028 } | |
11029 return SWIG_arg; | |
11030 | |
11031 if(0) SWIG_fail; | |
11032 | |
11033 fail: | |
11034 lua_error(L); | |
11035 return SWIG_arg; | |
11036 } | |
11037 | |
11038 | |
11039 static int _wrap_Player_sResAirBonus_set(lua_State* L) { | |
11040 int SWIG_arg = 0; | |
11041 Player *arg1 = (Player *) 0 ; | |
11042 __int16 arg2 ; | |
11043 __int16 *argp2 ; | |
11044 | |
11045 SWIG_check_num_args("Player::sResAirBonus",2,2) | |
11046 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResAirBonus",1,"Player *"); | |
11047 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::sResAirBonus",2,"__int16"); | |
11048 | |
11049 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11050 SWIG_fail_ptr("Player_sResAirBonus_set",1,SWIGTYPE_p_Player); | |
11051 } | |
11052 | |
11053 | |
11054 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
11055 SWIG_fail_ptr("Player_sResAirBonus_set",2,SWIGTYPE_p___int16); | |
11056 } | |
11057 arg2 = *argp2; | |
11058 | |
11059 if (arg1) (arg1)->sResAirBonus = arg2; | |
11060 | |
11061 return SWIG_arg; | |
11062 | |
11063 if(0) SWIG_fail; | |
11064 | |
11065 fail: | |
11066 lua_error(L); | |
11067 return SWIG_arg; | |
11068 } | |
11069 | |
11070 | |
11071 static int _wrap_Player_sResAirBonus_get(lua_State* L) { | |
11072 int SWIG_arg = 0; | |
11073 Player *arg1 = (Player *) 0 ; | |
11074 __int16 result; | |
11075 | |
11076 SWIG_check_num_args("Player::sResAirBonus",1,1) | |
11077 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResAirBonus",1,"Player *"); | |
11078 | |
11079 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11080 SWIG_fail_ptr("Player_sResAirBonus_get",1,SWIGTYPE_p_Player); | |
11081 } | |
11082 | |
11083 result = ((arg1)->sResAirBonus); | |
11084 { | |
11085 __int16 * resultptr = new __int16((const __int16 &) result); | |
11086 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
11087 } | |
11088 return SWIG_arg; | |
11089 | |
11090 if(0) SWIG_fail; | |
11091 | |
11092 fail: | |
11093 lua_error(L); | |
11094 return SWIG_arg; | |
11095 } | |
11096 | |
11097 | |
11098 static int _wrap_Player_sResWaterBonus_set(lua_State* L) { | |
11099 int SWIG_arg = 0; | |
11100 Player *arg1 = (Player *) 0 ; | |
11101 __int16 arg2 ; | |
11102 __int16 *argp2 ; | |
11103 | |
11104 SWIG_check_num_args("Player::sResWaterBonus",2,2) | |
11105 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResWaterBonus",1,"Player *"); | |
11106 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::sResWaterBonus",2,"__int16"); | |
11107 | |
11108 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11109 SWIG_fail_ptr("Player_sResWaterBonus_set",1,SWIGTYPE_p_Player); | |
11110 } | |
11111 | |
11112 | |
11113 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
11114 SWIG_fail_ptr("Player_sResWaterBonus_set",2,SWIGTYPE_p___int16); | |
11115 } | |
11116 arg2 = *argp2; | |
11117 | |
11118 if (arg1) (arg1)->sResWaterBonus = arg2; | |
11119 | |
11120 return SWIG_arg; | |
11121 | |
11122 if(0) SWIG_fail; | |
11123 | |
11124 fail: | |
11125 lua_error(L); | |
11126 return SWIG_arg; | |
11127 } | |
11128 | |
11129 | |
11130 static int _wrap_Player_sResWaterBonus_get(lua_State* L) { | |
11131 int SWIG_arg = 0; | |
11132 Player *arg1 = (Player *) 0 ; | |
11133 __int16 result; | |
11134 | |
11135 SWIG_check_num_args("Player::sResWaterBonus",1,1) | |
11136 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResWaterBonus",1,"Player *"); | |
11137 | |
11138 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11139 SWIG_fail_ptr("Player_sResWaterBonus_get",1,SWIGTYPE_p_Player); | |
11140 } | |
11141 | |
11142 result = ((arg1)->sResWaterBonus); | |
11143 { | |
11144 __int16 * resultptr = new __int16((const __int16 &) result); | |
11145 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
11146 } | |
11147 return SWIG_arg; | |
11148 | |
11149 if(0) SWIG_fail; | |
11150 | |
11151 fail: | |
11152 lua_error(L); | |
11153 return SWIG_arg; | |
11154 } | |
11155 | |
11156 | |
11157 static int _wrap_Player_sResEarthBonus_set(lua_State* L) { | |
11158 int SWIG_arg = 0; | |
11159 Player *arg1 = (Player *) 0 ; | |
11160 __int16 arg2 ; | |
11161 __int16 *argp2 ; | |
11162 | |
11163 SWIG_check_num_args("Player::sResEarthBonus",2,2) | |
11164 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResEarthBonus",1,"Player *"); | |
11165 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::sResEarthBonus",2,"__int16"); | |
11166 | |
11167 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11168 SWIG_fail_ptr("Player_sResEarthBonus_set",1,SWIGTYPE_p_Player); | |
11169 } | |
11170 | |
11171 | |
11172 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
11173 SWIG_fail_ptr("Player_sResEarthBonus_set",2,SWIGTYPE_p___int16); | |
11174 } | |
11175 arg2 = *argp2; | |
11176 | |
11177 if (arg1) (arg1)->sResEarthBonus = arg2; | |
11178 | |
11179 return SWIG_arg; | |
11180 | |
11181 if(0) SWIG_fail; | |
11182 | |
11183 fail: | |
11184 lua_error(L); | |
11185 return SWIG_arg; | |
11186 } | |
11187 | |
11188 | |
11189 static int _wrap_Player_sResEarthBonus_get(lua_State* L) { | |
11190 int SWIG_arg = 0; | |
11191 Player *arg1 = (Player *) 0 ; | |
11192 __int16 result; | |
11193 | |
11194 SWIG_check_num_args("Player::sResEarthBonus",1,1) | |
11195 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResEarthBonus",1,"Player *"); | |
11196 | |
11197 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11198 SWIG_fail_ptr("Player_sResEarthBonus_get",1,SWIGTYPE_p_Player); | |
11199 } | |
11200 | |
11201 result = ((arg1)->sResEarthBonus); | |
11202 { | |
11203 __int16 * resultptr = new __int16((const __int16 &) result); | |
11204 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
11205 } | |
11206 return SWIG_arg; | |
11207 | |
11208 if(0) SWIG_fail; | |
11209 | |
11210 fail: | |
11211 lua_error(L); | |
11212 return SWIG_arg; | |
11213 } | |
11214 | |
11215 | |
11216 static int _wrap_Player_field_1792_set(lua_State* L) { | |
11217 int SWIG_arg = 0; | |
11218 Player *arg1 = (Player *) 0 ; | |
11219 __int16 arg2 ; | |
11220 __int16 *argp2 ; | |
11221 | |
11222 SWIG_check_num_args("Player::field_1792",2,2) | |
11223 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1792",1,"Player *"); | |
11224 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::field_1792",2,"__int16"); | |
11225 | |
11226 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11227 SWIG_fail_ptr("Player_field_1792_set",1,SWIGTYPE_p_Player); | |
11228 } | |
11229 | |
11230 | |
11231 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
11232 SWIG_fail_ptr("Player_field_1792_set",2,SWIGTYPE_p___int16); | |
11233 } | |
11234 arg2 = *argp2; | |
11235 | |
11236 if (arg1) (arg1)->field_1792 = arg2; | |
11237 | |
11238 return SWIG_arg; | |
11239 | |
11240 if(0) SWIG_fail; | |
11241 | |
11242 fail: | |
11243 lua_error(L); | |
11244 return SWIG_arg; | |
11245 } | |
11246 | |
11247 | |
11248 static int _wrap_Player_field_1792_get(lua_State* L) { | |
11249 int SWIG_arg = 0; | |
11250 Player *arg1 = (Player *) 0 ; | |
11251 __int16 result; | |
11252 | |
11253 SWIG_check_num_args("Player::field_1792",1,1) | |
11254 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1792",1,"Player *"); | |
11255 | |
11256 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11257 SWIG_fail_ptr("Player_field_1792_get",1,SWIGTYPE_p_Player); | |
11258 } | |
11259 | |
11260 result = ((arg1)->field_1792); | |
11261 { | |
11262 __int16 * resultptr = new __int16((const __int16 &) result); | |
11263 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
11264 } | |
11265 return SWIG_arg; | |
11266 | |
11267 if(0) SWIG_fail; | |
11268 | |
11269 fail: | |
11270 lua_error(L); | |
11271 return SWIG_arg; | |
11272 } | |
11273 | |
11274 | |
11275 static int _wrap_Player_sResMagicBonus_set(lua_State* L) { | |
11276 int SWIG_arg = 0; | |
11277 Player *arg1 = (Player *) 0 ; | |
11278 __int16 arg2 ; | |
11279 __int16 *argp2 ; | |
11280 | |
11281 SWIG_check_num_args("Player::sResMagicBonus",2,2) | |
11282 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResMagicBonus",1,"Player *"); | |
11283 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::sResMagicBonus",2,"__int16"); | |
11284 | |
11285 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11286 SWIG_fail_ptr("Player_sResMagicBonus_set",1,SWIGTYPE_p_Player); | |
11287 } | |
11288 | |
11289 | |
11290 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
11291 SWIG_fail_ptr("Player_sResMagicBonus_set",2,SWIGTYPE_p___int16); | |
11292 } | |
11293 arg2 = *argp2; | |
11294 | |
11295 if (arg1) (arg1)->sResMagicBonus = arg2; | |
11296 | |
11297 return SWIG_arg; | |
11298 | |
11299 if(0) SWIG_fail; | |
11300 | |
11301 fail: | |
11302 lua_error(L); | |
11303 return SWIG_arg; | |
11304 } | |
11305 | |
11306 | |
11307 static int _wrap_Player_sResMagicBonus_get(lua_State* L) { | |
11308 int SWIG_arg = 0; | |
11309 Player *arg1 = (Player *) 0 ; | |
11310 __int16 result; | |
11311 | |
11312 SWIG_check_num_args("Player::sResMagicBonus",1,1) | |
11313 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResMagicBonus",1,"Player *"); | |
11314 | |
11315 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11316 SWIG_fail_ptr("Player_sResMagicBonus_get",1,SWIGTYPE_p_Player); | |
11317 } | |
11318 | |
11319 result = ((arg1)->sResMagicBonus); | |
11320 { | |
11321 __int16 * resultptr = new __int16((const __int16 &) result); | |
11322 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
11323 } | |
11324 return SWIG_arg; | |
11325 | |
11326 if(0) SWIG_fail; | |
11327 | |
11328 fail: | |
11329 lua_error(L); | |
11330 return SWIG_arg; | |
11331 } | |
11332 | |
11333 | |
11334 static int _wrap_Player_sResSpiritBonus_set(lua_State* L) { | |
11335 int SWIG_arg = 0; | |
11336 Player *arg1 = (Player *) 0 ; | |
11337 __int16 arg2 ; | |
11338 __int16 *argp2 ; | |
11339 | |
11340 SWIG_check_num_args("Player::sResSpiritBonus",2,2) | |
11341 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResSpiritBonus",1,"Player *"); | |
11342 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::sResSpiritBonus",2,"__int16"); | |
11343 | |
11344 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11345 SWIG_fail_ptr("Player_sResSpiritBonus_set",1,SWIGTYPE_p_Player); | |
11346 } | |
11347 | |
11348 | |
11349 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
11350 SWIG_fail_ptr("Player_sResSpiritBonus_set",2,SWIGTYPE_p___int16); | |
11351 } | |
11352 arg2 = *argp2; | |
11353 | |
11354 if (arg1) (arg1)->sResSpiritBonus = arg2; | |
11355 | |
11356 return SWIG_arg; | |
11357 | |
11358 if(0) SWIG_fail; | |
11359 | |
11360 fail: | |
11361 lua_error(L); | |
11362 return SWIG_arg; | |
11363 } | |
11364 | |
11365 | |
11366 static int _wrap_Player_sResSpiritBonus_get(lua_State* L) { | |
11367 int SWIG_arg = 0; | |
11368 Player *arg1 = (Player *) 0 ; | |
11369 __int16 result; | |
11370 | |
11371 SWIG_check_num_args("Player::sResSpiritBonus",1,1) | |
11372 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResSpiritBonus",1,"Player *"); | |
11373 | |
11374 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11375 SWIG_fail_ptr("Player_sResSpiritBonus_get",1,SWIGTYPE_p_Player); | |
11376 } | |
11377 | |
11378 result = ((arg1)->sResSpiritBonus); | |
11379 { | |
11380 __int16 * resultptr = new __int16((const __int16 &) result); | |
11381 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
11382 } | |
11383 return SWIG_arg; | |
11384 | |
11385 if(0) SWIG_fail; | |
11386 | |
11387 fail: | |
11388 lua_error(L); | |
11389 return SWIG_arg; | |
11390 } | |
11391 | |
11392 | |
11393 static int _wrap_Player_sResMindBonus_set(lua_State* L) { | |
11394 int SWIG_arg = 0; | |
11395 Player *arg1 = (Player *) 0 ; | |
11396 __int16 arg2 ; | |
11397 __int16 *argp2 ; | |
11398 | |
11399 SWIG_check_num_args("Player::sResMindBonus",2,2) | |
11400 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResMindBonus",1,"Player *"); | |
11401 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::sResMindBonus",2,"__int16"); | |
11402 | |
11403 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11404 SWIG_fail_ptr("Player_sResMindBonus_set",1,SWIGTYPE_p_Player); | |
11405 } | |
11406 | |
11407 | |
11408 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
11409 SWIG_fail_ptr("Player_sResMindBonus_set",2,SWIGTYPE_p___int16); | |
11410 } | |
11411 arg2 = *argp2; | |
11412 | |
11413 if (arg1) (arg1)->sResMindBonus = arg2; | |
11414 | |
11415 return SWIG_arg; | |
11416 | |
11417 if(0) SWIG_fail; | |
11418 | |
11419 fail: | |
11420 lua_error(L); | |
11421 return SWIG_arg; | |
11422 } | |
11423 | |
11424 | |
11425 static int _wrap_Player_sResMindBonus_get(lua_State* L) { | |
11426 int SWIG_arg = 0; | |
11427 Player *arg1 = (Player *) 0 ; | |
11428 __int16 result; | |
11429 | |
11430 SWIG_check_num_args("Player::sResMindBonus",1,1) | |
11431 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResMindBonus",1,"Player *"); | |
11432 | |
11433 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11434 SWIG_fail_ptr("Player_sResMindBonus_get",1,SWIGTYPE_p_Player); | |
11435 } | |
11436 | |
11437 result = ((arg1)->sResMindBonus); | |
11438 { | |
11439 __int16 * resultptr = new __int16((const __int16 &) result); | |
11440 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
11441 } | |
11442 return SWIG_arg; | |
11443 | |
11444 if(0) SWIG_fail; | |
11445 | |
11446 fail: | |
11447 lua_error(L); | |
11448 return SWIG_arg; | |
11449 } | |
11450 | |
11451 | |
11452 static int _wrap_Player_sResBodyBonus_set(lua_State* L) { | |
11453 int SWIG_arg = 0; | |
11454 Player *arg1 = (Player *) 0 ; | |
11455 __int16 arg2 ; | |
11456 __int16 *argp2 ; | |
11457 | |
11458 SWIG_check_num_args("Player::sResBodyBonus",2,2) | |
11459 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResBodyBonus",1,"Player *"); | |
11460 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::sResBodyBonus",2,"__int16"); | |
11461 | |
11462 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11463 SWIG_fail_ptr("Player_sResBodyBonus_set",1,SWIGTYPE_p_Player); | |
11464 } | |
11465 | |
11466 | |
11467 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
11468 SWIG_fail_ptr("Player_sResBodyBonus_set",2,SWIGTYPE_p___int16); | |
11469 } | |
11470 arg2 = *argp2; | |
11471 | |
11472 if (arg1) (arg1)->sResBodyBonus = arg2; | |
11473 | |
11474 return SWIG_arg; | |
11475 | |
11476 if(0) SWIG_fail; | |
11477 | |
11478 fail: | |
11479 lua_error(L); | |
11480 return SWIG_arg; | |
11481 } | |
11482 | |
11483 | |
11484 static int _wrap_Player_sResBodyBonus_get(lua_State* L) { | |
11485 int SWIG_arg = 0; | |
11486 Player *arg1 = (Player *) 0 ; | |
11487 __int16 result; | |
11488 | |
11489 SWIG_check_num_args("Player::sResBodyBonus",1,1) | |
11490 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResBodyBonus",1,"Player *"); | |
11491 | |
11492 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11493 SWIG_fail_ptr("Player_sResBodyBonus_get",1,SWIGTYPE_p_Player); | |
11494 } | |
11495 | |
11496 result = ((arg1)->sResBodyBonus); | |
11497 { | |
11498 __int16 * resultptr = new __int16((const __int16 &) result); | |
11499 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
11500 } | |
11501 return SWIG_arg; | |
11502 | |
11503 if(0) SWIG_fail; | |
11504 | |
11505 fail: | |
11506 lua_error(L); | |
11507 return SWIG_arg; | |
11508 } | |
11509 | |
11510 | |
11511 static int _wrap_Player_sResLightBonus_set(lua_State* L) { | |
11512 int SWIG_arg = 0; | |
11513 Player *arg1 = (Player *) 0 ; | |
11514 __int16 arg2 ; | |
11515 __int16 *argp2 ; | |
11516 | |
11517 SWIG_check_num_args("Player::sResLightBonus",2,2) | |
11518 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResLightBonus",1,"Player *"); | |
11519 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::sResLightBonus",2,"__int16"); | |
11520 | |
11521 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11522 SWIG_fail_ptr("Player_sResLightBonus_set",1,SWIGTYPE_p_Player); | |
11523 } | |
11524 | |
11525 | |
11526 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
11527 SWIG_fail_ptr("Player_sResLightBonus_set",2,SWIGTYPE_p___int16); | |
11528 } | |
11529 arg2 = *argp2; | |
11530 | |
11531 if (arg1) (arg1)->sResLightBonus = arg2; | |
11532 | |
11533 return SWIG_arg; | |
11534 | |
11535 if(0) SWIG_fail; | |
11536 | |
11537 fail: | |
11538 lua_error(L); | |
11539 return SWIG_arg; | |
11540 } | |
11541 | |
11542 | |
11543 static int _wrap_Player_sResLightBonus_get(lua_State* L) { | |
11544 int SWIG_arg = 0; | |
11545 Player *arg1 = (Player *) 0 ; | |
11546 __int16 result; | |
11547 | |
11548 SWIG_check_num_args("Player::sResLightBonus",1,1) | |
11549 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResLightBonus",1,"Player *"); | |
11550 | |
11551 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11552 SWIG_fail_ptr("Player_sResLightBonus_get",1,SWIGTYPE_p_Player); | |
11553 } | |
11554 | |
11555 result = ((arg1)->sResLightBonus); | |
11556 { | |
11557 __int16 * resultptr = new __int16((const __int16 &) result); | |
11558 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
11559 } | |
11560 return SWIG_arg; | |
11561 | |
11562 if(0) SWIG_fail; | |
11563 | |
11564 fail: | |
11565 lua_error(L); | |
11566 return SWIG_arg; | |
11567 } | |
11568 | |
11569 | |
11570 static int _wrap_Player_sResDarkBonus_set(lua_State* L) { | |
11571 int SWIG_arg = 0; | |
11572 Player *arg1 = (Player *) 0 ; | |
11573 __int16 arg2 ; | |
11574 __int16 *argp2 ; | |
11575 | |
11576 SWIG_check_num_args("Player::sResDarkBonus",2,2) | |
11577 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResDarkBonus",1,"Player *"); | |
11578 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::sResDarkBonus",2,"__int16"); | |
11579 | |
11580 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11581 SWIG_fail_ptr("Player_sResDarkBonus_set",1,SWIGTYPE_p_Player); | |
11582 } | |
11583 | |
11584 | |
11585 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
11586 SWIG_fail_ptr("Player_sResDarkBonus_set",2,SWIGTYPE_p___int16); | |
11587 } | |
11588 arg2 = *argp2; | |
11589 | |
11590 if (arg1) (arg1)->sResDarkBonus = arg2; | |
11591 | |
11592 return SWIG_arg; | |
11593 | |
11594 if(0) SWIG_fail; | |
11595 | |
11596 fail: | |
11597 lua_error(L); | |
11598 return SWIG_arg; | |
11599 } | |
11600 | |
11601 | |
11602 static int _wrap_Player_sResDarkBonus_get(lua_State* L) { | |
11603 int SWIG_arg = 0; | |
11604 Player *arg1 = (Player *) 0 ; | |
11605 __int16 result; | |
11606 | |
11607 SWIG_check_num_args("Player::sResDarkBonus",1,1) | |
11608 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sResDarkBonus",1,"Player *"); | |
11609 | |
11610 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11611 SWIG_fail_ptr("Player_sResDarkBonus_get",1,SWIGTYPE_p_Player); | |
11612 } | |
11613 | |
11614 result = ((arg1)->sResDarkBonus); | |
11615 { | |
11616 __int16 * resultptr = new __int16((const __int16 &) result); | |
11617 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
11618 } | |
11619 return SWIG_arg; | |
11620 | |
11621 if(0) SWIG_fail; | |
11622 | |
11623 fail: | |
11624 lua_error(L); | |
11625 return SWIG_arg; | |
11626 } | |
11627 | |
11628 | |
11629 static int _wrap_Player_pPlayerBuffs_set(lua_State* L) { | |
11630 int SWIG_arg = 0; | |
11631 Player *arg1 = (Player *) 0 ; | |
11632 std::array< SpellBuff,24 > arg2 ; | |
11633 std::array< SpellBuff,24 > *argp2 ; | |
11634 | |
11635 SWIG_check_num_args("Player::pPlayerBuffs",2,2) | |
11636 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pPlayerBuffs",1,"Player *"); | |
11637 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::pPlayerBuffs",2,"std::array< SpellBuff,24 >"); | |
11638 | |
11639 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11640 SWIG_fail_ptr("Player_pPlayerBuffs_set",1,SWIGTYPE_p_Player); | |
11641 } | |
11642 | |
11643 | |
11644 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_std__arrayT_SpellBuff_24_t,0))){ | |
11645 SWIG_fail_ptr("Player_pPlayerBuffs_set",2,SWIGTYPE_p_std__arrayT_SpellBuff_24_t); | |
11646 } | |
11647 arg2 = *argp2; | |
11648 | |
11649 if (arg1) (arg1)->pPlayerBuffs = arg2; | |
11650 | |
11651 return SWIG_arg; | |
11652 | |
11653 if(0) SWIG_fail; | |
11654 | |
11655 fail: | |
11656 lua_error(L); | |
11657 return SWIG_arg; | |
11658 } | |
11659 | |
11660 | |
11661 static int _wrap_Player_pPlayerBuffs_get(lua_State* L) { | |
11662 int SWIG_arg = 0; | |
11663 Player *arg1 = (Player *) 0 ; | |
11664 std::array< SpellBuff,24 > result; | |
11665 | |
11666 SWIG_check_num_args("Player::pPlayerBuffs",1,1) | |
11667 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pPlayerBuffs",1,"Player *"); | |
11668 | |
11669 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11670 SWIG_fail_ptr("Player_pPlayerBuffs_get",1,SWIGTYPE_p_Player); | |
11671 } | |
11672 | |
11673 result = ((arg1)->pPlayerBuffs); | |
11674 { | |
11675 std::array< SpellBuff,24 > * resultptr = new std::array< SpellBuff,24 >((const std::array< SpellBuff,24 > &) result); | |
11676 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_std__arrayT_SpellBuff_24_t,1); SWIG_arg++; | |
11677 } | |
11678 return SWIG_arg; | |
11679 | |
11680 if(0) SWIG_fail; | |
11681 | |
11682 fail: | |
11683 lua_error(L); | |
11684 return SWIG_arg; | |
11685 } | |
11686 | |
11687 | |
11688 static int _wrap_Player_uVoiceID_set(lua_State* L) { | |
11689 int SWIG_arg = 0; | |
11690 Player *arg1 = (Player *) 0 ; | |
11691 unsigned int arg2 ; | |
11692 | |
11693 SWIG_check_num_args("Player::uVoiceID",2,2) | |
11694 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uVoiceID",1,"Player *"); | |
11695 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::uVoiceID",2,"unsigned int"); | |
11696 | |
11697 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11698 SWIG_fail_ptr("Player_uVoiceID_set",1,SWIGTYPE_p_Player); | |
11699 } | |
11700 | |
11701 SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative") | |
11702 arg2 = (unsigned int)lua_tonumber(L, 2); | |
11703 if (arg1) (arg1)->uVoiceID = arg2; | |
11704 | |
11705 return SWIG_arg; | |
11706 | |
11707 if(0) SWIG_fail; | |
11708 | |
11709 fail: | |
11710 lua_error(L); | |
11711 return SWIG_arg; | |
11712 } | |
11713 | |
11714 | |
11715 static int _wrap_Player_uVoiceID_get(lua_State* L) { | |
11716 int SWIG_arg = 0; | |
11717 Player *arg1 = (Player *) 0 ; | |
11718 unsigned int result; | |
11719 | |
11720 SWIG_check_num_args("Player::uVoiceID",1,1) | |
11721 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uVoiceID",1,"Player *"); | |
11722 | |
11723 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11724 SWIG_fail_ptr("Player_uVoiceID_get",1,SWIGTYPE_p_Player); | |
11725 } | |
11726 | |
11727 result = (unsigned int) ((arg1)->uVoiceID); | |
11728 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
11729 return SWIG_arg; | |
11730 | |
11731 if(0) SWIG_fail; | |
11732 | |
11733 fail: | |
11734 lua_error(L); | |
11735 return SWIG_arg; | |
11736 } | |
11737 | |
11738 | |
11739 static int _wrap_Player_uPrevVoiceID_set(lua_State* L) { | |
11740 int SWIG_arg = 0; | |
11741 Player *arg1 = (Player *) 0 ; | |
11742 int arg2 ; | |
11743 | |
11744 SWIG_check_num_args("Player::uPrevVoiceID",2,2) | |
11745 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uPrevVoiceID",1,"Player *"); | |
11746 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::uPrevVoiceID",2,"int"); | |
11747 | |
11748 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11749 SWIG_fail_ptr("Player_uPrevVoiceID_set",1,SWIGTYPE_p_Player); | |
11750 } | |
11751 | |
11752 arg2 = (int)lua_tonumber(L, 2); | |
11753 if (arg1) (arg1)->uPrevVoiceID = arg2; | |
11754 | |
11755 return SWIG_arg; | |
11756 | |
11757 if(0) SWIG_fail; | |
11758 | |
11759 fail: | |
11760 lua_error(L); | |
11761 return SWIG_arg; | |
11762 } | |
11763 | |
11764 | |
11765 static int _wrap_Player_uPrevVoiceID_get(lua_State* L) { | |
11766 int SWIG_arg = 0; | |
11767 Player *arg1 = (Player *) 0 ; | |
11768 int result; | |
11769 | |
11770 SWIG_check_num_args("Player::uPrevVoiceID",1,1) | |
11771 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uPrevVoiceID",1,"Player *"); | |
11772 | |
11773 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11774 SWIG_fail_ptr("Player_uPrevVoiceID_get",1,SWIGTYPE_p_Player); | |
11775 } | |
11776 | |
11777 result = (int) ((arg1)->uPrevVoiceID); | |
11778 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
11779 return SWIG_arg; | |
11780 | |
11781 if(0) SWIG_fail; | |
11782 | |
11783 fail: | |
11784 lua_error(L); | |
11785 return SWIG_arg; | |
11786 } | |
11787 | |
11788 | |
11789 static int _wrap_Player_uPrevFace_set(lua_State* L) { | |
11790 int SWIG_arg = 0; | |
11791 Player *arg1 = (Player *) 0 ; | |
11792 int arg2 ; | |
11793 | |
11794 SWIG_check_num_args("Player::uPrevFace",2,2) | |
11795 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uPrevFace",1,"Player *"); | |
11796 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::uPrevFace",2,"int"); | |
11797 | |
11798 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11799 SWIG_fail_ptr("Player_uPrevFace_set",1,SWIGTYPE_p_Player); | |
11800 } | |
11801 | |
11802 arg2 = (int)lua_tonumber(L, 2); | |
11803 if (arg1) (arg1)->uPrevFace = arg2; | |
11804 | |
11805 return SWIG_arg; | |
11806 | |
11807 if(0) SWIG_fail; | |
11808 | |
11809 fail: | |
11810 lua_error(L); | |
11811 return SWIG_arg; | |
11812 } | |
11813 | |
11814 | |
11815 static int _wrap_Player_uPrevFace_get(lua_State* L) { | |
11816 int SWIG_arg = 0; | |
11817 Player *arg1 = (Player *) 0 ; | |
11818 int result; | |
11819 | |
11820 SWIG_check_num_args("Player::uPrevFace",1,1) | |
11821 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uPrevFace",1,"Player *"); | |
11822 | |
11823 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11824 SWIG_fail_ptr("Player_uPrevFace_get",1,SWIGTYPE_p_Player); | |
11825 } | |
11826 | |
11827 result = (int) ((arg1)->uPrevFace); | |
11828 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
11829 return SWIG_arg; | |
11830 | |
11831 if(0) SWIG_fail; | |
11832 | |
11833 fail: | |
11834 lua_error(L); | |
11835 return SWIG_arg; | |
11836 } | |
11837 | |
11838 | |
11839 static int _wrap_Player_field_192C_set(lua_State* L) { | |
11840 int SWIG_arg = 0; | |
11841 Player *arg1 = (Player *) 0 ; | |
11842 int arg2 ; | |
11843 | |
11844 SWIG_check_num_args("Player::field_192C",2,2) | |
11845 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_192C",1,"Player *"); | |
11846 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::field_192C",2,"int"); | |
11847 | |
11848 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11849 SWIG_fail_ptr("Player_field_192C_set",1,SWIGTYPE_p_Player); | |
11850 } | |
11851 | |
11852 arg2 = (int)lua_tonumber(L, 2); | |
11853 if (arg1) (arg1)->field_192C = arg2; | |
11854 | |
11855 return SWIG_arg; | |
11856 | |
11857 if(0) SWIG_fail; | |
11858 | |
11859 fail: | |
11860 lua_error(L); | |
11861 return SWIG_arg; | |
11862 } | |
11863 | |
11864 | |
11865 static int _wrap_Player_field_192C_get(lua_State* L) { | |
11866 int SWIG_arg = 0; | |
11867 Player *arg1 = (Player *) 0 ; | |
11868 int result; | |
11869 | |
11870 SWIG_check_num_args("Player::field_192C",1,1) | |
11871 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_192C",1,"Player *"); | |
11872 | |
11873 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11874 SWIG_fail_ptr("Player_field_192C_get",1,SWIGTYPE_p_Player); | |
11875 } | |
11876 | |
11877 result = (int) ((arg1)->field_192C); | |
11878 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
11879 return SWIG_arg; | |
11880 | |
11881 if(0) SWIG_fail; | |
11882 | |
11883 fail: | |
11884 lua_error(L); | |
11885 return SWIG_arg; | |
11886 } | |
11887 | |
11888 | |
11889 static int _wrap_Player_field_1930_set(lua_State* L) { | |
11890 int SWIG_arg = 0; | |
11891 Player *arg1 = (Player *) 0 ; | |
11892 int arg2 ; | |
11893 | |
11894 SWIG_check_num_args("Player::field_1930",2,2) | |
11895 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1930",1,"Player *"); | |
11896 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::field_1930",2,"int"); | |
11897 | |
11898 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11899 SWIG_fail_ptr("Player_field_1930_set",1,SWIGTYPE_p_Player); | |
11900 } | |
11901 | |
11902 arg2 = (int)lua_tonumber(L, 2); | |
11903 if (arg1) (arg1)->field_1930 = arg2; | |
11904 | |
11905 return SWIG_arg; | |
11906 | |
11907 if(0) SWIG_fail; | |
11908 | |
11909 fail: | |
11910 lua_error(L); | |
11911 return SWIG_arg; | |
11912 } | |
11913 | |
11914 | |
11915 static int _wrap_Player_field_1930_get(lua_State* L) { | |
11916 int SWIG_arg = 0; | |
11917 Player *arg1 = (Player *) 0 ; | |
11918 int result; | |
11919 | |
11920 SWIG_check_num_args("Player::field_1930",1,1) | |
11921 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1930",1,"Player *"); | |
11922 | |
11923 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11924 SWIG_fail_ptr("Player_field_1930_get",1,SWIGTYPE_p_Player); | |
11925 } | |
11926 | |
11927 result = (int) ((arg1)->field_1930); | |
11928 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
11929 return SWIG_arg; | |
11930 | |
11931 if(0) SWIG_fail; | |
11932 | |
11933 fail: | |
11934 lua_error(L); | |
11935 return SWIG_arg; | |
11936 } | |
11937 | |
11938 | |
11939 static int _wrap_Player_uTimeToRecovery_set(lua_State* L) { | |
11940 int SWIG_arg = 0; | |
11941 Player *arg1 = (Player *) 0 ; | |
11942 unsigned __int16 arg2 ; | |
11943 unsigned __int16 *argp2 ; | |
11944 | |
11945 SWIG_check_num_args("Player::uTimeToRecovery",2,2) | |
11946 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uTimeToRecovery",1,"Player *"); | |
11947 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::uTimeToRecovery",2,"unsigned __int16"); | |
11948 | |
11949 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11950 SWIG_fail_ptr("Player_uTimeToRecovery_set",1,SWIGTYPE_p_Player); | |
11951 } | |
11952 | |
11953 | |
11954 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_unsigned___int16,0))){ | |
11955 SWIG_fail_ptr("Player_uTimeToRecovery_set",2,SWIGTYPE_p_unsigned___int16); | |
11956 } | |
11957 arg2 = *argp2; | |
11958 | |
11959 if (arg1) (arg1)->uTimeToRecovery = arg2; | |
11960 | |
11961 return SWIG_arg; | |
11962 | |
11963 if(0) SWIG_fail; | |
11964 | |
11965 fail: | |
11966 lua_error(L); | |
11967 return SWIG_arg; | |
11968 } | |
11969 | |
11970 | |
11971 static int _wrap_Player_uTimeToRecovery_get(lua_State* L) { | |
11972 int SWIG_arg = 0; | |
11973 Player *arg1 = (Player *) 0 ; | |
11974 unsigned __int16 result; | |
11975 | |
11976 SWIG_check_num_args("Player::uTimeToRecovery",1,1) | |
11977 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uTimeToRecovery",1,"Player *"); | |
11978 | |
11979 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
11980 SWIG_fail_ptr("Player_uTimeToRecovery_get",1,SWIGTYPE_p_Player); | |
11981 } | |
11982 | |
11983 result = ((arg1)->uTimeToRecovery); | |
11984 { | |
11985 unsigned __int16 * resultptr = new unsigned __int16((const unsigned __int16 &) result); | |
11986 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_unsigned___int16,1); SWIG_arg++; | |
11987 } | |
11988 return SWIG_arg; | |
11989 | |
11990 if(0) SWIG_fail; | |
11991 | |
11992 fail: | |
11993 lua_error(L); | |
11994 return SWIG_arg; | |
11995 } | |
11996 | |
11997 | |
11998 static int _wrap_Player_field_1936_set(lua_State* L) { | |
11999 int SWIG_arg = 0; | |
12000 Player *arg1 = (Player *) 0 ; | |
12001 char arg2 ; | |
12002 | |
12003 SWIG_check_num_args("Player::field_1936",2,2) | |
12004 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1936",1,"Player *"); | |
12005 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::field_1936",2,"char"); | |
12006 | |
12007 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12008 SWIG_fail_ptr("Player_field_1936_set",1,SWIGTYPE_p_Player); | |
12009 } | |
12010 | |
12011 arg2 = (lua_tostring(L, 2))[0]; | |
12012 if (arg1) (arg1)->field_1936 = arg2; | |
12013 | |
12014 return SWIG_arg; | |
12015 | |
12016 if(0) SWIG_fail; | |
12017 | |
12018 fail: | |
12019 lua_error(L); | |
12020 return SWIG_arg; | |
12021 } | |
12022 | |
12023 | |
12024 static int _wrap_Player_field_1936_get(lua_State* L) { | |
12025 int SWIG_arg = 0; | |
12026 Player *arg1 = (Player *) 0 ; | |
12027 char result; | |
12028 | |
12029 SWIG_check_num_args("Player::field_1936",1,1) | |
12030 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1936",1,"Player *"); | |
12031 | |
12032 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12033 SWIG_fail_ptr("Player_field_1936_get",1,SWIGTYPE_p_Player); | |
12034 } | |
12035 | |
12036 result = (char) ((arg1)->field_1936); | |
12037 lua_pushfstring(L,"%c",result); SWIG_arg++; | |
12038 return SWIG_arg; | |
12039 | |
12040 if(0) SWIG_fail; | |
12041 | |
12042 fail: | |
12043 lua_error(L); | |
12044 return SWIG_arg; | |
12045 } | |
12046 | |
12047 | |
12048 static int _wrap_Player_field_1937_set(lua_State* L) { | |
12049 int SWIG_arg = 0; | |
12050 Player *arg1 = (Player *) 0 ; | |
12051 char arg2 ; | |
12052 | |
12053 SWIG_check_num_args("Player::field_1937",2,2) | |
12054 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1937",1,"Player *"); | |
12055 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::field_1937",2,"char"); | |
12056 | |
12057 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12058 SWIG_fail_ptr("Player_field_1937_set",1,SWIGTYPE_p_Player); | |
12059 } | |
12060 | |
12061 arg2 = (lua_tostring(L, 2))[0]; | |
12062 if (arg1) (arg1)->field_1937 = arg2; | |
12063 | |
12064 return SWIG_arg; | |
12065 | |
12066 if(0) SWIG_fail; | |
12067 | |
12068 fail: | |
12069 lua_error(L); | |
12070 return SWIG_arg; | |
12071 } | |
12072 | |
12073 | |
12074 static int _wrap_Player_field_1937_get(lua_State* L) { | |
12075 int SWIG_arg = 0; | |
12076 Player *arg1 = (Player *) 0 ; | |
12077 char result; | |
12078 | |
12079 SWIG_check_num_args("Player::field_1937",1,1) | |
12080 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1937",1,"Player *"); | |
12081 | |
12082 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12083 SWIG_fail_ptr("Player_field_1937_get",1,SWIGTYPE_p_Player); | |
12084 } | |
12085 | |
12086 result = (char) ((arg1)->field_1937); | |
12087 lua_pushfstring(L,"%c",result); SWIG_arg++; | |
12088 return SWIG_arg; | |
12089 | |
12090 if(0) SWIG_fail; | |
12091 | |
12092 fail: | |
12093 lua_error(L); | |
12094 return SWIG_arg; | |
12095 } | |
12096 | |
12097 | |
12098 static int _wrap_Player_uSkillPoints_set(lua_State* L) { | |
12099 int SWIG_arg = 0; | |
12100 Player *arg1 = (Player *) 0 ; | |
12101 unsigned int arg2 ; | |
12102 | |
12103 SWIG_check_num_args("Player::uSkillPoints",2,2) | |
12104 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uSkillPoints",1,"Player *"); | |
12105 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::uSkillPoints",2,"unsigned int"); | |
12106 | |
12107 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12108 SWIG_fail_ptr("Player_uSkillPoints_set",1,SWIGTYPE_p_Player); | |
12109 } | |
12110 | |
12111 SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative") | |
12112 arg2 = (unsigned int)lua_tonumber(L, 2); | |
12113 if (arg1) (arg1)->uSkillPoints = arg2; | |
12114 | |
12115 return SWIG_arg; | |
12116 | |
12117 if(0) SWIG_fail; | |
12118 | |
12119 fail: | |
12120 lua_error(L); | |
12121 return SWIG_arg; | |
12122 } | |
12123 | |
12124 | |
12125 static int _wrap_Player_uSkillPoints_get(lua_State* L) { | |
12126 int SWIG_arg = 0; | |
12127 Player *arg1 = (Player *) 0 ; | |
12128 unsigned int result; | |
12129 | |
12130 SWIG_check_num_args("Player::uSkillPoints",1,1) | |
12131 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uSkillPoints",1,"Player *"); | |
12132 | |
12133 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12134 SWIG_fail_ptr("Player_uSkillPoints_get",1,SWIGTYPE_p_Player); | |
12135 } | |
12136 | |
12137 result = (unsigned int) ((arg1)->uSkillPoints); | |
12138 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
12139 return SWIG_arg; | |
12140 | |
12141 if(0) SWIG_fail; | |
12142 | |
12143 fail: | |
12144 lua_error(L); | |
12145 return SWIG_arg; | |
12146 } | |
12147 | |
12148 | |
12149 static int _wrap_Player_sHealth_set(lua_State* L) { | |
12150 int SWIG_arg = 0; | |
12151 Player *arg1 = (Player *) 0 ; | |
12152 int arg2 ; | |
12153 | |
12154 SWIG_check_num_args("Player::sHealth",2,2) | |
12155 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sHealth",1,"Player *"); | |
12156 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::sHealth",2,"int"); | |
12157 | |
12158 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12159 SWIG_fail_ptr("Player_sHealth_set",1,SWIGTYPE_p_Player); | |
12160 } | |
12161 | |
12162 arg2 = (int)lua_tonumber(L, 2); | |
12163 if (arg1) (arg1)->sHealth = arg2; | |
12164 | |
12165 return SWIG_arg; | |
12166 | |
12167 if(0) SWIG_fail; | |
12168 | |
12169 fail: | |
12170 lua_error(L); | |
12171 return SWIG_arg; | |
12172 } | |
12173 | |
12174 | |
12175 static int _wrap_Player_sHealth_get(lua_State* L) { | |
12176 int SWIG_arg = 0; | |
12177 Player *arg1 = (Player *) 0 ; | |
12178 int result; | |
12179 | |
12180 SWIG_check_num_args("Player::sHealth",1,1) | |
12181 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sHealth",1,"Player *"); | |
12182 | |
12183 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12184 SWIG_fail_ptr("Player_sHealth_get",1,SWIGTYPE_p_Player); | |
12185 } | |
12186 | |
12187 result = (int) ((arg1)->sHealth); | |
12188 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
12189 return SWIG_arg; | |
12190 | |
12191 if(0) SWIG_fail; | |
12192 | |
12193 fail: | |
12194 lua_error(L); | |
12195 return SWIG_arg; | |
12196 } | |
12197 | |
12198 | |
12199 static int _wrap_Player_sMana_set(lua_State* L) { | |
12200 int SWIG_arg = 0; | |
12201 Player *arg1 = (Player *) 0 ; | |
12202 int arg2 ; | |
12203 | |
12204 SWIG_check_num_args("Player::sMana",2,2) | |
12205 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sMana",1,"Player *"); | |
12206 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::sMana",2,"int"); | |
12207 | |
12208 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12209 SWIG_fail_ptr("Player_sMana_set",1,SWIGTYPE_p_Player); | |
12210 } | |
12211 | |
12212 arg2 = (int)lua_tonumber(L, 2); | |
12213 if (arg1) (arg1)->sMana = arg2; | |
12214 | |
12215 return SWIG_arg; | |
12216 | |
12217 if(0) SWIG_fail; | |
12218 | |
12219 fail: | |
12220 lua_error(L); | |
12221 return SWIG_arg; | |
12222 } | |
12223 | |
12224 | |
12225 static int _wrap_Player_sMana_get(lua_State* L) { | |
12226 int SWIG_arg = 0; | |
12227 Player *arg1 = (Player *) 0 ; | |
12228 int result; | |
12229 | |
12230 SWIG_check_num_args("Player::sMana",1,1) | |
12231 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::sMana",1,"Player *"); | |
12232 | |
12233 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12234 SWIG_fail_ptr("Player_sMana_get",1,SWIGTYPE_p_Player); | |
12235 } | |
12236 | |
12237 result = (int) ((arg1)->sMana); | |
12238 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
12239 return SWIG_arg; | |
12240 | |
12241 if(0) SWIG_fail; | |
12242 | |
12243 fail: | |
12244 lua_error(L); | |
12245 return SWIG_arg; | |
12246 } | |
12247 | |
12248 | |
12249 static int _wrap_Player_uBirthYear_set(lua_State* L) { | |
12250 int SWIG_arg = 0; | |
12251 Player *arg1 = (Player *) 0 ; | |
12252 unsigned int arg2 ; | |
12253 | |
12254 SWIG_check_num_args("Player::uBirthYear",2,2) | |
12255 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uBirthYear",1,"Player *"); | |
12256 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::uBirthYear",2,"unsigned int"); | |
12257 | |
12258 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12259 SWIG_fail_ptr("Player_uBirthYear_set",1,SWIGTYPE_p_Player); | |
12260 } | |
12261 | |
12262 SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative") | |
12263 arg2 = (unsigned int)lua_tonumber(L, 2); | |
12264 if (arg1) (arg1)->uBirthYear = arg2; | |
12265 | |
12266 return SWIG_arg; | |
12267 | |
12268 if(0) SWIG_fail; | |
12269 | |
12270 fail: | |
12271 lua_error(L); | |
12272 return SWIG_arg; | |
12273 } | |
12274 | |
12275 | |
12276 static int _wrap_Player_uBirthYear_get(lua_State* L) { | |
12277 int SWIG_arg = 0; | |
12278 Player *arg1 = (Player *) 0 ; | |
12279 unsigned int result; | |
12280 | |
12281 SWIG_check_num_args("Player::uBirthYear",1,1) | |
12282 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uBirthYear",1,"Player *"); | |
12283 | |
12284 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12285 SWIG_fail_ptr("Player_uBirthYear_get",1,SWIGTYPE_p_Player); | |
12286 } | |
12287 | |
12288 result = (unsigned int) ((arg1)->uBirthYear); | |
12289 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
12290 return SWIG_arg; | |
12291 | |
12292 if(0) SWIG_fail; | |
12293 | |
12294 fail: | |
12295 lua_error(L); | |
12296 return SWIG_arg; | |
12297 } | |
12298 | |
12299 | |
12300 static int _wrap_Player_pEquipment_set(lua_State* L) { | |
12301 int SWIG_arg = 0; | |
12302 Player *arg1 = (Player *) 0 ; | |
12303 PlayerEquipment *arg2 = (PlayerEquipment *) 0 ; | |
12304 | |
12305 SWIG_check_num_args("Player::pEquipment",2,2) | |
12306 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pEquipment",1,"Player *"); | |
12307 if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("Player::pEquipment",2,"PlayerEquipment *"); | |
12308 | |
12309 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12310 SWIG_fail_ptr("Player_pEquipment_set",1,SWIGTYPE_p_Player); | |
12311 } | |
12312 | |
12313 | |
12314 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_PlayerEquipment,0))){ | |
12315 SWIG_fail_ptr("Player_pEquipment_set",2,SWIGTYPE_p_PlayerEquipment); | |
12316 } | |
12317 | |
12318 if (arg1) (arg1)->pEquipment = *arg2; | |
12319 | |
12320 return SWIG_arg; | |
12321 | |
12322 if(0) SWIG_fail; | |
12323 | |
12324 fail: | |
12325 lua_error(L); | |
12326 return SWIG_arg; | |
12327 } | |
12328 | |
12329 | |
12330 static int _wrap_Player_pEquipment_get(lua_State* L) { | |
12331 int SWIG_arg = 0; | |
12332 Player *arg1 = (Player *) 0 ; | |
12333 PlayerEquipment *result = 0 ; | |
12334 | |
12335 SWIG_check_num_args("Player::pEquipment",1,1) | |
12336 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pEquipment",1,"Player *"); | |
12337 | |
12338 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12339 SWIG_fail_ptr("Player_pEquipment_get",1,SWIGTYPE_p_Player); | |
12340 } | |
12341 | |
12342 result = (PlayerEquipment *)& ((arg1)->pEquipment); | |
12343 SWIG_NewPointerObj(L,result,SWIGTYPE_p_PlayerEquipment,0); SWIG_arg++; | |
12344 return SWIG_arg; | |
12345 | |
12346 if(0) SWIG_fail; | |
12347 | |
12348 fail: | |
12349 lua_error(L); | |
12350 return SWIG_arg; | |
12351 } | |
12352 | |
12353 | |
12354 static int _wrap_Player_field_1988_set(lua_State* L) { | |
12355 int SWIG_arg = 0; | |
12356 Player *arg1 = (Player *) 0 ; | |
12357 int *arg2 ; | |
12358 | |
12359 SWIG_check_num_args("Player::field_1988",2,2) | |
12360 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1988",1,"Player *"); | |
12361 if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("Player::field_1988",2,"int [49]"); | |
12362 | |
12363 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12364 SWIG_fail_ptr("Player_field_1988_set",1,SWIGTYPE_p_Player); | |
12365 } | |
12366 | |
12367 | |
12368 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_int,0))){ | |
12369 SWIG_fail_ptr("Player_field_1988_set",2,SWIGTYPE_p_int); | |
12370 } | |
12371 | |
12372 { | |
12373 size_t ii; | |
12374 int *b = (int *) arg1->field_1988; | |
12375 for (ii = 0; ii < (size_t)49; ii++) b[ii] = *((int *) arg2 + ii); | |
12376 } | |
12377 | |
12378 return SWIG_arg; | |
12379 | |
12380 if(0) SWIG_fail; | |
12381 | |
12382 fail: | |
12383 lua_error(L); | |
12384 return SWIG_arg; | |
12385 } | |
12386 | |
12387 | |
12388 static int _wrap_Player_field_1988_get(lua_State* L) { | |
12389 int SWIG_arg = 0; | |
12390 Player *arg1 = (Player *) 0 ; | |
12391 int *result = 0 ; | |
12392 | |
12393 SWIG_check_num_args("Player::field_1988",1,1) | |
12394 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1988",1,"Player *"); | |
12395 | |
12396 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12397 SWIG_fail_ptr("Player_field_1988_get",1,SWIGTYPE_p_Player); | |
12398 } | |
12399 | |
12400 result = (int *)(int *) ((arg1)->field_1988); | |
12401 SWIG_NewPointerObj(L,result,SWIGTYPE_p_int,0); SWIG_arg++; | |
12402 return SWIG_arg; | |
12403 | |
12404 if(0) SWIG_fail; | |
12405 | |
12406 fail: | |
12407 lua_error(L); | |
12408 return SWIG_arg; | |
12409 } | |
12410 | |
12411 | |
12412 static int _wrap_Player_field_1A4C_set(lua_State* L) { | |
12413 int SWIG_arg = 0; | |
12414 Player *arg1 = (Player *) 0 ; | |
12415 char arg2 ; | |
12416 | |
12417 SWIG_check_num_args("Player::field_1A4C",2,2) | |
12418 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1A4C",1,"Player *"); | |
12419 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::field_1A4C",2,"char"); | |
12420 | |
12421 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12422 SWIG_fail_ptr("Player_field_1A4C_set",1,SWIGTYPE_p_Player); | |
12423 } | |
12424 | |
12425 arg2 = (lua_tostring(L, 2))[0]; | |
12426 if (arg1) (arg1)->field_1A4C = arg2; | |
12427 | |
12428 return SWIG_arg; | |
12429 | |
12430 if(0) SWIG_fail; | |
12431 | |
12432 fail: | |
12433 lua_error(L); | |
12434 return SWIG_arg; | |
12435 } | |
12436 | |
12437 | |
12438 static int _wrap_Player_field_1A4C_get(lua_State* L) { | |
12439 int SWIG_arg = 0; | |
12440 Player *arg1 = (Player *) 0 ; | |
12441 char result; | |
12442 | |
12443 SWIG_check_num_args("Player::field_1A4C",1,1) | |
12444 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1A4C",1,"Player *"); | |
12445 | |
12446 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12447 SWIG_fail_ptr("Player_field_1A4C_get",1,SWIGTYPE_p_Player); | |
12448 } | |
12449 | |
12450 result = (char) ((arg1)->field_1A4C); | |
12451 lua_pushfstring(L,"%c",result); SWIG_arg++; | |
12452 return SWIG_arg; | |
12453 | |
12454 if(0) SWIG_fail; | |
12455 | |
12456 fail: | |
12457 lua_error(L); | |
12458 return SWIG_arg; | |
12459 } | |
12460 | |
12461 | |
12462 static int _wrap_Player_field_1A4D_set(lua_State* L) { | |
12463 int SWIG_arg = 0; | |
12464 Player *arg1 = (Player *) 0 ; | |
12465 char arg2 ; | |
12466 | |
12467 SWIG_check_num_args("Player::field_1A4D",2,2) | |
12468 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1A4D",1,"Player *"); | |
12469 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::field_1A4D",2,"char"); | |
12470 | |
12471 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12472 SWIG_fail_ptr("Player_field_1A4D_set",1,SWIGTYPE_p_Player); | |
12473 } | |
12474 | |
12475 arg2 = (lua_tostring(L, 2))[0]; | |
12476 if (arg1) (arg1)->field_1A4D = arg2; | |
12477 | |
12478 return SWIG_arg; | |
12479 | |
12480 if(0) SWIG_fail; | |
12481 | |
12482 fail: | |
12483 lua_error(L); | |
12484 return SWIG_arg; | |
12485 } | |
12486 | |
12487 | |
12488 static int _wrap_Player_field_1A4D_get(lua_State* L) { | |
12489 int SWIG_arg = 0; | |
12490 Player *arg1 = (Player *) 0 ; | |
12491 char result; | |
12492 | |
12493 SWIG_check_num_args("Player::field_1A4D",1,1) | |
12494 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1A4D",1,"Player *"); | |
12495 | |
12496 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12497 SWIG_fail_ptr("Player_field_1A4D_get",1,SWIGTYPE_p_Player); | |
12498 } | |
12499 | |
12500 result = (char) ((arg1)->field_1A4D); | |
12501 lua_pushfstring(L,"%c",result); SWIG_arg++; | |
12502 return SWIG_arg; | |
12503 | |
12504 if(0) SWIG_fail; | |
12505 | |
12506 fail: | |
12507 lua_error(L); | |
12508 return SWIG_arg; | |
12509 } | |
12510 | |
12511 | |
12512 static int _wrap_Player_lastOpenedSpellbookPage_set(lua_State* L) { | |
12513 int SWIG_arg = 0; | |
12514 Player *arg1 = (Player *) 0 ; | |
12515 char arg2 ; | |
12516 | |
12517 SWIG_check_num_args("Player::lastOpenedSpellbookPage",2,2) | |
12518 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::lastOpenedSpellbookPage",1,"Player *"); | |
12519 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::lastOpenedSpellbookPage",2,"char"); | |
12520 | |
12521 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12522 SWIG_fail_ptr("Player_lastOpenedSpellbookPage_set",1,SWIGTYPE_p_Player); | |
12523 } | |
12524 | |
12525 arg2 = (lua_tostring(L, 2))[0]; | |
12526 if (arg1) (arg1)->lastOpenedSpellbookPage = arg2; | |
12527 | |
12528 return SWIG_arg; | |
12529 | |
12530 if(0) SWIG_fail; | |
12531 | |
12532 fail: | |
12533 lua_error(L); | |
12534 return SWIG_arg; | |
12535 } | |
12536 | |
12537 | |
12538 static int _wrap_Player_lastOpenedSpellbookPage_get(lua_State* L) { | |
12539 int SWIG_arg = 0; | |
12540 Player *arg1 = (Player *) 0 ; | |
12541 char result; | |
12542 | |
12543 SWIG_check_num_args("Player::lastOpenedSpellbookPage",1,1) | |
12544 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::lastOpenedSpellbookPage",1,"Player *"); | |
12545 | |
12546 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12547 SWIG_fail_ptr("Player_lastOpenedSpellbookPage_get",1,SWIGTYPE_p_Player); | |
12548 } | |
12549 | |
12550 result = (char) ((arg1)->lastOpenedSpellbookPage); | |
12551 lua_pushfstring(L,"%c",result); SWIG_arg++; | |
12552 return SWIG_arg; | |
12553 | |
12554 if(0) SWIG_fail; | |
12555 | |
12556 fail: | |
12557 lua_error(L); | |
12558 return SWIG_arg; | |
12559 } | |
12560 | |
12561 | |
12562 static int _wrap_Player_uQuickSpell_set(lua_State* L) { | |
12563 int SWIG_arg = 0; | |
12564 Player *arg1 = (Player *) 0 ; | |
12565 unsigned __int8 arg2 ; | |
12566 unsigned __int8 *argp2 ; | |
12567 | |
12568 SWIG_check_num_args("Player::uQuickSpell",2,2) | |
12569 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uQuickSpell",1,"Player *"); | |
12570 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::uQuickSpell",2,"unsigned __int8"); | |
12571 | |
12572 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12573 SWIG_fail_ptr("Player_uQuickSpell_set",1,SWIGTYPE_p_Player); | |
12574 } | |
12575 | |
12576 | |
12577 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_unsigned___int8,0))){ | |
12578 SWIG_fail_ptr("Player_uQuickSpell_set",2,SWIGTYPE_p_unsigned___int8); | |
12579 } | |
12580 arg2 = *argp2; | |
12581 | |
12582 if (arg1) (arg1)->uQuickSpell = arg2; | |
12583 | |
12584 return SWIG_arg; | |
12585 | |
12586 if(0) SWIG_fail; | |
12587 | |
12588 fail: | |
12589 lua_error(L); | |
12590 return SWIG_arg; | |
12591 } | |
12592 | |
12593 | |
12594 static int _wrap_Player_uQuickSpell_get(lua_State* L) { | |
12595 int SWIG_arg = 0; | |
12596 Player *arg1 = (Player *) 0 ; | |
12597 unsigned __int8 result; | |
12598 | |
12599 SWIG_check_num_args("Player::uQuickSpell",1,1) | |
12600 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uQuickSpell",1,"Player *"); | |
12601 | |
12602 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12603 SWIG_fail_ptr("Player_uQuickSpell_get",1,SWIGTYPE_p_Player); | |
12604 } | |
12605 | |
12606 result = ((arg1)->uQuickSpell); | |
12607 { | |
12608 unsigned __int8 * resultptr = new unsigned __int8((const unsigned __int8 &) result); | |
12609 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_unsigned___int8,1); SWIG_arg++; | |
12610 } | |
12611 return SWIG_arg; | |
12612 | |
12613 if(0) SWIG_fail; | |
12614 | |
12615 fail: | |
12616 lua_error(L); | |
12617 return SWIG_arg; | |
12618 } | |
12619 | |
12620 | |
12621 static int _wrap_Player_playerEventBits_set(lua_State* L) { | |
12622 int SWIG_arg = 0; | |
12623 Player *arg1 = (Player *) 0 ; | |
12624 char *arg2 ; | |
12625 | |
12626 SWIG_check_num_args("Player::playerEventBits",2,2) | |
12627 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::playerEventBits",1,"Player *"); | |
12628 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::playerEventBits",2,"char [64]"); | |
12629 | |
12630 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12631 SWIG_fail_ptr("Player_playerEventBits_set",1,SWIGTYPE_p_Player); | |
12632 } | |
12633 | |
12634 arg2 = (char *)lua_tostring(L, 2); | |
12635 { | |
12636 if(arg2) { | |
12637 strncpy((char*)arg1->playerEventBits, (const char *)arg2, 64-1); | |
12638 arg1->playerEventBits[64-1] = 0; | |
12639 } else { | |
12640 arg1->playerEventBits[0] = 0; | |
12641 } | |
12642 } | |
12643 | |
12644 return SWIG_arg; | |
12645 | |
12646 if(0) SWIG_fail; | |
12647 | |
12648 fail: | |
12649 lua_error(L); | |
12650 return SWIG_arg; | |
12651 } | |
12652 | |
12653 | |
12654 static int _wrap_Player_playerEventBits_get(lua_State* L) { | |
12655 int SWIG_arg = 0; | |
12656 Player *arg1 = (Player *) 0 ; | |
12657 char *result = 0 ; | |
12658 | |
12659 SWIG_check_num_args("Player::playerEventBits",1,1) | |
12660 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::playerEventBits",1,"Player *"); | |
12661 | |
12662 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12663 SWIG_fail_ptr("Player_playerEventBits_get",1,SWIGTYPE_p_Player); | |
12664 } | |
12665 | |
12666 result = (char *)(char *) ((arg1)->playerEventBits); | |
12667 lua_pushstring(L,(const char *)result); SWIG_arg++; | |
12668 return SWIG_arg; | |
12669 | |
12670 if(0) SWIG_fail; | |
12671 | |
12672 fail: | |
12673 lua_error(L); | |
12674 return SWIG_arg; | |
12675 } | |
12676 | |
12677 | |
12678 static int _wrap_Player__some_attack_bonus_set(lua_State* L) { | |
12679 int SWIG_arg = 0; | |
12680 Player *arg1 = (Player *) 0 ; | |
12681 char arg2 ; | |
12682 | |
12683 SWIG_check_num_args("Player::_some_attack_bonus",2,2) | |
12684 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::_some_attack_bonus",1,"Player *"); | |
12685 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::_some_attack_bonus",2,"char"); | |
12686 | |
12687 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12688 SWIG_fail_ptr("Player__some_attack_bonus_set",1,SWIGTYPE_p_Player); | |
12689 } | |
12690 | |
12691 arg2 = (lua_tostring(L, 2))[0]; | |
12692 if (arg1) (arg1)->_some_attack_bonus = arg2; | |
12693 | |
12694 return SWIG_arg; | |
12695 | |
12696 if(0) SWIG_fail; | |
12697 | |
12698 fail: | |
12699 lua_error(L); | |
12700 return SWIG_arg; | |
12701 } | |
12702 | |
12703 | |
12704 static int _wrap_Player__some_attack_bonus_get(lua_State* L) { | |
12705 int SWIG_arg = 0; | |
12706 Player *arg1 = (Player *) 0 ; | |
12707 char result; | |
12708 | |
12709 SWIG_check_num_args("Player::_some_attack_bonus",1,1) | |
12710 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::_some_attack_bonus",1,"Player *"); | |
12711 | |
12712 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12713 SWIG_fail_ptr("Player__some_attack_bonus_get",1,SWIGTYPE_p_Player); | |
12714 } | |
12715 | |
12716 result = (char) ((arg1)->_some_attack_bonus); | |
12717 lua_pushfstring(L,"%c",result); SWIG_arg++; | |
12718 return SWIG_arg; | |
12719 | |
12720 if(0) SWIG_fail; | |
12721 | |
12722 fail: | |
12723 lua_error(L); | |
12724 return SWIG_arg; | |
12725 } | |
12726 | |
12727 | |
12728 static int _wrap_Player_field_1A91_set(lua_State* L) { | |
12729 int SWIG_arg = 0; | |
12730 Player *arg1 = (Player *) 0 ; | |
12731 char arg2 ; | |
12732 | |
12733 SWIG_check_num_args("Player::field_1A91",2,2) | |
12734 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1A91",1,"Player *"); | |
12735 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::field_1A91",2,"char"); | |
12736 | |
12737 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12738 SWIG_fail_ptr("Player_field_1A91_set",1,SWIGTYPE_p_Player); | |
12739 } | |
12740 | |
12741 arg2 = (lua_tostring(L, 2))[0]; | |
12742 if (arg1) (arg1)->field_1A91 = arg2; | |
12743 | |
12744 return SWIG_arg; | |
12745 | |
12746 if(0) SWIG_fail; | |
12747 | |
12748 fail: | |
12749 lua_error(L); | |
12750 return SWIG_arg; | |
12751 } | |
12752 | |
12753 | |
12754 static int _wrap_Player_field_1A91_get(lua_State* L) { | |
12755 int SWIG_arg = 0; | |
12756 Player *arg1 = (Player *) 0 ; | |
12757 char result; | |
12758 | |
12759 SWIG_check_num_args("Player::field_1A91",1,1) | |
12760 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1A91",1,"Player *"); | |
12761 | |
12762 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12763 SWIG_fail_ptr("Player_field_1A91_get",1,SWIGTYPE_p_Player); | |
12764 } | |
12765 | |
12766 result = (char) ((arg1)->field_1A91); | |
12767 lua_pushfstring(L,"%c",result); SWIG_arg++; | |
12768 return SWIG_arg; | |
12769 | |
12770 if(0) SWIG_fail; | |
12771 | |
12772 fail: | |
12773 lua_error(L); | |
12774 return SWIG_arg; | |
12775 } | |
12776 | |
12777 | |
12778 static int _wrap_Player__melee_dmg_bonus_set(lua_State* L) { | |
12779 int SWIG_arg = 0; | |
12780 Player *arg1 = (Player *) 0 ; | |
12781 char arg2 ; | |
12782 | |
12783 SWIG_check_num_args("Player::_melee_dmg_bonus",2,2) | |
12784 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::_melee_dmg_bonus",1,"Player *"); | |
12785 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::_melee_dmg_bonus",2,"char"); | |
12786 | |
12787 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12788 SWIG_fail_ptr("Player__melee_dmg_bonus_set",1,SWIGTYPE_p_Player); | |
12789 } | |
12790 | |
12791 arg2 = (lua_tostring(L, 2))[0]; | |
12792 if (arg1) (arg1)->_melee_dmg_bonus = arg2; | |
12793 | |
12794 return SWIG_arg; | |
12795 | |
12796 if(0) SWIG_fail; | |
12797 | |
12798 fail: | |
12799 lua_error(L); | |
12800 return SWIG_arg; | |
12801 } | |
12802 | |
12803 | |
12804 static int _wrap_Player__melee_dmg_bonus_get(lua_State* L) { | |
12805 int SWIG_arg = 0; | |
12806 Player *arg1 = (Player *) 0 ; | |
12807 char result; | |
12808 | |
12809 SWIG_check_num_args("Player::_melee_dmg_bonus",1,1) | |
12810 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::_melee_dmg_bonus",1,"Player *"); | |
12811 | |
12812 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12813 SWIG_fail_ptr("Player__melee_dmg_bonus_get",1,SWIGTYPE_p_Player); | |
12814 } | |
12815 | |
12816 result = (char) ((arg1)->_melee_dmg_bonus); | |
12817 lua_pushfstring(L,"%c",result); SWIG_arg++; | |
12818 return SWIG_arg; | |
12819 | |
12820 if(0) SWIG_fail; | |
12821 | |
12822 fail: | |
12823 lua_error(L); | |
12824 return SWIG_arg; | |
12825 } | |
12826 | |
12827 | |
12828 static int _wrap_Player_field_1A93_set(lua_State* L) { | |
12829 int SWIG_arg = 0; | |
12830 Player *arg1 = (Player *) 0 ; | |
12831 char arg2 ; | |
12832 | |
12833 SWIG_check_num_args("Player::field_1A93",2,2) | |
12834 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1A93",1,"Player *"); | |
12835 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::field_1A93",2,"char"); | |
12836 | |
12837 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12838 SWIG_fail_ptr("Player_field_1A93_set",1,SWIGTYPE_p_Player); | |
12839 } | |
12840 | |
12841 arg2 = (lua_tostring(L, 2))[0]; | |
12842 if (arg1) (arg1)->field_1A93 = arg2; | |
12843 | |
12844 return SWIG_arg; | |
12845 | |
12846 if(0) SWIG_fail; | |
12847 | |
12848 fail: | |
12849 lua_error(L); | |
12850 return SWIG_arg; | |
12851 } | |
12852 | |
12853 | |
12854 static int _wrap_Player_field_1A93_get(lua_State* L) { | |
12855 int SWIG_arg = 0; | |
12856 Player *arg1 = (Player *) 0 ; | |
12857 char result; | |
12858 | |
12859 SWIG_check_num_args("Player::field_1A93",1,1) | |
12860 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1A93",1,"Player *"); | |
12861 | |
12862 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12863 SWIG_fail_ptr("Player_field_1A93_get",1,SWIGTYPE_p_Player); | |
12864 } | |
12865 | |
12866 result = (char) ((arg1)->field_1A93); | |
12867 lua_pushfstring(L,"%c",result); SWIG_arg++; | |
12868 return SWIG_arg; | |
12869 | |
12870 if(0) SWIG_fail; | |
12871 | |
12872 fail: | |
12873 lua_error(L); | |
12874 return SWIG_arg; | |
12875 } | |
12876 | |
12877 | |
12878 static int _wrap_Player__ranged_atk_bonus_set(lua_State* L) { | |
12879 int SWIG_arg = 0; | |
12880 Player *arg1 = (Player *) 0 ; | |
12881 char arg2 ; | |
12882 | |
12883 SWIG_check_num_args("Player::_ranged_atk_bonus",2,2) | |
12884 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::_ranged_atk_bonus",1,"Player *"); | |
12885 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::_ranged_atk_bonus",2,"char"); | |
12886 | |
12887 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12888 SWIG_fail_ptr("Player__ranged_atk_bonus_set",1,SWIGTYPE_p_Player); | |
12889 } | |
12890 | |
12891 arg2 = (lua_tostring(L, 2))[0]; | |
12892 if (arg1) (arg1)->_ranged_atk_bonus = arg2; | |
12893 | |
12894 return SWIG_arg; | |
12895 | |
12896 if(0) SWIG_fail; | |
12897 | |
12898 fail: | |
12899 lua_error(L); | |
12900 return SWIG_arg; | |
12901 } | |
12902 | |
12903 | |
12904 static int _wrap_Player__ranged_atk_bonus_get(lua_State* L) { | |
12905 int SWIG_arg = 0; | |
12906 Player *arg1 = (Player *) 0 ; | |
12907 char result; | |
12908 | |
12909 SWIG_check_num_args("Player::_ranged_atk_bonus",1,1) | |
12910 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::_ranged_atk_bonus",1,"Player *"); | |
12911 | |
12912 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12913 SWIG_fail_ptr("Player__ranged_atk_bonus_get",1,SWIGTYPE_p_Player); | |
12914 } | |
12915 | |
12916 result = (char) ((arg1)->_ranged_atk_bonus); | |
12917 lua_pushfstring(L,"%c",result); SWIG_arg++; | |
12918 return SWIG_arg; | |
12919 | |
12920 if(0) SWIG_fail; | |
12921 | |
12922 fail: | |
12923 lua_error(L); | |
12924 return SWIG_arg; | |
12925 } | |
12926 | |
12927 | |
12928 static int _wrap_Player_field_1A95_set(lua_State* L) { | |
12929 int SWIG_arg = 0; | |
12930 Player *arg1 = (Player *) 0 ; | |
12931 char arg2 ; | |
12932 | |
12933 SWIG_check_num_args("Player::field_1A95",2,2) | |
12934 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1A95",1,"Player *"); | |
12935 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::field_1A95",2,"char"); | |
12936 | |
12937 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12938 SWIG_fail_ptr("Player_field_1A95_set",1,SWIGTYPE_p_Player); | |
12939 } | |
12940 | |
12941 arg2 = (lua_tostring(L, 2))[0]; | |
12942 if (arg1) (arg1)->field_1A95 = arg2; | |
12943 | |
12944 return SWIG_arg; | |
12945 | |
12946 if(0) SWIG_fail; | |
12947 | |
12948 fail: | |
12949 lua_error(L); | |
12950 return SWIG_arg; | |
12951 } | |
12952 | |
12953 | |
12954 static int _wrap_Player_field_1A95_get(lua_State* L) { | |
12955 int SWIG_arg = 0; | |
12956 Player *arg1 = (Player *) 0 ; | |
12957 char result; | |
12958 | |
12959 SWIG_check_num_args("Player::field_1A95",1,1) | |
12960 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1A95",1,"Player *"); | |
12961 | |
12962 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12963 SWIG_fail_ptr("Player_field_1A95_get",1,SWIGTYPE_p_Player); | |
12964 } | |
12965 | |
12966 result = (char) ((arg1)->field_1A95); | |
12967 lua_pushfstring(L,"%c",result); SWIG_arg++; | |
12968 return SWIG_arg; | |
12969 | |
12970 if(0) SWIG_fail; | |
12971 | |
12972 fail: | |
12973 lua_error(L); | |
12974 return SWIG_arg; | |
12975 } | |
12976 | |
12977 | |
12978 static int _wrap_Player__ranged_dmg_bonus_set(lua_State* L) { | |
12979 int SWIG_arg = 0; | |
12980 Player *arg1 = (Player *) 0 ; | |
12981 char arg2 ; | |
12982 | |
12983 SWIG_check_num_args("Player::_ranged_dmg_bonus",2,2) | |
12984 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::_ranged_dmg_bonus",1,"Player *"); | |
12985 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::_ranged_dmg_bonus",2,"char"); | |
12986 | |
12987 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
12988 SWIG_fail_ptr("Player__ranged_dmg_bonus_set",1,SWIGTYPE_p_Player); | |
12989 } | |
12990 | |
12991 arg2 = (lua_tostring(L, 2))[0]; | |
12992 if (arg1) (arg1)->_ranged_dmg_bonus = arg2; | |
12993 | |
12994 return SWIG_arg; | |
12995 | |
12996 if(0) SWIG_fail; | |
12997 | |
12998 fail: | |
12999 lua_error(L); | |
13000 return SWIG_arg; | |
13001 } | |
13002 | |
13003 | |
13004 static int _wrap_Player__ranged_dmg_bonus_get(lua_State* L) { | |
13005 int SWIG_arg = 0; | |
13006 Player *arg1 = (Player *) 0 ; | |
13007 char result; | |
13008 | |
13009 SWIG_check_num_args("Player::_ranged_dmg_bonus",1,1) | |
13010 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::_ranged_dmg_bonus",1,"Player *"); | |
13011 | |
13012 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13013 SWIG_fail_ptr("Player__ranged_dmg_bonus_get",1,SWIGTYPE_p_Player); | |
13014 } | |
13015 | |
13016 result = (char) ((arg1)->_ranged_dmg_bonus); | |
13017 lua_pushfstring(L,"%c",result); SWIG_arg++; | |
13018 return SWIG_arg; | |
13019 | |
13020 if(0) SWIG_fail; | |
13021 | |
13022 fail: | |
13023 lua_error(L); | |
13024 return SWIG_arg; | |
13025 } | |
13026 | |
13027 | |
13028 static int _wrap_Player_field_1A97_set(lua_State* L) { | |
13029 int SWIG_arg = 0; | |
13030 Player *arg1 = (Player *) 0 ; | |
13031 char arg2 ; | |
13032 | |
13033 SWIG_check_num_args("Player::field_1A97",2,2) | |
13034 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1A97",1,"Player *"); | |
13035 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::field_1A97",2,"char"); | |
13036 | |
13037 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13038 SWIG_fail_ptr("Player_field_1A97_set",1,SWIGTYPE_p_Player); | |
13039 } | |
13040 | |
13041 arg2 = (lua_tostring(L, 2))[0]; | |
13042 if (arg1) (arg1)->field_1A97 = arg2; | |
13043 | |
13044 return SWIG_arg; | |
13045 | |
13046 if(0) SWIG_fail; | |
13047 | |
13048 fail: | |
13049 lua_error(L); | |
13050 return SWIG_arg; | |
13051 } | |
13052 | |
13053 | |
13054 static int _wrap_Player_field_1A97_get(lua_State* L) { | |
13055 int SWIG_arg = 0; | |
13056 Player *arg1 = (Player *) 0 ; | |
13057 char result; | |
13058 | |
13059 SWIG_check_num_args("Player::field_1A97",1,1) | |
13060 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1A97",1,"Player *"); | |
13061 | |
13062 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13063 SWIG_fail_ptr("Player_field_1A97_get",1,SWIGTYPE_p_Player); | |
13064 } | |
13065 | |
13066 result = (char) ((arg1)->field_1A97); | |
13067 lua_pushfstring(L,"%c",result); SWIG_arg++; | |
13068 return SWIG_arg; | |
13069 | |
13070 if(0) SWIG_fail; | |
13071 | |
13072 fail: | |
13073 lua_error(L); | |
13074 return SWIG_arg; | |
13075 } | |
13076 | |
13077 | |
13078 static int _wrap_Player_uFullHealthBonus_set(lua_State* L) { | |
13079 int SWIG_arg = 0; | |
13080 Player *arg1 = (Player *) 0 ; | |
13081 char arg2 ; | |
13082 | |
13083 SWIG_check_num_args("Player::uFullHealthBonus",2,2) | |
13084 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uFullHealthBonus",1,"Player *"); | |
13085 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::uFullHealthBonus",2,"char"); | |
13086 | |
13087 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13088 SWIG_fail_ptr("Player_uFullHealthBonus_set",1,SWIGTYPE_p_Player); | |
13089 } | |
13090 | |
13091 arg2 = (lua_tostring(L, 2))[0]; | |
13092 if (arg1) (arg1)->uFullHealthBonus = arg2; | |
13093 | |
13094 return SWIG_arg; | |
13095 | |
13096 if(0) SWIG_fail; | |
13097 | |
13098 fail: | |
13099 lua_error(L); | |
13100 return SWIG_arg; | |
13101 } | |
13102 | |
13103 | |
13104 static int _wrap_Player_uFullHealthBonus_get(lua_State* L) { | |
13105 int SWIG_arg = 0; | |
13106 Player *arg1 = (Player *) 0 ; | |
13107 char result; | |
13108 | |
13109 SWIG_check_num_args("Player::uFullHealthBonus",1,1) | |
13110 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uFullHealthBonus",1,"Player *"); | |
13111 | |
13112 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13113 SWIG_fail_ptr("Player_uFullHealthBonus_get",1,SWIGTYPE_p_Player); | |
13114 } | |
13115 | |
13116 result = (char) ((arg1)->uFullHealthBonus); | |
13117 lua_pushfstring(L,"%c",result); SWIG_arg++; | |
13118 return SWIG_arg; | |
13119 | |
13120 if(0) SWIG_fail; | |
13121 | |
13122 fail: | |
13123 lua_error(L); | |
13124 return SWIG_arg; | |
13125 } | |
13126 | |
13127 | |
13128 static int _wrap_Player__health_related_set(lua_State* L) { | |
13129 int SWIG_arg = 0; | |
13130 Player *arg1 = (Player *) 0 ; | |
13131 char arg2 ; | |
13132 | |
13133 SWIG_check_num_args("Player::_health_related",2,2) | |
13134 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::_health_related",1,"Player *"); | |
13135 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::_health_related",2,"char"); | |
13136 | |
13137 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13138 SWIG_fail_ptr("Player__health_related_set",1,SWIGTYPE_p_Player); | |
13139 } | |
13140 | |
13141 arg2 = (lua_tostring(L, 2))[0]; | |
13142 if (arg1) (arg1)->_health_related = arg2; | |
13143 | |
13144 return SWIG_arg; | |
13145 | |
13146 if(0) SWIG_fail; | |
13147 | |
13148 fail: | |
13149 lua_error(L); | |
13150 return SWIG_arg; | |
13151 } | |
13152 | |
13153 | |
13154 static int _wrap_Player__health_related_get(lua_State* L) { | |
13155 int SWIG_arg = 0; | |
13156 Player *arg1 = (Player *) 0 ; | |
13157 char result; | |
13158 | |
13159 SWIG_check_num_args("Player::_health_related",1,1) | |
13160 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::_health_related",1,"Player *"); | |
13161 | |
13162 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13163 SWIG_fail_ptr("Player__health_related_get",1,SWIGTYPE_p_Player); | |
13164 } | |
13165 | |
13166 result = (char) ((arg1)->_health_related); | |
13167 lua_pushfstring(L,"%c",result); SWIG_arg++; | |
13168 return SWIG_arg; | |
13169 | |
13170 if(0) SWIG_fail; | |
13171 | |
13172 fail: | |
13173 lua_error(L); | |
13174 return SWIG_arg; | |
13175 } | |
13176 | |
13177 | |
13178 static int _wrap_Player_uFullManaBonus_set(lua_State* L) { | |
13179 int SWIG_arg = 0; | |
13180 Player *arg1 = (Player *) 0 ; | |
13181 char arg2 ; | |
13182 | |
13183 SWIG_check_num_args("Player::uFullManaBonus",2,2) | |
13184 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uFullManaBonus",1,"Player *"); | |
13185 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::uFullManaBonus",2,"char"); | |
13186 | |
13187 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13188 SWIG_fail_ptr("Player_uFullManaBonus_set",1,SWIGTYPE_p_Player); | |
13189 } | |
13190 | |
13191 arg2 = (lua_tostring(L, 2))[0]; | |
13192 if (arg1) (arg1)->uFullManaBonus = arg2; | |
13193 | |
13194 return SWIG_arg; | |
13195 | |
13196 if(0) SWIG_fail; | |
13197 | |
13198 fail: | |
13199 lua_error(L); | |
13200 return SWIG_arg; | |
13201 } | |
13202 | |
13203 | |
13204 static int _wrap_Player_uFullManaBonus_get(lua_State* L) { | |
13205 int SWIG_arg = 0; | |
13206 Player *arg1 = (Player *) 0 ; | |
13207 char result; | |
13208 | |
13209 SWIG_check_num_args("Player::uFullManaBonus",1,1) | |
13210 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uFullManaBonus",1,"Player *"); | |
13211 | |
13212 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13213 SWIG_fail_ptr("Player_uFullManaBonus_get",1,SWIGTYPE_p_Player); | |
13214 } | |
13215 | |
13216 result = (char) ((arg1)->uFullManaBonus); | |
13217 lua_pushfstring(L,"%c",result); SWIG_arg++; | |
13218 return SWIG_arg; | |
13219 | |
13220 if(0) SWIG_fail; | |
13221 | |
13222 fail: | |
13223 lua_error(L); | |
13224 return SWIG_arg; | |
13225 } | |
13226 | |
13227 | |
13228 static int _wrap_Player__mana_related_set(lua_State* L) { | |
13229 int SWIG_arg = 0; | |
13230 Player *arg1 = (Player *) 0 ; | |
13231 char arg2 ; | |
13232 | |
13233 SWIG_check_num_args("Player::_mana_related",2,2) | |
13234 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::_mana_related",1,"Player *"); | |
13235 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::_mana_related",2,"char"); | |
13236 | |
13237 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13238 SWIG_fail_ptr("Player__mana_related_set",1,SWIGTYPE_p_Player); | |
13239 } | |
13240 | |
13241 arg2 = (lua_tostring(L, 2))[0]; | |
13242 if (arg1) (arg1)->_mana_related = arg2; | |
13243 | |
13244 return SWIG_arg; | |
13245 | |
13246 if(0) SWIG_fail; | |
13247 | |
13248 fail: | |
13249 lua_error(L); | |
13250 return SWIG_arg; | |
13251 } | |
13252 | |
13253 | |
13254 static int _wrap_Player__mana_related_get(lua_State* L) { | |
13255 int SWIG_arg = 0; | |
13256 Player *arg1 = (Player *) 0 ; | |
13257 char result; | |
13258 | |
13259 SWIG_check_num_args("Player::_mana_related",1,1) | |
13260 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::_mana_related",1,"Player *"); | |
13261 | |
13262 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13263 SWIG_fail_ptr("Player__mana_related_get",1,SWIGTYPE_p_Player); | |
13264 } | |
13265 | |
13266 result = (char) ((arg1)->_mana_related); | |
13267 lua_pushfstring(L,"%c",result); SWIG_arg++; | |
13268 return SWIG_arg; | |
13269 | |
13270 if(0) SWIG_fail; | |
13271 | |
13272 fail: | |
13273 lua_error(L); | |
13274 return SWIG_arg; | |
13275 } | |
13276 | |
13277 | |
13278 static int _wrap_Player_expression_set(lua_State* L) { | |
13279 int SWIG_arg = 0; | |
13280 Player *arg1 = (Player *) 0 ; | |
13281 CHARACTER_EXPRESSION_ID arg2 ; | |
13282 | |
13283 SWIG_check_num_args("Player::expression",2,2) | |
13284 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::expression",1,"Player *"); | |
13285 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::expression",2,"CHARACTER_EXPRESSION_ID"); | |
13286 | |
13287 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13288 SWIG_fail_ptr("Player_expression_set",1,SWIGTYPE_p_Player); | |
13289 } | |
13290 | |
13291 arg2 = (CHARACTER_EXPRESSION_ID)(int)lua_tonumber(L, 2); | |
13292 if (arg1) (arg1)->expression = arg2; | |
13293 | |
13294 return SWIG_arg; | |
13295 | |
13296 if(0) SWIG_fail; | |
13297 | |
13298 fail: | |
13299 lua_error(L); | |
13300 return SWIG_arg; | |
13301 } | |
13302 | |
13303 | |
13304 static int _wrap_Player_expression_get(lua_State* L) { | |
13305 int SWIG_arg = 0; | |
13306 Player *arg1 = (Player *) 0 ; | |
13307 CHARACTER_EXPRESSION_ID result; | |
13308 | |
13309 SWIG_check_num_args("Player::expression",1,1) | |
13310 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::expression",1,"Player *"); | |
13311 | |
13312 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13313 SWIG_fail_ptr("Player_expression_get",1,SWIGTYPE_p_Player); | |
13314 } | |
13315 | |
13316 result = (CHARACTER_EXPRESSION_ID) ((arg1)->expression); | |
13317 lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++; | |
13318 return SWIG_arg; | |
13319 | |
13320 if(0) SWIG_fail; | |
13321 | |
13322 fail: | |
13323 lua_error(L); | |
13324 return SWIG_arg; | |
13325 } | |
13326 | |
13327 | |
13328 static int _wrap_Player_uExpressionTimePassed_set(lua_State* L) { | |
13329 int SWIG_arg = 0; | |
13330 Player *arg1 = (Player *) 0 ; | |
13331 unsigned __int16 arg2 ; | |
13332 unsigned __int16 *argp2 ; | |
13333 | |
13334 SWIG_check_num_args("Player::uExpressionTimePassed",2,2) | |
13335 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uExpressionTimePassed",1,"Player *"); | |
13336 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::uExpressionTimePassed",2,"unsigned __int16"); | |
13337 | |
13338 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13339 SWIG_fail_ptr("Player_uExpressionTimePassed_set",1,SWIGTYPE_p_Player); | |
13340 } | |
13341 | |
13342 | |
13343 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_unsigned___int16,0))){ | |
13344 SWIG_fail_ptr("Player_uExpressionTimePassed_set",2,SWIGTYPE_p_unsigned___int16); | |
13345 } | |
13346 arg2 = *argp2; | |
13347 | |
13348 if (arg1) (arg1)->uExpressionTimePassed = arg2; | |
13349 | |
13350 return SWIG_arg; | |
13351 | |
13352 if(0) SWIG_fail; | |
13353 | |
13354 fail: | |
13355 lua_error(L); | |
13356 return SWIG_arg; | |
13357 } | |
13358 | |
13359 | |
13360 static int _wrap_Player_uExpressionTimePassed_get(lua_State* L) { | |
13361 int SWIG_arg = 0; | |
13362 Player *arg1 = (Player *) 0 ; | |
13363 unsigned __int16 result; | |
13364 | |
13365 SWIG_check_num_args("Player::uExpressionTimePassed",1,1) | |
13366 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uExpressionTimePassed",1,"Player *"); | |
13367 | |
13368 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13369 SWIG_fail_ptr("Player_uExpressionTimePassed_get",1,SWIGTYPE_p_Player); | |
13370 } | |
13371 | |
13372 result = ((arg1)->uExpressionTimePassed); | |
13373 { | |
13374 unsigned __int16 * resultptr = new unsigned __int16((const unsigned __int16 &) result); | |
13375 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_unsigned___int16,1); SWIG_arg++; | |
13376 } | |
13377 return SWIG_arg; | |
13378 | |
13379 if(0) SWIG_fail; | |
13380 | |
13381 fail: | |
13382 lua_error(L); | |
13383 return SWIG_arg; | |
13384 } | |
13385 | |
13386 | |
13387 static int _wrap_Player_uExpressionTimeLength_set(lua_State* L) { | |
13388 int SWIG_arg = 0; | |
13389 Player *arg1 = (Player *) 0 ; | |
13390 unsigned __int16 arg2 ; | |
13391 unsigned __int16 *argp2 ; | |
13392 | |
13393 SWIG_check_num_args("Player::uExpressionTimeLength",2,2) | |
13394 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uExpressionTimeLength",1,"Player *"); | |
13395 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::uExpressionTimeLength",2,"unsigned __int16"); | |
13396 | |
13397 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13398 SWIG_fail_ptr("Player_uExpressionTimeLength_set",1,SWIGTYPE_p_Player); | |
13399 } | |
13400 | |
13401 | |
13402 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_unsigned___int16,0))){ | |
13403 SWIG_fail_ptr("Player_uExpressionTimeLength_set",2,SWIGTYPE_p_unsigned___int16); | |
13404 } | |
13405 arg2 = *argp2; | |
13406 | |
13407 if (arg1) (arg1)->uExpressionTimeLength = arg2; | |
13408 | |
13409 return SWIG_arg; | |
13410 | |
13411 if(0) SWIG_fail; | |
13412 | |
13413 fail: | |
13414 lua_error(L); | |
13415 return SWIG_arg; | |
13416 } | |
13417 | |
13418 | |
13419 static int _wrap_Player_uExpressionTimeLength_get(lua_State* L) { | |
13420 int SWIG_arg = 0; | |
13421 Player *arg1 = (Player *) 0 ; | |
13422 unsigned __int16 result; | |
13423 | |
13424 SWIG_check_num_args("Player::uExpressionTimeLength",1,1) | |
13425 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uExpressionTimeLength",1,"Player *"); | |
13426 | |
13427 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13428 SWIG_fail_ptr("Player_uExpressionTimeLength_get",1,SWIGTYPE_p_Player); | |
13429 } | |
13430 | |
13431 result = ((arg1)->uExpressionTimeLength); | |
13432 { | |
13433 unsigned __int16 * resultptr = new unsigned __int16((const unsigned __int16 &) result); | |
13434 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_unsigned___int16,1); SWIG_arg++; | |
13435 } | |
13436 return SWIG_arg; | |
13437 | |
13438 if(0) SWIG_fail; | |
13439 | |
13440 fail: | |
13441 lua_error(L); | |
13442 return SWIG_arg; | |
13443 } | |
13444 | |
13445 | |
13446 static int _wrap_Player_field_1AA2_set(lua_State* L) { | |
13447 int SWIG_arg = 0; | |
13448 Player *arg1 = (Player *) 0 ; | |
13449 __int16 arg2 ; | |
13450 __int16 *argp2 ; | |
13451 | |
13452 SWIG_check_num_args("Player::field_1AA2",2,2) | |
13453 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1AA2",1,"Player *"); | |
13454 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::field_1AA2",2,"__int16"); | |
13455 | |
13456 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13457 SWIG_fail_ptr("Player_field_1AA2_set",1,SWIGTYPE_p_Player); | |
13458 } | |
13459 | |
13460 | |
13461 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p___int16,0))){ | |
13462 SWIG_fail_ptr("Player_field_1AA2_set",2,SWIGTYPE_p___int16); | |
13463 } | |
13464 arg2 = *argp2; | |
13465 | |
13466 if (arg1) (arg1)->field_1AA2 = arg2; | |
13467 | |
13468 return SWIG_arg; | |
13469 | |
13470 if(0) SWIG_fail; | |
13471 | |
13472 fail: | |
13473 lua_error(L); | |
13474 return SWIG_arg; | |
13475 } | |
13476 | |
13477 | |
13478 static int _wrap_Player_field_1AA2_get(lua_State* L) { | |
13479 int SWIG_arg = 0; | |
13480 Player *arg1 = (Player *) 0 ; | |
13481 __int16 result; | |
13482 | |
13483 SWIG_check_num_args("Player::field_1AA2",1,1) | |
13484 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1AA2",1,"Player *"); | |
13485 | |
13486 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13487 SWIG_fail_ptr("Player_field_1AA2_get",1,SWIGTYPE_p_Player); | |
13488 } | |
13489 | |
13490 result = ((arg1)->field_1AA2); | |
13491 { | |
13492 __int16 * resultptr = new __int16((const __int16 &) result); | |
13493 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p___int16,1); SWIG_arg++; | |
13494 } | |
13495 return SWIG_arg; | |
13496 | |
13497 if(0) SWIG_fail; | |
13498 | |
13499 fail: | |
13500 lua_error(L); | |
13501 return SWIG_arg; | |
13502 } | |
13503 | |
13504 | |
13505 static int _wrap_Player__expression21_animtime_set(lua_State* L) { | |
13506 int SWIG_arg = 0; | |
13507 Player *arg1 = (Player *) 0 ; | |
13508 int arg2 ; | |
13509 | |
13510 SWIG_check_num_args("Player::_expression21_animtime",2,2) | |
13511 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::_expression21_animtime",1,"Player *"); | |
13512 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::_expression21_animtime",2,"int"); | |
13513 | |
13514 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13515 SWIG_fail_ptr("Player__expression21_animtime_set",1,SWIGTYPE_p_Player); | |
13516 } | |
13517 | |
13518 arg2 = (int)lua_tonumber(L, 2); | |
13519 if (arg1) (arg1)->_expression21_animtime = arg2; | |
13520 | |
13521 return SWIG_arg; | |
13522 | |
13523 if(0) SWIG_fail; | |
13524 | |
13525 fail: | |
13526 lua_error(L); | |
13527 return SWIG_arg; | |
13528 } | |
13529 | |
13530 | |
13531 static int _wrap_Player__expression21_animtime_get(lua_State* L) { | |
13532 int SWIG_arg = 0; | |
13533 Player *arg1 = (Player *) 0 ; | |
13534 int result; | |
13535 | |
13536 SWIG_check_num_args("Player::_expression21_animtime",1,1) | |
13537 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::_expression21_animtime",1,"Player *"); | |
13538 | |
13539 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13540 SWIG_fail_ptr("Player__expression21_animtime_get",1,SWIGTYPE_p_Player); | |
13541 } | |
13542 | |
13543 result = (int) ((arg1)->_expression21_animtime); | |
13544 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
13545 return SWIG_arg; | |
13546 | |
13547 if(0) SWIG_fail; | |
13548 | |
13549 fail: | |
13550 lua_error(L); | |
13551 return SWIG_arg; | |
13552 } | |
13553 | |
13554 | |
13555 static int _wrap_Player__expression21_frameset_set(lua_State* L) { | |
13556 int SWIG_arg = 0; | |
13557 Player *arg1 = (Player *) 0 ; | |
13558 int arg2 ; | |
13559 | |
13560 SWIG_check_num_args("Player::_expression21_frameset",2,2) | |
13561 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::_expression21_frameset",1,"Player *"); | |
13562 if(!lua_isnumber(L,2)) SWIG_fail_arg("Player::_expression21_frameset",2,"int"); | |
13563 | |
13564 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13565 SWIG_fail_ptr("Player__expression21_frameset_set",1,SWIGTYPE_p_Player); | |
13566 } | |
13567 | |
13568 arg2 = (int)lua_tonumber(L, 2); | |
13569 if (arg1) (arg1)->_expression21_frameset = arg2; | |
13570 | |
13571 return SWIG_arg; | |
13572 | |
13573 if(0) SWIG_fail; | |
13574 | |
13575 fail: | |
13576 lua_error(L); | |
13577 return SWIG_arg; | |
13578 } | |
13579 | |
13580 | |
13581 static int _wrap_Player__expression21_frameset_get(lua_State* L) { | |
13582 int SWIG_arg = 0; | |
13583 Player *arg1 = (Player *) 0 ; | |
13584 int result; | |
13585 | |
13586 SWIG_check_num_args("Player::_expression21_frameset",1,1) | |
13587 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::_expression21_frameset",1,"Player *"); | |
13588 | |
13589 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13590 SWIG_fail_ptr("Player__expression21_frameset_get",1,SWIGTYPE_p_Player); | |
13591 } | |
13592 | |
13593 result = (int) ((arg1)->_expression21_frameset); | |
13594 lua_pushnumber(L, (lua_Number) result); SWIG_arg++; | |
13595 return SWIG_arg; | |
13596 | |
13597 if(0) SWIG_fail; | |
13598 | |
13599 fail: | |
13600 lua_error(L); | |
13601 return SWIG_arg; | |
13602 } | |
13603 | |
13604 | |
13605 static int _wrap_Player_pInstalledBeacons_set(lua_State* L) { | |
13606 int SWIG_arg = 0; | |
13607 Player *arg1 = (Player *) 0 ; | |
13608 std::array< LloydBeacon,5 > arg2 ; | |
13609 std::array< LloydBeacon,5 > *argp2 ; | |
13610 | |
13611 SWIG_check_num_args("Player::pInstalledBeacons",2,2) | |
13612 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pInstalledBeacons",1,"Player *"); | |
13613 if(!lua_isuserdata(L,2)) SWIG_fail_arg("Player::pInstalledBeacons",2,"std::array< LloydBeacon,5 >"); | |
13614 | |
13615 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13616 SWIG_fail_ptr("Player_pInstalledBeacons_set",1,SWIGTYPE_p_Player); | |
13617 } | |
13618 | |
13619 | |
13620 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_std__arrayT_LloydBeacon_5_t,0))){ | |
13621 SWIG_fail_ptr("Player_pInstalledBeacons_set",2,SWIGTYPE_p_std__arrayT_LloydBeacon_5_t); | |
13622 } | |
13623 arg2 = *argp2; | |
13624 | |
13625 if (arg1) (arg1)->pInstalledBeacons = arg2; | |
13626 | |
13627 return SWIG_arg; | |
13628 | |
13629 if(0) SWIG_fail; | |
13630 | |
13631 fail: | |
13632 lua_error(L); | |
13633 return SWIG_arg; | |
13634 } | |
13635 | |
13636 | |
13637 static int _wrap_Player_pInstalledBeacons_get(lua_State* L) { | |
13638 int SWIG_arg = 0; | |
13639 Player *arg1 = (Player *) 0 ; | |
13640 std::array< LloydBeacon,5 > result; | |
13641 | |
13642 SWIG_check_num_args("Player::pInstalledBeacons",1,1) | |
13643 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::pInstalledBeacons",1,"Player *"); | |
13644 | |
13645 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13646 SWIG_fail_ptr("Player_pInstalledBeacons_get",1,SWIGTYPE_p_Player); | |
13647 } | |
13648 | |
13649 result = ((arg1)->pInstalledBeacons); | |
13650 { | |
13651 std::array< LloydBeacon,5 > * resultptr = new std::array< LloydBeacon,5 >((const std::array< LloydBeacon,5 > &) result); | |
13652 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_std__arrayT_LloydBeacon_5_t,1); SWIG_arg++; | |
13653 } | |
13654 return SWIG_arg; | |
13655 | |
13656 if(0) SWIG_fail; | |
13657 | |
13658 fail: | |
13659 lua_error(L); | |
13660 return SWIG_arg; | |
13661 } | |
13662 | |
13663 | |
13664 static int _wrap_Player_uNumDivineInterventionCastsThisDay_set(lua_State* L) { | |
13665 int SWIG_arg = 0; | |
13666 Player *arg1 = (Player *) 0 ; | |
13667 char arg2 ; | |
13668 | |
13669 SWIG_check_num_args("Player::uNumDivineInterventionCastsThisDay",2,2) | |
13670 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uNumDivineInterventionCastsThisDay",1,"Player *"); | |
13671 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::uNumDivineInterventionCastsThisDay",2,"char"); | |
13672 | |
13673 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13674 SWIG_fail_ptr("Player_uNumDivineInterventionCastsThisDay_set",1,SWIGTYPE_p_Player); | |
13675 } | |
13676 | |
13677 arg2 = (lua_tostring(L, 2))[0]; | |
13678 if (arg1) (arg1)->uNumDivineInterventionCastsThisDay = arg2; | |
13679 | |
13680 return SWIG_arg; | |
13681 | |
13682 if(0) SWIG_fail; | |
13683 | |
13684 fail: | |
13685 lua_error(L); | |
13686 return SWIG_arg; | |
13687 } | |
13688 | |
13689 | |
13690 static int _wrap_Player_uNumDivineInterventionCastsThisDay_get(lua_State* L) { | |
13691 int SWIG_arg = 0; | |
13692 Player *arg1 = (Player *) 0 ; | |
13693 char result; | |
13694 | |
13695 SWIG_check_num_args("Player::uNumDivineInterventionCastsThisDay",1,1) | |
13696 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uNumDivineInterventionCastsThisDay",1,"Player *"); | |
13697 | |
13698 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13699 SWIG_fail_ptr("Player_uNumDivineInterventionCastsThisDay_get",1,SWIGTYPE_p_Player); | |
13700 } | |
13701 | |
13702 result = (char) ((arg1)->uNumDivineInterventionCastsThisDay); | |
13703 lua_pushfstring(L,"%c",result); SWIG_arg++; | |
13704 return SWIG_arg; | |
13705 | |
13706 if(0) SWIG_fail; | |
13707 | |
13708 fail: | |
13709 lua_error(L); | |
13710 return SWIG_arg; | |
13711 } | |
13712 | |
13713 | |
13714 static int _wrap_Player_uNumArmageddonCasts_set(lua_State* L) { | |
13715 int SWIG_arg = 0; | |
13716 Player *arg1 = (Player *) 0 ; | |
13717 char arg2 ; | |
13718 | |
13719 SWIG_check_num_args("Player::uNumArmageddonCasts",2,2) | |
13720 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uNumArmageddonCasts",1,"Player *"); | |
13721 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::uNumArmageddonCasts",2,"char"); | |
13722 | |
13723 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13724 SWIG_fail_ptr("Player_uNumArmageddonCasts_set",1,SWIGTYPE_p_Player); | |
13725 } | |
13726 | |
13727 arg2 = (lua_tostring(L, 2))[0]; | |
13728 if (arg1) (arg1)->uNumArmageddonCasts = arg2; | |
13729 | |
13730 return SWIG_arg; | |
13731 | |
13732 if(0) SWIG_fail; | |
13733 | |
13734 fail: | |
13735 lua_error(L); | |
13736 return SWIG_arg; | |
13737 } | |
13738 | |
13739 | |
13740 static int _wrap_Player_uNumArmageddonCasts_get(lua_State* L) { | |
13741 int SWIG_arg = 0; | |
13742 Player *arg1 = (Player *) 0 ; | |
13743 char result; | |
13744 | |
13745 SWIG_check_num_args("Player::uNumArmageddonCasts",1,1) | |
13746 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uNumArmageddonCasts",1,"Player *"); | |
13747 | |
13748 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13749 SWIG_fail_ptr("Player_uNumArmageddonCasts_get",1,SWIGTYPE_p_Player); | |
13750 } | |
13751 | |
13752 result = (char) ((arg1)->uNumArmageddonCasts); | |
13753 lua_pushfstring(L,"%c",result); SWIG_arg++; | |
13754 return SWIG_arg; | |
13755 | |
13756 if(0) SWIG_fail; | |
13757 | |
13758 fail: | |
13759 lua_error(L); | |
13760 return SWIG_arg; | |
13761 } | |
13762 | |
13763 | |
13764 static int _wrap_Player_uNumFireSpikeCasts_set(lua_State* L) { | |
13765 int SWIG_arg = 0; | |
13766 Player *arg1 = (Player *) 0 ; | |
13767 char arg2 ; | |
13768 | |
13769 SWIG_check_num_args("Player::uNumFireSpikeCasts",2,2) | |
13770 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uNumFireSpikeCasts",1,"Player *"); | |
13771 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::uNumFireSpikeCasts",2,"char"); | |
13772 | |
13773 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13774 SWIG_fail_ptr("Player_uNumFireSpikeCasts_set",1,SWIGTYPE_p_Player); | |
13775 } | |
13776 | |
13777 arg2 = (lua_tostring(L, 2))[0]; | |
13778 if (arg1) (arg1)->uNumFireSpikeCasts = arg2; | |
13779 | |
13780 return SWIG_arg; | |
13781 | |
13782 if(0) SWIG_fail; | |
13783 | |
13784 fail: | |
13785 lua_error(L); | |
13786 return SWIG_arg; | |
13787 } | |
13788 | |
13789 | |
13790 static int _wrap_Player_uNumFireSpikeCasts_get(lua_State* L) { | |
13791 int SWIG_arg = 0; | |
13792 Player *arg1 = (Player *) 0 ; | |
13793 char result; | |
13794 | |
13795 SWIG_check_num_args("Player::uNumFireSpikeCasts",1,1) | |
13796 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::uNumFireSpikeCasts",1,"Player *"); | |
13797 | |
13798 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13799 SWIG_fail_ptr("Player_uNumFireSpikeCasts_get",1,SWIGTYPE_p_Player); | |
13800 } | |
13801 | |
13802 result = (char) ((arg1)->uNumFireSpikeCasts); | |
13803 lua_pushfstring(L,"%c",result); SWIG_arg++; | |
13804 return SWIG_arg; | |
13805 | |
13806 if(0) SWIG_fail; | |
13807 | |
13808 fail: | |
13809 lua_error(L); | |
13810 return SWIG_arg; | |
13811 } | |
13812 | |
13813 | |
13814 static int _wrap_Player_field_1B3B_set(lua_State* L) { | |
13815 int SWIG_arg = 0; | |
13816 Player *arg1 = (Player *) 0 ; | |
13817 char arg2 ; | |
13818 | |
13819 SWIG_check_num_args("Player::field_1B3B",2,2) | |
13820 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1B3B",1,"Player *"); | |
13821 if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Player::field_1B3B",2,"char"); | |
13822 | |
13823 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13824 SWIG_fail_ptr("Player_field_1B3B_set",1,SWIGTYPE_p_Player); | |
13825 } | |
13826 | |
13827 arg2 = (lua_tostring(L, 2))[0]; | |
13828 if (arg1) (arg1)->field_1B3B = arg2; | |
13829 | |
13830 return SWIG_arg; | |
13831 | |
13832 if(0) SWIG_fail; | |
13833 | |
13834 fail: | |
13835 lua_error(L); | |
13836 return SWIG_arg; | |
13837 } | |
13838 | |
13839 | |
13840 static int _wrap_Player_field_1B3B_get(lua_State* L) { | |
13841 int SWIG_arg = 0; | |
13842 Player *arg1 = (Player *) 0 ; | |
13843 char result; | |
13844 | |
13845 SWIG_check_num_args("Player::field_1B3B",1,1) | |
13846 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Player::field_1B3B",1,"Player *"); | |
13847 | |
13848 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Player,0))){ | |
13849 SWIG_fail_ptr("Player_field_1B3B_get",1,SWIGTYPE_p_Player); | |
13850 } | |
13851 | |
13852 result = (char) ((arg1)->field_1B3B); | |
13853 lua_pushfstring(L,"%c",result); SWIG_arg++; | |
13854 return SWIG_arg; | |
13855 | |
13856 if(0) SWIG_fail; | |
13857 | |
13858 fail: | |
13859 lua_error(L); | |
13860 return SWIG_arg; | |
13861 } | |
13862 | |
13863 | |
13864 static void swig_delete_Player(void *obj) { | |
13865 Player *arg1 = (Player *) obj; | |
13866 delete arg1; | |
13867 } | |
13868 static swig_lua_method swig_Player_methods[] = { | |
13869 {"SetVariable", _wrap_Player_SetVariable}, | |
13870 {"AddVariable", _wrap_Player_AddVariable}, | |
13871 {"SubtractVariable", _wrap_Player_SubtractVariable}, | |
13872 {"CompareVariable", _wrap_Player_CompareVariable}, | |
13873 {"UseItem_DrinkPotion_etc", _wrap_Player_UseItem_DrinkPotion_etc}, | |
13874 {"GetActualAttribute", _wrap_Player_GetActualAttribute}, | |
13875 {"GetBaseStrength", _wrap_Player_GetBaseStrength}, | |
13876 {"GetBaseIntelligence", _wrap_Player_GetBaseIntelligence}, | |
13877 {"GetBaseWillpower", _wrap_Player_GetBaseWillpower}, | |
13878 {"GetBaseEndurance", _wrap_Player_GetBaseEndurance}, | |
13879 {"GetBaseAccuracy", _wrap_Player_GetBaseAccuracy}, | |
13880 {"GetBaseSpeed", _wrap_Player_GetBaseSpeed}, | |
13881 {"GetBaseLuck", _wrap_Player_GetBaseLuck}, | |
13882 {"GetBaseLevel", _wrap_Player_GetBaseLevel}, | |
13883 {"GetActualLevel", _wrap_Player_GetActualLevel}, | |
13884 {"GetActualMight", _wrap_Player_GetActualMight}, | |
13885 {"GetActualIntelligence", _wrap_Player_GetActualIntelligence}, | |
13886 {"GetActualWillpower", _wrap_Player_GetActualWillpower}, | |
13887 {"GetActualEndurance", _wrap_Player_GetActualEndurance}, | |
13888 {"GetActualAccuracy", _wrap_Player_GetActualAccuracy}, | |
13889 {"GetActualSpeed", _wrap_Player_GetActualSpeed}, | |
13890 {"GetActualLuck", _wrap_Player_GetActualLuck}, | |
13891 {"GetActualAttack", _wrap_Player_GetActualAttack}, | |
13892 {"GetMeleeDamageMinimal", _wrap_Player_GetMeleeDamageMinimal}, | |
13893 {"GetMeleeDamageMaximal", _wrap_Player_GetMeleeDamageMaximal}, | |
13894 {"CalculateMeleeDamageTo", _wrap_Player_CalculateMeleeDamageTo}, | |
13895 {"GetRangedAttack", _wrap_Player_GetRangedAttack}, | |
13896 {"GetRangedDamageMin", _wrap_Player_GetRangedDamageMin}, | |
13897 {"GetRangedDamageMax", _wrap_Player_GetRangedDamageMax}, | |
13898 {"CalculateRangedDamageTo", _wrap_Player_CalculateRangedDamageTo}, | |
13899 {"GetMeleeDamageString", _wrap_Player_GetMeleeDamageString}, | |
13900 {"GetRangedDamageString", _wrap_Player_GetRangedDamageString}, | |
13901 {"CanTrainToNextLevel", _wrap_Player_CanTrainToNextLevel}, | |
13902 {"GetExperienceDisplayColor", _wrap_Player_GetExperienceDisplayColor}, | |
13903 {"CalculateIncommingDamage", _wrap_Player_CalculateIncommingDamage}, | |
13904 {"GetEquippedItemEquipType", _wrap_Player_GetEquippedItemEquipType}, | |
13905 {"GetEquippedItemSkillType", _wrap_Player_GetEquippedItemSkillType}, | |
13906 {"IsUnarmed", _wrap_Player_IsUnarmed}, | |
13907 {"HasItemEquipped", _wrap_Player_HasItemEquipped}, | |
13908 {"HasEnchantedItemEquipped", _wrap_Player_HasEnchantedItemEquipped}, | |
13909 {"WearsItem", _wrap_Player_WearsItem}, | |
13910 {"StealFromShop", _wrap_Player_StealFromShop}, | |
13911 {"StealFromActor", _wrap_Player_StealFromActor}, | |
13912 {"Heal", _wrap_Player_Heal}, | |
13913 {"ReceiveDamage", _wrap_Player_ReceiveDamage}, | |
13914 {"ReceiveSpecialAttackEffect", _wrap_Player_ReceiveSpecialAttackEffect}, | |
13915 {"GetSpellSchool", _wrap_Player_GetSpellSchool}, | |
13916 {"GetAttackRecoveryTime", _wrap_Player_GetAttackRecoveryTime}, | |
13917 {"GetMaxHealth", _wrap_Player_GetMaxHealth}, | |
13918 {"GetMaxMana", _wrap_Player_GetMaxMana}, | |
13919 {"GetBaseAC", _wrap_Player_GetBaseAC}, | |
13920 {"GetActualAC", _wrap_Player_GetActualAC}, | |
13921 {"GetBaseAge", _wrap_Player_GetBaseAge}, | |
13922 {"GetActualAge", _wrap_Player_GetActualAge}, | |
13923 {"GetBaseResistance", _wrap_Player_GetBaseResistance}, | |
13924 {"GetActualResistance", _wrap_Player_GetActualResistance}, | |
13925 {"SetRecoveryTime", _wrap_Player_SetRecoveryTime}, | |
13926 {"RandomizeName", _wrap_Player_RandomizeName}, | |
13927 {"GetMajorConditionIdx", _wrap_Player_GetMajorConditionIdx}, | |
13928 {"GetParameterBonus", _wrap_Player_GetParameterBonus}, | |
13929 {"GetSpecialItemBonus", _wrap_Player_GetSpecialItemBonus}, | |
13930 {"GetItemsBonus", _wrap_Player_GetItemsBonus}, | |
13931 {"GetMagicalBonus", _wrap_Player_GetMagicalBonus}, | |
13932 {"GetActualSkillLevel", _wrap_Player_GetActualSkillLevel}, | |
13933 {"GetSkillBonus", _wrap_Player_GetSkillBonus}, | |
13934 {"GetRace", _wrap_Player_GetRace}, | |
13935 {"GetSexByVoice", _wrap_Player_GetSexByVoice}, | |
13936 {"SetInitialStats", _wrap_Player_SetInitialStats}, | |
13937 {"SetSexByVoice", _wrap_Player_SetSexByVoice}, | |
13938 {"Reset", _wrap_Player_Reset}, | |
13939 {"GetSkillIdxByOrder", _wrap_Player_GetSkillIdxByOrder}, | |
13940 {"DecreaseAttribute", _wrap_Player_DecreaseAttribute}, | |
13941 {"IncreaseAttribute", _wrap_Player_IncreaseAttribute}, | |
13942 {"Zero", _wrap_Player_Zero}, | |
13943 {"GetStatColor", _wrap_Player_GetStatColor}, | |
13944 {"DiscardConditionIfLastsLongerThan", _wrap_Player_DiscardConditionIfLastsLongerThan}, | |
13945 {"SelectPhrasesTransaction", _wrap_Player_SelectPhrasesTransaction}, | |
13946 {"GetBodybuilding", _wrap_Player_GetBodybuilding}, | |
13947 {"GetMeditation", _wrap_Player_GetMeditation}, | |
13948 {"CanIdentify", _wrap_Player_CanIdentify}, | |
13949 {"CanRepair", _wrap_Player_CanRepair}, | |
13950 {"GetMerchant", _wrap_Player_GetMerchant}, | |
13951 {"GetPerception", _wrap_Player_GetPerception}, | |
13952 {"GetDisarmTrap", _wrap_Player_GetDisarmTrap}, | |
13953 {"GetLearningPercent", _wrap_Player_GetLearningPercent}, | |
13954 {"CanFitItem", _wrap_Player_CanFitItem}, | |
13955 {"FindFreeInventoryListSlot", _wrap_Player_FindFreeInventoryListSlot}, | |
13956 {"CreateItemInInventory", _wrap_Player_CreateItemInInventory}, | |
13957 {"HasSkill", _wrap_Player_HasSkill}, | |
13958 {"WearItem", _wrap_Player_WearItem}, | |
13959 {"AddItem", _wrap_Player_AddItem}, | |
13960 {"AddItem2", _wrap_Player_AddItem2}, | |
13961 {"CreateItemInInventory2", _wrap_Player_CreateItemInInventory2}, | |
13962 {"PutItemArInventoryIndex", _wrap_Player_PutItemArInventoryIndex}, | |
13963 {"RemoveItemAtInventoryIndex", _wrap_Player_RemoveItemAtInventoryIndex}, | |
13964 {"CanAct", _wrap_Player_CanAct}, | |
13965 {"CanSteal", _wrap_Player_CanSteal}, | |
13966 {"CanEquip_RaceAndAlignmentCheck", _wrap_Player_CanEquip_RaceAndAlignmentCheck}, | |
13967 {"SetCondition", _wrap_Player_SetCondition}, | |
13968 {"ProfessionOrGuildFlagsCorrect", _wrap_Player_ProfessionOrGuildFlagsCorrect}, | |
13969 {"PlaySound", _wrap_Player_PlaySound}, | |
13970 {"PlayEmotion", _wrap_Player_PlayEmotion}, | |
13971 {"ItemsEnchant", _wrap_Player_ItemsEnchant}, | |
13972 {"GetItemIDAtInventoryIndex", _wrap_Player_GetItemIDAtInventoryIndex}, | |
13973 {"IsPlayerHealableByTemple", _wrap_Player_IsPlayerHealableByTemple}, | |
13974 {"GetBaseIdentifyPrice", _wrap_Player_GetBaseIdentifyPrice}, | |
13975 {"GetBaseRepairPrice", _wrap_Player_GetBaseRepairPrice}, | |
13976 {"GetBaseBuyingPrice", _wrap_Player_GetBaseBuyingPrice}, | |
13977 {"GetBaseSellingPrice", _wrap_Player_GetBaseSellingPrice}, | |
13978 {"GetPriceRepair", _wrap_Player_GetPriceRepair}, | |
13979 {"GetPriceIdentification", _wrap_Player_GetPriceIdentification}, | |
13980 {"GetBuyingPrice", _wrap_Player_GetBuyingPrice}, | |
13981 {"GetPriceSell", _wrap_Player_GetPriceSell}, | |
13982 {"GetTempleHealCostModifier", _wrap_Player_GetTempleHealCostModifier}, | |
13983 {"GetConditionDayOfWeek", _wrap_Player_GetConditionDayOfWeek}, | |
13984 {"NothingOrJustBlastersEquipped", _wrap_Player_NothingOrJustBlastersEquipped}, | |
13985 {"SalesProcess", _wrap_Player_SalesProcess}, | |
13986 {"Recover", _wrap_Player_Recover}, | |
13987 {"CanCastSpell", _wrap_Player_CanCastSpell}, | |
13988 {"PlayAwardSound", _wrap_Player_PlayAwardSound}, | |
13989 {"EquipBody", _wrap_Player_EquipBody}, | |
13990 {"HasUnderwaterSuitEquipped", _wrap_Player_HasUnderwaterSuitEquipped}, | |
13991 {"HasItem", _wrap_Player_HasItem}, | |
13992 {"OnInventoryLeftClick", _wrap_Player_OnInventoryLeftClick}, | |
13993 {"GetMultiplierForSkillLevel", _wrap_Player_GetMultiplierForSkillLevel}, | |
13994 {"CalculateMeleeDmgToEnemyWithWeapon", _wrap_Player_CalculateMeleeDmgToEnemyWithWeapon}, | |
13995 {"WearsItemAnyWhere", _wrap_Player_WearsItemAnyWhere}, | |
13996 {"GetArmorRecoveryMultiplierFromSkillLevel", _wrap_Player_GetArmorRecoveryMultiplierFromSkillLevel}, | |
13997 {"SetSkillByEvent", _wrap_Player_SetSkillByEvent}, | |
13998 {"AddSkillByEvent", _wrap_Player_AddSkillByEvent}, | |
13999 {"PlayAwardSound_Anim", _wrap_Player_PlayAwardSound_Anim}, | |
14000 {"PlayAwardSound_Anim_Face", _wrap_Player_PlayAwardSound_Anim_Face}, | |
14001 {"PlayAwardSound_Anim97", _wrap_Player_PlayAwardSound_Anim97}, | |
14002 {"PlayAwardSound_Anim97_Face", _wrap_Player_PlayAwardSound_Anim97_Face}, | |
14003 {"PlayAwardSound_Anim98", _wrap_Player_PlayAwardSound_Anim98}, | |
14004 {"PlayAwardSound_Anim98_Face", _wrap_Player_PlayAwardSound_Anim98_Face}, | |
14005 {"IsWeak", _wrap_Player_IsWeak}, | |
14006 {"IsDead", _wrap_Player_IsDead}, | |
14007 {"IsEradicated", _wrap_Player_IsEradicated}, | |
14008 {"IsZombie", _wrap_Player_IsZombie}, | |
14009 {"IsCursed", _wrap_Player_IsCursed}, | |
14010 {"IsPertified", _wrap_Player_IsPertified}, | |
14011 {"IsUnconcious", _wrap_Player_IsUnconcious}, | |
14012 {"IsAsleep", _wrap_Player_IsAsleep}, | |
14013 {"IsParalyzed", _wrap_Player_IsParalyzed}, | |
14014 {"IsDrunk", _wrap_Player_IsDrunk}, | |
14015 {"SetCursed", _wrap_Player_SetCursed}, | |
14016 {"SetWeak", _wrap_Player_SetWeak}, | |
14017 {"SetAsleep", _wrap_Player_SetAsleep}, | |
14018 {"SetAfraid", _wrap_Player_SetAfraid}, | |
14019 {"SetDrunk", _wrap_Player_SetDrunk}, | |
14020 {"SetInsane", _wrap_Player_SetInsane}, | |
14021 {"SetPoison1", _wrap_Player_SetPoison1}, | |
14022 {"SetDisease1", _wrap_Player_SetDisease1}, | |
14023 {"SetPoison2", _wrap_Player_SetPoison2}, | |
14024 {"SetDisease2", _wrap_Player_SetDisease2}, | |
14025 {"SetPoison3", _wrap_Player_SetPoison3}, | |
14026 {"SetDisease3", _wrap_Player_SetDisease3}, | |
14027 {"SetParalyzed", _wrap_Player_SetParalyzed}, | |
14028 {"SetUnconcious", _wrap_Player_SetUnconcious}, | |
14029 {"SetDead", _wrap_Player_SetDead}, | |
14030 {"SetPertified", _wrap_Player_SetPertified}, | |
14031 {"SetEradicated", _wrap_Player_SetEradicated}, | |
14032 {"SetZombie", _wrap_Player_SetZombie}, | |
14033 {"SetCondWeakWithBlockCheck", _wrap_Player_SetCondWeakWithBlockCheck}, | |
14034 {"SetCondInsaneWithBlockCheck", _wrap_Player_SetCondInsaneWithBlockCheck}, | |
14035 {"SetCondDeadWithBlockCheck", _wrap_Player_SetCondDeadWithBlockCheck}, | |
14036 {"SetCondUnconsciousWithBlockCheck", _wrap_Player_SetCondUnconsciousWithBlockCheck}, | |
14037 {"IsRaceHuman", _wrap_Player_IsRaceHuman}, | |
14038 {"IsRaceDwarf", _wrap_Player_IsRaceDwarf}, | |
14039 {"IsRaceElf", _wrap_Player_IsRaceElf}, | |
14040 {"IsRaceGoblin", _wrap_Player_IsRaceGoblin}, | |
14041 {"IsMale", _wrap_Player_IsMale}, | |
14042 {"IsFemale", _wrap_Player_IsFemale}, | |
14043 {"GetMainHandItem", _wrap_Player_GetMainHandItem}, | |
14044 {"GetOffHandItem", _wrap_Player_GetOffHandItem}, | |
14045 {"GetBowItem", _wrap_Player_GetBowItem}, | |
14046 {"GetArmorItem", _wrap_Player_GetArmorItem}, | |
14047 {"GetHelmItem", _wrap_Player_GetHelmItem}, | |
14048 {"GetBeltItem", _wrap_Player_GetBeltItem}, | |
14049 {"GetCloakItem", _wrap_Player_GetCloakItem}, | |
14050 {"GetGloveItem", _wrap_Player_GetGloveItem}, | |
14051 {"GetBootItem", _wrap_Player_GetBootItem}, | |
14052 {"GetAmuletItem", _wrap_Player_GetAmuletItem}, | |
14053 {"GetNthRingItem", _wrap_Player_GetNthRingItem}, | |
14054 {"GetNthEquippedIndexItem", _wrap_Player_GetNthEquippedIndexItem}, | |
14055 {"GetItem", _wrap_Player_GetItem}, | |
14056 {"GetPlayerIndex", _wrap_Player_GetPlayerIndex}, | |
14057 {0,0} | |
14058 }; | |
14059 static swig_lua_attribute swig_Player_attributes[] = { | |
14060 { "pConditions", _wrap_Player_pConditions_get, _wrap_Player_pConditions_set}, | |
14061 { "uExperience", _wrap_Player_uExperience_get, _wrap_Player_uExperience_set}, | |
14062 { "pName", _wrap_Player_pName_get, _wrap_Player_pName_set}, | |
14063 { "uSex", _wrap_Player_uSex_get, _wrap_Player_uSex_set}, | |
14064 { "classType", _wrap_Player_classType_get, _wrap_Player_classType_set}, | |
14065 { "uCurrentFace", _wrap_Player_uCurrentFace_get, _wrap_Player_uCurrentFace_set}, | |
14066 { "field_BB", _wrap_Player_field_BB_get, _wrap_Player_field_BB_set}, | |
14067 { "uMight", _wrap_Player_uMight_get, _wrap_Player_uMight_set}, | |
14068 { "uMightBonus", _wrap_Player_uMightBonus_get, _wrap_Player_uMightBonus_set}, | |
14069 { "uIntelligence", _wrap_Player_uIntelligence_get, _wrap_Player_uIntelligence_set}, | |
14070 { "uIntelligenceBonus", _wrap_Player_uIntelligenceBonus_get, _wrap_Player_uIntelligenceBonus_set}, | |
14071 { "uWillpower", _wrap_Player_uWillpower_get, _wrap_Player_uWillpower_set}, | |
14072 { "uWillpowerBonus", _wrap_Player_uWillpowerBonus_get, _wrap_Player_uWillpowerBonus_set}, | |
14073 { "uEndurance", _wrap_Player_uEndurance_get, _wrap_Player_uEndurance_set}, | |
14074 { "uEnduranceBonus", _wrap_Player_uEnduranceBonus_get, _wrap_Player_uEnduranceBonus_set}, | |
14075 { "uSpeed", _wrap_Player_uSpeed_get, _wrap_Player_uSpeed_set}, | |
14076 { "uSpeedBonus", _wrap_Player_uSpeedBonus_get, _wrap_Player_uSpeedBonus_set}, | |
14077 { "uAccuracy", _wrap_Player_uAccuracy_get, _wrap_Player_uAccuracy_set}, | |
14078 { "uAccuracyBonus", _wrap_Player_uAccuracyBonus_get, _wrap_Player_uAccuracyBonus_set}, | |
14079 { "uLuck", _wrap_Player_uLuck_get, _wrap_Player_uLuck_set}, | |
14080 { "uLuckBonus", _wrap_Player_uLuckBonus_get, _wrap_Player_uLuckBonus_set}, | |
14081 { "sACModifier", _wrap_Player_sACModifier_get, _wrap_Player_sACModifier_set}, | |
14082 { "uLevel", _wrap_Player_uLevel_get, _wrap_Player_uLevel_set}, | |
14083 { "sLevelModifier", _wrap_Player_sLevelModifier_get, _wrap_Player_sLevelModifier_set}, | |
14084 { "sAgeModifier", _wrap_Player_sAgeModifier_get, _wrap_Player_sAgeModifier_set}, | |
14085 { "field_E0", _wrap_Player_field_E0_get, _wrap_Player_field_E0_set}, | |
14086 { "field_E4", _wrap_Player_field_E4_get, _wrap_Player_field_E4_set}, | |
14087 { "field_E8", _wrap_Player_field_E8_get, _wrap_Player_field_E8_set}, | |
14088 { "field_EC", _wrap_Player_field_EC_get, _wrap_Player_field_EC_set}, | |
14089 { "field_F0", _wrap_Player_field_F0_get, _wrap_Player_field_F0_set}, | |
14090 { "field_F4", _wrap_Player_field_F4_get, _wrap_Player_field_F4_set}, | |
14091 { "field_F8", _wrap_Player_field_F8_get, _wrap_Player_field_F8_set}, | |
14092 { "field_FC", _wrap_Player_field_FC_get, _wrap_Player_field_FC_set}, | |
14093 { "field_100", _wrap_Player_field_100_get, _wrap_Player_field_100_set}, | |
14094 { "field_104", _wrap_Player_field_104_get, _wrap_Player_field_104_set}, | |
14095 { "_achieved_awards_bits", _wrap_Player__achieved_awards_bits_get, _wrap_Player__achieved_awards_bits_set}, | |
14096 { "spellbook", _wrap_Player_spellbook_get, _wrap_Player_spellbook_set}, | |
14097 { "field__1F5", _wrap_Player_field__1F5_get, _wrap_Player_field__1F5_set}, | |
14098 { "pure_luck_used", _wrap_Player_pure_luck_used_get, _wrap_Player_pure_luck_used_set}, | |
14099 { "pure_speed_used", _wrap_Player_pure_speed_used_get, _wrap_Player_pure_speed_used_set}, | |
14100 { "pure_intellect_used", _wrap_Player_pure_intellect_used_get, _wrap_Player_pure_intellect_used_set}, | |
14101 { "pure_endurance_used", _wrap_Player_pure_endurance_used_get, _wrap_Player_pure_endurance_used_set}, | |
14102 { "pure_willpower_used", _wrap_Player_pure_willpower_used_get, _wrap_Player_pure_willpower_used_set}, | |
14103 { "pure_accuracy_used", _wrap_Player_pure_accuracy_used_get, _wrap_Player_pure_accuracy_used_set}, | |
14104 { "pure_might_used", _wrap_Player_pure_might_used_get, _wrap_Player_pure_might_used_set}, | |
14105 { "pInventoryMatrix", _wrap_Player_pInventoryMatrix_get, _wrap_Player_pInventoryMatrix_set}, | |
14106 { "sResFireBase", _wrap_Player_sResFireBase_get, _wrap_Player_sResFireBase_set}, | |
14107 { "sResAirBase", _wrap_Player_sResAirBase_get, _wrap_Player_sResAirBase_set}, | |
14108 { "sResWaterBase", _wrap_Player_sResWaterBase_get, _wrap_Player_sResWaterBase_set}, | |
14109 { "sResEarthBase", _wrap_Player_sResEarthBase_get, _wrap_Player_sResEarthBase_set}, | |
14110 { "field_177C", _wrap_Player_field_177C_get, _wrap_Player_field_177C_set}, | |
14111 { "sResMagicBase", _wrap_Player_sResMagicBase_get, _wrap_Player_sResMagicBase_set}, | |
14112 { "sResSpiritBase", _wrap_Player_sResSpiritBase_get, _wrap_Player_sResSpiritBase_set}, | |
14113 { "sResMindBase", _wrap_Player_sResMindBase_get, _wrap_Player_sResMindBase_set}, | |
14114 { "sResBodyBase", _wrap_Player_sResBodyBase_get, _wrap_Player_sResBodyBase_set}, | |
14115 { "sResLightBase", _wrap_Player_sResLightBase_get, _wrap_Player_sResLightBase_set}, | |
14116 { "sResDarkBase", _wrap_Player_sResDarkBase_get, _wrap_Player_sResDarkBase_set}, | |
14117 { "sResFireBonus", _wrap_Player_sResFireBonus_get, _wrap_Player_sResFireBonus_set}, | |
14118 { "sResAirBonus", _wrap_Player_sResAirBonus_get, _wrap_Player_sResAirBonus_set}, | |
14119 { "sResWaterBonus", _wrap_Player_sResWaterBonus_get, _wrap_Player_sResWaterBonus_set}, | |
14120 { "sResEarthBonus", _wrap_Player_sResEarthBonus_get, _wrap_Player_sResEarthBonus_set}, | |
14121 { "field_1792", _wrap_Player_field_1792_get, _wrap_Player_field_1792_set}, | |
14122 { "sResMagicBonus", _wrap_Player_sResMagicBonus_get, _wrap_Player_sResMagicBonus_set}, | |
14123 { "sResSpiritBonus", _wrap_Player_sResSpiritBonus_get, _wrap_Player_sResSpiritBonus_set}, | |
14124 { "sResMindBonus", _wrap_Player_sResMindBonus_get, _wrap_Player_sResMindBonus_set}, | |
14125 { "sResBodyBonus", _wrap_Player_sResBodyBonus_get, _wrap_Player_sResBodyBonus_set}, | |
14126 { "sResLightBonus", _wrap_Player_sResLightBonus_get, _wrap_Player_sResLightBonus_set}, | |
14127 { "sResDarkBonus", _wrap_Player_sResDarkBonus_get, _wrap_Player_sResDarkBonus_set}, | |
14128 { "pPlayerBuffs", _wrap_Player_pPlayerBuffs_get, _wrap_Player_pPlayerBuffs_set}, | |
14129 { "uVoiceID", _wrap_Player_uVoiceID_get, _wrap_Player_uVoiceID_set}, | |
14130 { "uPrevVoiceID", _wrap_Player_uPrevVoiceID_get, _wrap_Player_uPrevVoiceID_set}, | |
14131 { "uPrevFace", _wrap_Player_uPrevFace_get, _wrap_Player_uPrevFace_set}, | |
14132 { "field_192C", _wrap_Player_field_192C_get, _wrap_Player_field_192C_set}, | |
14133 { "field_1930", _wrap_Player_field_1930_get, _wrap_Player_field_1930_set}, | |
14134 { "uTimeToRecovery", _wrap_Player_uTimeToRecovery_get, _wrap_Player_uTimeToRecovery_set}, | |
14135 { "field_1936", _wrap_Player_field_1936_get, _wrap_Player_field_1936_set}, | |
14136 { "field_1937", _wrap_Player_field_1937_get, _wrap_Player_field_1937_set}, | |
14137 { "uSkillPoints", _wrap_Player_uSkillPoints_get, _wrap_Player_uSkillPoints_set}, | |
14138 { "sHealth", _wrap_Player_sHealth_get, _wrap_Player_sHealth_set}, | |
14139 { "sMana", _wrap_Player_sMana_get, _wrap_Player_sMana_set}, | |
14140 { "uBirthYear", _wrap_Player_uBirthYear_get, _wrap_Player_uBirthYear_set}, | |
14141 { "pEquipment", _wrap_Player_pEquipment_get, _wrap_Player_pEquipment_set}, | |
14142 { "field_1988", _wrap_Player_field_1988_get, _wrap_Player_field_1988_set}, | |
14143 { "field_1A4C", _wrap_Player_field_1A4C_get, _wrap_Player_field_1A4C_set}, | |
14144 { "field_1A4D", _wrap_Player_field_1A4D_get, _wrap_Player_field_1A4D_set}, | |
14145 { "lastOpenedSpellbookPage", _wrap_Player_lastOpenedSpellbookPage_get, _wrap_Player_lastOpenedSpellbookPage_set}, | |
14146 { "uQuickSpell", _wrap_Player_uQuickSpell_get, _wrap_Player_uQuickSpell_set}, | |
14147 { "playerEventBits", _wrap_Player_playerEventBits_get, _wrap_Player_playerEventBits_set}, | |
14148 { "_some_attack_bonus", _wrap_Player__some_attack_bonus_get, _wrap_Player__some_attack_bonus_set}, | |
14149 { "field_1A91", _wrap_Player_field_1A91_get, _wrap_Player_field_1A91_set}, | |
14150 { "_melee_dmg_bonus", _wrap_Player__melee_dmg_bonus_get, _wrap_Player__melee_dmg_bonus_set}, | |
14151 { "field_1A93", _wrap_Player_field_1A93_get, _wrap_Player_field_1A93_set}, | |
14152 { "_ranged_atk_bonus", _wrap_Player__ranged_atk_bonus_get, _wrap_Player__ranged_atk_bonus_set}, | |
14153 { "field_1A95", _wrap_Player_field_1A95_get, _wrap_Player_field_1A95_set}, | |
14154 { "_ranged_dmg_bonus", _wrap_Player__ranged_dmg_bonus_get, _wrap_Player__ranged_dmg_bonus_set}, | |
14155 { "field_1A97", _wrap_Player_field_1A97_get, _wrap_Player_field_1A97_set}, | |
14156 { "uFullHealthBonus", _wrap_Player_uFullHealthBonus_get, _wrap_Player_uFullHealthBonus_set}, | |
14157 { "_health_related", _wrap_Player__health_related_get, _wrap_Player__health_related_set}, | |
14158 { "uFullManaBonus", _wrap_Player_uFullManaBonus_get, _wrap_Player_uFullManaBonus_set}, | |
14159 { "_mana_related", _wrap_Player__mana_related_get, _wrap_Player__mana_related_set}, | |
14160 { "expression", _wrap_Player_expression_get, _wrap_Player_expression_set}, | |
14161 { "uExpressionTimePassed", _wrap_Player_uExpressionTimePassed_get, _wrap_Player_uExpressionTimePassed_set}, | |
14162 { "uExpressionTimeLength", _wrap_Player_uExpressionTimeLength_get, _wrap_Player_uExpressionTimeLength_set}, | |
14163 { "field_1AA2", _wrap_Player_field_1AA2_get, _wrap_Player_field_1AA2_set}, | |
14164 { "_expression21_animtime", _wrap_Player__expression21_animtime_get, _wrap_Player__expression21_animtime_set}, | |
14165 { "_expression21_frameset", _wrap_Player__expression21_frameset_get, _wrap_Player__expression21_frameset_set}, | |
14166 { "pInstalledBeacons", _wrap_Player_pInstalledBeacons_get, _wrap_Player_pInstalledBeacons_set}, | |
14167 { "uNumDivineInterventionCastsThisDay", _wrap_Player_uNumDivineInterventionCastsThisDay_get, _wrap_Player_uNumDivineInterventionCastsThisDay_set}, | |
14168 { "uNumArmageddonCasts", _wrap_Player_uNumArmageddonCasts_get, _wrap_Player_uNumArmageddonCasts_set}, | |
14169 { "uNumFireSpikeCasts", _wrap_Player_uNumFireSpikeCasts_get, _wrap_Player_uNumFireSpikeCasts_set}, | |
14170 { "field_1B3B", _wrap_Player_field_1B3B_get, _wrap_Player_field_1B3B_set}, | |
14171 {0,0,0} | |
14172 }; | |
14173 static swig_lua_attribute swig_Player_cls_attributes[] = { | |
14174 {0,0,0} | |
14175 }; | |
14176 static swig_lua_method swig_Player_cls_methods[] = { | |
14177 {0,0} | |
14178 }; | |
14179 static swig_lua_const_info swig_Player_cls_constants[] = { | |
14180 {SWIG_LUA_CONSTTAB_INT("INVETORYSLOTSWIDTH", Player::INVETORYSLOTSWIDTH)}, | |
14181 {SWIG_LUA_CONSTTAB_INT("INVETORYSLOTSHEIGHT", Player::INVETORYSLOTSHEIGHT)}, | |
14182 {0,0,0,0,0,0} | |
14183 }; | |
14184 static swig_lua_class *swig_Player_bases[] = {0}; | |
14185 static const char *swig_Player_base_names[] = {0}; | |
14186 static swig_lua_class _wrap_class_Player = { "Player", &SWIGTYPE_p_Player,_wrap_new_Player, swig_delete_Player, swig_Player_methods, swig_Player_attributes, { "Player", swig_Player_cls_methods, swig_Player_cls_attributes, swig_Player_cls_constants }, swig_Player_bases, swig_Player_base_names }; | |
14187 | |
14188 static int _wrap_pPlayers_set(lua_State* L) { | |
14189 int SWIG_arg = 0; | |
14190 NZIArray< Player *,5 > arg1 ; | |
14191 NZIArray< Player *,5 > *argp1 ; | |
14192 | |
14193 SWIG_check_num_args("pPlayers",1,1) | |
14194 if(!lua_isuserdata(L,1)) SWIG_fail_arg("pPlayers",1,"NZIArray< Player *,5 >"); | |
14195 | |
14196 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&argp1,SWIGTYPE_p_NZIArrayT_Player_p_5_t,0))){ | |
14197 SWIG_fail_ptr("pPlayers_set",1,SWIGTYPE_p_NZIArrayT_Player_p_5_t); | |
14198 } | |
14199 arg1 = *argp1; | |
14200 | |
14201 pPlayers = arg1; | |
14202 | |
14203 return SWIG_arg; | |
14204 | |
14205 if(0) SWIG_fail; | |
14206 | |
14207 fail: | |
14208 lua_error(L); | |
14209 return SWIG_arg; | |
14210 } | |
14211 | |
14212 | |
14213 static int _wrap_pPlayers_get(lua_State* L) { | |
14214 int SWIG_arg = 0; | |
14215 NZIArray< Player *,5 > result; | |
14216 | |
14217 SWIG_check_num_args("pPlayers",0,0) | |
14218 result = pPlayers; | |
14219 { | |
14220 NZIArray< Player *,5 > * resultptr = new NZIArray< Player *,5 >((const NZIArray< Player *,5 > &) result); | |
14221 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_NZIArrayT_Player_p_5_t,1); SWIG_arg++; | |
14222 } | |
14223 return SWIG_arg; | |
14224 | |
14225 if(0) SWIG_fail; | |
14226 | |
14227 fail: | |
14228 lua_error(L); | |
14229 return SWIG_arg; | |
14230 } | |
14231 | |
14232 | |
14233 #ifdef __cplusplus | |
14234 } | |
14235 #endif | |
14236 | |
14237 static const struct luaL_Reg swig_commands[] = { | |
14238 {0,0} | |
14239 }; | |
14240 | |
14241 static swig_lua_var_info swig_variables[] = { | |
14242 { "pPlayers", _wrap_pPlayers_get, _wrap_pPlayers_set }, | |
14243 {0,0,0} | |
14244 }; | |
14245 | |
14246 static swig_lua_const_info swig_constants[] = { | |
14247 {SWIG_LUA_CONSTTAB_INT("PLAYER_BUFF_RESIST_AIR", PLAYER_BUFF_RESIST_AIR)}, | |
14248 {SWIG_LUA_CONSTTAB_INT("PLAYER_BUFF_BLESS", PLAYER_BUFF_BLESS)}, | |
14249 {SWIG_LUA_CONSTTAB_INT("PLAYER_BUFF_RESIST_BODY", PLAYER_BUFF_RESIST_BODY)}, | |
14250 {SWIG_LUA_CONSTTAB_INT("PLAYER_BUFF_RESIST_EARTH", PLAYER_BUFF_RESIST_EARTH)}, | |
14251 {SWIG_LUA_CONSTTAB_INT("PLAYER_BUFF_FATE", PLAYER_BUFF_FATE)}, | |
14252 {SWIG_LUA_CONSTTAB_INT("PLAYER_BUFF_RESIST_FIRE", PLAYER_BUFF_RESIST_FIRE)}, | |
14253 {SWIG_LUA_CONSTTAB_INT("PLAYER_BUFF_HAMMERHANDS", PLAYER_BUFF_HAMMERHANDS)}, | |
14254 {SWIG_LUA_CONSTTAB_INT("PLAYER_BUFF_HASTE", PLAYER_BUFF_HASTE)}, | |
14255 {SWIG_LUA_CONSTTAB_INT("PLAYER_BUFF_HEROISM", PLAYER_BUFF_HEROISM)}, | |
14256 {SWIG_LUA_CONSTTAB_INT("PLAYER_BUFF_RESIST_MIND", PLAYER_BUFF_RESIST_MIND)}, | |
14257 {SWIG_LUA_CONSTTAB_INT("PLAYER_BUFF_PAIN_REFLECTION", PLAYER_BUFF_PAIN_REFLECTION)}, | |
14258 {SWIG_LUA_CONSTTAB_INT("PLAYER_BUFF_PRESERVATION", PLAYER_BUFF_PRESERVATION)}, | |
14259 {SWIG_LUA_CONSTTAB_INT("PLAYER_BUFF_REGENERATION", PLAYER_BUFF_REGENERATION)}, | |
14260 {SWIG_LUA_CONSTTAB_INT("PLAYER_BUFF_SHIELD", PLAYER_BUFF_SHIELD)}, | |
14261 {SWIG_LUA_CONSTTAB_INT("PLAYER_BUFF_STONESKIN", PLAYER_BUFF_STONESKIN)}, | |
14262 {SWIG_LUA_CONSTTAB_INT("PLAYER_BUFF_ACCURACY", PLAYER_BUFF_ACCURACY)}, | |
14263 {SWIG_LUA_CONSTTAB_INT("PLAYER_BUFF_ENDURANCE", PLAYER_BUFF_ENDURANCE)}, | |
14264 {SWIG_LUA_CONSTTAB_INT("PLAYER_BUFF_INTELLIGENCE", PLAYER_BUFF_INTELLIGENCE)}, | |
14265 {SWIG_LUA_CONSTTAB_INT("PLAYER_BUFF_LUCK", PLAYER_BUFF_LUCK)}, | |
14266 {SWIG_LUA_CONSTTAB_INT("PLAYER_BUFF_STRENGTH", PLAYER_BUFF_STRENGTH)}, | |
14267 {SWIG_LUA_CONSTTAB_INT("PLAYER_BUFF_WILLPOWER", PLAYER_BUFF_WILLPOWER)}, | |
14268 {SWIG_LUA_CONSTTAB_INT("PLAYER_BUFF_SPEED", PLAYER_BUFF_SPEED)}, | |
14269 {SWIG_LUA_CONSTTAB_INT("PLAYER_BUFF_RESIST_WATER", PLAYER_BUFF_RESIST_WATER)}, | |
14270 {SWIG_LUA_CONSTTAB_INT("PLAYER_BUFF_WATER_WALK", PLAYER_BUFF_WATER_WALK)}, | |
14271 {SWIG_LUA_CONSTTAB_INT("PLAYER_GUILD_BITS__SPIRIT_MEMBERSHIP", 58)}, | |
14272 {SWIG_LUA_CONSTTAB_INT("PLAYER_GUILD_BITS__ARCOMAGE_WIN", 103)}, | |
14273 {SWIG_LUA_CONSTTAB_INT("PLAYER_GUILD_BITS__ARCOMAGE_LOSE", 104)}, | |
14274 {SWIG_LUA_CONSTTAB_INT("SPEECH_1", SPEECH_1)}, | |
14275 {SWIG_LUA_CONSTTAB_INT("SPEECH_2", SPEECH_2)}, | |
14276 {SWIG_LUA_CONSTTAB_INT("SPEECH_3", SPEECH_3)}, | |
14277 {SWIG_LUA_CONSTTAB_INT("SPEECH_4", SPEECH_4)}, | |
14278 {SWIG_LUA_CONSTTAB_INT("SPEECH_5", SPEECH_5)}, | |
14279 {SWIG_LUA_CONSTTAB_INT("SPEECH_6", SPEECH_6)}, | |
14280 {SWIG_LUA_CONSTTAB_INT("SPEECH_7", SPEECH_7)}, | |
14281 {SWIG_LUA_CONSTTAB_INT("SPEECH_8", SPEECH_8)}, | |
14282 {SWIG_LUA_CONSTTAB_INT("SPEECH_9", SPEECH_9)}, | |
14283 {SWIG_LUA_CONSTTAB_INT("SPEECH_10", SPEECH_10)}, | |
14284 {SWIG_LUA_CONSTTAB_INT("SPEECH_11", SPEECH_11)}, | |
14285 {SWIG_LUA_CONSTTAB_INT("SPEECH_12", SPEECH_12)}, | |
14286 {SWIG_LUA_CONSTTAB_INT("SPEECH_14", SPEECH_14)}, | |
14287 {SWIG_LUA_CONSTTAB_INT("SPEECH_NoRoom", SPEECH_NoRoom)}, | |
14288 {SWIG_LUA_CONSTTAB_INT("SPEECH_DO_POTION_FINE", SPEECH_DO_POTION_FINE)}, | |
14289 {SWIG_LUA_CONSTTAB_INT("SPEECH_17", SPEECH_17)}, | |
14290 {SWIG_LUA_CONSTTAB_INT("SPEECH_18", SPEECH_18)}, | |
14291 {SWIG_LUA_CONSTTAB_INT("SPEECH_19", SPEECH_19)}, | |
14292 {SWIG_LUA_CONSTTAB_INT("SPEECH_20", SPEECH_20)}, | |
14293 {SWIG_LUA_CONSTTAB_INT("SPEECH_21", SPEECH_21)}, | |
14294 {SWIG_LUA_CONSTTAB_INT("SPEECH_GoodDay", SPEECH_GoodDay)}, | |
14295 {SWIG_LUA_CONSTTAB_INT("SPEECH_GoodEvening", SPEECH_GoodEvening)}, | |
14296 {SWIG_LUA_CONSTTAB_INT("SPEECH_24", SPEECH_24)}, | |
14297 {SWIG_LUA_CONSTTAB_INT("SPEECH_25", SPEECH_25)}, | |
14298 {SWIG_LUA_CONSTTAB_INT("SPEECH_26", SPEECH_26)}, | |
14299 {SWIG_LUA_CONSTTAB_INT("SPEECH_27", SPEECH_27)}, | |
14300 {SWIG_LUA_CONSTTAB_INT("SPEECH_28", SPEECH_28)}, | |
14301 {SWIG_LUA_CONSTTAB_INT("SPEECH_29", SPEECH_29)}, | |
14302 {SWIG_LUA_CONSTTAB_INT("SPEECH_30", SPEECH_30)}, | |
14303 {SWIG_LUA_CONSTTAB_INT("SPEECH_31", SPEECH_31)}, | |
14304 {SWIG_LUA_CONSTTAB_INT("SPEECH_32", SPEECH_32)}, | |
14305 {SWIG_LUA_CONSTTAB_INT("SPEECH_33", SPEECH_33)}, | |
14306 {SWIG_LUA_CONSTTAB_INT("SPEECH_34", SPEECH_34)}, | |
14307 {SWIG_LUA_CONSTTAB_INT("SPEECH_35", SPEECH_35)}, | |
14308 {SWIG_LUA_CONSTTAB_INT("SPEECH_36", SPEECH_36)}, | |
14309 {SWIG_LUA_CONSTTAB_INT("SPEECH_37", SPEECH_37)}, | |
14310 {SWIG_LUA_CONSTTAB_INT("SPEECH_NotEnoughGold", SPEECH_NotEnoughGold)}, | |
14311 {SWIG_LUA_CONSTTAB_INT("SPEECH_39", SPEECH_39)}, | |
14312 {SWIG_LUA_CONSTTAB_INT("SPEECH_40", SPEECH_40)}, | |
14313 {SWIG_LUA_CONSTTAB_INT("SPEECH_41", SPEECH_41)}, | |
14314 {SWIG_LUA_CONSTTAB_INT("SPEECH_42", SPEECH_42)}, | |
14315 {SWIG_LUA_CONSTTAB_INT("SPEECH_43", SPEECH_43)}, | |
14316 {SWIG_LUA_CONSTTAB_INT("SPEECH_44", SPEECH_44)}, | |
14317 {SWIG_LUA_CONSTTAB_INT("SPEECH_45", SPEECH_45)}, | |
14318 {SWIG_LUA_CONSTTAB_INT("SPEECH_46", SPEECH_46)}, | |
14319 {SWIG_LUA_CONSTTAB_INT("SPEECH_47", SPEECH_47)}, | |
14320 {SWIG_LUA_CONSTTAB_INT("SPEECH_48", SPEECH_48)}, | |
14321 {SWIG_LUA_CONSTTAB_INT("SPEECH_49", SPEECH_49)}, | |
14322 {SWIG_LUA_CONSTTAB_INT("SPEECH_50", SPEECH_50)}, | |
14323 {SWIG_LUA_CONSTTAB_INT("SPEECH_51", SPEECH_51)}, | |
14324 {SWIG_LUA_CONSTTAB_INT("SPEECH_52", SPEECH_52)}, | |
14325 {SWIG_LUA_CONSTTAB_INT("SPEECH_53", SPEECH_53)}, | |
14326 {SWIG_LUA_CONSTTAB_INT("SPEECH_54", SPEECH_54)}, | |
14327 {SWIG_LUA_CONSTTAB_INT("SPEECH_55", SPEECH_55)}, | |
14328 {SWIG_LUA_CONSTTAB_INT("SPEECH_56", SPEECH_56)}, | |
14329 {SWIG_LUA_CONSTTAB_INT("SPEECH_57", SPEECH_57)}, | |
14330 {SWIG_LUA_CONSTTAB_INT("SPEECH_58", SPEECH_58)}, | |
14331 {SWIG_LUA_CONSTTAB_INT("SPEECH_59", SPEECH_59)}, | |
14332 {SWIG_LUA_CONSTTAB_INT("SPEECH_60", SPEECH_60)}, | |
14333 {SWIG_LUA_CONSTTAB_INT("SPEECH_61", SPEECH_61)}, | |
14334 {SWIG_LUA_CONSTTAB_INT("SPEECH_62", SPEECH_62)}, | |
14335 {SWIG_LUA_CONSTTAB_INT("SPEECH_63", SPEECH_63)}, | |
14336 {SWIG_LUA_CONSTTAB_INT("SPEECH_64", SPEECH_64)}, | |
14337 {SWIG_LUA_CONSTTAB_INT("SPEECH_Yell", SPEECH_Yell)}, | |
14338 {SWIG_LUA_CONSTTAB_INT("SPEECH_Falling_scream", SPEECH_Falling_scream)}, | |
14339 {SWIG_LUA_CONSTTAB_INT("SPEECH_67", SPEECH_67)}, | |
14340 {SWIG_LUA_CONSTTAB_INT("SPEECH_68", SPEECH_68)}, | |
14341 {SWIG_LUA_CONSTTAB_INT("SPEECH_69", SPEECH_69)}, | |
14342 {SWIG_LUA_CONSTTAB_INT("SPEECH_70", SPEECH_70)}, | |
14343 {SWIG_LUA_CONSTTAB_INT("SPEECH_CarriageReady", SPEECH_CarriageReady)}, | |
14344 {SWIG_LUA_CONSTTAB_INT("SPEECH_SetSail", SPEECH_SetSail)}, | |
14345 {SWIG_LUA_CONSTTAB_INT("SPEECH_73", SPEECH_73)}, | |
14346 {SWIG_LUA_CONSTTAB_INT("SPEECH_74", SPEECH_74)}, | |
14347 {SWIG_LUA_CONSTTAB_INT("SPEECH_75", SPEECH_75)}, | |
14348 {SWIG_LUA_CONSTTAB_INT("SPEECH_76", SPEECH_76)}, | |
14349 {SWIG_LUA_CONSTTAB_INT("SPEECH_77", SPEECH_77)}, | |
14350 {SWIG_LUA_CONSTTAB_INT("SPEECH_78", SPEECH_78)}, | |
14351 {SWIG_LUA_CONSTTAB_INT("SPEECH_79", SPEECH_79)}, | |
14352 {SWIG_LUA_CONSTTAB_INT("SPEECH_80", SPEECH_80)}, | |
14353 {SWIG_LUA_CONSTTAB_INT("SPEECH_81", SPEECH_81)}, | |
14354 {SWIG_LUA_CONSTTAB_INT("SPEECH_82", SPEECH_82)}, | |
14355 {SWIG_LUA_CONSTTAB_INT("SPEECH_83", SPEECH_83)}, | |
14356 {SWIG_LUA_CONSTTAB_INT("SPEECH_84", SPEECH_84)}, | |
14357 {SWIG_LUA_CONSTTAB_INT("SPEECH_85", SPEECH_85)}, | |
14358 {SWIG_LUA_CONSTTAB_INT("SPEECH_86", SPEECH_86)}, | |
14359 {SWIG_LUA_CONSTTAB_INT("SPEECH_87", SPEECH_87)}, | |
14360 {SWIG_LUA_CONSTTAB_INT("SPEECH_88", SPEECH_88)}, | |
14361 {SWIG_LUA_CONSTTAB_INT("SPEECH_89", SPEECH_89)}, | |
14362 {SWIG_LUA_CONSTTAB_INT("SPEECH_90", SPEECH_90)}, | |
14363 {SWIG_LUA_CONSTTAB_INT("SPEECH_91", SPEECH_91)}, | |
14364 {SWIG_LUA_CONSTTAB_INT("SPEECH_92", SPEECH_92)}, | |
14365 {SWIG_LUA_CONSTTAB_INT("SPEECH_93", SPEECH_93)}, | |
14366 {SWIG_LUA_CONSTTAB_INT("SPEECH_94", SPEECH_94)}, | |
14367 {SWIG_LUA_CONSTTAB_INT("SPEECH_95", SPEECH_95)}, | |
14368 {SWIG_LUA_CONSTTAB_INT("SPEECH_96", SPEECH_96)}, | |
14369 {SWIG_LUA_CONSTTAB_INT("SPEECH_97", SPEECH_97)}, | |
14370 {SWIG_LUA_CONSTTAB_INT("SPEECH_98", SPEECH_98)}, | |
14371 {SWIG_LUA_CONSTTAB_INT("SPEECH_99", SPEECH_99)}, | |
14372 {SWIG_LUA_CONSTTAB_INT("SPEECH_100", SPEECH_100)}, | |
14373 {SWIG_LUA_CONSTTAB_INT("SPEECH_101", SPEECH_101)}, | |
14374 {SWIG_LUA_CONSTTAB_INT("SPEECH_PickMe", SPEECH_PickMe)}, | |
14375 {SWIG_LUA_CONSTTAB_INT("SPEECH_103", SPEECH_103)}, | |
14376 {SWIG_LUA_CONSTTAB_INT("SPEECH_IDENTIFY_MONSTER_WEAKER", SPEECH_IDENTIFY_MONSTER_WEAKER)}, | |
14377 {SWIG_LUA_CONSTTAB_INT("SPEECH_IDENTIFY_MONSTER_STRONGER", SPEECH_IDENTIFY_MONSTER_STRONGER)}, | |
14378 {SWIG_LUA_CONSTTAB_INT("SPEECH_IDENTIFY_MONSTER_106", SPEECH_IDENTIFY_MONSTER_106)}, | |
14379 {SWIG_LUA_CONSTTAB_INT("SPEECH_107", SPEECH_107)}, | |
14380 {SWIG_LUA_CONSTTAB_INT("SPEECH_108", SPEECH_108)}, | |
14381 {SWIG_LUA_CONSTTAB_INT("SPEECH_109", SPEECH_109)}, | |
14382 {SWIG_LUA_CONSTTAB_INT("SPEECH_110", SPEECH_110)}, | |
14383 {SWIG_LUA_CONSTTAB_INT("CHARACTER_RACE_HUMAN", CHARACTER_RACE_HUMAN)}, | |
14384 {SWIG_LUA_CONSTTAB_INT("CHARACTER_RACE_ELF", CHARACTER_RACE_ELF)}, | |
14385 {SWIG_LUA_CONSTTAB_INT("CHARACTER_RACE_GOBLIN", CHARACTER_RACE_GOBLIN)}, | |
14386 {SWIG_LUA_CONSTTAB_INT("CHARACTER_RACE_DWARF", CHARACTER_RACE_DWARF)}, | |
14387 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_STRENGTH", CHARACTER_ATTRIBUTE_STRENGTH)}, | |
14388 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_INTELLIGENCE", CHARACTER_ATTRIBUTE_INTELLIGENCE)}, | |
14389 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_WILLPOWER", CHARACTER_ATTRIBUTE_WILLPOWER)}, | |
14390 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_ENDURANCE", CHARACTER_ATTRIBUTE_ENDURANCE)}, | |
14391 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_ACCURACY", CHARACTER_ATTRIBUTE_ACCURACY)}, | |
14392 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_SPEED", CHARACTER_ATTRIBUTE_SPEED)}, | |
14393 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_LUCK", CHARACTER_ATTRIBUTE_LUCK)}, | |
14394 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_HEALTH", CHARACTER_ATTRIBUTE_HEALTH)}, | |
14395 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_MANA", CHARACTER_ATTRIBUTE_MANA)}, | |
14396 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_AC_BONUS", CHARACTER_ATTRIBUTE_AC_BONUS)}, | |
14397 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_RESIST_FIRE", CHARACTER_ATTRIBUTE_RESIST_FIRE)}, | |
14398 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_RESIST_AIR", CHARACTER_ATTRIBUTE_RESIST_AIR)}, | |
14399 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_RESIST_WATER", CHARACTER_ATTRIBUTE_RESIST_WATER)}, | |
14400 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_RESIST_EARTH", CHARACTER_ATTRIBUTE_RESIST_EARTH)}, | |
14401 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_RESIST_MIND", CHARACTER_ATTRIBUTE_RESIST_MIND)}, | |
14402 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_RESIST_BODY", CHARACTER_ATTRIBUTE_RESIST_BODY)}, | |
14403 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_SKILL_ALCHEMY", CHARACTER_ATTRIBUTE_SKILL_ALCHEMY)}, | |
14404 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_SKILL_STEALING", CHARACTER_ATTRIBUTE_SKILL_STEALING)}, | |
14405 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_SKILL_TRAP_DISARM", CHARACTER_ATTRIBUTE_SKILL_TRAP_DISARM)}, | |
14406 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_SKILL_ITEM_ID", CHARACTER_ATTRIBUTE_SKILL_ITEM_ID)}, | |
14407 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_SKILL_MONSTER_ID", CHARACTER_ATTRIBUTE_SKILL_MONSTER_ID)}, | |
14408 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_SKILL_ARMSMASTER", CHARACTER_ATTRIBUTE_SKILL_ARMSMASTER)}, | |
14409 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_SKILL_DODGE", CHARACTER_ATTRIBUTE_SKILL_DODGE)}, | |
14410 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_SKILL_UNARMED", CHARACTER_ATTRIBUTE_SKILL_UNARMED)}, | |
14411 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_LEVEL", CHARACTER_ATTRIBUTE_LEVEL)}, | |
14412 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_ATTACK", CHARACTER_ATTRIBUTE_ATTACK)}, | |
14413 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_MELEE_DMG_BONUS", CHARACTER_ATTRIBUTE_MELEE_DMG_BONUS)}, | |
14414 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_MELEE_DMG_MIN", CHARACTER_ATTRIBUTE_MELEE_DMG_MIN)}, | |
14415 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_MELEE_DMG_MAX", CHARACTER_ATTRIBUTE_MELEE_DMG_MAX)}, | |
14416 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_RANGED_ATTACK", CHARACTER_ATTRIBUTE_RANGED_ATTACK)}, | |
14417 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_RANGED_DMG_BONUS", CHARACTER_ATTRIBUTE_RANGED_DMG_BONUS)}, | |
14418 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_RANGED_DMG_MIN", CHARACTER_ATTRIBUTE_RANGED_DMG_MIN)}, | |
14419 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_RANGED_DMG_MAX", CHARACTER_ATTRIBUTE_RANGED_DMG_MAX)}, | |
14420 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_RESIST_SPIRIT", CHARACTER_ATTRIBUTE_RESIST_SPIRIT)}, | |
14421 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_SKILL_FIRE", CHARACTER_ATTRIBUTE_SKILL_FIRE)}, | |
14422 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_SKILL_AIR", CHARACTER_ATTRIBUTE_SKILL_AIR)}, | |
14423 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_SKILL_WATER", CHARACTER_ATTRIBUTE_SKILL_WATER)}, | |
14424 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_SKILL_EARTH", CHARACTER_ATTRIBUTE_SKILL_EARTH)}, | |
14425 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_SKILL_SPIRIT", CHARACTER_ATTRIBUTE_SKILL_SPIRIT)}, | |
14426 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_SKILL_MIND", CHARACTER_ATTRIBUTE_SKILL_MIND)}, | |
14427 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_SKILL_BODY", CHARACTER_ATTRIBUTE_SKILL_BODY)}, | |
14428 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_SKILL_LIGHT", CHARACTER_ATTRIBUTE_SKILL_LIGHT)}, | |
14429 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_SKILL_DARK", CHARACTER_ATTRIBUTE_SKILL_DARK)}, | |
14430 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_SKILL_MEDITATION", CHARACTER_ATTRIBUTE_SKILL_MEDITATION)}, | |
14431 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_SKILL_BOW", CHARACTER_ATTRIBUTE_SKILL_BOW)}, | |
14432 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_SKILL_SHIELD", CHARACTER_ATTRIBUTE_SKILL_SHIELD)}, | |
14433 {SWIG_LUA_CONSTTAB_INT("CHARACTER_ATTRIBUTE_SKILL_LEARNING", CHARACTER_ATTRIBUTE_SKILL_LEARNING)}, | |
14434 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_STAFF", PLAYER_SKILL_STAFF)}, | |
14435 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_SWORD", PLAYER_SKILL_SWORD)}, | |
14436 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_DAGGER", PLAYER_SKILL_DAGGER)}, | |
14437 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_AXE", PLAYER_SKILL_AXE)}, | |
14438 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_SPEAR", PLAYER_SKILL_SPEAR)}, | |
14439 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_BOW", PLAYER_SKILL_BOW)}, | |
14440 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_MACE", PLAYER_SKILL_MACE)}, | |
14441 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_BLASTER", PLAYER_SKILL_BLASTER)}, | |
14442 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_SHIELD", PLAYER_SKILL_SHIELD)}, | |
14443 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_LEATHER", PLAYER_SKILL_LEATHER)}, | |
14444 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_CHAIN", PLAYER_SKILL_CHAIN)}, | |
14445 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_PLATE", PLAYER_SKILL_PLATE)}, | |
14446 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_FIRE", PLAYER_SKILL_FIRE)}, | |
14447 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_AIR", PLAYER_SKILL_AIR)}, | |
14448 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_WATER", PLAYER_SKILL_WATER)}, | |
14449 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_EARTH", PLAYER_SKILL_EARTH)}, | |
14450 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_SPIRIT", PLAYER_SKILL_SPIRIT)}, | |
14451 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_MIND", PLAYER_SKILL_MIND)}, | |
14452 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_BODY", PLAYER_SKILL_BODY)}, | |
14453 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_LIGHT", PLAYER_SKILL_LIGHT)}, | |
14454 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_DARK", PLAYER_SKILL_DARK)}, | |
14455 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_ITEM_ID", PLAYER_SKILL_ITEM_ID)}, | |
14456 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_MERCHANT", PLAYER_SKILL_MERCHANT)}, | |
14457 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_REPAIR", PLAYER_SKILL_REPAIR)}, | |
14458 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_BODYBUILDING", PLAYER_SKILL_BODYBUILDING)}, | |
14459 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_MEDITATION", PLAYER_SKILL_MEDITATION)}, | |
14460 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_PERCEPTION", PLAYER_SKILL_PERCEPTION)}, | |
14461 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_DIPLOMACY", PLAYER_SKILL_DIPLOMACY)}, | |
14462 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_TIEVERY", PLAYER_SKILL_TIEVERY)}, | |
14463 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_TRAP_DISARM", PLAYER_SKILL_TRAP_DISARM)}, | |
14464 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_DODGE", PLAYER_SKILL_DODGE)}, | |
14465 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_UNARMED", PLAYER_SKILL_UNARMED)}, | |
14466 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_MONSTER_ID", PLAYER_SKILL_MONSTER_ID)}, | |
14467 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_ARMSMASTER", PLAYER_SKILL_ARMSMASTER)}, | |
14468 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_STEALING", PLAYER_SKILL_STEALING)}, | |
14469 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_ALCHEMY", PLAYER_SKILL_ALCHEMY)}, | |
14470 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_LEARNING", PLAYER_SKILL_LEARNING)}, | |
14471 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_CLUB", PLAYER_SKILL_CLUB)}, | |
14472 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_MISC", PLAYER_SKILL_MISC)}, | |
14473 {SWIG_LUA_CONSTTAB_INT("PLAYER_SKILL_INVALID", PLAYER_SKILL_INVALID)}, | |
14474 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_KNIGHT", PLAYER_CLASS_KNIGHT)}, | |
14475 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_CHEVALIER", PLAYER_CLASS_CHEVALIER)}, | |
14476 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_CHAMPION", PLAYER_CLASS_CHAMPION)}, | |
14477 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_BLACK_KNIGHT", PLAYER_CLASS_BLACK_KNIGHT)}, | |
14478 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_THEIF", PLAYER_CLASS_THEIF)}, | |
14479 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_ROGUE", PLAYER_CLASS_ROGUE)}, | |
14480 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_SPY", PLAYER_CLASS_SPY)}, | |
14481 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_ASSASSIN", PLAYER_CLASS_ASSASSIN)}, | |
14482 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_MONK", PLAYER_CLASS_MONK)}, | |
14483 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_INITIATE", PLAYER_CLASS_INITIATE)}, | |
14484 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_MASTER", PLAYER_CLASS_MASTER)}, | |
14485 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_NINJA", PLAYER_CLASS_NINJA)}, | |
14486 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_PALADIN", PLAYER_CLASS_PALADIN)}, | |
14487 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_CRUSADER", PLAYER_CLASS_CRUSADER)}, | |
14488 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_HERO", PLAYER_CLASS_HERO)}, | |
14489 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_VILLIAN", PLAYER_CLASS_VILLIAN)}, | |
14490 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_ARCHER", PLAYER_CLASS_ARCHER)}, | |
14491 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_WARRIOR_MAGE", PLAYER_CLASS_WARRIOR_MAGE)}, | |
14492 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_MASTER_ARCHER", PLAYER_CLASS_MASTER_ARCHER)}, | |
14493 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_SNIPER", PLAYER_CLASS_SNIPER)}, | |
14494 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_RANGER", PLAYER_CLASS_RANGER)}, | |
14495 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_HUNTER", PLAYER_CLASS_HUNTER)}, | |
14496 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_RANGER_LORD", PLAYER_CLASS_RANGER_LORD)}, | |
14497 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_BOUNTY_HUNTER", PLAYER_CLASS_BOUNTY_HUNTER)}, | |
14498 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_CLERIC", PLAYER_CLASS_CLERIC)}, | |
14499 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_PRIEST", PLAYER_CLASS_PRIEST)}, | |
14500 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_PRIEST_OF_SUN", PLAYER_CLASS_PRIEST_OF_SUN)}, | |
14501 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_PRIEST_OF_MOON", PLAYER_CLASS_PRIEST_OF_MOON)}, | |
14502 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_DRUID", PLAYER_CLASS_DRUID)}, | |
14503 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_GREAT_DRUID", PLAYER_CLASS_GREAT_DRUID)}, | |
14504 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_ARCH_DRUID", PLAYER_CLASS_ARCH_DRUID)}, | |
14505 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_WARLOCK", PLAYER_CLASS_WARLOCK)}, | |
14506 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_SORCERER", PLAYER_CLASS_SORCERER)}, | |
14507 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_WIZARD", PLAYER_CLASS_WIZARD)}, | |
14508 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_ARCHMAGE", PLAYER_CLASS_ARCHMAGE)}, | |
14509 {SWIG_LUA_CONSTTAB_INT("PLAYER_CLASS_LICH", PLAYER_CLASS_LICH)}, | |
14510 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_INVALID", CHARACTER_EXPRESSION_INVALID)}, | |
14511 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_1", CHARACTER_EXPRESSION_1)}, | |
14512 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_CURSED", CHARACTER_EXPRESSION_CURSED)}, | |
14513 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_WEAK", CHARACTER_EXPRESSION_WEAK)}, | |
14514 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_SLEEP", CHARACTER_EXPRESSION_SLEEP)}, | |
14515 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_FEAR", CHARACTER_EXPRESSION_FEAR)}, | |
14516 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_DRUNK", CHARACTER_EXPRESSION_DRUNK)}, | |
14517 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_INSANE", CHARACTER_EXPRESSION_INSANE)}, | |
14518 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_POISONED", CHARACTER_EXPRESSION_POISONED)}, | |
14519 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_DISEASED", CHARACTER_EXPRESSION_DISEASED)}, | |
14520 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_PARALYZED", CHARACTER_EXPRESSION_PARALYZED)}, | |
14521 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_UNCONCIOUS", CHARACTER_EXPRESSION_UNCONCIOUS)}, | |
14522 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_PERTIFIED", CHARACTER_EXPRESSION_PERTIFIED)}, | |
14523 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_13", CHARACTER_EXPRESSION_13)}, | |
14524 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_14", CHARACTER_EXPRESSION_14)}, | |
14525 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_15", CHARACTER_EXPRESSION_15)}, | |
14526 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_16", CHARACTER_EXPRESSION_16)}, | |
14527 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_17", CHARACTER_EXPRESSION_17)}, | |
14528 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_18", CHARACTER_EXPRESSION_18)}, | |
14529 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_19", CHARACTER_EXPRESSION_19)}, | |
14530 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_20", CHARACTER_EXPRESSION_20)}, | |
14531 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_21", CHARACTER_EXPRESSION_21)}, | |
14532 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_22", CHARACTER_EXPRESSION_22)}, | |
14533 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_23", CHARACTER_EXPRESSION_23)}, | |
14534 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_24", CHARACTER_EXPRESSION_24)}, | |
14535 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_25", CHARACTER_EXPRESSION_25)}, | |
14536 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_26", CHARACTER_EXPRESSION_26)}, | |
14537 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_27", CHARACTER_EXPRESSION_27)}, | |
14538 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_28", CHARACTER_EXPRESSION_28)}, | |
14539 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_29", CHARACTER_EXPRESSION_29)}, | |
14540 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_30", CHARACTER_EXPRESSION_30)}, | |
14541 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_31", CHARACTER_EXPRESSION_31)}, | |
14542 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_32", CHARACTER_EXPRESSION_32)}, | |
14543 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_33", CHARACTER_EXPRESSION_33)}, | |
14544 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_DMGRECVD_MINOR", CHARACTER_EXPRESSION_DMGRECVD_MINOR)}, | |
14545 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_DMGRECVD_MODERATE", CHARACTER_EXPRESSION_DMGRECVD_MODERATE)}, | |
14546 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_DMGRECVD_MAJOR", CHARACTER_EXPRESSION_DMGRECVD_MAJOR)}, | |
14547 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_37", CHARACTER_EXPRESSION_37)}, | |
14548 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_38", CHARACTER_EXPRESSION_38)}, | |
14549 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_39", CHARACTER_EXPRESSION_39)}, | |
14550 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_SCARED", CHARACTER_EXPRESSION_SCARED)}, | |
14551 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_54", CHARACTER_EXPRESSION_54)}, | |
14552 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_55", CHARACTER_EXPRESSION_55)}, | |
14553 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_56", CHARACTER_EXPRESSION_56)}, | |
14554 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_57", CHARACTER_EXPRESSION_57)}, | |
14555 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_FALLING", CHARACTER_EXPRESSION_FALLING)}, | |
14556 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_DEAD", CHARACTER_EXPRESSION_DEAD)}, | |
14557 {SWIG_LUA_CONSTTAB_INT("CHARACTER_EXPRESSION_ERADICATED", CHARACTER_EXPRESSION_ERADICATED)}, | |
14558 {SWIG_LUA_CONSTTAB_INT("SEX_MALE", SEX_MALE)}, | |
14559 {SWIG_LUA_CONSTTAB_INT("SEX_FEMALE", SEX_FEMALE)}, | |
14560 {SWIG_LUA_CONSTTAB_INT("Player_INVETORYSLOTSWIDTH", Player::INVETORYSLOTSWIDTH)}, | |
14561 {SWIG_LUA_CONSTTAB_INT("Player_INVETORYSLOTSHEIGHT", Player::INVETORYSLOTSHEIGHT)}, | |
14562 {0,0,0,0,0,0} | |
14563 }; | |
14564 | |
14565 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
14566 | |
14567 static swig_type_info _swigt__m_PlayerEquipment__unsigned_int = {"_m_PlayerEquipment__unsigned_int", "unsigned int PlayerEquipment::*", 0, 0, (void*)0, 0}; | |
14568 static swig_type_info _swigt__m_Player__unsigned___int16 = {"_m_Player__unsigned___int16", "unsigned __int16 Player::*", 0, 0, (void*)0, 0}; | |
14569 static swig_type_info _swigt__m_Player__unsigned_short = {"_m_Player__unsigned_short", "unsigned short Player::*", 0, 0, (void*)0, 0}; | |
14570 static swig_type_info _swigt__p_Actor = {"_p_Actor", "Actor *", 0, 0, (void*)0, 0}; | |
14571 static swig_type_info _swigt__p_DAMAGE_TYPE = {"_p_DAMAGE_TYPE", "DAMAGE_TYPE *", 0, 0, (void*)0, 0}; | |
14572 static swig_type_info _swigt__p_ITEM_EQUIP_TYPE = {"_p_ITEM_EQUIP_TYPE", "ITEM_EQUIP_TYPE *", 0, 0, (void*)0, 0}; | |
14573 static swig_type_info _swigt__p_ItemGen = {"_p_ItemGen", "ItemGen *", 0, 0, (void*)0, 0}; | |
14574 static swig_type_info _swigt__p_LloydBeacon = {"_p_LloydBeacon", "LloydBeacon *", 0, 0, (void*)&_wrap_class_LloydBeacon, 0}; | |
14575 static swig_type_info _swigt__p_NZIArrayT_Player_p_5_t = {"_p_NZIArrayT_Player_p_5_t", "NZIArray< Player *,5 > *", 0, 0, (void*)0, 0}; | |
14576 static swig_type_info _swigt__p_Player = {"_p_Player", "Player *", 0, 0, (void*)&_wrap_class_Player, 0}; | |
14577 static swig_type_info _swigt__p_PlayerEquipment = {"_p_PlayerEquipment", "PlayerEquipment *", 0, 0, (void*)&_wrap_class_PlayerEquipment, 0}; | |
14578 static swig_type_info _swigt__p_PlayerSpellbookChapter = {"_p_PlayerSpellbookChapter", "PlayerSpellbookChapter *", 0, 0, (void*)&_wrap_class_PlayerSpellbookChapter, 0}; | |
14579 static swig_type_info _swigt__p_PlayerSpells = {"_p_PlayerSpells", "PlayerSpells *", 0, 0, (void*)&_wrap_class_PlayerSpells, 0}; | |
14580 static swig_type_info _swigt__p___int16 = {"_p___int16", "__int16 *", 0, 0, (void*)0, 0}; | |
14581 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; | |
14582 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
14583 static swig_type_info _swigt__p_std__arrayT_LloydBeacon_5_t = {"_p_std__arrayT_LloydBeacon_5_t", "std::array< LloydBeacon,5 > *", 0, 0, (void*)0, 0}; | |
14584 static swig_type_info _swigt__p_std__arrayT_SpellBuff_24_t = {"_p_std__arrayT_SpellBuff_24_t", "std::array< SpellBuff,24 > *", 0, 0, (void*)0, 0}; | |
14585 static swig_type_info _swigt__p_std__arrayT___int64_20_t = {"_p_std__arrayT___int64_20_t", "std::array< __int64,20 > *", 0, 0, (void*)0, 0}; | |
14586 static swig_type_info _swigt__p_std__arrayT_char_11_t = {"_p_std__arrayT_char_11_t", "std::array< char,11 > *", 0, 0, (void*)0, 0}; | |
14587 static swig_type_info _swigt__p_std__arrayT_int_126_t = {"_p_std__arrayT_int_126_t", "std::array< int,126 > *", 0, 0, (void*)0, 0}; | |
14588 static swig_type_info _swigt__p_unsigned___int16 = {"_p_unsigned___int16", "unsigned __int16 *", 0, 0, (void*)0, 0}; | |
14589 static swig_type_info _swigt__p_unsigned___int64 = {"_p_unsigned___int64", "unsigned __int64 *", 0, 0, (void*)0, 0}; | |
14590 static swig_type_info _swigt__p_unsigned___int8 = {"_p_unsigned___int8", "unsigned __int8 *", 0, 0, (void*)0, 0}; | |
14591 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *", 0, 0, (void*)0, 0}; | |
14592 | |
14593 static swig_type_info *swig_type_initial[] = { | |
14594 &_swigt__m_PlayerEquipment__unsigned_int, | |
14595 &_swigt__m_Player__unsigned___int16, | |
14596 &_swigt__m_Player__unsigned_short, | |
14597 &_swigt__p_Actor, | |
14598 &_swigt__p_DAMAGE_TYPE, | |
14599 &_swigt__p_ITEM_EQUIP_TYPE, | |
14600 &_swigt__p_ItemGen, | |
14601 &_swigt__p_LloydBeacon, | |
14602 &_swigt__p_NZIArrayT_Player_p_5_t, | |
14603 &_swigt__p_Player, | |
14604 &_swigt__p_PlayerEquipment, | |
14605 &_swigt__p_PlayerSpellbookChapter, | |
14606 &_swigt__p_PlayerSpells, | |
14607 &_swigt__p___int16, | |
14608 &_swigt__p_char, | |
14609 &_swigt__p_int, | |
14610 &_swigt__p_std__arrayT_LloydBeacon_5_t, | |
14611 &_swigt__p_std__arrayT_SpellBuff_24_t, | |
14612 &_swigt__p_std__arrayT___int64_20_t, | |
14613 &_swigt__p_std__arrayT_char_11_t, | |
14614 &_swigt__p_std__arrayT_int_126_t, | |
14615 &_swigt__p_unsigned___int16, | |
14616 &_swigt__p_unsigned___int64, | |
14617 &_swigt__p_unsigned___int8, | |
14618 &_swigt__p_unsigned_char, | |
14619 }; | |
14620 | |
14621 static swig_cast_info _swigc__m_PlayerEquipment__unsigned_int[] = { {&_swigt__m_PlayerEquipment__unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
14622 static swig_cast_info _swigc__m_Player__unsigned___int16[] = { {&_swigt__m_Player__unsigned___int16, 0, 0, 0},{0, 0, 0, 0}}; | |
14623 static swig_cast_info _swigc__m_Player__unsigned_short[] = { {&_swigt__m_Player__unsigned_short, 0, 0, 0},{0, 0, 0, 0}}; | |
14624 static swig_cast_info _swigc__p_Actor[] = { {&_swigt__p_Actor, 0, 0, 0},{0, 0, 0, 0}}; | |
14625 static swig_cast_info _swigc__p_DAMAGE_TYPE[] = { {&_swigt__p_DAMAGE_TYPE, 0, 0, 0},{0, 0, 0, 0}}; | |
14626 static swig_cast_info _swigc__p_ITEM_EQUIP_TYPE[] = { {&_swigt__p_ITEM_EQUIP_TYPE, 0, 0, 0},{0, 0, 0, 0}}; | |
14627 static swig_cast_info _swigc__p_ItemGen[] = { {&_swigt__p_ItemGen, 0, 0, 0},{0, 0, 0, 0}}; | |
14628 static swig_cast_info _swigc__p_LloydBeacon[] = { {&_swigt__p_LloydBeacon, 0, 0, 0},{0, 0, 0, 0}}; | |
14629 static swig_cast_info _swigc__p_NZIArrayT_Player_p_5_t[] = { {&_swigt__p_NZIArrayT_Player_p_5_t, 0, 0, 0},{0, 0, 0, 0}}; | |
14630 static swig_cast_info _swigc__p_Player[] = { {&_swigt__p_Player, 0, 0, 0},{0, 0, 0, 0}}; | |
14631 static swig_cast_info _swigc__p_PlayerEquipment[] = { {&_swigt__p_PlayerEquipment, 0, 0, 0},{0, 0, 0, 0}}; | |
14632 static swig_cast_info _swigc__p_PlayerSpellbookChapter[] = { {&_swigt__p_PlayerSpellbookChapter, 0, 0, 0},{0, 0, 0, 0}}; | |
14633 static swig_cast_info _swigc__p_PlayerSpells[] = { {&_swigt__p_PlayerSpells, 0, 0, 0},{0, 0, 0, 0}}; | |
14634 static swig_cast_info _swigc__p___int16[] = { {&_swigt__p___int16, 0, 0, 0},{0, 0, 0, 0}}; | |
14635 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
14636 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
14637 static swig_cast_info _swigc__p_std__arrayT_LloydBeacon_5_t[] = { {&_swigt__p_std__arrayT_LloydBeacon_5_t, 0, 0, 0},{0, 0, 0, 0}}; | |
14638 static swig_cast_info _swigc__p_std__arrayT_SpellBuff_24_t[] = { {&_swigt__p_std__arrayT_SpellBuff_24_t, 0, 0, 0},{0, 0, 0, 0}}; | |
14639 static swig_cast_info _swigc__p_std__arrayT___int64_20_t[] = { {&_swigt__p_std__arrayT___int64_20_t, 0, 0, 0},{0, 0, 0, 0}}; | |
14640 static swig_cast_info _swigc__p_std__arrayT_char_11_t[] = { {&_swigt__p_std__arrayT_char_11_t, 0, 0, 0},{0, 0, 0, 0}}; | |
14641 static swig_cast_info _swigc__p_std__arrayT_int_126_t[] = { {&_swigt__p_std__arrayT_int_126_t, 0, 0, 0},{0, 0, 0, 0}}; | |
14642 static swig_cast_info _swigc__p_unsigned___int16[] = { {&_swigt__p_unsigned___int16, 0, 0, 0},{0, 0, 0, 0}}; | |
14643 static swig_cast_info _swigc__p_unsigned___int64[] = { {&_swigt__p_unsigned___int64, 0, 0, 0},{0, 0, 0, 0}}; | |
14644 static swig_cast_info _swigc__p_unsigned___int8[] = { {&_swigt__p_unsigned___int8, 0, 0, 0},{0, 0, 0, 0}}; | |
14645 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
14646 | |
14647 static swig_cast_info *swig_cast_initial[] = { | |
14648 _swigc__m_PlayerEquipment__unsigned_int, | |
14649 _swigc__m_Player__unsigned___int16, | |
14650 _swigc__m_Player__unsigned_short, | |
14651 _swigc__p_Actor, | |
14652 _swigc__p_DAMAGE_TYPE, | |
14653 _swigc__p_ITEM_EQUIP_TYPE, | |
14654 _swigc__p_ItemGen, | |
14655 _swigc__p_LloydBeacon, | |
14656 _swigc__p_NZIArrayT_Player_p_5_t, | |
14657 _swigc__p_Player, | |
14658 _swigc__p_PlayerEquipment, | |
14659 _swigc__p_PlayerSpellbookChapter, | |
14660 _swigc__p_PlayerSpells, | |
14661 _swigc__p___int16, | |
14662 _swigc__p_char, | |
14663 _swigc__p_int, | |
14664 _swigc__p_std__arrayT_LloydBeacon_5_t, | |
14665 _swigc__p_std__arrayT_SpellBuff_24_t, | |
14666 _swigc__p_std__arrayT___int64_20_t, | |
14667 _swigc__p_std__arrayT_char_11_t, | |
14668 _swigc__p_std__arrayT_int_126_t, | |
14669 _swigc__p_unsigned___int16, | |
14670 _swigc__p_unsigned___int64, | |
14671 _swigc__p_unsigned___int8, | |
14672 _swigc__p_unsigned_char, | |
14673 }; | |
14674 | |
14675 | |
14676 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
14677 | |
14678 /* ----------------------------------------------------------------------------- | |
14679 * Type initialization: | |
14680 * This problem is tough by the requirement that no dynamic | |
14681 * memory is used. Also, since swig_type_info structures store pointers to | |
14682 * swig_cast_info structures and swig_cast_info structures store pointers back | |
14683 * to swig_type_info structures, we need some lookup code at initialization. | |
14684 * The idea is that swig generates all the structures that are needed. | |
14685 * The runtime then collects these partially filled structures. | |
14686 * The SWIG_InitializeModule function takes these initial arrays out of | |
14687 * swig_module, and does all the lookup, filling in the swig_module.types | |
14688 * array with the correct data and linking the correct swig_cast_info | |
14689 * structures together. | |
14690 * | |
14691 * The generated swig_type_info structures are assigned staticly to an initial | |
14692 * array. We just loop through that array, and handle each type individually. | |
14693 * First we lookup if this type has been already loaded, and if so, use the | |
14694 * loaded structure instead of the generated one. Then we have to fill in the | |
14695 * cast linked list. The cast data is initially stored in something like a | |
14696 * two-dimensional array. Each row corresponds to a type (there are the same | |
14697 * number of rows as there are in the swig_type_initial array). Each entry in | |
14698 * a column is one of the swig_cast_info structures for that type. | |
14699 * The cast_initial array is actually an array of arrays, because each row has | |
14700 * a variable number of columns. So to actually build the cast linked list, | |
14701 * we find the array of casts associated with the type, and loop through it | |
14702 * adding the casts to the list. The one last trick we need to do is making | |
14703 * sure the type pointer in the swig_cast_info struct is correct. | |
14704 * | |
14705 * First off, we lookup the cast->type name to see if it is already loaded. | |
14706 * There are three cases to handle: | |
14707 * 1) If the cast->type has already been loaded AND the type we are adding | |
14708 * casting info to has not been loaded (it is in this module), THEN we | |
14709 * replace the cast->type pointer with the type pointer that has already | |
14710 * been loaded. | |
14711 * 2) If BOTH types (the one we are adding casting info to, and the | |
14712 * cast->type) are loaded, THEN the cast info has already been loaded by | |
14713 * the previous module so we just ignore it. | |
14714 * 3) Finally, if cast->type has not already been loaded, then we add that | |
14715 * swig_cast_info to the linked list (because the cast->type) pointer will | |
14716 * be correct. | |
14717 * ----------------------------------------------------------------------------- */ | |
14718 | |
14719 #ifdef __cplusplus | |
14720 extern "C" { | |
14721 #if 0 | |
14722 } /* c-mode */ | |
14723 #endif | |
14724 #endif | |
14725 | |
14726 #if 0 | |
14727 #define SWIGRUNTIME_DEBUG | |
14728 #endif | |
14729 | |
14730 | |
14731 SWIGRUNTIME void | |
14732 SWIG_InitializeModule(void *clientdata) { | |
14733 size_t i; | |
14734 swig_module_info *module_head, *iter; | |
14735 int found, init; | |
14736 | |
14737 /* check to see if the circular list has been setup, if not, set it up */ | |
14738 if (swig_module.next==0) { | |
14739 /* Initialize the swig_module */ | |
14740 swig_module.type_initial = swig_type_initial; | |
14741 swig_module.cast_initial = swig_cast_initial; | |
14742 swig_module.next = &swig_module; | |
14743 init = 1; | |
14744 } else { | |
14745 init = 0; | |
14746 } | |
14747 | |
14748 /* Try and load any already created modules */ | |
14749 module_head = SWIG_GetModule(clientdata); | |
14750 if (!module_head) { | |
14751 /* This is the first module loaded for this interpreter */ | |
14752 /* so set the swig module into the interpreter */ | |
14753 SWIG_SetModule(clientdata, &swig_module); | |
14754 module_head = &swig_module; | |
14755 } else { | |
14756 /* the interpreter has loaded a SWIG module, but has it loaded this one? */ | |
14757 found=0; | |
14758 iter=module_head; | |
14759 do { | |
14760 if (iter==&swig_module) { | |
14761 found=1; | |
14762 break; | |
14763 } | |
14764 iter=iter->next; | |
14765 } while (iter!= module_head); | |
14766 | |
14767 /* if the is found in the list, then all is done and we may leave */ | |
14768 if (found) return; | |
14769 /* otherwise we must add out module into the list */ | |
14770 swig_module.next = module_head->next; | |
14771 module_head->next = &swig_module; | |
14772 } | |
14773 | |
14774 /* When multiple interpreters are used, a module could have already been initialized in | |
14775 a different interpreter, but not yet have a pointer in this interpreter. | |
14776 In this case, we do not want to continue adding types... everything should be | |
14777 set up already */ | |
14778 if (init == 0) return; | |
14779 | |
14780 /* Now work on filling in swig_module.types */ | |
14781 #ifdef SWIGRUNTIME_DEBUG | |
14782 printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
14783 #endif | |
14784 for (i = 0; i < swig_module.size; ++i) { | |
14785 swig_type_info *type = 0; | |
14786 swig_type_info *ret; | |
14787 swig_cast_info *cast; | |
14788 | |
14789 #ifdef SWIGRUNTIME_DEBUG | |
14790 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
14791 #endif | |
14792 | |
14793 /* if there is another module already loaded */ | |
14794 if (swig_module.next != &swig_module) { | |
14795 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
14796 } | |
14797 if (type) { | |
14798 /* Overwrite clientdata field */ | |
14799 #ifdef SWIGRUNTIME_DEBUG | |
14800 printf("SWIG_InitializeModule: found type %s\n", type->name); | |
14801 #endif | |
14802 if (swig_module.type_initial[i]->clientdata) { | |
14803 type->clientdata = swig_module.type_initial[i]->clientdata; | |
14804 #ifdef SWIGRUNTIME_DEBUG | |
14805 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
14806 #endif | |
14807 } | |
14808 } else { | |
14809 type = swig_module.type_initial[i]; | |
14810 } | |
14811 | |
14812 /* Insert casting types */ | |
14813 cast = swig_module.cast_initial[i]; | |
14814 while (cast->type) { | |
14815 | |
14816 /* Don't need to add information already in the list */ | |
14817 ret = 0; | |
14818 #ifdef SWIGRUNTIME_DEBUG | |
14819 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
14820 #endif | |
14821 if (swig_module.next != &swig_module) { | |
14822 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
14823 #ifdef SWIGRUNTIME_DEBUG | |
14824 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
14825 #endif | |
14826 } | |
14827 if (ret) { | |
14828 if (type == swig_module.type_initial[i]) { | |
14829 #ifdef SWIGRUNTIME_DEBUG | |
14830 printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
14831 #endif | |
14832 cast->type = ret; | |
14833 ret = 0; | |
14834 } else { | |
14835 /* Check for casting already in the list */ | |
14836 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
14837 #ifdef SWIGRUNTIME_DEBUG | |
14838 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
14839 #endif | |
14840 if (!ocast) ret = 0; | |
14841 } | |
14842 } | |
14843 | |
14844 if (!ret) { | |
14845 #ifdef SWIGRUNTIME_DEBUG | |
14846 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
14847 #endif | |
14848 if (type->cast) { | |
14849 type->cast->prev = cast; | |
14850 cast->next = type->cast; | |
14851 } | |
14852 type->cast = cast; | |
14853 } | |
14854 cast++; | |
14855 } | |
14856 /* Set entry in modules->types array equal to the type */ | |
14857 swig_module.types[i] = type; | |
14858 } | |
14859 swig_module.types[i] = 0; | |
14860 | |
14861 #ifdef SWIGRUNTIME_DEBUG | |
14862 printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
14863 for (i = 0; i < swig_module.size; ++i) { | |
14864 int j = 0; | |
14865 swig_cast_info *cast = swig_module.cast_initial[i]; | |
14866 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
14867 while (cast->type) { | |
14868 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
14869 cast++; | |
14870 ++j; | |
14871 } | |
14872 printf("---- Total casts: %d\n",j); | |
14873 } | |
14874 printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
14875 #endif | |
14876 } | |
14877 | |
14878 /* This function will propagate the clientdata field of type to | |
14879 * any new swig_type_info structures that have been added into the list | |
14880 * of equivalent types. It is like calling | |
14881 * SWIG_TypeClientData(type, clientdata) a second time. | |
14882 */ | |
14883 SWIGRUNTIME void | |
14884 SWIG_PropagateClientData(void) { | |
14885 size_t i; | |
14886 swig_cast_info *equiv; | |
14887 static int init_run = 0; | |
14888 | |
14889 if (init_run) return; | |
14890 init_run = 1; | |
14891 | |
14892 for (i = 0; i < swig_module.size; i++) { | |
14893 if (swig_module.types[i]->clientdata) { | |
14894 equiv = swig_module.types[i]->cast; | |
14895 while (equiv) { | |
14896 if (!equiv->converter) { | |
14897 if (equiv->type && !equiv->type->clientdata) | |
14898 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
14899 } | |
14900 equiv = equiv->next; | |
14901 } | |
14902 } | |
14903 } | |
14904 } | |
14905 | |
14906 #ifdef __cplusplus | |
14907 #if 0 | |
14908 { /* c-mode */ | |
14909 #endif | |
14910 } | |
14911 #endif | |
14912 | |
14913 | |
14914 | |
14915 /* Forward declaration of where the user's %init{} gets inserted */ | |
14916 void SWIG_init_user(lua_State* L ); | |
14917 | |
14918 #ifdef __cplusplus | |
14919 extern "C" { | |
14920 #endif | |
14921 /* this is the initialization function | |
14922 added at the very end of the code | |
14923 the function is always called SWIG_init, but an earlier #define will rename it | |
14924 */ | |
14925 #if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) | |
14926 LUALIB_API int SWIG_init(lua_State* L) | |
14927 #else | |
14928 SWIGEXPORT int SWIG_init(lua_State* L) /* default Lua action */ | |
14929 #endif | |
14930 { | |
14931 #if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) /* valid for both Lua and eLua */ | |
14932 int i; | |
14933 /* start with global table */ | |
14934 lua_pushglobaltable (L); | |
14935 /* SWIG's internal initalisation */ | |
14936 SWIG_InitializeModule((void*)L); | |
14937 SWIG_PropagateClientData(); | |
14938 #endif | |
14939 | |
14940 #if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) | |
14941 /* add a global fn */ | |
14942 SWIG_Lua_add_function(L,"swig_type",SWIG_Lua_type); | |
14943 SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_equal); | |
14944 /* begin the module (its a table with the same name as the module) */ | |
14945 SWIG_Lua_module_begin(L,SWIG_name); | |
14946 /* add commands/functions */ | |
14947 for (i = 0; swig_commands[i].name; i++){ | |
14948 SWIG_Lua_module_add_function(L,swig_commands[i].name,swig_commands[i].func); | |
14949 } | |
14950 /* add variables */ | |
14951 for (i = 0; swig_variables[i].name; i++){ | |
14952 SWIG_Lua_module_add_variable(L,swig_variables[i].name,swig_variables[i].get,swig_variables[i].set); | |
14953 } | |
14954 #endif | |
14955 | |
14956 #if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) | |
14957 /* set up base class pointers (the hierarchy) */ | |
14958 for (i = 0; swig_types[i]; i++){ | |
14959 if (swig_types[i]->clientdata){ | |
14960 SWIG_Lua_init_base_class(L,(swig_lua_class*)(swig_types[i]->clientdata)); | |
14961 } | |
14962 } | |
14963 /* additional registration structs & classes in lua */ | |
14964 for (i = 0; swig_types[i]; i++){ | |
14965 if (swig_types[i]->clientdata){ | |
14966 SWIG_Lua_class_register(L,(swig_lua_class*)(swig_types[i]->clientdata)); | |
14967 } | |
14968 } | |
14969 #endif | |
14970 | |
14971 #if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) | |
14972 /* constants */ | |
14973 SWIG_Lua_InstallConstants(L,swig_constants); | |
14974 #endif | |
14975 | |
14976 #if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) | |
14977 /* invoke user-specific initialization */ | |
14978 SWIG_init_user(L); | |
14979 /* end module */ | |
14980 /* Note: We do not clean up the stack here (Lua will do this for us). At this | |
14981 point, we have the globals table and out module table on the stack. Returning | |
14982 one value makes the module table the result of the require command. */ | |
14983 return 1; | |
14984 #else | |
14985 return 0; | |
14986 #endif | |
14987 } | |
14988 | |
14989 #ifdef __cplusplus | |
14990 } | |
14991 #endif | |
14992 | |
14993 | |
14994 const char* SWIG_LUACODE= | |
14995 ""; | |
14996 | |
14997 void SWIG_init_user(lua_State* L) | |
14998 { | |
14999 /* exec Lua code if applicable */ | |
15000 SWIG_Lua_dostring(L,SWIG_LUACODE); | |
15001 } | |
15002 |