Freeciv-3.1: /fast/freeciv/nightly/S3_1/server/scripting/tolua_server_gen.c Source File

Freeciv-3.1

Loading...
Searching...
No Matches
tolua_server_gen.c
Go to the documentation of this file.
1/*
2** Lua binding: server
3*/
4
5#include "tolua.h"
6
7#ifndef __cplusplus
8#include <stdlib.h>
9#endif
10#ifdef __cplusplus
11 extern "C" int tolua_bnd_takeownership (lua_State* L); // from tolua_map.c
12#else
13 int tolua_bnd_takeownership (lua_State* L); /* from tolua_map.c */
14#endif
15#include <string.h>
16
17/* Exported function */
18TOLUA_API int tolua_server_open (lua_State* tolua_S);
19LUALIB_API int luaopen_server (lua_State* tolua_S);
20
21#ifdef HAVE_CONFIG_H
22#include <fc_config.h>
23#endif
24#include "luascript_types.h"
25#include "commands.h"
26#include "console.h"
27#include "api_server_edit.h"
28#include "api_server_base.h"
29#include "api_server_luadata.h"
30#include "api_server_notify.h"
31#include "api_server_game_methods.h"
32#include "script_server.h"
33#define game_server_autoupgrade_veteran_loss (game.server.autoupgrade_veteran_loss)
34#define game_server_upgrade_veteran_loss (game.server.upgrade_veteran_loss)
35
36/* function to register type */
37 static void tolua_reg_types (lua_State* tolua_S)
38{
39 tolua_usertype(tolua_S,"Unit");
40 tolua_usertype(tolua_S,"Tech_Type");
41 tolua_usertype(tolua_S,"Direction");
42 tolua_usertype(tolua_S,"Action");
43 tolua_usertype(tolua_S,"Nation_Type");
44 tolua_usertype(tolua_S,"Terrain");
45 tolua_usertype(tolua_S,"Building_Type");
46 tolua_usertype(tolua_S,"Player");
47 tolua_usertype(tolua_S,"Tile");
48 tolua_usertype(tolua_S,"Unit_Type");
49 tolua_usertype(tolua_S,"City");
50}
51
52/* function: api_server_save */
53 static int tolua_server_server_save00(lua_State* tolua_S)
54{
55#ifndef TOLUA_RELEASE
56 tolua_Error tolua_err;
57 if (
58 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
59 !tolua_isnoobj(tolua_S,2,&tolua_err)
60 )
61 goto tolua_lerror;
62 else
63#endif
64 {
65 lua_State* L = tolua_S;
66 const char* filename = ((const char*) tolua_tostring(tolua_S,1,0));
67 {
68 bool tolua_ret = (bool) api_server_save(L,filename);
69 tolua_pushboolean(tolua_S,(bool)tolua_ret);
70 }
71 }
72 return 1;
73#ifndef TOLUA_RELEASE
74 tolua_lerror:
75 tolua_error(tolua_S,"#ferror in function 'save'.",&tolua_err);
76 return 0;
77#endif
78}
79
80/* function: api_server_was_started */
81 static int tolua_server_server_started00(lua_State* tolua_S)
82{
83#ifndef TOLUA_RELEASE
84 tolua_Error tolua_err;
85 if (
86 !tolua_isnoobj(tolua_S,1,&tolua_err)
87 )
88 goto tolua_lerror;
89 else
90#endif
91 {
92 lua_State* L = tolua_S;
93 {
94 bool tolua_ret = (bool) api_server_was_started(L);
95 tolua_pushboolean(tolua_S,(bool)tolua_ret);
96 }
97 }
98 return 1;
99#ifndef TOLUA_RELEASE
100 tolua_lerror:
101 tolua_error(tolua_S,"#ferror in function 'started'.",&tolua_err);
102 return 0;
103#endif
104}
105
106/* function: api_server_player_civilization_score */
107 static int tolua_server_server_civilization_score00(lua_State* tolua_S)
108{
109#ifndef TOLUA_RELEASE
110 tolua_Error tolua_err;
111 if (
112 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
113 !tolua_isnoobj(tolua_S,2,&tolua_err)
114 )
115 goto tolua_lerror;
116 else
117#endif
118 {
119 lua_State* L = tolua_S;
120 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
121 {
122 int tolua_ret = (int) api_server_player_civilization_score(L,pplayer);
123 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
124 }
125 }
126 return 1;
127#ifndef TOLUA_RELEASE
128 tolua_lerror:
129 tolua_error(tolua_S,"#ferror in function 'civilization_score'.",&tolua_err);
130 return 0;
131#endif
132}
133
134/* function: api_play_music */
135 static int tolua_server_server_play_music00(lua_State* tolua_S)
136{
137#ifndef TOLUA_RELEASE
138 tolua_Error tolua_err;
139 if (
140 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
141 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
142 !tolua_isnoobj(tolua_S,3,&tolua_err)
143 )
144 goto tolua_lerror;
145 else
146#endif
147 {
148 lua_State* L = tolua_S;
149 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
150 const char* tag = ((const char*) tolua_tostring(tolua_S,2,0));
151 {
152 bool tolua_ret = (bool) api_play_music(L,pplayer,tag);
153 tolua_pushboolean(tolua_S,(bool)tolua_ret);
154 }
155 }
156 return 1;
157#ifndef TOLUA_RELEASE
158 tolua_lerror:
159 tolua_error(tolua_S,"#ferror in function 'play_music'.",&tolua_err);
160 return 0;
161#endif
162}
163
164/* function: api_server_setting_get */
165 static int tolua_server_server_setting_get00(lua_State* tolua_S)
166{
167#ifndef TOLUA_RELEASE
168 tolua_Error tolua_err;
169 if (
170 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
171 !tolua_isnoobj(tolua_S,2,&tolua_err)
172 )
173 goto tolua_lerror;
174 else
175#endif
176 {
177 lua_State* L = tolua_S;
178 const char* setting_name = ((const char*) tolua_tostring(tolua_S,1,0));
179 {
180 const char* tolua_ret = (const char*) api_server_setting_get(L,setting_name);
181 tolua_pushstring(tolua_S,(const char*)tolua_ret);
182 }
183 }
184 return 1;
185#ifndef TOLUA_RELEASE
186 tolua_lerror:
187 tolua_error(tolua_S,"#ferror in function 'get'.",&tolua_err);
188 return 0;
189#endif
190}
191
192/* function: api_notify_embassies_msg */
193 static int tolua_server_notify_embassies_msg00(lua_State* tolua_S)
194{
195#ifndef TOLUA_RELEASE
196 tolua_Error tolua_err;
197 if (
198 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
199 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
200 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
201 !tolua_isstring(tolua_S,4,0,&tolua_err) ||
202 !tolua_isnoobj(tolua_S,5,&tolua_err)
203 )
204 goto tolua_lerror;
205 else
206#endif
207 {
208 lua_State* L = tolua_S;
209 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
210 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,2,0));
211 int event = ((int) tolua_tonumber(tolua_S,3,0));
212 const char* message = ((const char*) tolua_tostring(tolua_S,4,0));
213 {
214 api_notify_embassies_msg(L,pplayer,ptile,event,message);
215 }
216 }
217 return 0;
218#ifndef TOLUA_RELEASE
219 tolua_lerror:
220 tolua_error(tolua_S,"#ferror in function 'embassies_msg'.",&tolua_err);
221 return 0;
222#endif
223}
224
225/* function: api_notify_research_msg */
226 static int tolua_server_notify_research_msg00(lua_State* tolua_S)
227{
228#ifndef TOLUA_RELEASE
229 tolua_Error tolua_err;
230 if (
231 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
232 !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
233 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
234 !tolua_isstring(tolua_S,4,0,&tolua_err) ||
235 !tolua_isnoobj(tolua_S,5,&tolua_err)
236 )
237 goto tolua_lerror;
238 else
239#endif
240 {
241 lua_State* L = tolua_S;
242 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
243 bool include_plr = ((bool) tolua_toboolean(tolua_S,2,0));
244 int event = ((int) tolua_tonumber(tolua_S,3,0));
245 const char* message = ((const char*) tolua_tostring(tolua_S,4,0));
246 {
247 api_notify_research_msg(L,pplayer,include_plr,event,message);
248 }
249 }
250 return 0;
251#ifndef TOLUA_RELEASE
252 tolua_lerror:
253 tolua_error(tolua_S,"#ferror in function 'research_msg'.",&tolua_err);
254 return 0;
255#endif
256}
257
258/* function: api_notify_research_embassies_msg */
259 static int tolua_server_notify_research_embassies_msg00(lua_State* tolua_S)
260{
261#ifndef TOLUA_RELEASE
262 tolua_Error tolua_err;
263 if (
264 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
265 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
266 !tolua_isstring(tolua_S,3,0,&tolua_err) ||
267 !tolua_isnoobj(tolua_S,4,&tolua_err)
268 )
269 goto tolua_lerror;
270 else
271#endif
272 {
273 lua_State* L = tolua_S;
274 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
275 int event = ((int) tolua_tonumber(tolua_S,2,0));
276 const char* message = ((const char*) tolua_tostring(tolua_S,3,0));
277 {
278 api_notify_research_embassies_msg(L,pplayer,event,message);
279 }
280 }
281 return 0;
282#ifndef TOLUA_RELEASE
283 tolua_lerror:
284 tolua_error(tolua_S,"#ferror in function 'research_embassies_msg'.",&tolua_err);
285 return 0;
286#endif
287}
288
289/* function: api_notify_event_msg */
290 static int tolua_server_notify_event_msg00(lua_State* tolua_S)
291{
292#ifndef TOLUA_RELEASE
293 tolua_Error tolua_err;
294 if (
295 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
296 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
297 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
298 !tolua_isstring(tolua_S,4,0,&tolua_err) ||
299 !tolua_isnoobj(tolua_S,5,&tolua_err)
300 )
301 goto tolua_lerror;
302 else
303#endif
304 {
305 lua_State* L = tolua_S;
306 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
307 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,2,0));
308 int event = ((int) tolua_tonumber(tolua_S,3,0));
309 const char* message = ((const char*) tolua_tostring(tolua_S,4,0));
310 {
311 api_notify_event_msg(L,pplayer,ptile,event,message);
312 }
313 }
314 return 0;
315#ifndef TOLUA_RELEASE
316 tolua_lerror:
317 tolua_error(tolua_S,"#ferror in function 'event_msg'.",&tolua_err);
318 return 0;
319#endif
320}
321
322/* function: api_edit_create_unit */
323 static int tolua_server_edit_create_unit00(lua_State* tolua_S)
324{
325#ifndef TOLUA_RELEASE
326 tolua_Error tolua_err;
327 if (
328 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
329 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
330 !tolua_isusertype(tolua_S,3,"Unit_Type",0,&tolua_err) ||
331 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
332 !tolua_isusertype(tolua_S,5,"City",0,&tolua_err) ||
333 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
334 !tolua_isnoobj(tolua_S,7,&tolua_err)
335 )
336 goto tolua_lerror;
337 else
338#endif
339 {
340 lua_State* L = tolua_S;
341 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
342 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,2,0));
343 Unit_Type* ptype = ((Unit_Type*) tolua_tousertype(tolua_S,3,0));
344 int veteran_level = ((int) tolua_tonumber(tolua_S,4,0));
345 City* homecity = ((City*) tolua_tousertype(tolua_S,5,0));
346 int moves_left = ((int) tolua_tonumber(tolua_S,6,0));
347 {
348 Unit* tolua_ret = (Unit*) api_edit_create_unit(L,pplayer,ptile,ptype,veteran_level,homecity,moves_left);
349 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Unit");
350 }
351 }
352 return 1;
353#ifndef TOLUA_RELEASE
354 tolua_lerror:
355 tolua_error(tolua_S,"#ferror in function 'create_unit'.",&tolua_err);
356 return 0;
357#endif
358}
359
360/* function: api_edit_create_unit_full */
361 static int tolua_server_edit_create_unit_full00(lua_State* tolua_S)
362{
363#ifndef TOLUA_RELEASE
364 tolua_Error tolua_err;
365 if (
366 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
367 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
368 !tolua_isusertype(tolua_S,3,"Unit_Type",0,&tolua_err) ||
369 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
370 !tolua_isusertype(tolua_S,5,"City",0,&tolua_err) ||
371 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
372 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
373 !tolua_isusertype(tolua_S,8,"Unit",0,&tolua_err) ||
374 !tolua_isnoobj(tolua_S,9,&tolua_err)
375 )
376 goto tolua_lerror;
377 else
378#endif
379 {
380 lua_State* L = tolua_S;
381 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
382 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,2,0));
383 Unit_Type* ptype = ((Unit_Type*) tolua_tousertype(tolua_S,3,0));
384 int veteran_level = ((int) tolua_tonumber(tolua_S,4,0));
385 City* homecity = ((City*) tolua_tousertype(tolua_S,5,0));
386 int moves_left = ((int) tolua_tonumber(tolua_S,6,0));
387 int hp_left = ((int) tolua_tonumber(tolua_S,7,0));
388 Unit* ptransport = ((Unit*) tolua_tousertype(tolua_S,8,0));
389 {
390 Unit* tolua_ret = (Unit*) api_edit_create_unit_full(L,pplayer,ptile,ptype,veteran_level,homecity,moves_left,hp_left,ptransport);
391 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Unit");
392 }
393 }
394 return 1;
395#ifndef TOLUA_RELEASE
396 tolua_lerror:
397 tolua_error(tolua_S,"#ferror in function 'create_unit_full'.",&tolua_err);
398 return 0;
399#endif
400}
401
402/* function: api_edit_unit_teleport_old */
403 static int tolua_server_edit_unit_teleport00(lua_State* tolua_S)
404{
405#ifndef TOLUA_RELEASE
406 tolua_Error tolua_err;
407 if (
408 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
409 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
410 !tolua_isnoobj(tolua_S,3,&tolua_err)
411 )
412 goto tolua_lerror;
413 else
414#endif
415 {
416 lua_State* L = tolua_S;
417 Unit* self = ((Unit*) tolua_tousertype(tolua_S,1,0));
418 Tile* dest = ((Tile*) tolua_tousertype(tolua_S,2,0));
419 {
420 bool tolua_ret = (bool) api_edit_unit_teleport_old(L,self,dest);
421 tolua_pushboolean(tolua_S,(bool)tolua_ret);
422 }
423 }
424 return 1;
425#ifndef TOLUA_RELEASE
426 tolua_lerror:
427 tolua_error(tolua_S,"#ferror in function 'unit_teleport'.",&tolua_err);
428 return 0;
429#endif
430}
431
432/* function: api_edit_unit_teleport */
433 static int tolua_server_edit_unit_teleport01(lua_State* tolua_S)
434{
435 tolua_Error tolua_err;
436 if (
437 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
438 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
439 !tolua_isusertype(tolua_S,3,"Unit",0,&tolua_err) ||
440 !tolua_isboolean(tolua_S,4,0,&tolua_err) ||
441 !tolua_isboolean(tolua_S,5,0,&tolua_err) ||
442 !tolua_isboolean(tolua_S,6,0,&tolua_err) ||
443 !tolua_isboolean(tolua_S,7,0,&tolua_err) ||
444 !tolua_isboolean(tolua_S,8,0,&tolua_err) ||
445 !tolua_isnoobj(tolua_S,9,&tolua_err)
446 )
447 goto tolua_lerror;
448 else
449 {
450 lua_State* L = tolua_S;
451 Unit* self = ((Unit*) tolua_tousertype(tolua_S,1,0));
452 Tile* dest = ((Tile*) tolua_tousertype(tolua_S,2,0));
453 Unit* embark_to = ((Unit*) tolua_tousertype(tolua_S,3,0));
454 bool allow_disembark = ((bool) tolua_toboolean(tolua_S,4,0));
455 bool conquer_city = ((bool) tolua_toboolean(tolua_S,5,0));
456 bool conquer_extra = ((bool) tolua_toboolean(tolua_S,6,0));
457 bool enter_hut = ((bool) tolua_toboolean(tolua_S,7,0));
458 bool frighten_hut = ((bool) tolua_toboolean(tolua_S,8,0));
459 {
460 bool tolua_ret = (bool) api_edit_unit_teleport(L,self,dest,embark_to,allow_disembark,conquer_city,conquer_extra,enter_hut,frighten_hut);
461 tolua_pushboolean(tolua_S,(bool)tolua_ret);
462 }
463 }
464 return 1;
465tolua_lerror:
466 return tolua_server_edit_unit_teleport00(tolua_S);
467}
468
469/* function: api_edit_unit_kill */
470 static int tolua_server_edit_unit_kill00(lua_State* tolua_S)
471{
472#ifndef TOLUA_RELEASE
473 tolua_Error tolua_err;
474 if (
475 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
476 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
477 !tolua_isusertype(tolua_S,3,"Player",0,&tolua_err) ||
478 !tolua_isnoobj(tolua_S,4,&tolua_err)
479 )
480 goto tolua_lerror;
481 else
482#endif
483 {
484 lua_State* L = tolua_S;
485 Unit* self = ((Unit*) tolua_tousertype(tolua_S,1,0));
486 const char* reason = ((const char*) tolua_tostring(tolua_S,2,0));
487 Player* killer = ((Player*) tolua_tousertype(tolua_S,3,0));
488 {
489 api_edit_unit_kill(L,self,reason,killer);
490 }
491 }
492 return 0;
493#ifndef TOLUA_RELEASE
494 tolua_lerror:
495 tolua_error(tolua_S,"#ferror in function 'unit_kill'.",&tolua_err);
496 return 0;
497#endif
498}
499
500/* function: api_edit_change_terrain */
501 static int tolua_server_edit_change_terrain00(lua_State* tolua_S)
502{
503#ifndef TOLUA_RELEASE
504 tolua_Error tolua_err;
505 if (
506 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
507 !tolua_isusertype(tolua_S,2,"Terrain",0,&tolua_err) ||
508 !tolua_isnoobj(tolua_S,3,&tolua_err)
509 )
510 goto tolua_lerror;
511 else
512#endif
513 {
514 lua_State* L = tolua_S;
515 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
516 Terrain* pterr = ((Terrain*) tolua_tousertype(tolua_S,2,0));
517 {
518 bool tolua_ret = (bool) api_edit_change_terrain(L,ptile,pterr);
519 tolua_pushboolean(tolua_S,(bool)tolua_ret);
520 }
521 }
522 return 1;
523#ifndef TOLUA_RELEASE
524 tolua_lerror:
525 tolua_error(tolua_S,"#ferror in function 'change_terrain'.",&tolua_err);
526 return 0;
527#endif
528}
529
530/* function: api_edit_create_city */
531 static int tolua_server_edit_create_city00(lua_State* tolua_S)
532{
533#ifndef TOLUA_RELEASE
534 tolua_Error tolua_err;
535 if (
536 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
537 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
538 !tolua_isstring(tolua_S,3,0,&tolua_err) ||
539 !tolua_isnoobj(tolua_S,4,&tolua_err)
540 )
541 goto tolua_lerror;
542 else
543#endif
544 {
545 lua_State* L = tolua_S;
546 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
547 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,2,0));
548 const char* name = ((const char*) tolua_tostring(tolua_S,3,0));
549 {
550 bool tolua_ret = (bool) api_edit_create_city(L,pplayer,ptile,name);
551 tolua_pushboolean(tolua_S,(bool)tolua_ret);
552 }
553 }
554 return 1;
555#ifndef TOLUA_RELEASE
556 tolua_lerror:
557 tolua_error(tolua_S,"#ferror in function 'create_city'.",&tolua_err);
558 return 0;
559#endif
560}
561
562/* function: api_edit_remove_city */
563 static int tolua_server_edit_remove_city00(lua_State* tolua_S)
564{
565#ifndef TOLUA_RELEASE
566 tolua_Error tolua_err;
567 if (
568 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
569 !tolua_isnoobj(tolua_S,2,&tolua_err)
570 )
571 goto tolua_lerror;
572 else
573#endif
574 {
575 lua_State* L = tolua_S;
576 City* pcity = ((City*) tolua_tousertype(tolua_S,1,0));
577 {
578 api_edit_remove_city(L,pcity);
579 }
580 }
581 return 0;
582#ifndef TOLUA_RELEASE
583 tolua_lerror:
584 tolua_error(tolua_S,"#ferror in function 'remove_city'.",&tolua_err);
585 return 0;
586#endif
587}
588
589/* function: api_edit_create_building */
590 static int tolua_server_edit_create_building00(lua_State* tolua_S)
591{
592#ifndef TOLUA_RELEASE
593 tolua_Error tolua_err;
594 if (
595 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
596 !tolua_isusertype(tolua_S,2,"Building_Type",0,&tolua_err) ||
597 !tolua_isnoobj(tolua_S,3,&tolua_err)
598 )
599 goto tolua_lerror;
600 else
601#endif
602 {
603 lua_State* L = tolua_S;
604 City* pcity = ((City*) tolua_tousertype(tolua_S,1,0));
605 Building_Type* impr = ((Building_Type*) tolua_tousertype(tolua_S,2,0));
606 {
607 api_edit_create_building(L,pcity,impr);
608 }
609 }
610 return 0;
611#ifndef TOLUA_RELEASE
612 tolua_lerror:
613 tolua_error(tolua_S,"#ferror in function 'create_building'.",&tolua_err);
614 return 0;
615#endif
616}
617
618/* function: api_edit_remove_building */
619 static int tolua_server_edit_remove_building00(lua_State* tolua_S)
620{
621#ifndef TOLUA_RELEASE
622 tolua_Error tolua_err;
623 if (
624 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
625 !tolua_isusertype(tolua_S,2,"Building_Type",0,&tolua_err) ||
626 !tolua_isnoobj(tolua_S,3,&tolua_err)
627 )
628 goto tolua_lerror;
629 else
630#endif
631 {
632 lua_State* L = tolua_S;
633 City* pcity = ((City*) tolua_tousertype(tolua_S,1,0));
634 Building_Type* impr = ((Building_Type*) tolua_tousertype(tolua_S,2,0));
635 {
636 api_edit_remove_building(L,pcity,impr);
637 }
638 }
639 return 0;
640#ifndef TOLUA_RELEASE
641 tolua_lerror:
642 tolua_error(tolua_S,"#ferror in function 'remove_building'.",&tolua_err);
643 return 0;
644#endif
645}
646
647/* function: api_edit_create_owned_extra */
648 static int tolua_server_edit_create_owned_extra00(lua_State* tolua_S)
649{
650#ifndef TOLUA_RELEASE
651 tolua_Error tolua_err;
652 if (
653 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
654 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
655 !tolua_isusertype(tolua_S,3,"Player",0,&tolua_err) ||
656 !tolua_isnoobj(tolua_S,4,&tolua_err)
657 )
658 goto tolua_lerror;
659 else
660#endif
661 {
662 lua_State* L = tolua_S;
663 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
664 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
665 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,3,0));
666 {
667 api_edit_create_owned_extra(L,ptile,name,pplayer);
668 }
669 }
670 return 0;
671#ifndef TOLUA_RELEASE
672 tolua_lerror:
673 tolua_error(tolua_S,"#ferror in function 'create_owned_extra'.",&tolua_err);
674 return 0;
675#endif
676}
677
678/* function: api_edit_create_extra */
679 static int tolua_server_edit_create_extra00(lua_State* tolua_S)
680{
681#ifndef TOLUA_RELEASE
682 tolua_Error tolua_err;
683 if (
684 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
685 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
686 !tolua_isnoobj(tolua_S,3,&tolua_err)
687 )
688 goto tolua_lerror;
689 else
690#endif
691 {
692 lua_State* L = tolua_S;
693 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
694 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
695 {
696 api_edit_create_extra(L,ptile,name);
697 }
698 }
699 return 0;
700#ifndef TOLUA_RELEASE
701 tolua_lerror:
702 tolua_error(tolua_S,"#ferror in function 'create_extra'.",&tolua_err);
703 return 0;
704#endif
705}
706
707/* function: api_edit_create_base */
708 static int tolua_server_edit_create_base00(lua_State* tolua_S)
709{
710#ifndef TOLUA_RELEASE
711 tolua_Error tolua_err;
712 if (
713 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
714 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
715 !tolua_isusertype(tolua_S,3,"Player",0,&tolua_err) ||
716 !tolua_isnoobj(tolua_S,4,&tolua_err)
717 )
718 goto tolua_lerror;
719 else
720#endif
721 {
722 lua_State* L = tolua_S;
723 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
724 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
725 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,3,0));
726 {
727 api_edit_create_base(L,ptile,name,pplayer);
728 }
729 }
730 return 0;
731#ifndef TOLUA_RELEASE
732 tolua_lerror:
733 tolua_error(tolua_S,"#ferror in function 'create_base'.",&tolua_err);
734 return 0;
735#endif
736}
737
738/* function: api_edit_create_road */
739 static int tolua_server_edit_create_road00(lua_State* tolua_S)
740{
741#ifndef TOLUA_RELEASE
742 tolua_Error tolua_err;
743 if (
744 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
745 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
746 !tolua_isnoobj(tolua_S,3,&tolua_err)
747 )
748 goto tolua_lerror;
749 else
750#endif
751 {
752 lua_State* L = tolua_S;
753 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
754 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
755 {
756 api_edit_create_road(L,ptile,name);
757 }
758 }
759 return 0;
760#ifndef TOLUA_RELEASE
761 tolua_lerror:
762 tolua_error(tolua_S,"#ferror in function 'create_road'.",&tolua_err);
763 return 0;
764#endif
765}
766
767/* function: api_edit_remove_extra */
768 static int tolua_server_edit_remove_extra00(lua_State* tolua_S)
769{
770#ifndef TOLUA_RELEASE
771 tolua_Error tolua_err;
772 if (
773 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
774 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
775 !tolua_isnoobj(tolua_S,3,&tolua_err)
776 )
777 goto tolua_lerror;
778 else
779#endif
780 {
781 lua_State* L = tolua_S;
782 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
783 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
784 {
785 api_edit_remove_extra(L,ptile,name);
786 }
787 }
788 return 0;
789#ifndef TOLUA_RELEASE
790 tolua_lerror:
791 tolua_error(tolua_S,"#ferror in function 'remove_extra'.",&tolua_err);
792 return 0;
793#endif
794}
795
796/* function: api_edit_tile_set_label */
797 static int tolua_server_edit_tile_set_label00(lua_State* tolua_S)
798{
799#ifndef TOLUA_RELEASE
800 tolua_Error tolua_err;
801 if (
802 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
803 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
804 !tolua_isnoobj(tolua_S,3,&tolua_err)
805 )
806 goto tolua_lerror;
807 else
808#endif
809 {
810 lua_State* L = tolua_S;
811 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
812 const char* label = ((const char*) tolua_tostring(tolua_S,2,0));
813 {
814 api_edit_tile_set_label(L,ptile,label);
815 }
816 }
817 return 0;
818#ifndef TOLUA_RELEASE
819 tolua_lerror:
820 tolua_error(tolua_S,"#ferror in function 'tile_set_label'.",&tolua_err);
821 return 0;
822#endif
823}
824
825/* function: api_edit_tile_show */
826 static int tolua_server_edit_tile_show00(lua_State* tolua_S)
827{
828#ifndef TOLUA_RELEASE
829 tolua_Error tolua_err;
830 if (
831 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
832 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
833 !tolua_isnoobj(tolua_S,3,&tolua_err)
834 )
835 goto tolua_lerror;
836 else
837#endif
838 {
839 lua_State* L = tolua_S;
840 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
841 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,2,0));
842 {
843 api_edit_tile_show(L,ptile,pplayer);
844 }
845 }
846 return 0;
847#ifndef TOLUA_RELEASE
848 tolua_lerror:
849 tolua_error(tolua_S,"#ferror in function 'tile_show'.",&tolua_err);
850 return 0;
851#endif
852}
853
854/* function: api_edit_tile_hide */
855 static int tolua_server_edit_tile_hide00(lua_State* tolua_S)
856{
857#ifndef TOLUA_RELEASE
858 tolua_Error tolua_err;
859 if (
860 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
861 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
862 !tolua_isnoobj(tolua_S,3,&tolua_err)
863 )
864 goto tolua_lerror;
865 else
866#endif
867 {
868 lua_State* L = tolua_S;
869 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
870 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,2,0));
871 {
872 bool tolua_ret = (bool) api_edit_tile_hide(L,ptile,pplayer);
873 tolua_pushboolean(tolua_S,(bool)tolua_ret);
874 }
875 }
876 return 1;
877#ifndef TOLUA_RELEASE
878 tolua_lerror:
879 tolua_error(tolua_S,"#ferror in function 'tile_hide'.",&tolua_err);
880 return 0;
881#endif
882}
883
884/* function: api_edit_create_player */
885 static int tolua_server_edit_create_player00(lua_State* tolua_S)
886{
887#ifndef TOLUA_RELEASE
888 tolua_Error tolua_err;
889 if (
890 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
891 !tolua_isusertype(tolua_S,2,"Nation_Type",0,&tolua_err) ||
892 !tolua_isstring(tolua_S,3,0,&tolua_err) ||
893 !tolua_isnoobj(tolua_S,4,&tolua_err)
894 )
895 goto tolua_lerror;
896 else
897#endif
898 {
899 lua_State* L = tolua_S;
900 const char* username = ((const char*) tolua_tostring(tolua_S,1,0));
901 Nation_Type* nation = ((Nation_Type*) tolua_tousertype(tolua_S,2,0));
902 const char* ai = ((const char*) tolua_tostring(tolua_S,3,0));
903 {
904 Player* tolua_ret = (Player*) api_edit_create_player(L,username,nation,ai);
905 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Player");
906 }
907 }
908 return 1;
909#ifndef TOLUA_RELEASE
910 tolua_lerror:
911 tolua_error(tolua_S,"#ferror in function 'create_player'.",&tolua_err);
912 return 0;
913#endif
914}
915
916/* function: api_edit_change_gold */
917 static int tolua_server_edit_change_gold00(lua_State* tolua_S)
918{
919#ifndef TOLUA_RELEASE
920 tolua_Error tolua_err;
921 if (
922 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
923 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
924 !tolua_isnoobj(tolua_S,3,&tolua_err)
925 )
926 goto tolua_lerror;
927 else
928#endif
929 {
930 lua_State* L = tolua_S;
931 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
932 int amount = ((int) tolua_tonumber(tolua_S,2,0));
933 {
934 api_edit_change_gold(L,pplayer,amount);
935 }
936 }
937 return 0;
938#ifndef TOLUA_RELEASE
939 tolua_lerror:
940 tolua_error(tolua_S,"#ferror in function 'change_gold'.",&tolua_err);
941 return 0;
942#endif
943}
944
945/* function: api_edit_give_technology */
946 static int tolua_server_edit_give_tech00(lua_State* tolua_S)
947{
948#ifndef TOLUA_RELEASE
949 tolua_Error tolua_err;
950 if (
951 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
952 !tolua_isusertype(tolua_S,2,"Tech_Type",0,&tolua_err) ||
953 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
954 !tolua_isboolean(tolua_S,4,0,&tolua_err) ||
955 !tolua_isstring(tolua_S,5,0,&tolua_err) ||
956 !tolua_isnoobj(tolua_S,6,&tolua_err)
957 )
958 goto tolua_lerror;
959 else
960#endif
961 {
962 lua_State* L = tolua_S;
963 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
964 Tech_Type* ptech = ((Tech_Type*) tolua_tousertype(tolua_S,2,0));
965 int cost = ((int) tolua_tonumber(tolua_S,3,0));
966 bool notify = ((bool) tolua_toboolean(tolua_S,4,0));
967 const char* reason = ((const char*) tolua_tostring(tolua_S,5,0));
968 {
969 Tech_Type* tolua_ret = (Tech_Type*) api_edit_give_technology(L,pplayer,ptech,cost,notify,reason);
970 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Tech_Type");
971 }
972 }
973 return 1;
974#ifndef TOLUA_RELEASE
975 tolua_lerror:
976 tolua_error(tolua_S,"#ferror in function 'give_tech'.",&tolua_err);
977 return 0;
978#endif
979}
980
981/* function: api_edit_trait_mod_set */
982 static int tolua_server_edit_trait_mod00(lua_State* tolua_S)
983{
984#ifndef TOLUA_RELEASE
985 tolua_Error tolua_err;
986 if (
987 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
988 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
989 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
990 !tolua_isnoobj(tolua_S,4,&tolua_err)
991 )
992 goto tolua_lerror;
993 else
994#endif
995 {
996 lua_State* L = tolua_S;
997 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
998 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
999 const int mod = ((const int) tolua_tonumber(tolua_S,3,0));
1000 {
1001 bool tolua_ret = (bool) api_edit_trait_mod_set(L,pplayer,tname,mod);
1002 tolua_pushboolean(tolua_S,(bool)tolua_ret);
1003 }
1004 }
1005 return 1;
1006#ifndef TOLUA_RELEASE
1007 tolua_lerror:
1008 tolua_error(tolua_S,"#ferror in function 'trait_mod'.",&tolua_err);
1009 return 0;
1010#endif
1011}
1012
1013/* function: api_edit_unleash_barbarians */
1014 static int tolua_server_edit_unleash_barbarians00(lua_State* tolua_S)
1015{
1016#ifndef TOLUA_RELEASE
1017 tolua_Error tolua_err;
1018 if (
1019 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
1020 !tolua_isnoobj(tolua_S,2,&tolua_err)
1021 )
1022 goto tolua_lerror;
1023 else
1024#endif
1025 {
1026 lua_State* L = tolua_S;
1027 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
1028 {
1029 bool tolua_ret = (bool) api_edit_unleash_barbarians(L,ptile);
1030 tolua_pushboolean(tolua_S,(bool)tolua_ret);
1031 }
1032 }
1033 return 1;
1034#ifndef TOLUA_RELEASE
1035 tolua_lerror:
1036 tolua_error(tolua_S,"#ferror in function 'unleash_barbarians'.",&tolua_err);
1037 return 0;
1038#endif
1039}
1040
1041/* function: api_edit_place_partisans */
1042 static int tolua_server_edit_place_partisans00(lua_State* tolua_S)
1043{
1044#ifndef TOLUA_RELEASE
1045 tolua_Error tolua_err;
1046 if (
1047 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
1048 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
1049 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1050 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
1051 !tolua_isnoobj(tolua_S,5,&tolua_err)
1052 )
1053 goto tolua_lerror;
1054 else
1055#endif
1056 {
1057 lua_State* L = tolua_S;
1058 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
1059 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,2,0));
1060 int count = ((int) tolua_tonumber(tolua_S,3,0));
1061 int sq_radius = ((int) tolua_tonumber(tolua_S,4,0));
1062 {
1063 api_edit_place_partisans(L,ptile,pplayer,count,sq_radius);
1064 }
1065 }
1066 return 0;
1067#ifndef TOLUA_RELEASE
1068 tolua_lerror:
1069 tolua_error(tolua_S,"#ferror in function 'place_partisans'.",&tolua_err);
1070 return 0;
1071#endif
1072}
1073
1074/* function: api_edit_climate_change */
1075 static int tolua_server_edit_climate_change00(lua_State* tolua_S)
1076{
1077#ifndef TOLUA_RELEASE
1078 tolua_Error tolua_err;
1079 if (
1080 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
1081 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1082 !tolua_isnoobj(tolua_S,3,&tolua_err)
1083 )
1084 goto tolua_lerror;
1085 else
1086#endif
1087 {
1088 lua_State* L = tolua_S;
1089 enum climate_change_type type = ((enum climate_change_type) (int) tolua_tonumber(tolua_S,1,0));
1090 int effect = ((int) tolua_tonumber(tolua_S,2,0));
1091 {
1092 api_edit_climate_change(L,type,effect);
1093 }
1094 }
1095 return 0;
1096#ifndef TOLUA_RELEASE
1097 tolua_lerror:
1098 tolua_error(tolua_S,"#ferror in function 'climate_change'.",&tolua_err);
1099 return 0;
1100#endif
1101}
1102
1103/* function: api_edit_civil_war */
1104 static int tolua_server_edit_civil_war00(lua_State* tolua_S)
1105{
1106#ifndef TOLUA_RELEASE
1107 tolua_Error tolua_err;
1108 if (
1109 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1110 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1111 !tolua_isnoobj(tolua_S,3,&tolua_err)
1112 )
1113 goto tolua_lerror;
1114 else
1115#endif
1116 {
1117 lua_State* L = tolua_S;
1118 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1119 int probability = ((int) tolua_tonumber(tolua_S,2,0));
1120 {
1121 Player* tolua_ret = (Player*) api_edit_civil_war(L,pplayer,probability);
1122 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Player");
1123 }
1124 }
1125 return 1;
1126#ifndef TOLUA_RELEASE
1127 tolua_lerror:
1128 tolua_error(tolua_S,"#ferror in function 'civil_war'.",&tolua_err);
1129 return 0;
1130#endif
1131}
1132
1133/* function: api_edit_unit_turn */
1134 static int tolua_server_edit_unit_turn00(lua_State* tolua_S)
1135{
1136#ifndef TOLUA_RELEASE
1137 tolua_Error tolua_err;
1138 if (
1139 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1140 !tolua_isusertype(tolua_S,2,"Direction",0,&tolua_err) ||
1141 !tolua_isnoobj(tolua_S,3,&tolua_err)
1142 )
1143 goto tolua_lerror;
1144 else
1145#endif
1146 {
1147 lua_State* L = tolua_S;
1148 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1149 Direction dir = *((Direction*) tolua_tousertype(tolua_S,2,0));
1150 {
1151 api_edit_unit_turn(L,punit,dir);
1152 }
1153 }
1154 return 0;
1155#ifndef TOLUA_RELEASE
1156 tolua_lerror:
1157 tolua_error(tolua_S,"#ferror in function 'unit_turn'.",&tolua_err);
1158 return 0;
1159#endif
1160}
1161
1162/* function: api_edit_player_victory */
1163 static int tolua_server_edit_player_victory00(lua_State* tolua_S)
1164{
1165#ifndef TOLUA_RELEASE
1166 tolua_Error tolua_err;
1167 if (
1168 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1169 !tolua_isnoobj(tolua_S,2,&tolua_err)
1170 )
1171 goto tolua_lerror;
1172 else
1173#endif
1174 {
1175 lua_State* L = tolua_S;
1176 Player* self = ((Player*) tolua_tousertype(tolua_S,1,0));
1177 {
1178 api_edit_player_victory(L,self);
1179 }
1180 }
1181 return 0;
1182#ifndef TOLUA_RELEASE
1183 tolua_lerror:
1184 tolua_error(tolua_S,"#ferror in function 'player_victory'.",&tolua_err);
1185 return 0;
1186#endif
1187}
1188
1189/* function: api_edit_unit_move_old */
1190 static int tolua_server_edit_unit_move00(lua_State* tolua_S)
1191{
1192#ifndef TOLUA_RELEASE
1193 tolua_Error tolua_err;
1194 if (
1195 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1196 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
1197 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1198 !tolua_isnoobj(tolua_S,4,&tolua_err)
1199 )
1200 goto tolua_lerror;
1201 else
1202#endif
1203 {
1204 lua_State* L = tolua_S;
1205 Unit* self = ((Unit*) tolua_tousertype(tolua_S,1,0));
1206 Tile* moveto = ((Tile*) tolua_tousertype(tolua_S,2,0));
1207 int movecost = ((int) tolua_tonumber(tolua_S,3,0));
1208 {
1209 bool tolua_ret = (bool) api_edit_unit_move_old(L,self,moveto,movecost);
1210 tolua_pushboolean(tolua_S,(bool)tolua_ret);
1211 }
1212 }
1213 return 1;
1214#ifndef TOLUA_RELEASE
1215 tolua_lerror:
1216 tolua_error(tolua_S,"#ferror in function 'unit_move'.",&tolua_err);
1217 return 0;
1218#endif
1219}
1220
1221/* function: api_edit_unit_move */
1222 static int tolua_server_edit_unit_move01(lua_State* tolua_S)
1223{
1224 tolua_Error tolua_err;
1225 if (
1226 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1227 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
1228 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1229 !tolua_isusertype(tolua_S,4,"Unit",0,&tolua_err) ||
1230 !tolua_isboolean(tolua_S,5,0,&tolua_err) ||
1231 !tolua_isboolean(tolua_S,6,0,&tolua_err) ||
1232 !tolua_isboolean(tolua_S,7,0,&tolua_err) ||
1233 !tolua_isboolean(tolua_S,8,0,&tolua_err) ||
1234 !tolua_isboolean(tolua_S,9,0,&tolua_err) ||
1235 !tolua_isnoobj(tolua_S,10,&tolua_err)
1236 )
1237 goto tolua_lerror;
1238 else
1239 {
1240 lua_State* L = tolua_S;
1241 Unit* self = ((Unit*) tolua_tousertype(tolua_S,1,0));
1242 Tile* moveto = ((Tile*) tolua_tousertype(tolua_S,2,0));
1243 int movecost = ((int) tolua_tonumber(tolua_S,3,0));
1244 Unit* embark_to = ((Unit*) tolua_tousertype(tolua_S,4,0));
1245 bool allow_disembark = ((bool) tolua_toboolean(tolua_S,5,0));
1246 bool conquer_city = ((bool) tolua_toboolean(tolua_S,6,0));
1247 bool conquer_extra = ((bool) tolua_toboolean(tolua_S,7,0));
1248 bool enter_hut = ((bool) tolua_toboolean(tolua_S,8,0));
1249 bool frighten_hut = ((bool) tolua_toboolean(tolua_S,9,0));
1250 {
1251 bool tolua_ret = (bool) api_edit_unit_move(L,self,moveto,movecost,embark_to,allow_disembark,conquer_city,conquer_extra,enter_hut,frighten_hut);
1252 tolua_pushboolean(tolua_S,(bool)tolua_ret);
1253 }
1254 }
1255 return 1;
1256tolua_lerror:
1257 return tolua_server_edit_unit_move00(tolua_S);
1258}
1259
1260/* function: api_edit_unit_moving_disallow */
1261 static int tolua_server_edit_movement_disallow00(lua_State* tolua_S)
1262{
1263#ifndef TOLUA_RELEASE
1264 tolua_Error tolua_err;
1265 if (
1266 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1267 !tolua_isnoobj(tolua_S,2,&tolua_err)
1268 )
1269 goto tolua_lerror;
1270 else
1271#endif
1272 {
1273 lua_State* L = tolua_S;
1274 Unit* self = ((Unit*) tolua_tousertype(tolua_S,1,0));
1275 {
1276 api_edit_unit_moving_disallow(L,self);
1277 }
1278 }
1279 return 0;
1280#ifndef TOLUA_RELEASE
1281 tolua_lerror:
1282 tolua_error(tolua_S,"#ferror in function 'movement_disallow'.",&tolua_err);
1283 return 0;
1284#endif
1285}
1286
1287/* function: api_edit_unit_moving_allow */
1288 static int tolua_server_edit_movement_allow00(lua_State* tolua_S)
1289{
1290#ifndef TOLUA_RELEASE
1291 tolua_Error tolua_err;
1292 if (
1293 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1294 !tolua_isnoobj(tolua_S,2,&tolua_err)
1295 )
1296 goto tolua_lerror;
1297 else
1298#endif
1299 {
1300 lua_State* L = tolua_S;
1301 Unit* self = ((Unit*) tolua_tousertype(tolua_S,1,0));
1302 {
1303 api_edit_unit_moving_allow(L,self);
1304 }
1305 }
1306 return 0;
1307#ifndef TOLUA_RELEASE
1308 tolua_lerror:
1309 tolua_error(tolua_S,"#ferror in function 'movement_allow'.",&tolua_err);
1310 return 0;
1311#endif
1312}
1313
1314/* function: api_edit_perform_action_unit_vs_city */
1315 static int tolua_server_edit_perform_action00(lua_State* tolua_S)
1316{
1317#ifndef TOLUA_RELEASE
1318 tolua_Error tolua_err;
1319 if (
1320 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1321 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1322 !tolua_isusertype(tolua_S,3,"City",0,&tolua_err) ||
1323 !tolua_isnoobj(tolua_S,4,&tolua_err)
1324 )
1325 goto tolua_lerror;
1326 else
1327#endif
1328 {
1329 lua_State* L = tolua_S;
1330 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1331 Action* paction = ((Action*) tolua_tousertype(tolua_S,2,0));
1332 City* tgt = ((City*) tolua_tousertype(tolua_S,3,0));
1333 {
1334 bool tolua_ret = (bool) api_edit_perform_action_unit_vs_city(L,punit,paction,tgt);
1335 tolua_pushboolean(tolua_S,(bool)tolua_ret);
1336 }
1337 }
1338 return 1;
1339#ifndef TOLUA_RELEASE
1340 tolua_lerror:
1341 tolua_error(tolua_S,"#ferror in function 'perform_action'.",&tolua_err);
1342 return 0;
1343#endif
1344}
1345
1346/* function: api_edit_perform_action_unit_vs_city_impr */
1347 static int tolua_server_edit_perform_action01(lua_State* tolua_S)
1348{
1349 tolua_Error tolua_err;
1350 if (
1351 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1352 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1353 !tolua_isusertype(tolua_S,3,"City",0,&tolua_err) ||
1354 !tolua_isusertype(tolua_S,4,"Building_Type",0,&tolua_err) ||
1355 !tolua_isnoobj(tolua_S,5,&tolua_err)
1356 )
1357 goto tolua_lerror;
1358 else
1359 {
1360 lua_State* L = tolua_S;
1361 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1362 Action* paction = ((Action*) tolua_tousertype(tolua_S,2,0));
1363 City* tgt = ((City*) tolua_tousertype(tolua_S,3,0));
1364 Building_Type* sub_tgt = ((Building_Type*) tolua_tousertype(tolua_S,4,0));
1365 {
1366 bool tolua_ret = (bool) api_edit_perform_action_unit_vs_city_impr(L,punit,paction,tgt,sub_tgt);
1367 tolua_pushboolean(tolua_S,(bool)tolua_ret);
1368 }
1369 }
1370 return 1;
1371tolua_lerror:
1372 return tolua_server_edit_perform_action00(tolua_S);
1373}
1374
1375/* function: api_edit_perform_action_unit_vs_city_tech */
1376 static int tolua_server_edit_perform_action02(lua_State* tolua_S)
1377{
1378 tolua_Error tolua_err;
1379 if (
1380 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1381 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1382 !tolua_isusertype(tolua_S,3,"City",0,&tolua_err) ||
1383 !tolua_isusertype(tolua_S,4,"Tech_Type",0,&tolua_err) ||
1384 !tolua_isnoobj(tolua_S,5,&tolua_err)
1385 )
1386 goto tolua_lerror;
1387 else
1388 {
1389 lua_State* L = tolua_S;
1390 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1391 Action* paction = ((Action*) tolua_tousertype(tolua_S,2,0));
1392 City* tgt = ((City*) tolua_tousertype(tolua_S,3,0));
1393 Tech_Type* sub_tgt = ((Tech_Type*) tolua_tousertype(tolua_S,4,0));
1394 {
1395 bool tolua_ret = (bool) api_edit_perform_action_unit_vs_city_tech(L,punit,paction,tgt,sub_tgt);
1396 tolua_pushboolean(tolua_S,(bool)tolua_ret);
1397 }
1398 }
1399 return 1;
1400tolua_lerror:
1401 return tolua_server_edit_perform_action01(tolua_S);
1402}
1403
1404/* function: api_edit_perform_action_unit_vs_unit */
1405 static int tolua_server_edit_perform_action03(lua_State* tolua_S)
1406{
1407 tolua_Error tolua_err;
1408 if (
1409 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1410 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1411 !tolua_isusertype(tolua_S,3,"Unit",0,&tolua_err) ||
1412 !tolua_isnoobj(tolua_S,4,&tolua_err)
1413 )
1414 goto tolua_lerror;
1415 else
1416 {
1417 lua_State* L = tolua_S;
1418 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1419 Action* paction = ((Action*) tolua_tousertype(tolua_S,2,0));
1420 Unit* tgt = ((Unit*) tolua_tousertype(tolua_S,3,0));
1421 {
1422 bool tolua_ret = (bool) api_edit_perform_action_unit_vs_unit(L,punit,paction,tgt);
1423 tolua_pushboolean(tolua_S,(bool)tolua_ret);
1424 }
1425 }
1426 return 1;
1427tolua_lerror:
1428 return tolua_server_edit_perform_action02(tolua_S);
1429}
1430
1431/* function: api_edit_perform_action_unit_vs_tile */
1432 static int tolua_server_edit_perform_action04(lua_State* tolua_S)
1433{
1434 tolua_Error tolua_err;
1435 if (
1436 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1437 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1438 !tolua_isusertype(tolua_S,3,"Tile",0,&tolua_err) ||
1439 !tolua_isnoobj(tolua_S,4,&tolua_err)
1440 )
1441 goto tolua_lerror;
1442 else
1443 {
1444 lua_State* L = tolua_S;
1445 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1446 Action* paction = ((Action*) tolua_tousertype(tolua_S,2,0));
1447 Tile* tgt = ((Tile*) tolua_tousertype(tolua_S,3,0));
1448 {
1449 bool tolua_ret = (bool) api_edit_perform_action_unit_vs_tile(L,punit,paction,tgt);
1450 tolua_pushboolean(tolua_S,(bool)tolua_ret);
1451 }
1452 }
1453 return 1;
1454tolua_lerror:
1455 return tolua_server_edit_perform_action03(tolua_S);
1456}
1457
1458/* function: api_edit_perform_action_unit_vs_tile_extra */
1459 static int tolua_server_edit_perform_action05(lua_State* tolua_S)
1460{
1461 tolua_Error tolua_err;
1462 if (
1463 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1464 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1465 !tolua_isusertype(tolua_S,3,"Tile",0,&tolua_err) ||
1466 !tolua_isstring(tolua_S,4,0,&tolua_err) ||
1467 !tolua_isnoobj(tolua_S,5,&tolua_err)
1468 )
1469 goto tolua_lerror;
1470 else
1471 {
1472 lua_State* L = tolua_S;
1473 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1474 Action* paction = ((Action*) tolua_tousertype(tolua_S,2,0));
1475 Tile* tgt = ((Tile*) tolua_tousertype(tolua_S,3,0));
1476 const char* sub_tgt = ((const char*) tolua_tostring(tolua_S,4,0));
1477 {
1478 bool tolua_ret = (bool) api_edit_perform_action_unit_vs_tile_extra(L,punit,paction,tgt,sub_tgt);
1479 tolua_pushboolean(tolua_S,(bool)tolua_ret);
1480 }
1481 }
1482 return 1;
1483tolua_lerror:
1484 return tolua_server_edit_perform_action04(tolua_S);
1485}
1486
1487/* function: api_edit_perform_action_unit_vs_self */
1488 static int tolua_server_edit_perform_action06(lua_State* tolua_S)
1489{
1490 tolua_Error tolua_err;
1491 if (
1492 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1493 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1494 !tolua_isnoobj(tolua_S,3,&tolua_err)
1495 )
1496 goto tolua_lerror;
1497 else
1498 {
1499 lua_State* L = tolua_S;
1500 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1501 Action* paction = ((Action*) tolua_tousertype(tolua_S,2,0));
1502 {
1503 bool tolua_ret = (bool) api_edit_perform_action_unit_vs_self(L,punit,paction);
1504 tolua_pushboolean(tolua_S,(bool)tolua_ret);
1505 }
1506 }
1507 return 1;
1508tolua_lerror:
1509 return tolua_server_edit_perform_action05(tolua_S);
1510}
1511
1512/* function: api_edit_city_add_history */
1513 static int tolua_server_edit_add_city_history00(lua_State* tolua_S)
1514{
1515#ifndef TOLUA_RELEASE
1516 tolua_Error tolua_err;
1517 if (
1518 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
1519 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1520 !tolua_isnoobj(tolua_S,3,&tolua_err)
1521 )
1522 goto tolua_lerror;
1523 else
1524#endif
1525 {
1526 lua_State* L = tolua_S;
1527 City* self = ((City*) tolua_tousertype(tolua_S,1,0));
1528 int amount = ((int) tolua_tonumber(tolua_S,2,0));
1529 {
1530 api_edit_city_add_history(L,self,amount);
1531 }
1532 }
1533 return 0;
1534#ifndef TOLUA_RELEASE
1535 tolua_lerror:
1536 tolua_error(tolua_S,"#ferror in function 'add_city_history'.",&tolua_err);
1537 return 0;
1538#endif
1539}
1540
1541/* function: api_edit_player_add_history */
1542 static int tolua_server_edit_add_player_history00(lua_State* tolua_S)
1543{
1544#ifndef TOLUA_RELEASE
1545 tolua_Error tolua_err;
1546 if (
1547 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1548 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1549 !tolua_isnoobj(tolua_S,3,&tolua_err)
1550 )
1551 goto tolua_lerror;
1552 else
1553#endif
1554 {
1555 lua_State* L = tolua_S;
1556 Player* self = ((Player*) tolua_tousertype(tolua_S,1,0));
1557 int amount = ((int) tolua_tonumber(tolua_S,2,0));
1558 {
1559 api_edit_player_add_history(L,self,amount);
1560 }
1561 }
1562 return 0;
1563#ifndef TOLUA_RELEASE
1564 tolua_lerror:
1565 tolua_error(tolua_S,"#ferror in function 'add_player_history'.",&tolua_err);
1566 return 0;
1567#endif
1568}
1569
1570/* function: api_edit_player_give_bulbs */
1571 static int tolua_server_edit_give_bulbs00(lua_State* tolua_S)
1572{
1573#ifndef TOLUA_RELEASE
1574 tolua_Error tolua_err;
1575 if (
1576 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1577 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1578 !tolua_isnoobj(tolua_S,3,&tolua_err)
1579 )
1580 goto tolua_lerror;
1581 else
1582#endif
1583 {
1584 lua_State* L = tolua_S;
1585 Player* self = ((Player*) tolua_tousertype(tolua_S,1,0));
1586 int amount = ((int) tolua_tonumber(tolua_S,2,0));
1587 {
1588 api_edit_player_give_bulbs(L,self,amount);
1589 }
1590 }
1591 return 0;
1592#ifndef TOLUA_RELEASE
1593 tolua_lerror:
1594 tolua_error(tolua_S,"#ferror in function 'give_bulbs'.",&tolua_err);
1595 return 0;
1596#endif
1597}
1598
1599/* function: api_luadata_get_str */
1600 static int tolua_server_luadata_get_str00(lua_State* tolua_S)
1601{
1602#ifndef TOLUA_RELEASE
1603 tolua_Error tolua_err;
1604 if (
1605 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
1606 !tolua_isnoobj(tolua_S,2,&tolua_err)
1607 )
1608 goto tolua_lerror;
1609 else
1610#endif
1611 {
1612 lua_State* L = tolua_S;
1613 const char* field = ((const char*) tolua_tostring(tolua_S,1,0));
1614 {
1615 const char* tolua_ret = (const char*) api_luadata_get_str(L,field);
1616 tolua_pushstring(tolua_S,(const char*)tolua_ret);
1617 }
1618 }
1619 return 1;
1620#ifndef TOLUA_RELEASE
1621 tolua_lerror:
1622 tolua_error(tolua_S,"#ferror in function 'get_str'.",&tolua_err);
1623 return 0;
1624#endif
1625}
1626
1627/* function: api_methods_player_trait */
1628 static int tolua_server_Player_trait00(lua_State* tolua_S)
1629{
1630#ifndef TOLUA_RELEASE
1631 tolua_Error tolua_err;
1632 if (
1633 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1634 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1635 !tolua_isnoobj(tolua_S,3,&tolua_err)
1636 )
1637 goto tolua_lerror;
1638 else
1639#endif
1640 {
1641 lua_State* L = tolua_S;
1642 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1643 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
1644 {
1645 int tolua_ret = (int) api_methods_player_trait(L,pplayer,tname);
1646 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1647 }
1648 }
1649 return 1;
1650#ifndef TOLUA_RELEASE
1651 tolua_lerror:
1652 tolua_error(tolua_S,"#ferror in function 'trait'.",&tolua_err);
1653 return 0;
1654#endif
1655}
1656
1657/* function: api_methods_player_trait_base */
1658 static int tolua_server_Player_trait_base00(lua_State* tolua_S)
1659{
1660#ifndef TOLUA_RELEASE
1661 tolua_Error tolua_err;
1662 if (
1663 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1664 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1665 !tolua_isnoobj(tolua_S,3,&tolua_err)
1666 )
1667 goto tolua_lerror;
1668 else
1669#endif
1670 {
1671 lua_State* L = tolua_S;
1672 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1673 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
1674 {
1675 int tolua_ret = (int) api_methods_player_trait_base(L,pplayer,tname);
1676 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1677 }
1678 }
1679 return 1;
1680#ifndef TOLUA_RELEASE
1681 tolua_lerror:
1682 tolua_error(tolua_S,"#ferror in function 'trait_base'.",&tolua_err);
1683 return 0;
1684#endif
1685}
1686
1687/* function: api_methods_player_trait_current_mod */
1688 static int tolua_server_Player_trait_current_mod00(lua_State* tolua_S)
1689{
1690#ifndef TOLUA_RELEASE
1691 tolua_Error tolua_err;
1692 if (
1693 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1694 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1695 !tolua_isnoobj(tolua_S,3,&tolua_err)
1696 )
1697 goto tolua_lerror;
1698 else
1699#endif
1700 {
1701 lua_State* L = tolua_S;
1702 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1703 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
1704 {
1705 int tolua_ret = (int) api_methods_player_trait_current_mod(L,pplayer,tname);
1706 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1707 }
1708 }
1709 return 1;
1710#ifndef TOLUA_RELEASE
1711 tolua_lerror:
1712 tolua_error(tolua_S,"#ferror in function 'trait_current_mod'.",&tolua_err);
1713 return 0;
1714#endif
1715}
1716
1717/* get function: game_server_autoupgrade_veteran_loss */
1718 static int tolua_get_game_game_server_autoupgrade_veteran_loss(lua_State* tolua_S)
1719{
1720 tolua_pushnumber(tolua_S,(lua_Number)game_server_autoupgrade_veteran_loss);
1721 return 1;
1722}
1723
1724/* get function: game_server_upgrade_veteran_loss */
1725 static int tolua_get_game_game_server_upgrade_veteran_loss(lua_State* tolua_S)
1726{
1727 tolua_pushnumber(tolua_S,(lua_Number)game_server_upgrade_veteran_loss);
1728 return 1;
1729}
1730
1731/* function: api_methods_nation_trait_min */
1732 static int tolua_server_Nation_Type_trait_min00(lua_State* tolua_S)
1733{
1734#ifndef TOLUA_RELEASE
1735 tolua_Error tolua_err;
1736 if (
1737 !tolua_isusertype(tolua_S,1,"Nation_Type",0,&tolua_err) ||
1738 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1739 !tolua_isnoobj(tolua_S,3,&tolua_err)
1740 )
1741 goto tolua_lerror;
1742 else
1743#endif
1744 {
1745 lua_State* L = tolua_S;
1746 Nation_Type* pnation = ((Nation_Type*) tolua_tousertype(tolua_S,1,0));
1747 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
1748 {
1749 int tolua_ret = (int) api_methods_nation_trait_min(L,pnation,tname);
1750 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1751 }
1752 }
1753 return 1;
1754#ifndef TOLUA_RELEASE
1755 tolua_lerror:
1756 tolua_error(tolua_S,"#ferror in function 'trait_min'.",&tolua_err);
1757 return 0;
1758#endif
1759}
1760
1761/* function: api_methods_nation_trait_max */
1762 static int tolua_server_Nation_Type_trait_max00(lua_State* tolua_S)
1763{
1764#ifndef TOLUA_RELEASE
1765 tolua_Error tolua_err;
1766 if (
1767 !tolua_isusertype(tolua_S,1,"Nation_Type",0,&tolua_err) ||
1768 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1769 !tolua_isnoobj(tolua_S,3,&tolua_err)
1770 )
1771 goto tolua_lerror;
1772 else
1773#endif
1774 {
1775 lua_State* L = tolua_S;
1776 Nation_Type* pnation = ((Nation_Type*) tolua_tousertype(tolua_S,1,0));
1777 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
1778 {
1779 int tolua_ret = (int) api_methods_nation_trait_max(L,pnation,tname);
1780 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1781 }
1782 }
1783 return 1;
1784#ifndef TOLUA_RELEASE
1785 tolua_lerror:
1786 tolua_error(tolua_S,"#ferror in function 'trait_max'.",&tolua_err);
1787 return 0;
1788#endif
1789}
1790
1791/* function: api_methods_nation_trait_default */
1792 static int tolua_server_Nation_Type_trait_default00(lua_State* tolua_S)
1793{
1794#ifndef TOLUA_RELEASE
1795 tolua_Error tolua_err;
1796 if (
1797 !tolua_isusertype(tolua_S,1,"Nation_Type",0,&tolua_err) ||
1798 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1799 !tolua_isnoobj(tolua_S,3,&tolua_err)
1800 )
1801 goto tolua_lerror;
1802 else
1803#endif
1804 {
1805 lua_State* L = tolua_S;
1806 Nation_Type* pnation = ((Nation_Type*) tolua_tousertype(tolua_S,1,0));
1807 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
1808 {
1809 int tolua_ret = (int) api_methods_nation_trait_default(L,pnation,tname);
1810 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1811 }
1812 }
1813 return 1;
1814#ifndef TOLUA_RELEASE
1815 tolua_lerror:
1816 tolua_error(tolua_S,"#ferror in function 'trait_default'.",&tolua_err);
1817 return 0;
1818#endif
1819}
1820
1821/* function: api_edit_unit_upgrade */
1822 static int tolua_server_Unit_upgrade00(lua_State* tolua_S)
1823{
1824#ifndef TOLUA_RELEASE
1825 tolua_Error tolua_err;
1826 if (
1827 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1828 !tolua_isnumber(tolua_S,2,1,&tolua_err) ||
1829 !tolua_isnoobj(tolua_S,3,&tolua_err)
1830 )
1831 goto tolua_lerror;
1832 else
1833#endif
1834 {
1835 lua_State* L = tolua_S;
1836 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1837 int vet_loss = ((int) tolua_tonumber(tolua_S,2,0));
1838 {
1839 bool tolua_ret = (bool) api_edit_unit_upgrade(L,punit,vet_loss);
1840 tolua_pushboolean(tolua_S,(bool)tolua_ret);
1841 }
1842 }
1843 return 1;
1844#ifndef TOLUA_RELEASE
1845 tolua_lerror:
1846 tolua_error(tolua_S,"#ferror in function 'upgrade'.",&tolua_err);
1847 return 0;
1848#endif
1849}
1850
1851/* function: api_edit_unit_transform */
1852 static int tolua_server_Unit_transform00(lua_State* tolua_S)
1853{
1854#ifndef TOLUA_RELEASE
1855 tolua_Error tolua_err;
1856 if (
1857 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1858 !tolua_isusertype(tolua_S,2,"Unit_Type",0,&tolua_err) ||
1859 !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
1860 !tolua_isnoobj(tolua_S,4,&tolua_err)
1861 )
1862 goto tolua_lerror;
1863 else
1864#endif
1865 {
1866 lua_State* L = tolua_S;
1867 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1868 Unit_Type* ptype = ((Unit_Type*) tolua_tousertype(tolua_S,2,0));
1869 int vet_loss = ((int) tolua_tonumber(tolua_S,3,0));
1870 {
1871 bool tolua_ret = (bool) api_edit_unit_transform(L,punit,ptype,vet_loss);
1872 tolua_pushboolean(tolua_S,(bool)tolua_ret);
1873 }
1874 }
1875 return 1;
1876#ifndef TOLUA_RELEASE
1877 tolua_lerror:
1878 tolua_error(tolua_S,"#ferror in function 'transform'.",&tolua_err);
1879 return 0;
1880#endif
1881}
1882
1883/* Open lib function */
1884LUALIB_API int luaopen_server (lua_State* tolua_S)
1885{
1886 tolua_open(tolua_S);
1887 tolua_reg_types(tolua_S);
1888 tolua_module(tolua_S,NULL,0);
1889 tolua_beginmodule(tolua_S,NULL);
1890 tolua_module(tolua_S,"server",0);
1891 tolua_beginmodule(tolua_S,"server");
1892 tolua_function(tolua_S,"save",tolua_server_server_save00);
1893 tolua_function(tolua_S,"started",tolua_server_server_started00);
1894 tolua_function(tolua_S,"civilization_score",tolua_server_server_civilization_score00);
1895 tolua_function(tolua_S,"play_music",tolua_server_server_play_music00);
1896 tolua_module(tolua_S,"setting",0);
1897 tolua_beginmodule(tolua_S,"setting");
1898 tolua_function(tolua_S,"get",tolua_server_server_setting_get00);
1899 tolua_endmodule(tolua_S);
1900 tolua_endmodule(tolua_S);
1901 tolua_module(tolua_S,"notify",0);
1902 tolua_beginmodule(tolua_S,"notify");
1903 tolua_function(tolua_S,"embassies_msg",tolua_server_notify_embassies_msg00);
1904 tolua_function(tolua_S,"research_msg",tolua_server_notify_research_msg00);
1905 tolua_function(tolua_S,"research_embassies_msg",tolua_server_notify_research_embassies_msg00);
1906 tolua_function(tolua_S,"event_msg",tolua_server_notify_event_msg00);
1907 tolua_endmodule(tolua_S);
1908
1909 { /* begin embedded lua code */
1910 static unsigned char B[] = {
1911 10,102,117,110, 99,116,105,111,110, 32,110,111,116,105,102,
1912 121, 46, 97,108,108, 40, 46, 46, 46, 41, 10,108,111, 99, 97,
1913 108, 32, 97,114,103, 32, 61, 32,116, 97, 98,108,101, 46,112,
1914 97, 99,107, 40, 46, 46, 46, 41, 59, 10,110,111,116,105,102,
1915 121, 46,101,118,101,110,116, 95,109,115,103, 40,110,105,108,
1916 44, 32,110,105,108, 44, 32, 69, 46, 83, 67, 82, 73, 80, 84,
1917 44, 32,115,116,114,105,110,103, 46,102,111,114,109, 97,116,
1918 40,116, 97, 98,108,101, 46,117,110,112, 97, 99,107, 40, 97,
1919 114,103, 41, 41, 41, 10,101,110,100, 10,102,117,110, 99,116,
1920 105,111,110, 32,110,111,116,105,102,121, 46,112,108, 97,121,
1921 101,114, 40,112,108, 97,121,101,114, 44, 32, 46, 46, 46, 41,
1922 10,108,111, 99, 97,108, 32, 97,114,103, 32, 61, 32,116, 97,
1923 98,108,101, 46,112, 97, 99,107, 40, 46, 46, 46, 41, 59, 10,
1924 110,111,116,105,102,121, 46,101,118,101,110,116, 95,109,115,
1925 103, 40,112,108, 97,121,101,114, 44, 32,110,105,108, 44, 32,
1926 69, 46, 83, 67, 82, 73, 80, 84, 44, 32,115,116,114,105,110,
1927 103, 46,102,111,114,109, 97,116, 40,116, 97, 98,108,101, 46,
1928 117,110,112, 97, 99,107, 40, 97,114,103, 41, 41, 41, 10,101,
1929 110,100, 10,102,117,110, 99,116,105,111,110, 32,110,111,116,
1930 105,102,121, 46,101,118,101,110,116, 40,112,108, 97,121,101,
1931 114, 44, 32,116,105,108,101, 44, 32,101,118,101,110,116, 44,
1932 32, 46, 46, 46, 41, 10,108,111, 99, 97,108, 32, 97,114,103,
1933 32, 61, 32,116, 97, 98,108,101, 46,112, 97, 99,107, 40, 46,
1934 46, 46, 41, 59, 10,110,111,116,105,102,121, 46,101,118,101,
1935 110,116, 95,109,115,103, 40,112,108, 97,121,101,114, 44, 32,
1936 116,105,108,101, 44, 32,101,118,101,110,116, 44, 32,115,116,
1937 114,105,110,103, 46,102,111,114,109, 97,116, 40,116, 97, 98,
1938 108,101, 46,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41,
1939 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32,
1940 110,111,116,105,102,121, 46,101,109, 98, 97,115,115,105,101,
1941 115, 40,112,108, 97,121,101,114, 44, 32,112,116,105,108,101,
1942 44, 32,101,118,101,110,116, 44, 32, 46, 46, 46, 41, 10,108,
1943 111, 99, 97,108, 32, 97,114,103, 32, 61, 32,116, 97, 98,108,
1944 101, 46,112, 97, 99,107, 40, 46, 46, 46, 41, 59, 10,110,111,
1945 116,105,102,121, 46,101,109, 98, 97,115,115,105,101,115, 95,
1946 109,115,103, 40,112,108, 97,121,101,114, 44, 32,112,116,105,
1947 108,101, 44, 32,101,118,101,110,116, 44, 32,115,116,114,105,
1948 110,103, 46,102,111,114,109, 97,116, 40,116, 97, 98,108,101,
1949 46,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41, 41, 10,
1950 101,110,100, 10,102,117,110, 99,116,105,111,110, 32,110,111,
1951 116,105,102,121, 46,114,101,115,101, 97,114, 99,104, 40,112,
1952 108, 97,121,101,114, 44, 32,115,101,108,102,109,115,103, 44,
1953 32,101,118,101,110,116, 44, 32, 46, 46, 46, 41, 10,108,111,
1954 99, 97,108, 32, 97,114,103, 32, 61, 32,116, 97, 98,108,101,
1955 46,112, 97, 99,107, 40, 46, 46, 46, 41, 59, 10,110,111,116,
1956 105,102,121, 46,114,101,115,101, 97,114, 99,104, 95,109,115,
1957 103, 40,112,108, 97,121,101,114, 44, 32,115,101,108,102,109,
1958 115,103, 44, 32,101,118,101,110,116, 44, 32,115,116,114,105,
1959 110,103, 46,102,111,114,109, 97,116, 40,116, 97, 98,108,101,
1960 46,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41, 41, 10,
1961 101,110,100, 10,102,117,110, 99,116,105,111,110, 32,110,111,
1962 116,105,102,121, 46,114,101,115,101, 97,114, 99,104, 95,101,
1963 109, 98, 97,115,115,105,101,115, 40,112,108, 97,121,101,114,
1964 44, 32,101,118,101,110,116, 44, 32, 46, 46, 46, 41, 10,108,
1965 111, 99, 97,108, 32, 97,114,103, 32, 61, 32,116, 97, 98,108,
1966 101, 46,112, 97, 99,107, 40, 46, 46, 46, 41, 59, 10,110,111,
1967 116,105,102,121, 46,114,101,115,101, 97,114, 99,104, 95,101,
1968 109, 98, 97,115,115,105,101,115, 95,109,115,103, 40,112,108,
1969 97,121,101,114, 44, 32,101,118,101,110,116, 44, 32,115,116,
1970 114,105,110,103, 46,102,111,114,109, 97,116, 40,116, 97, 98,
1971 108,101, 46,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41,
1972 41, 10,101,110,100,32
1973 };
1974 if (luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") == LUA_OK)
1975 lua_pcall(tolua_S,0,LUA_MULTRET,0);
1976 } /* end of embedded lua code */
1977
1978 tolua_module(tolua_S,"edit",0);
1979 tolua_beginmodule(tolua_S,"edit");
1980 tolua_function(tolua_S,"create_unit",tolua_server_edit_create_unit00);
1981 tolua_function(tolua_S,"create_unit_full",tolua_server_edit_create_unit_full00);
1982 tolua_function(tolua_S,"unit_teleport",tolua_server_edit_unit_teleport00);
1983 tolua_function(tolua_S,"unit_teleport",tolua_server_edit_unit_teleport01);
1984 tolua_function(tolua_S,"unit_kill",tolua_server_edit_unit_kill00);
1985 tolua_function(tolua_S,"change_terrain",tolua_server_edit_change_terrain00);
1986 tolua_function(tolua_S,"create_city",tolua_server_edit_create_city00);
1987 tolua_function(tolua_S,"remove_city",tolua_server_edit_remove_city00);
1988 tolua_function(tolua_S,"create_building",tolua_server_edit_create_building00);
1989 tolua_function(tolua_S,"remove_building",tolua_server_edit_remove_building00);
1990 tolua_function(tolua_S,"create_owned_extra",tolua_server_edit_create_owned_extra00);
1991 tolua_function(tolua_S,"create_extra",tolua_server_edit_create_extra00);
1992 tolua_function(tolua_S,"create_base",tolua_server_edit_create_base00);
1993 tolua_function(tolua_S,"create_road",tolua_server_edit_create_road00);
1994 tolua_function(tolua_S,"remove_extra",tolua_server_edit_remove_extra00);
1995 tolua_function(tolua_S,"tile_set_label",tolua_server_edit_tile_set_label00);
1996 tolua_function(tolua_S,"tile_show",tolua_server_edit_tile_show00);
1997 tolua_function(tolua_S,"tile_hide",tolua_server_edit_tile_hide00);
1998 tolua_function(tolua_S,"create_player",tolua_server_edit_create_player00);
1999 tolua_function(tolua_S,"change_gold",tolua_server_edit_change_gold00);
2000 tolua_function(tolua_S,"give_tech",tolua_server_edit_give_tech00);
2001 tolua_function(tolua_S,"trait_mod",tolua_server_edit_trait_mod00);
2002 tolua_function(tolua_S,"unleash_barbarians",tolua_server_edit_unleash_barbarians00);
2003 tolua_function(tolua_S,"place_partisans",tolua_server_edit_place_partisans00);
2004 tolua_constant(tolua_S,"GLOBAL_WARMING",CLIMATE_CHANGE_GLOBAL_WARMING);
2005 tolua_constant(tolua_S,"NUCLEAR_WINTER",CLIMATE_CHANGE_NUCLEAR_WINTER);
2006 tolua_function(tolua_S,"climate_change",tolua_server_edit_climate_change00);
2007 tolua_function(tolua_S,"civil_war",tolua_server_edit_civil_war00);
2008 tolua_function(tolua_S,"unit_turn",tolua_server_edit_unit_turn00);
2009 tolua_function(tolua_S,"player_victory",tolua_server_edit_player_victory00);
2010 tolua_function(tolua_S,"unit_move",tolua_server_edit_unit_move00);
2011 tolua_function(tolua_S,"unit_move",tolua_server_edit_unit_move01);
2012 tolua_function(tolua_S,"movement_disallow",tolua_server_edit_movement_disallow00);
2013 tolua_function(tolua_S,"movement_allow",tolua_server_edit_movement_allow00);
2014 tolua_function(tolua_S,"perform_action",tolua_server_edit_perform_action00);
2015 tolua_function(tolua_S,"perform_action",tolua_server_edit_perform_action01);
2016 tolua_function(tolua_S,"perform_action",tolua_server_edit_perform_action02);
2017 tolua_function(tolua_S,"perform_action",tolua_server_edit_perform_action03);
2018 tolua_function(tolua_S,"perform_action",tolua_server_edit_perform_action04);
2019 tolua_function(tolua_S,"perform_action",tolua_server_edit_perform_action05);
2020 tolua_function(tolua_S,"perform_action",tolua_server_edit_perform_action06);
2021 tolua_function(tolua_S,"add_city_history",tolua_server_edit_add_city_history00);
2022 tolua_function(tolua_S,"add_player_history",tolua_server_edit_add_player_history00);
2023 tolua_function(tolua_S,"give_bulbs",tolua_server_edit_give_bulbs00);
2024 tolua_endmodule(tolua_S);
2025 tolua_module(tolua_S,"luadata",0);
2026 tolua_beginmodule(tolua_S,"luadata");
2027 tolua_function(tolua_S,"get_str",tolua_server_luadata_get_str00);
2028 tolua_endmodule(tolua_S);
2029
2030 { /* begin embedded lua code */
2031 static unsigned char B[] = {
2032 10,102,117,110, 99,116,105,111,110, 32, 99,114,101, 97,116,
2033 101, 95,117,110,105,116, 40,112,108, 97,121,101,114, 44, 32,
2034 116,105,108,101, 44, 32,117,116,121,112,101, 44, 32,118,101,
2035 116,101,114, 97,110, 95,108,101,118,101,108, 44, 32,104,111,
2036 109,101, 99,105,116,121, 44, 32,109,111,118,101,115, 95,108,
2037 101,102,116, 41, 10,108,111,103, 46,100,101,112,114,101, 99,
2038 97,116,105,111,110, 95,119, 97,114,110,105,110,103, 40, 34,
2039 99,114,101, 97,116,101, 95,117,110,105,116, 40, 41, 34, 44,
2040 32, 34,101,100,105,116, 46, 99,114,101, 97,116,101, 95,117,
2041 110,105,116, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41, 59,
2042 10,114,101,116,117,114,110, 32,101,100,105,116, 46, 99,114,
2043 101, 97,116,101, 95,117,110,105,116, 40,112,108, 97,121,101,
2044 114, 44, 32,116,105,108,101, 44, 32,117,116,121,112,101, 44,
2045 32,118,101,116,101,114, 97,110, 95,108,101,118,101,108, 44,
2046 32,104,111,109,101, 99,105,116,121, 44, 10,109,111,118,101,
2047 115, 95,108,101,102,116, 41, 10,101,110,100, 10,102,117,110,
2048 99,116,105,111,110, 32, 99,114,101, 97,116,101, 95,117,110,
2049 105,116, 95,102,117,108,108, 40,112,108, 97,121,101,114, 44,
2050 32,116,105,108,101, 44, 32,117,116,121,112,101, 44, 32,118,
2051 101,116,101,114, 97,110, 95,108,101,118,101,108, 44, 32,104,
2052 111,109,101, 99,105,116,121, 44, 10,109,111,118,101,115, 95,
2053 108,101,102,116, 44, 32,104,112, 95,108,101,102,116, 44, 32,
2054 116,114, 97,110,115,112,111,114,116, 41, 10,108,111,103, 46,
2055 100,101,112,114,101, 99, 97,116,105,111,110, 95,119, 97,114,
2056 110,105,110,103, 40, 34, 99,114,101, 97,116,101, 95,117,110,
2057 105,116, 95,102,117,108,108, 40, 41, 34, 44, 32, 34,101,100,
2058 105,116, 46, 99,114,101, 97,116,101, 95,117,110,105,116, 95,
2059 102,117,108,108, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41,
2060 59, 10,114,101,116,117,114,110, 32,101,100,105,116, 46, 99,
2061 114,101, 97,116,101, 95,117,110,105,116, 95,102,117,108,108,
2062 40,112,108, 97,121,101,114, 44, 32,116,105,108,101, 44, 32,
2063 117,116,121,112,101, 44, 32,118,101,116,101,114, 97,110, 95,
2064 108,101,118,101,108, 44, 32,104,111,109,101, 99,105,116,121,
2065 44, 10,109,111,118,101,115, 95,108,101,102,116, 44, 32,104,
2066 112, 95,108,101,102,116, 44, 32,116,114, 97,110,115,112,111,
2067 114,116, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2068 110, 32, 99,114,101, 97,116,101, 95, 99,105,116,121, 40,112,
2069 108, 97,121,101,114, 44, 32,116,105,108,101, 44, 32,110, 97,
2070 109,101, 41, 10,108,111,103, 46,100,101,112,114,101, 99, 97,
2071 116,105,111,110, 95,119, 97,114,110,105,110,103, 40, 34, 99,
2072 114,101, 97,116,101, 95, 99,105,116,121, 40, 41, 34, 44, 32,
2073 34,101,100,105,116, 46, 99,114,101, 97,116,101, 95, 99,105,
2074 116,121, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41, 59, 10,
2075 101,100,105,116, 46, 99,114,101, 97,116,101, 95, 99,105,116,
2076 121, 32, 40,112,108, 97,121,101,114, 44, 32,116,105,108,101,
2077 44, 32,110, 97,109,101, 41, 10,101,110,100, 10,102,117,110,
2078 99,116,105,111,110, 32, 99,114,101, 97,116,101, 95, 98, 97,
2079 115,101, 40,116,105,108,101, 44, 32,110, 97,109,101, 44, 32,
2080 112,108, 97,121,101,114, 41, 10,108,111,103, 46,100,101,112,
2081 114,101, 99, 97,116,105,111,110, 95,119, 97,114,110,105,110,
2082 103, 40, 34, 99,114,101, 97,116,101, 95, 98, 97,115,101, 40,
2083 41, 34, 44, 32, 34,101,100,105,116, 46, 99,114,101, 97,116,
2084 101, 95,111,119,110,101,100, 95,101,120,116,114, 97, 40, 41,
2085 34, 44, 10, 34, 50, 46, 52, 34, 41, 59, 10,101,100,105,116,
2086 46, 99,114,101, 97,116,101, 95, 98, 97,115,101, 40,116,105,
2087 108,101, 44, 32,110, 97,109,101, 44, 32,112,108, 97,121,101,
2088 114, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110,
2089 32, 99,114,101, 97,116,101, 95,112,108, 97,121,101,114, 40,
2090 117,115,101,114,110, 97,109,101, 44, 32,110, 97,116,105,111,
2091 110, 41, 10,108,111,103, 46,100,101,112,114,101, 99, 97,116,
2092 105,111,110, 95,119, 97,114,110,105,110,103, 40, 34, 99,114,
2093 101, 97,116,101, 95,112,108, 97,121,101,114, 40, 41, 34, 44,
2094 32, 34,101,100,105,116, 46, 99,114,101, 97,116,101, 95,112,
2095 108, 97,121,101,114, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34,
2096 41, 59, 10,114,101,116,117,114,110, 32,101,100,105,116, 46,
2097 99,114,101, 97,116,101, 95,112,108, 97,121,101,114, 40,117,
2098 115,101,114,110, 97,109,101, 44, 32,110, 97,116,105,111,110,
2099 44, 32,110,105,108, 41, 10,101,110,100, 10,102,117,110, 99,
2100 116,105,111,110, 32, 99,104, 97,110,103,101, 95,103,111,108,
2101 100, 40,112,112,108, 97,121,101,114, 44, 32, 97,109,111,117,
2102 110,116, 41, 10,108,111,103, 46,100,101,112,114,101, 99, 97,
2103 116,105,111,110, 95,119, 97,114,110,105,110,103, 40, 34, 99,
2104 104, 97,110,103,101, 95,103,111,108,100, 40, 41, 34, 44, 32,
2105 34,101,100,105,116, 46, 99,104, 97,110,103,101, 95,103,111,
2106 108,100, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41, 59, 10,
2107 101,100,105,116, 46, 99,104, 97,110,103,101, 95,103,111,108,
2108 100, 40,112,112,108, 97,121,101,114, 44, 32, 97,109,111,117,
2109 110,116, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2110 110, 32,103,105,118,101, 95,116,101, 99,104,110,111,108,111,
2111 103,121, 40,112,108, 97,121,101,114, 44, 32,116,101, 99,104,
2112 44, 32,114,101, 97,115,111,110, 41, 10,108,111,103, 46,100,
2113 101,112,114,101, 99, 97,116,105,111,110, 95,119, 97,114,110,
2114 105,110,103, 40, 34,103,105,118,101, 95,116,101, 99,104,110,
2115 111,108,111,103,121, 40, 41, 34, 44, 32, 34,101,100,105,116,
2116 46,103,105,118,101, 95,116,101, 99,104, 40, 41, 34, 44, 10,
2117 34, 50, 46, 52, 34, 41, 59, 10,114,101,116,117,114,110, 32,
2118 101,100,105,116, 46,103,105,118,101, 95,116,101, 99,104, 40,
2119 112,108, 97,121,101,114, 44, 32,116,101, 99,104, 44, 32, 45,
2120 49, 44, 32,102, 97,108,115,101, 44, 32,114,101, 97,115,111,
2121 110, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110,
2122 32,101,100,105,116, 46,103,105,118,101, 95,116,101, 99,104,
2123 110,111,108,111,103,121, 40,112,108, 97,121,101,114, 44, 32,
2124 116,101, 99,104, 44, 32,114,101, 97,115,111,110, 41, 10,108,
2125 111,103, 46,100,101,112,114,101, 99, 97,116,105,111,110, 95,
2126 119, 97,114,110,105,110,103, 40, 34,101,100,105,116, 46,103,
2127 105,118,101, 95,116,101, 99,104,110,111,108,111,103,121, 40,
2128 41, 34, 44, 32, 34,101,100,105,116, 46,103,105,118,101, 95,
2129 116,101, 99,104, 40, 41, 34, 44, 10, 34, 50, 46, 54, 34, 41,
2130 59, 10,114,101,116,117,114,110, 32,101,100,105,116, 46,103,
2131 105,118,101, 95,116,101, 99,104, 40,112,108, 97,121,101,114,
2132 44, 32,116,101, 99,104, 44, 32, 45, 49, 44, 32,102, 97,108,
2133 115,101, 44, 32,114,101, 97,115,111,110, 41, 10,101,110,100,
2134 10,102,117,110, 99,116,105,111,110, 32,116,114, 97,105,116,
2135 95,109,111,100, 40,112,108, 97,121,101,114, 44, 32,116,114,
2136 97,105,116, 44, 32,109,111,100, 41, 10,108,111,103, 46,100,
2137 101,112,114,101, 99, 97,116,105,111,110, 95,119, 97,114,110,
2138 105,110,103, 40, 34,116,114, 97,105,116, 95,109,111,100, 40,
2139 41, 34, 44, 32, 34,101,100,105,116, 46,116,114, 97,105,116,
2140 95,109,111,100, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41,
2141 59, 10,114,101,116,117,114,110, 32,101,100,105,116, 46,116,
2142 114, 97,105,116, 95,109,111,100, 40,112,108, 97,121,101,114,
2143 44, 32,116,114, 97,105,116, 44, 32,109,111,100, 41, 10,101,
2144 110,100, 10,102,117,110, 99,116,105,111,110, 32,117,110,108,
2145 101, 97,115,104, 95, 98, 97,114, 98, 97,114,105, 97,110,115,
2146 40,116,105,108,101, 41, 10,108,111,103, 46,100,101,112,114,
2147 101, 99, 97,116,105,111,110, 95,119, 97,114,110,105,110,103,
2148 40, 34,117,110,108,101, 97,115,104, 95, 98, 97,114, 98, 97,
2149 114,105, 97,110,115, 40, 41, 34, 44, 32, 34,101,100,105,116,
2150 46,117,110,108,101, 97,115,104, 95, 98, 97,114, 98, 97,114,
2151 105, 97,110,115, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41,
2152 59, 10,114,101,116,117,114,110, 32,101,100,105,116, 46,117,
2153 110,108,101, 97,115,104, 95, 98, 97,114, 98, 97,114,105, 97,
2154 110,115, 40,116,105,108,101, 41, 10,101,110,100, 10,102,117,
2155 110, 99,116,105,111,110, 32,112,108, 97, 99,101, 95,112, 97,
2156 114,116,105,115, 97,110,115, 40,116,105,108,101, 44, 32,112,
2157 108, 97,121,101,114, 44, 32, 99,111,117,110,116, 44, 32,115,
2158 113, 95,114, 97,100,105,117,115, 41, 10,108,111,103, 46,100,
2159 101,112,114,101, 99, 97,116,105,111,110, 95,119, 97,114,110,
2160 105,110,103, 40, 34,112,108, 97, 99,101, 95,112, 97,114,116,
2161 105,115, 97,110,115, 40, 41, 34, 44, 32, 34,101,100,105,116,
2162 46,112,108, 97, 99,101, 95,112, 97,114,116,105,115, 97,110,
2163 115, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41, 59, 10,101,
2164 100,105,116, 46,112,108, 97, 99,101, 95,112, 97,114,116,105,
2165 115, 97,110,115, 40,116,105,108,101, 44, 32,112,108, 97,121,
2166 101,114, 44, 32, 99,111,117,110,116, 44, 32,115,113, 95,114,
2167 97,100,105,117,115, 41, 10,101,110,100, 10,102,117,110, 99,
2168 116,105,111,110, 32, 80,108, 97,121,101,114, 58, 99,114,101,
2169 97,116,101, 95,117,110,105,116, 40,116,105,108,101, 44, 32,
2170 117,116,121,112,101, 44, 32,118,101,116,101,114, 97,110, 95,
2171 108,101,118,101,108, 44, 32,104,111,109,101, 99,105,116,121,
2172 44, 32,109,111,118,101,115, 95,108,101,102,116, 41, 10,114,
2173 101,116,117,114,110, 32,101,100,105,116, 46, 99,114,101, 97,
2174 116,101, 95,117,110,105,116, 40,115,101,108,102, 44, 32,116,
2175 105,108,101, 44, 32,117,116,121,112,101, 44, 32,118,101,116,
2176 101,114, 97,110, 95,108,101,118,101,108, 44, 32,104,111,109,
2177 101, 99,105,116,121, 44, 10,109,111,118,101,115, 95,108,101,
2178 102,116, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2179 110, 32, 80,108, 97,121,101,114, 58, 99,114,101, 97,116,101,
2180 95,117,110,105,116, 95,102,117,108,108, 40,116,105,108,101,
2181 44, 32,117,116,121,112,101, 44, 32,118,101,116,101,114, 97,
2182 110, 95,108,101,118,101,108, 44, 32,104,111,109,101, 99,105,
2183 116,121, 44, 10,109,111,118,101,115, 95,108,101,102,116, 44,
2184 32,104,112, 95,108,101,102,116, 44, 32,112,116,114, 97,110,
2185 115,112,111,114,116, 41, 10,114,101,116,117,114,110, 32,101,
2186 100,105,116, 46, 99,114,101, 97,116,101, 95,117,110,105,116,
2187 95,102,117,108,108, 40,115,101,108,102, 44, 32,116,105,108,
2188 101, 44, 32,117,116,121,112,101, 44, 32,118,101,116,101,114,
2189 97,110, 95,108,101,118,101,108, 44, 32,104,111,109,101, 99,
2190 105,116,121, 44, 10,109,111,118,101,115, 95,108,101,102,116,
2191 44, 32,104,112, 95,108,101,102,116, 44, 32,112,116,114, 97,
2192 110,115,112,111,114,116, 41, 10,101,110,100, 10,102,117,110,
2193 99,116,105,111,110, 32, 80,108, 97,121,101,114, 58, 99,105,
2194 118,105,108,105,122, 97,116,105,111,110, 95,115, 99,111,114,
2195 101, 40, 41, 10,114,101,116,117,114,110, 32,115,101,114,118,
2196 101,114, 46, 99,105,118,105,108,105,122, 97,116,105,111,110,
2197 95,115, 99,111,114,101, 40,115,101,108,102, 41, 10,101,110,
2198 100, 10,102,117,110, 99,116,105,111,110, 32, 80,108, 97,121,
2199 101,114, 58, 99,114,101, 97,116,101, 95, 99,105,116,121, 40,
2200 116,105,108,101, 44, 32,110, 97,109,101, 41, 10,101,100,105,
2201 116, 46, 99,114,101, 97,116,101, 95, 99,105,116,121, 40,115,
2202 101,108,102, 44, 32,116,105,108,101, 44, 32,110, 97,109,101,
2203 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32,
2204 80,108, 97,121,101,114, 58, 99,104, 97,110,103,101, 95,103,
2205 111,108,100, 40, 97,109,111,117,110,116, 41, 10,101,100,105,
2206 116, 46, 99,104, 97,110,103,101, 95,103,111,108,100, 40,115,
2207 101,108,102, 44, 32, 97,109,111,117,110,116, 41, 10,101,110,
2208 100, 10,102,117,110, 99,116,105,111,110, 32, 80,108, 97,121,
2209 101,114, 58,103,105,118,101, 95,116,101, 99,104, 40,116,101,
2210 99,104, 44, 32, 99,111,115,116, 44, 32,110,111,116,105,102,
2211 121, 44, 32,114,101, 97,115,111,110, 41, 10,114,101,116,117,
2212 114,110, 32,101,100,105,116, 46,103,105,118,101, 95,116,101,
2213 99,104, 40,115,101,108,102, 44, 32,116,101, 99,104, 44, 32,
2214 99,111,115,116, 44, 32,110,111,116,105,102,121, 44, 32,114,
2215 101, 97,115,111,110, 41, 10,101,110,100, 10,102,117,110, 99,
2216 116,105,111,110, 32, 80,108, 97,121,101,114, 58,103,105,118,
2217 101, 95,116,101, 99,104,110,111,108,111,103,121, 40,116,101,
2218 99,104, 44, 32,114,101, 97,115,111,110, 41, 10,108,111,103,
2219 46,100,101,112,114,101, 99, 97,116,105,111,110, 95,119, 97,
2220 114,110,105,110,103, 40, 34, 80,108, 97,121,101,114, 58,103,
2221 105,118,101, 95,116,101, 99,104,110,111,108,111,103,121, 40,
2222 41, 34, 44, 32, 34, 80,108, 97,121,101,114, 58,103,105,118,
2223 101, 95,116,101, 99,104, 40, 41, 34, 44, 10, 34, 50, 46, 54,
2224 34, 41, 59, 10,114,101,116,117,114,110, 32,101,100,105,116,
2225 46,103,105,118,101, 95,116,101, 99,104, 40,115,101,108,102,
2226 44, 32,116,101, 99,104, 44, 32, 45, 49, 44, 32,102, 97,108,
2227 115,101, 44, 32,114,101, 97,115,111,110, 41, 10,101,110,100,
2228 10,102,117,110, 99,116,105,111,110, 32, 80,108, 97,121,101,
2229 114, 58,116,114, 97,105,116, 95,109,111,100, 40,116,114, 97,
2230 105,116, 44, 32,109,111,100, 41, 10,114,101,116,117,114,110,
2231 32,101,100,105,116, 46,116,114, 97,105,116, 95,109,111,100,
2232 40,115,101,108,102, 44, 32,116,114, 97,105,116, 44, 32,109,
2233 111,100, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2234 110, 32, 80,108, 97,121,101,114, 58, 99,105,118,105,108, 95,
2235 119, 97,114, 40,112,114,111, 98, 97, 98,105,108,105,116,121,
2236 41, 10,114,101,116,117,114,110, 32,101,100,105,116, 46, 99,
2237 105,118,105,108, 95,119, 97,114, 40,115,101,108,102, 44, 32,
2238 112,114,111, 98, 97, 98,105,108,105,116,121, 41, 10,101,110,
2239 100, 10,102,117,110, 99,116,105,111,110, 32, 80,108, 97,121,
2240 101,114, 58,118,105, 99,116,111,114,121, 40, 41, 10,101,100,
2241 105,116, 46,112,108, 97,121,101,114, 95,118,105, 99,116,111,
2242 114,121, 40,115,101,108,102, 41, 10,101,110,100, 10,102,117,
2243 110, 99,116,105,111,110, 32, 80,108, 97,121,101,114, 58, 97,
2244 100,100, 95,104,105,115,116,111,114,121, 40, 97,109,111,117,
2245 110,116, 41, 10,101,100,105,116, 46, 97,100,100, 95,112,108,
2246 97,121,101,114, 95,104,105,115,116,111,114,121, 40,115,101,
2247 108,102, 44, 32, 97,109,111,117,110,116, 41, 10,101,110,100,
2248 10,102,117,110, 99,116,105,111,110, 32, 80,108, 97,121,101,
2249 114, 58,103,105,118,101, 95, 98,117,108, 98,115, 40, 97,109,
2250 111,117,110,116, 41, 10,101,100,105,116, 46,103,105,118,101,
2251 95, 98,117,108, 98,115, 40,115,101,108,102, 44, 32, 97,109,
2252 111,117,110,116, 41, 10,101,110,100, 10,102,117,110, 99,116,
2253 105,111,110, 32, 67,105,116,121, 58,114,101,109,111,118,101,
2254 40, 41, 10,101,100,105,116, 46,114,101,109,111,118,101, 95,
2255 99,105,116,121, 40,115,101,108,102, 41, 10,101,110,100, 10,
2256 102,117,110, 99,116,105,111,110, 32, 67,105,116,121, 58, 97,
2257 100,100, 95,104,105,115,116,111,114,121, 40, 97,109,111,117,
2258 110,116, 41, 10,101,100,105,116, 46, 97,100,100, 95, 99,105,
2259 116,121, 95,104,105,115,116,111,114,121, 40,115,101,108,102,
2260 44, 32, 97,109,111,117,110,116, 41, 10,101,110,100, 10,102,
2261 117,110, 99,116,105,111,110, 32, 67,105,116,121, 58, 99,114,
2262 101, 97,116,101, 95, 98,117,105,108,100,105,110,103, 40,105,
2263 109,112,114, 41, 10,101,100,105,116, 46, 99,114,101, 97,116,
2264 101, 95, 98,117,105,108,100,105,110,103, 40,115,101,108,102,
2265 44, 32,105,109,112,114, 41, 10,101,110,100, 10,102,117,110,
2266 99,116,105,111,110, 32, 67,105,116,121, 58,114,101,109,111,
2267 118,101, 95, 98,117,105,108,100,105,110,103, 40,105,109,112,
2268 114, 41, 10,101,100,105,116, 46,114,101,109,111,118,101, 95,
2269 98,117,105,108,100,105,110,103, 40,115,101,108,102, 44, 32,
2270 105,109,112,114, 41, 10,101,110,100, 10,102,117,110, 99,116,
2271 105,111,110, 32, 85,110,105,116, 58,116,101,108,101,112,111,
2272 114,116, 40,100,101,115,116, 44, 10,101,109, 98, 97,114,107,
2273 95,116,111, 44, 32, 97,108,108,111,119, 95,100,105,115,101,
2274 109, 98, 97,114,107, 44, 10, 99,111,110,113,117,101,114, 95,
2275 99,105,116,121, 44, 32, 99,111,110,113,117,101,114, 95,101,
2276 120,116,114, 97, 44, 10,101,110,116,101,114, 95,104,117,116,
2277 44, 32,102,114,105,103,104,116,101,110, 95,104,117,116, 41,
2278 10,105,102, 32, 97,108,108,111,119, 95,100,105,115,101,109,
2279 98, 97,114,107, 32, 61, 61, 32,110,105,108, 32,116,104,101,
2280 110, 10,114,101,116,117,114,110, 32,101,100,105,116, 46,117,
2281 110,105,116, 95,116,101,108,101,112,111,114,116, 40,115,101,
2282 108,102, 44, 32,100,101,115,116, 41, 10,101,108,115,101, 10,
2283 114,101,116,117,114,110, 32,101,100,105,116, 46,117,110,105,
2284 116, 95,116,101,108,101,112,111,114,116, 40,115,101,108,102,
2285 44, 32,100,101,115,116, 44, 10,101,109, 98, 97,114,107, 95,
2286 116,111, 44, 32, 97,108,108,111,119, 95,100,105,115,101,109,
2287 98, 97,114,107, 44, 10, 99,111,110,113,117,101,114, 95, 99,
2288 105,116,121, 44, 32, 99,111,110,113,117,101,114, 95,101,120,
2289 116,114, 97, 44, 10,101,110,116,101,114, 95,104,117,116, 44,
2290 32,102,114,105,103,104,116,101,110, 95,104,117,116, 41, 10,
2291 101,110,100, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2292 110, 32, 85,110,105,116, 58,112,101,114,102,111,114,109, 95,
2293 97, 99,116,105,111,110, 40, 97, 99,116,105,111,110, 44, 32,
2294 116, 97,114,103,101,116, 44, 32,115,117, 98, 95,116, 97,114,
2295 103,101,116, 41, 10,105,102, 32,116, 97,114,103,101,116, 32,
2296 61, 61, 32,110,105,108, 32,116,104,101,110, 10,114,101,116,
2297 117,114,110, 32,101,100,105,116, 46,112,101,114,102,111,114,
2298 109, 95, 97, 99,116,105,111,110, 40,115,101,108,102, 44, 32,
2299 97, 99,116,105,111,110, 41, 10,101,108,115,101,105,102, 32,
2300 115,117, 98, 95,116, 97,114,103,101,116, 32, 61, 61, 32,110,
2301 105,108, 32,116,104,101,110, 10,114,101,116,117,114,110, 32,
2302 101,100,105,116, 46,112,101,114,102,111,114,109, 95, 97, 99,
2303 116,105,111,110, 40,115,101,108,102, 44, 32, 97, 99,116,105,
2304 111,110, 44, 32,116, 97,114,103,101,116, 41, 10,101,108,115,
2305 101, 10,114,101,116,117,114,110, 32,101,100,105,116, 46,112,
2306 101,114,102,111,114,109, 95, 97, 99,116,105,111,110, 40,115,
2307 101,108,102, 44, 32, 97, 99,116,105,111,110, 44, 32,116, 97,
2308 114,103,101,116, 44, 32,115,117, 98, 95,116, 97,114,103,101,
2309 116, 41, 10,101,110,100, 10,101,110,100, 10,102,117,110, 99,
2310 116,105,111,110, 32, 85,110,105,116, 58,116,117,114,110, 40,
2311 100,105,114,101, 99,116,105,111,110, 41, 10,101,100,105,116,
2312 46,117,110,105,116, 95,116,117,114,110, 40,115,101,108,102,
2313 44, 32,100,105,114,101, 99,116,105,111,110, 41, 10,101,110,
2314 100, 10,102,117,110, 99,116,105,111,110, 32, 85,110,105,116,
2315 58,107,105,108,108, 40,114,101, 97,115,111,110, 44, 32,107,
2316 105,108,108,101,114, 41, 10,101,100,105,116, 46,117,110,105,
2317 116, 95,107,105,108,108, 40,115,101,108,102, 44, 32,114,101,
2318 97,115,111,110, 44, 32,107,105,108,108,101,114, 41, 10,101,
2319 110,100, 10,102,117,110, 99,116,105,111,110, 32, 85,110,105,
2320 116, 58,109,111,118,101, 40,109,111,118,101,116,111, 44, 32,
2321 109,111,118,101, 99,111,115,116, 44, 10,101,109, 98, 97,114,
2322 107, 95,116,111, 44, 32, 97,108,108,111,119, 95,100,105,115,
2323 101,109, 98, 97,114,107, 44, 10, 99,111,110,113,117,101,114,
2324 95, 99,105,116,121, 44, 32, 99,111,110,113,117,101,114, 95,
2325 101,120,116,114, 97, 44, 10,101,110,116,101,114, 95,104,117,
2326 116, 44, 32,102,114,105,103,104,116,101,110, 95,104,117,116,
2327 41, 10,105,102, 32, 97,108,108,111,119, 95,100,105,115,101,
2328 109, 98, 97,114,107, 32, 61, 61, 32,110,105,108, 32,116,104,
2329 101,110, 10,114,101,116,117,114,110, 32,101,100,105,116, 46,
2330 117,110,105,116, 95,109,111,118,101, 40,115,101,108,102, 44,
2331 32,109,111,118,101,116,111, 44, 32,109,111,118,101, 99,111,
2332 115,116, 41, 10,101,108,115,101, 10,114,101,116,117,114,110,
2333 32,101,100,105,116, 46,117,110,105,116, 95,109,111,118,101,
2334 40,115,101,108,102, 44, 32,109,111,118,101,116,111, 44, 32,
2335 109,111,118,101, 99,111,115,116, 44, 10,101,109, 98, 97,114,
2336 107, 95,116,111, 44, 32, 97,108,108,111,119, 95,100,105,115,
2337 101,109, 98, 97,114,107, 44, 10, 99,111,110,113,117,101,114,
2338 95, 99,105,116,121, 44, 32, 99,111,110,113,117,101,114, 95,
2339 101,120,116,114, 97, 44, 10,101,110,116,101,114, 95,104,117,
2340 116, 44, 32,102,114,105,103,104,116,101,110, 95,104,117,116,
2341 41, 10,101,110,100, 10,101,110,100, 10,102,117,110, 99,116,
2342 105,111,110, 32, 85,110,105,116, 58,109,111,118,101,109,101,
2343 110,116, 95,100,105,115, 97,108,108,111,119, 40, 41, 10,101,
2344 100,105,116, 46,109,111,118,101,109,101,110,116, 95,100,105,
2345 115, 97,108,108,111,119, 40,115,101,108,102, 41, 10,101,110,
2346 100, 10,102,117,110, 99,116,105,111,110, 32, 85,110,105,116,
2347 58,109,111,118,101,109,101,110,116, 95, 97,108,108,111,119,
2348 40, 41, 10,101,100,105,116, 46,109,111,118,101,109,101,110,
2349 116, 95, 97,108,108,111,119, 40,115,101,108,102, 41, 10,101,
2350 110,100, 10,102,117,110, 99,116,105,111,110, 32, 84,105,108,
2351 101, 58, 99,114,101, 97,116,101, 95,111,119,110,101,100, 95,
2352 101,120,116,114, 97, 40,110, 97,109,101, 44, 32,112,108, 97,
2353 121,101,114, 41, 10,101,100,105,116, 46, 99,114,101, 97,116,
2354 101, 95,111,119,110,101,100, 95,101,120,116,114, 97, 40,115,
2355 101,108,102, 44, 32,110, 97,109,101, 44, 32,112,108, 97,121,
2356 101,114, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2357 110, 32, 84,105,108,101, 58, 99,114,101, 97,116,101, 95,101,
2358 120,116,114, 97, 40,110, 97,109,101, 41, 10,101,100,105,116,
2359 46, 99,114,101, 97,116,101, 95,101,120,116,114, 97, 40,115,
2360 101,108,102, 44, 32,110, 97,109,101, 41, 10,101,110,100, 10,
2361 102,117,110, 99,116,105,111,110, 32, 84,105,108,101, 58, 99,
2362 114,101, 97,116,101, 95, 98, 97,115,101, 40,110, 97,109,101,
2363 44, 32,112,108, 97,121,101,114, 41, 10,108,111,103, 46,100,
2364 101,112,114,101, 99, 97,116,105,111,110, 95,119, 97,114,110,
2365 105,110,103, 40, 34, 84,105,108,101, 58, 99,114,101, 97,116,
2366 101, 95, 98, 97,115,101, 40, 41, 34, 44, 32, 34, 84,105,108,
2367 101, 58, 99,114,101, 97,116,101, 95,111,119,110,101,100, 95,
2368 101,120,116,114, 97, 40, 41, 34, 44, 10, 34, 51, 46, 48, 34,
2369 41, 59, 10,101,100,105,116, 46, 99,114,101, 97,116,101, 95,
2370 98, 97,115,101, 40,115,101,108,102, 44, 32,110, 97,109,101,
2371 44, 32,112,108, 97,121,101,114, 41, 10,101,110,100, 10,102,
2372 117,110, 99,116,105,111,110, 32, 84,105,108,101, 58, 99,114,
2373 101, 97,116,101, 95,114,111, 97,100, 40,110, 97,109,101, 41,
2374 10,108,111,103, 46,100,101,112,114,101, 99, 97,116,105,111,
2375 110, 95,119, 97,114,110,105,110,103, 40, 34, 84,105,108,101,
2376 58, 99,114,101, 97,116,101, 95,114,111, 97,100, 40, 41, 34,
2377 44, 32, 34, 84,105,108,101, 58, 99,114,101, 97,116,101, 95,
2378 101,120,116,114, 97, 40, 41, 34, 44, 10, 34, 50, 46, 54, 34,
2379 41, 59, 10,101,100,105,116, 46, 99,114,101, 97,116,101, 95,
2380 114,111, 97,100, 40,115,101,108,102, 44, 32,110, 97,109,101,
2381 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32,
2382 84,105,108,101, 58,114,101,109,111,118,101, 95,101,120,116,
2383 114, 97, 40,110, 97,109,101, 41, 10,101,100,105,116, 46,114,
2384 101,109,111,118,101, 95,101,120,116,114, 97, 40,115,101,108,
2385 102, 44, 32,110, 97,109,101, 41, 10,101,110,100, 10,102,117,
2386 110, 99,116,105,111,110, 32, 84,105,108,101, 58, 99,104, 97,
2387 110,103,101, 95,116,101,114,114, 97,105,110, 40,116,101,114,
2388 114, 97,105,110, 41, 10,101,100,105,116, 46, 99,104, 97,110,
2389 103,101, 95,116,101,114,114, 97,105,110, 40,115,101,108,102,
2390 44, 32,116,101,114,114, 97,105,110, 41, 10,101,110,100, 10,
2391 102,117,110, 99,116,105,111,110, 32, 84,105,108,101, 58,117,
2392 110,108,101, 97,115,104, 95, 98, 97,114, 98, 97,114,105, 97,
2393 110,115, 40, 41, 10,114,101,116,117,114,110, 32,101,100,105,
2394 116, 46,117,110,108,101, 97,115,104, 95, 98, 97,114, 98, 97,
2395 114,105, 97,110,115, 40,115,101,108,102, 41, 10,101,110,100,
2396 10,102,117,110, 99,116,105,111,110, 32, 84,105,108,101, 58,
2397 112,108, 97, 99,101, 95,112, 97,114,116,105,115, 97,110,115,
2398 40,112,108, 97,121,101,114, 44, 32, 99,111,117,110,116, 44,
2399 32,115,113, 95,114, 97,100,105,117,115, 41, 10,101,100,105,
2400 116, 46,112,108, 97, 99,101, 95,112, 97,114,116,105,115, 97,
2401 110,115, 40,115,101,108,102, 44, 32,112,108, 97,121,101,114,
2402 44, 32, 99,111,117,110,116, 44, 32,115,113, 95,114, 97,100,
2403 105,117,115, 41, 10,101,110,100, 10,102,117,110, 99,116,105,
2404 111,110, 32, 84,105,108,101, 58,115,101,116, 95,108, 97, 98,
2405 101,108, 40,108, 97, 98,101,108, 41, 10,101,100,105,116, 46,
2406 116,105,108,101, 95,115,101,116, 95,108, 97, 98,101,108, 40,
2407 115,101,108,102, 44, 32,108, 97, 98,101,108, 41, 10,101,110,
2408 100, 10,102,117,110, 99,116,105,111,110, 32, 84,105,108,101,
2409 58,115,104,111,119, 40,112,108, 97,121,101,114, 41, 10,101,
2410 100,105,116, 46,116,105,108,101, 95,115,104,111,119, 40,115,
2411 101,108,102, 44, 32,112,108, 97,121,101,114, 41, 10,101,110,
2412 100, 10,102,117,110, 99,116,105,111,110, 32, 84,105,108,101,
2413 58,104,105,100,101, 40,112,108, 97,121,101,114, 41, 10,114,
2414 101,116,117,114,110, 32,101,100,105,116, 46,116,105,108,101,
2415 95,104,105,100,101, 40,115,101,108,102, 44, 32,112,108, 97,
2416 121,101,114, 41, 10,101,110,100,32
2417 };
2418 if (luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") == LUA_OK)
2419 lua_pcall(tolua_S,0,LUA_MULTRET,0);
2420 } /* end of embedded lua code */
2421
2422 tolua_module(tolua_S,"Player",0);
2423 tolua_beginmodule(tolua_S,"Player");
2424 tolua_function(tolua_S,"trait",tolua_server_Player_trait00);
2425 tolua_function(tolua_S,"trait_base",tolua_server_Player_trait_base00);
2426 tolua_function(tolua_S,"trait_current_mod",tolua_server_Player_trait_current_mod00);
2427 tolua_endmodule(tolua_S);
2428 tolua_module(tolua_S,"game",1);
2429 tolua_beginmodule(tolua_S,"game");
2430 tolua_variable(tolua_S,"autoupgrade_veteran_loss",tolua_get_game_game_server_autoupgrade_veteran_loss,NULL);
2431 tolua_variable(tolua_S,"upgrade_veteran_loss",tolua_get_game_game_server_upgrade_veteran_loss,NULL);
2432 tolua_endmodule(tolua_S);
2433 tolua_module(tolua_S,"Nation_Type",0);
2434 tolua_beginmodule(tolua_S,"Nation_Type");
2435 tolua_function(tolua_S,"trait_min",tolua_server_Nation_Type_trait_min00);
2436 tolua_function(tolua_S,"trait_max",tolua_server_Nation_Type_trait_max00);
2437 tolua_function(tolua_S,"trait_default",tolua_server_Nation_Type_trait_default00);
2438 tolua_endmodule(tolua_S);
2439 tolua_module(tolua_S,"Unit",0);
2440 tolua_beginmodule(tolua_S,"Unit");
2441 tolua_function(tolua_S,"upgrade",tolua_server_Unit_upgrade00);
2442 tolua_function(tolua_S,"transform",tolua_server_Unit_transform00);
2443 tolua_endmodule(tolua_S);
2444 tolua_endmodule(tolua_S);
2445 return 1;
2446}
2447/* Open tolua function */
2448TOLUA_API int tolua_server_open (lua_State* tolua_S)
2449{
2450 lua_pushcfunction(tolua_S, luaopen_server);
2451 lua_pushstring(tolua_S, "server");
2452 lua_call(tolua_S, 1, 0);
2453 return 1;
2454}
api_server_setting_get
const char * api_server_setting_get(lua_State *L, const char *sett_name)
Definition api_server_base.c:94
api_server_was_started
bool api_server_was_started(lua_State *L)
Definition api_server_base.c:48
api_server_player_civilization_score
int api_server_player_civilization_score(lua_State *L, Player *pplayer)
Definition api_server_base.c:37
api_play_music
bool api_play_music(lua_State *L, Player *pplayer, const char *tag)
Definition api_server_base.c:75
api_server_save
bool api_server_save(lua_State *L, const char *filename)
Definition api_server_base.c:58
api_server_base.h
api_edit_perform_action_unit_vs_tile_extra
bool api_edit_perform_action_unit_vs_tile_extra(lua_State *L, Unit *punit, Action *paction, Tile *tgt, const char *sub_tgt)
Definition api_server_edit.c:496
api_edit_perform_action_unit_vs_tile
bool api_edit_perform_action_unit_vs_tile(lua_State *L, Unit *punit, Action *paction, Tile *tgt)
Definition api_server_edit.c:440
api_edit_climate_change
void api_edit_climate_change(lua_State *L, enum climate_change_type type, int effect)
Definition api_server_edit.c:1056
api_edit_unit_moving_allow
void api_edit_unit_moving_allow(lua_State *L, Unit *punit)
Definition api_server_edit.c:1207
api_edit_remove_city
void api_edit_remove_city(lua_State *L, City *pcity)
Definition api_server_edit.c:701
api_edit_trait_mod_set
bool api_edit_trait_mod_set(lua_State *L, Player *pplayer, const char *tname, const int mod)
Definition api_server_edit.c:902
api_edit_unleash_barbarians
bool api_edit_unleash_barbarians(lua_State *L, Tile *ptile)
Definition api_server_edit.c:102
api_edit_remove_building
void api_edit_remove_building(lua_State *L, City *pcity, Building_Type *impr)
Definition api_server_edit.c:760
api_edit_player_victory
void api_edit_player_victory(lua_State *L, Player *pplayer)
Definition api_server_edit.c:1100
api_edit_create_extra
void api_edit_create_extra(lua_State *L, Tile *ptile, const char *name)
Definition api_server_edit.c:947
api_edit_create_unit
Unit * api_edit_create_unit(lua_State *L, Player *pplayer, Tile *ptile, Unit_Type *ptype, int veteran_level, City *homecity, int moves_left)
Definition api_server_edit.c:129
api_edit_perform_action_unit_vs_unit
bool api_edit_perform_action_unit_vs_unit(lua_State *L, Unit *punit, Action *paction, Unit *tgt)
Definition api_server_edit.c:414
api_edit_player_add_history
void api_edit_player_add_history(lua_State *L, Player *pplayer, int amount)
Definition api_server_edit.c:1231
api_edit_give_technology
Tech_Type * api_edit_give_technology(lua_State *L, Player *pplayer, Tech_Type *ptech, int cost, bool notify, const char *reason)
Definition api_server_edit.c:833
api_edit_perform_action_unit_vs_city_impr
bool api_edit_perform_action_unit_vs_city_impr(lua_State *L, Unit *punit, Action *paction, City *tgt, Building_Type *sub_tgt)
Definition api_server_edit.c:362
api_edit_create_building
void api_edit_create_building(lua_State *L, City *pcity, Building_Type *impr)
Definition api_server_edit.c:712
api_edit_create_unit_full
Unit * api_edit_create_unit_full(lua_State *L, Player *pplayer, Tile *ptile, Unit_Type *ptype, int veteran_level, City *homecity, int moves_left, int hp_left, Unit *ptransport)
Definition api_server_edit.c:140
api_edit_player_give_bulbs
void api_edit_player_give_bulbs(lua_State *L, Player *pplayer, int amount)
Definition api_server_edit.c:1242
api_edit_change_terrain
bool api_edit_change_terrain(lua_State *L, Tile *ptile, Terrain *pterr)
Definition api_server_edit.c:651
api_edit_create_owned_extra
void api_edit_create_owned_extra(lua_State *L, Tile *ptile, const char *name, Player *pplayer)
Definition api_server_edit.c:923
api_edit_tile_show
void api_edit_tile_show(lua_State *L, Tile *ptile, Player *pplayer)
Definition api_server_edit.c:1010
api_edit_unit_kill
void api_edit_unit_kill(lua_State *L, Unit *punit, const char *reason, Player *killer)
Definition api_server_edit.c:631
api_edit_tile_hide
bool api_edit_tile_hide(lua_State *L, Tile *ptile, Player *pplayer)
Definition api_server_edit.c:1022
api_edit_unit_turn
void api_edit_unit_turn(lua_State *L, Unit *punit, Direction dir)
Definition api_server_edit.c:582
api_edit_place_partisans
void api_edit_place_partisans(lua_State *L, Tile *ptile, Player *pplayer, int count, int sq_radius)
Definition api_server_edit.c:113
api_edit_remove_extra
void api_edit_remove_extra(lua_State *L, Tile *ptile, const char *name)
Definition api_server_edit.c:972
api_edit_tile_set_label
void api_edit_tile_set_label(lua_State *L, Tile *ptile, const char *label)
Definition api_server_edit.c:995
api_edit_create_road
void api_edit_create_road(lua_State *L, Tile *ptile, const char *name)
Definition api_server_edit.c:964
api_edit_unit_move_old
bool api_edit_unit_move_old(lua_State *L, Unit *punit, Tile *ptile, int movecost)
Definition api_server_edit.c:1147
api_edit_perform_action_unit_vs_city
bool api_edit_perform_action_unit_vs_city(lua_State *L, Unit *punit, Action *paction, City *tgt)
Definition api_server_edit.c:338
api_edit_city_add_history
void api_edit_city_add_history(lua_State *L, City *pcity, int amount)
Definition api_server_edit.c:1220
api_edit_create_city
bool api_edit_create_city(lua_State *L, Player *pplayer, Tile *ptile, const char *name)
Definition api_server_edit.c:687
api_edit_unit_teleport
bool api_edit_unit_teleport(lua_State *L, Unit *punit, Tile *dest, Unit *embark_to, bool allow_disembark, bool conquer_city, bool conquer_extra, bool enter_hut, bool frighten_hut)
Definition api_server_edit.c:222
api_edit_unit_moving_disallow
void api_edit_unit_moving_disallow(lua_State *L, Unit *punit)
Definition api_server_edit.c:1194
api_edit_unit_teleport_old
bool api_edit_unit_teleport_old(lua_State *L, Unit *punit, Tile *dest)
Definition api_server_edit.c:276
api_edit_unit_upgrade
bool api_edit_unit_upgrade(lua_State *L, Unit *punit, int vet_loss)
Definition api_server_edit.c:600
api_edit_unit_move
bool api_edit_unit_move(lua_State *L, Unit *punit, Tile *ptile, int movecost, Unit *embark_to, bool disembark, bool conquer_city, bool conquer_extra, bool enter_hut, bool frighten_hut)
Definition api_server_edit.c:1111
api_edit_perform_action_unit_vs_self
bool api_edit_perform_action_unit_vs_self(lua_State *L, Unit *punit, Action *paction)
Definition api_server_edit.c:558
api_edit_create_player
Player * api_edit_create_player(lua_State *L, const char *username, Nation_Type *pnation, const char *ai)
Definition api_server_edit.c:782
api_edit_unit_transform
bool api_edit_unit_transform(lua_State *L, Unit *punit, Unit_Type *ptype, int vet_loss)
Definition api_server_edit.c:618
api_edit_change_gold
void api_edit_change_gold(lua_State *L, Player *pplayer, int amount)
Definition api_server_edit.c:817
api_edit_civil_war
Player * api_edit_civil_war(lua_State *L, Player *pplayer, int probability)
Definition api_server_edit.c:1071
api_edit_perform_action_unit_vs_city_tech
bool api_edit_perform_action_unit_vs_city_tech(lua_State *L, Unit *punit, Action *paction, City *tgt, Tech_Type *sub_tgt)
Definition api_server_edit.c:388
api_edit_create_base
void api_edit_create_base(lua_State *L, Tile *ptile, const char *name, Player *pplayer)
Definition api_server_edit.c:955
api_server_edit.h
climate_change_type
climate_change_type
Definition api_server_edit.h:23
CLIMATE_CHANGE_GLOBAL_WARMING
@ CLIMATE_CHANGE_GLOBAL_WARMING
Definition api_server_edit.h:24
CLIMATE_CHANGE_NUCLEAR_WINTER
@ CLIMATE_CHANGE_NUCLEAR_WINTER
Definition api_server_edit.h:25
api_methods_nation_trait_min
int api_methods_nation_trait_min(lua_State *L, Nation_Type *pnation, const char *tname)
Definition api_server_game_methods.c:90
api_methods_player_trait_base
int api_methods_player_trait_base(lua_State *L, Player *pplayer, const char *tname)
Definition api_server_game_methods.c:51
api_methods_player_trait
int api_methods_player_trait(lua_State *L, Player *pplayer, const char *tname)
Definition api_server_game_methods.c:32
api_methods_nation_trait_default
int api_methods_nation_trait_default(lua_State *L, Nation_Type *pnation, const char *tname)
Definition api_server_game_methods.c:128
api_methods_player_trait_current_mod
int api_methods_player_trait_current_mod(lua_State *L, Player *pplayer, const char *tname)
Definition api_server_game_methods.c:71
api_methods_nation_trait_max
int api_methods_nation_trait_max(lua_State *L, Nation_Type *pnation, const char *tname)
Definition api_server_game_methods.c:109
api_server_game_methods.h
api_luadata_get_str
const char * api_luadata_get_str(lua_State *L, const char *field)
Definition api_server_luadata.c:35
api_server_luadata.h
api_notify_event_msg
void api_notify_event_msg(lua_State *L, Player *pplayer, Tile *ptile, int event, const char *message)
Definition api_server_notify.c:45
api_notify_embassies_msg
void api_notify_embassies_msg(lua_State *L, Player *pplayer, Tile *ptile, int event, const char *message)
Definition api_server_notify.c:34
api_notify_research_embassies_msg
void api_notify_research_embassies_msg(lua_State *L, Player *pplayer, int event, const char *message)
Definition api_server_notify.c:73
api_notify_research_msg
void api_notify_research_msg(lua_State *L, Player *pplayer, bool include_plr, int event, const char *message)
Definition api_server_notify.c:56
api_server_notify.h
self
static struct ai_type * self
Definition classicai.c:46
commands.h
console.h
conquer_city
static void conquer_city(QVariant data1, QVariant data2)
Definition dialogs.cpp:1831
enter_hut
static void enter_hut(QVariant data1, QVariant data2)
Definition dialogs.cpp:2570
frighten_hut
static void frighten_hut(QVariant data1, QVariant data2)
Definition dialogs.cpp:2600
punit
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit * punit
Definition dialogs_g.h:73
cost
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit int cost
Definition dialogs_g.h:73
event
enum event_type event
Definition events.c:81
type
GType type
Definition repodlgs.c:1312
name
const char * name
Definition inputfile.c:127
luascript_types.h
Direction
enum direction8 Direction
Definition luascript_types.h:57
script_server.h
setting_name
const char * setting_name(const struct setting *pset)
Definition settings.c:3162
action
Definition actions.h:379
advance
Definition tech.h:124
city
Definition city.h:309
effect
Definition effects.h:340
impr_type
Definition improvement.h:68
message
Definition messagewin_common.h:29
nation_type
Definition nation.h:97
player
Definition player.h:249
terrain
Definition terrain.h:176
tile
Definition tile.h:49
unit_type
Definition unittype.h:481
unit
Definition unit.h:138
veteran_level
Definition unittype.h:467
bool
#define bool
Definition support.h:61
tolua_server_edit_unit_kill00
static int tolua_server_edit_unit_kill00(lua_State *tolua_S)
Definition tolua_server_gen.c:470
tolua_server_edit_perform_action01
static int tolua_server_edit_perform_action01(lua_State *tolua_S)
Definition tolua_server_gen.c:1347
tolua_server_server_started00
static int tolua_server_server_started00(lua_State *tolua_S)
Definition tolua_server_gen.c:81
tolua_server_open
TOLUA_API int tolua_server_open(lua_State *tolua_S)
Definition tolua_server_gen.c:2448
tolua_server_server_play_music00
static int tolua_server_server_play_music00(lua_State *tolua_S)
Definition tolua_server_gen.c:135
tolua_server_luadata_get_str00
static int tolua_server_luadata_get_str00(lua_State *tolua_S)
Definition tolua_server_gen.c:1600
tolua_server_edit_perform_action04
static int tolua_server_edit_perform_action04(lua_State *tolua_S)
Definition tolua_server_gen.c:1432
tolua_server_edit_create_unit00
static int tolua_server_edit_create_unit00(lua_State *tolua_S)
Definition tolua_server_gen.c:323
tolua_server_edit_perform_action03
static int tolua_server_edit_perform_action03(lua_State *tolua_S)
Definition tolua_server_gen.c:1405
tolua_server_edit_tile_show00
static int tolua_server_edit_tile_show00(lua_State *tolua_S)
Definition tolua_server_gen.c:826
tolua_server_edit_player_victory00
static int tolua_server_edit_player_victory00(lua_State *tolua_S)
Definition tolua_server_gen.c:1163
tolua_server_Unit_transform00
static int tolua_server_Unit_transform00(lua_State *tolua_S)
Definition tolua_server_gen.c:1852
tolua_server_notify_embassies_msg00
static int tolua_server_notify_embassies_msg00(lua_State *tolua_S)
Definition tolua_server_gen.c:193
tolua_server_edit_give_tech00
static int tolua_server_edit_give_tech00(lua_State *tolua_S)
Definition tolua_server_gen.c:946
tolua_server_edit_place_partisans00
static int tolua_server_edit_place_partisans00(lua_State *tolua_S)
Definition tolua_server_gen.c:1042
tolua_get_game_game_server_autoupgrade_veteran_loss
static int tolua_get_game_game_server_autoupgrade_veteran_loss(lua_State *tolua_S)
Definition tolua_server_gen.c:1718
tolua_server_edit_create_building00
static int tolua_server_edit_create_building00(lua_State *tolua_S)
Definition tolua_server_gen.c:590
tolua_server_edit_climate_change00
static int tolua_server_edit_climate_change00(lua_State *tolua_S)
Definition tolua_server_gen.c:1075
tolua_server_edit_change_terrain00
static int tolua_server_edit_change_terrain00(lua_State *tolua_S)
Definition tolua_server_gen.c:501
tolua_server_edit_unit_move01
static int tolua_server_edit_unit_move01(lua_State *tolua_S)
Definition tolua_server_gen.c:1222
tolua_server_edit_unit_teleport01
static int tolua_server_edit_unit_teleport01(lua_State *tolua_S)
Definition tolua_server_gen.c:433
tolua_server_edit_perform_action06
static int tolua_server_edit_perform_action06(lua_State *tolua_S)
Definition tolua_server_gen.c:1488
tolua_server_server_civilization_score00
static int tolua_server_server_civilization_score00(lua_State *tolua_S)
Definition tolua_server_gen.c:107
tolua_reg_types
static void tolua_reg_types(lua_State *tolua_S)
Definition tolua_server_gen.c:37
tolua_server_notify_research_msg00
static int tolua_server_notify_research_msg00(lua_State *tolua_S)
Definition tolua_server_gen.c:226
tolua_server_edit_create_owned_extra00
static int tolua_server_edit_create_owned_extra00(lua_State *tolua_S)
Definition tolua_server_gen.c:648
tolua_server_Nation_Type_trait_max00
static int tolua_server_Nation_Type_trait_max00(lua_State *tolua_S)
Definition tolua_server_gen.c:1762
tolua_server_notify_research_embassies_msg00
static int tolua_server_notify_research_embassies_msg00(lua_State *tolua_S)
Definition tolua_server_gen.c:259
tolua_server_Nation_Type_trait_min00
static int tolua_server_Nation_Type_trait_min00(lua_State *tolua_S)
Definition tolua_server_gen.c:1732
tolua_server_edit_remove_city00
static int tolua_server_edit_remove_city00(lua_State *tolua_S)
Definition tolua_server_gen.c:563
tolua_bnd_takeownership
int tolua_bnd_takeownership(lua_State *L)
tolua_server_edit_add_player_history00
static int tolua_server_edit_add_player_history00(lua_State *tolua_S)
Definition tolua_server_gen.c:1542
tolua_server_server_setting_get00
static int tolua_server_server_setting_get00(lua_State *tolua_S)
Definition tolua_server_gen.c:165
tolua_server_edit_remove_extra00
static int tolua_server_edit_remove_extra00(lua_State *tolua_S)
Definition tolua_server_gen.c:768
tolua_server_edit_create_city00
static int tolua_server_edit_create_city00(lua_State *tolua_S)
Definition tolua_server_gen.c:531
tolua_server_edit_create_player00
static int tolua_server_edit_create_player00(lua_State *tolua_S)
Definition tolua_server_gen.c:885
tolua_server_server_save00
static int tolua_server_server_save00(lua_State *tolua_S)
Definition tolua_server_gen.c:53
tolua_server_Player_trait_current_mod00
static int tolua_server_Player_trait_current_mod00(lua_State *tolua_S)
Definition tolua_server_gen.c:1688
game_server_upgrade_veteran_loss
#define game_server_upgrade_veteran_loss
Definition tolua_server_gen.c:34
tolua_server_edit_unleash_barbarians00
static int tolua_server_edit_unleash_barbarians00(lua_State *tolua_S)
Definition tolua_server_gen.c:1014
tolua_server_edit_tile_set_label00
static int tolua_server_edit_tile_set_label00(lua_State *tolua_S)
Definition tolua_server_gen.c:797
tolua_server_edit_change_gold00
static int tolua_server_edit_change_gold00(lua_State *tolua_S)
Definition tolua_server_gen.c:917
tolua_server_edit_perform_action02
static int tolua_server_edit_perform_action02(lua_State *tolua_S)
Definition tolua_server_gen.c:1376
tolua_server_Nation_Type_trait_default00
static int tolua_server_Nation_Type_trait_default00(lua_State *tolua_S)
Definition tolua_server_gen.c:1792
tolua_server_edit_add_city_history00
static int tolua_server_edit_add_city_history00(lua_State *tolua_S)
Definition tolua_server_gen.c:1513
tolua_get_game_game_server_upgrade_veteran_loss
static int tolua_get_game_game_server_upgrade_veteran_loss(lua_State *tolua_S)
Definition tolua_server_gen.c:1725
tolua_server_edit_create_extra00
static int tolua_server_edit_create_extra00(lua_State *tolua_S)
Definition tolua_server_gen.c:679
tolua_server_edit_movement_disallow00
static int tolua_server_edit_movement_disallow00(lua_State *tolua_S)
Definition tolua_server_gen.c:1261
tolua_server_edit_create_unit_full00
static int tolua_server_edit_create_unit_full00(lua_State *tolua_S)
Definition tolua_server_gen.c:361
tolua_server_edit_create_road00
static int tolua_server_edit_create_road00(lua_State *tolua_S)
Definition tolua_server_gen.c:739
tolua_server_edit_unit_teleport00
static int tolua_server_edit_unit_teleport00(lua_State *tolua_S)
Definition tolua_server_gen.c:403
tolua_server_edit_perform_action00
static int tolua_server_edit_perform_action00(lua_State *tolua_S)
Definition tolua_server_gen.c:1315
tolua_server_edit_perform_action05
static int tolua_server_edit_perform_action05(lua_State *tolua_S)
Definition tolua_server_gen.c:1459
game_server_autoupgrade_veteran_loss
#define game_server_autoupgrade_veteran_loss
Definition tolua_server_gen.c:33
tolua_server_Player_trait_base00
static int tolua_server_Player_trait_base00(lua_State *tolua_S)
Definition tolua_server_gen.c:1658
tolua_server_edit_tile_hide00
static int tolua_server_edit_tile_hide00(lua_State *tolua_S)
Definition tolua_server_gen.c:855
tolua_server_edit_give_bulbs00
static int tolua_server_edit_give_bulbs00(lua_State *tolua_S)
Definition tolua_server_gen.c:1571
tolua_server_edit_trait_mod00
static int tolua_server_edit_trait_mod00(lua_State *tolua_S)
Definition tolua_server_gen.c:982
tolua_server_notify_event_msg00
static int tolua_server_notify_event_msg00(lua_State *tolua_S)
Definition tolua_server_gen.c:290
tolua_server_edit_remove_building00
static int tolua_server_edit_remove_building00(lua_State *tolua_S)
Definition tolua_server_gen.c:619
tolua_server_edit_civil_war00
static int tolua_server_edit_civil_war00(lua_State *tolua_S)
Definition tolua_server_gen.c:1104
luaopen_server
LUALIB_API int luaopen_server(lua_State *tolua_S)
Definition tolua_server_gen.c:1884
tolua_server_edit_movement_allow00
static int tolua_server_edit_movement_allow00(lua_State *tolua_S)
Definition tolua_server_gen.c:1288
tolua_server_Player_trait00
static int tolua_server_Player_trait00(lua_State *tolua_S)
Definition tolua_server_gen.c:1628
tolua_server_edit_create_base00
static int tolua_server_edit_create_base00(lua_State *tolua_S)
Definition tolua_server_gen.c:708
tolua_server_Unit_upgrade00
static int tolua_server_Unit_upgrade00(lua_State *tolua_S)
Definition tolua_server_gen.c:1822
tolua_server_edit_unit_move00
static int tolua_server_edit_unit_move00(lua_State *tolua_S)
Definition tolua_server_gen.c:1190
tolua_server_edit_unit_turn00
static int tolua_server_edit_unit_turn00(lua_State *tolua_S)
Definition tolua_server_gen.c:1134