Freeciv-3.3: /fast/freeciv/nightly/main/server/scripting/tolua_server_gen.c Source File

Freeciv-3.3

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