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 */
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"
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 */
40{
41 tolua_usertype(tolua_S,"Terrain");
42 tolua_usertype(tolua_S,"Nation_Type");
43 tolua_usertype(tolua_S,"Tile");
44 tolua_usertype(tolua_S,"Action");
45 tolua_usertype(tolua_S,"Direction");
46 tolua_usertype(tolua_S,"Building_Type");
47 tolua_usertype(tolua_S,"Tech_Type");
48 tolua_usertype(tolua_S,"Player");
49 tolua_usertype(tolua_S,"City");
50 tolua_usertype(tolua_S,"Specialist");
51 tolua_usertype(tolua_S,"Counter");
52 tolua_usertype(tolua_S,"Unit");
53 tolua_usertype(tolua_S,"Unit_Type");
54}
55
56/* function: api_server_save */
58{
59#ifndef TOLUA_RELEASE
61 if (
64 )
65 goto tolua_lerror;
66 else
67#endif
68 {
70 const char* filename = ((const char*) tolua_tostring(tolua_S,1,0));
71 {
72 bool tolua_ret = (bool) api_server_save(L,filename);
74 }
75 }
76 return 1;
77#ifndef TOLUA_RELEASE
79 tolua_error(tolua_S,"#ferror in function 'save'.",&tolua_err);
80 return 0;
81#endif
82}
83
84/* function: api_server_was_started */
86{
87#ifndef TOLUA_RELEASE
89 if (
91 )
92 goto tolua_lerror;
93 else
94#endif
95 {
97 {
100 }
101 }
102 return 1;
103#ifndef TOLUA_RELEASE
105 tolua_error(tolua_S,"#ferror in function 'started'.",&tolua_err);
106 return 0;
107#endif
108}
109
110/* function: api_server_player_civilization_score */
112{
113#ifndef TOLUA_RELEASE
115 if (
116 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
118 )
119 goto tolua_lerror;
120 else
121#endif
122 {
124 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
125 {
128 }
129 }
130 return 1;
131#ifndef TOLUA_RELEASE
133 tolua_error(tolua_S,"#ferror in function 'civilization_score'.",&tolua_err);
134 return 0;
135#endif
136}
137
138/* function: api_play_music */
140{
141#ifndef TOLUA_RELEASE
143 if (
144 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
147 )
148 goto tolua_lerror;
149 else
150#endif
151 {
153 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
154 const char* tag = ((const char*) tolua_tostring(tolua_S,2,0));
155 {
156 bool tolua_ret = (bool) api_play_music(L,pplayer,tag);
158 }
159 }
160 return 1;
161#ifndef TOLUA_RELEASE
163 tolua_error(tolua_S,"#ferror in function 'play_music'.",&tolua_err);
164 return 0;
165#endif
166}
167
168/* function: api_popup_image */
170{
171#ifndef TOLUA_RELEASE
173 if (
174 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
177 )
178 goto tolua_lerror;
179 else
180#endif
181 {
183 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
184 const char* tag = ((const char*) tolua_tostring(tolua_S,2,0));
185 {
186 bool tolua_ret = (bool) api_popup_image(L,pplayer,tag);
188 }
189 }
190 return 1;
191#ifndef TOLUA_RELEASE
193 tolua_error(tolua_S,"#ferror in function 'popup_image'.",&tolua_err);
194 return 0;
195#endif
196}
197
198/* function: api_server_setting_get */
200{
201#ifndef TOLUA_RELEASE
203 if (
206 )
207 goto tolua_lerror;
208 else
209#endif
210 {
212 const char* setting_name = ((const char*) tolua_tostring(tolua_S,1,0));
213 {
214 const char* tolua_ret = (const char*) api_server_setting_get(L,setting_name);
215 tolua_pushstring(tolua_S,(const char*)tolua_ret);
216 }
217 }
218 return 1;
219#ifndef TOLUA_RELEASE
221 tolua_error(tolua_S,"#ferror in function 'get'.",&tolua_err);
222 return 0;
223#endif
224}
225
226/* function: api_counter_increase */
228{
229#ifndef TOLUA_RELEASE
231 if (
232 !tolua_isusertype(tolua_S,1,"Counter",0,&tolua_err) ||
233 !tolua_isusertype(tolua_S,2,"City",0,&tolua_err) ||
235 )
236 goto tolua_lerror;
237 else
238#endif
239 {
243 {
245 }
246 }
247 return 0;
248#ifndef TOLUA_RELEASE
250 tolua_error(tolua_S,"#ferror in function 'increase'.",&tolua_err);
251 return 0;
252#endif
253}
254
255/* function: api_counter_zero */
257{
258#ifndef TOLUA_RELEASE
260 if (
261 !tolua_isusertype(tolua_S,1,"Counter",0,&tolua_err) ||
262 !tolua_isusertype(tolua_S,2,"City",0,&tolua_err) ||
264 )
265 goto tolua_lerror;
266 else
267#endif
268 {
272 {
274 }
275 }
276 return 0;
277#ifndef TOLUA_RELEASE
279 tolua_error(tolua_S,"#ferror in function 'zero'.",&tolua_err);
280 return 0;
281#endif
282}
283
284/* function: api_notify_embassies_msg */
286{
287#ifndef TOLUA_RELEASE
289 if (
290 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
291 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
295 )
296 goto tolua_lerror;
297 else
298#endif
299 {
301 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
302 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,2,0));
303 int event = ((int) tolua_tonumber(tolua_S,3,0));
304 const char* message = ((const char*) tolua_tostring(tolua_S,4,0));
305 {
307 }
308 }
309 return 0;
310#ifndef TOLUA_RELEASE
312 tolua_error(tolua_S,"#ferror in function 'embassies_msg'.",&tolua_err);
313 return 0;
314#endif
315}
316
317/* function: api_notify_research_msg */
319{
320#ifndef TOLUA_RELEASE
322 if (
323 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
328 )
329 goto tolua_lerror;
330 else
331#endif
332 {
334 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
335 bool include_plr = ((bool) tolua_toboolean(tolua_S,2,0));
336 int event = ((int) tolua_tonumber(tolua_S,3,0));
337 const char* message = ((const char*) tolua_tostring(tolua_S,4,0));
338 {
340 }
341 }
342 return 0;
343#ifndef TOLUA_RELEASE
345 tolua_error(tolua_S,"#ferror in function 'research_msg'.",&tolua_err);
346 return 0;
347#endif
348}
349
350/* function: api_notify_research_embassies_msg */
352{
353#ifndef TOLUA_RELEASE
355 if (
356 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
360 )
361 goto tolua_lerror;
362 else
363#endif
364 {
366 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
367 int event = ((int) tolua_tonumber(tolua_S,2,0));
368 const char* message = ((const char*) tolua_tostring(tolua_S,3,0));
369 {
371 }
372 }
373 return 0;
374#ifndef TOLUA_RELEASE
376 tolua_error(tolua_S,"#ferror in function 'research_embassies_msg'.",&tolua_err);
377 return 0;
378#endif
379}
380
381/* function: api_notify_event_msg */
383{
384#ifndef TOLUA_RELEASE
386 if (
387 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
388 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
392 )
393 goto tolua_lerror;
394 else
395#endif
396 {
398 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
399 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,2,0));
400 int event = ((int) tolua_tonumber(tolua_S,3,0));
401 const char* message = ((const char*) tolua_tostring(tolua_S,4,0));
402 {
403 api_notify_event_msg(L,pplayer,ptile,event,message);
404 }
405 }
406 return 0;
407#ifndef TOLUA_RELEASE
409 tolua_error(tolua_S,"#ferror in function 'event_msg'.",&tolua_err);
410 return 0;
411#endif
412}
413
414/* function: api_edit_create_unit */
416{
417#ifndef TOLUA_RELEASE
419 if (
420 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
421 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
422 !tolua_isusertype(tolua_S,3,"Unit_Type",0,&tolua_err) ||
424 !tolua_isusertype(tolua_S,5,"City",0,&tolua_err) ||
427 )
428 goto tolua_lerror;
429 else
430#endif
431 {
433 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
434 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,2,0));
437 City* homecity = ((City*) tolua_tousertype(tolua_S,5,0));
438 int moves_left = ((int) tolua_tonumber(tolua_S,6,0));
439 {
440 Unit* tolua_ret = (Unit*) api_edit_create_unit(L,pplayer,ptile,ptype,veteran_level,homecity,moves_left);
441 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Unit");
442 }
443 }
444 return 1;
445#ifndef TOLUA_RELEASE
447 tolua_error(tolua_S,"#ferror in function 'create_unit'.",&tolua_err);
448 return 0;
449#endif
450}
451
452/* function: api_edit_create_unit_full */
454{
455#ifndef TOLUA_RELEASE
457 if (
458 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
459 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
460 !tolua_isusertype(tolua_S,3,"Unit_Type",0,&tolua_err) ||
462 !tolua_isusertype(tolua_S,5,"City",0,&tolua_err) ||
465 !tolua_isusertype(tolua_S,8,"Unit",0,&tolua_err) ||
467 )
468 goto tolua_lerror;
469 else
470#endif
471 {
473 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
474 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,2,0));
477 City* homecity = ((City*) tolua_tousertype(tolua_S,5,0));
478 int moves_left = ((int) tolua_tonumber(tolua_S,6,0));
479 int hp_left = ((int) tolua_tonumber(tolua_S,7,0));
481 {
482 Unit* tolua_ret = (Unit*) api_edit_create_unit_full(L,pplayer,ptile,ptype,veteran_level,homecity,moves_left,hp_left,ptransport);
483 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Unit");
484 }
485 }
486 return 1;
487#ifndef TOLUA_RELEASE
489 tolua_error(tolua_S,"#ferror in function 'create_unit_full'.",&tolua_err);
490 return 0;
491#endif
492}
493
494/* function: api_edit_unit_teleport */
496{
497#ifndef TOLUA_RELEASE
499 if (
500 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
501 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
502 !tolua_isusertype(tolua_S,3,"Unit",0,&tolua_err) ||
509 )
510 goto tolua_lerror;
511 else
512#endif
513 {
516 Tile* dest = ((Tile*) tolua_tousertype(tolua_S,2,0));
521 bool enter_hut = ((bool) tolua_toboolean(tolua_S,7,0));
523 {
526 }
527 }
528 return 1;
529#ifndef TOLUA_RELEASE
531 tolua_error(tolua_S,"#ferror in function 'unit_teleport'.",&tolua_err);
532 return 0;
533#endif
534}
535
536/* function: api_edit_unit_kill */
538{
539#ifndef TOLUA_RELEASE
541 if (
542 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
544 !tolua_isusertype(tolua_S,3,"Player",0,&tolua_err) ||
546 )
547 goto tolua_lerror;
548 else
549#endif
550 {
553 const char* reason = ((const char*) tolua_tostring(tolua_S,2,0));
555 {
557 }
558 }
559 return 0;
560#ifndef TOLUA_RELEASE
562 tolua_error(tolua_S,"#ferror in function 'unit_kill'.",&tolua_err);
563 return 0;
564#endif
565}
566
567/* function: api_edit_unit_hitpoints */
569{
570#ifndef TOLUA_RELEASE
572 if (
573 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
576 !tolua_isusertype(tolua_S,4,"Player",0,&tolua_err) ||
578 )
579 goto tolua_lerror;
580 else
581#endif
582 {
585 int change = ((int) tolua_tonumber(tolua_S,2,0));
586 const char* reason = ((const char*) tolua_tostring(tolua_S,3,0));
588 {
591 }
592 }
593 return 1;
594#ifndef TOLUA_RELEASE
596 tolua_error(tolua_S,"#ferror in function 'unit_add_hitpoints'.",&tolua_err);
597 return 0;
598#endif
599}
600
601/* function: api_edit_unit_movepoints */
603{
604#ifndef TOLUA_RELEASE
606 if (
607 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
610 )
611 goto tolua_lerror;
612 else
613#endif
614 {
617 int change = ((int) tolua_tonumber(tolua_S,2,0));
618 {
620 }
621 }
622 return 0;
623#ifndef TOLUA_RELEASE
625 tolua_error(tolua_S,"#ferror in function 'unit_add_movepoints'.",&tolua_err);
626 return 0;
627#endif
628}
629
630/* function: api_edit_change_terrain */
632{
633#ifndef TOLUA_RELEASE
635 if (
636 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
637 !tolua_isusertype(tolua_S,2,"Terrain",0,&tolua_err) ||
639 )
640 goto tolua_lerror;
641 else
642#endif
643 {
645 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
647 {
650 }
651 }
652 return 1;
653#ifndef TOLUA_RELEASE
655 tolua_error(tolua_S,"#ferror in function 'change_terrain'.",&tolua_err);
656 return 0;
657#endif
658}
659
660/* function: api_edit_create_city */
662{
663#ifndef TOLUA_RELEASE
665 if (
666 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
667 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
669 !tolua_isusertype(tolua_S,4,"Player",0,&tolua_err) ||
671 )
672 goto tolua_lerror;
673 else
674#endif
675 {
677 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
678 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,2,0));
679 const char* name = ((const char*) tolua_tostring(tolua_S,3,0));
680 Player* nationality = ((Player*) tolua_tousertype(tolua_S,4,0));
681 {
682 bool tolua_ret = (bool) api_edit_create_city(L,pplayer,ptile,name,nationality);
684 }
685 }
686 return 1;
687#ifndef TOLUA_RELEASE
689 tolua_error(tolua_S,"#ferror in function 'city_create'.",&tolua_err);
690 return 0;
691#endif
692}
693
694/* function: api_edit_transfer_city */
696{
697#ifndef TOLUA_RELEASE
699 if (
700 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
701 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
703 )
704 goto tolua_lerror;
705 else
706#endif
707 {
711 {
714 }
715 }
716 return 1;
717#ifndef TOLUA_RELEASE
719 tolua_error(tolua_S,"#ferror in function 'transfer_city'.",&tolua_err);
720 return 0;
721#endif
722}
723
724/* function: api_edit_remove_city */
726{
727#ifndef TOLUA_RELEASE
729 if (
730 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
732 )
733 goto tolua_lerror;
734 else
735#endif
736 {
739 {
741 }
742 }
743 return 0;
744#ifndef TOLUA_RELEASE
746 tolua_error(tolua_S,"#ferror in function 'remove_city'.",&tolua_err);
747 return 0;
748#endif
749}
750
751/* function: api_edit_create_building */
753{
754#ifndef TOLUA_RELEASE
756 if (
757 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
758 !tolua_isusertype(tolua_S,2,"Building_Type",0,&tolua_err) ||
760 )
761 goto tolua_lerror;
762 else
763#endif
764 {
768 {
770 }
771 }
772 return 0;
773#ifndef TOLUA_RELEASE
775 tolua_error(tolua_S,"#ferror in function 'create_building'.",&tolua_err);
776 return 0;
777#endif
778}
779
780/* function: api_edit_remove_building */
782{
783#ifndef TOLUA_RELEASE
785 if (
786 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
787 !tolua_isusertype(tolua_S,2,"Building_Type",0,&tolua_err) ||
789 )
790 goto tolua_lerror;
791 else
792#endif
793 {
797 {
799 }
800 }
801 return 0;
802#ifndef TOLUA_RELEASE
804 tolua_error(tolua_S,"#ferror in function 'remove_building'.",&tolua_err);
805 return 0;
806#endif
807}
808
809/* function: api_edit_city_reduce_specialists */
811{
812#ifndef TOLUA_RELEASE
814 if (
815 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
816 !tolua_isusertype(tolua_S,2,"Specialist",0,&tolua_err) ||
819 )
820 goto tolua_lerror;
821 else
822#endif
823 {
827 int amount = ((int) tolua_tonumber(tolua_S,3,1));
828 {
831 }
832 }
833 return 1;
834#ifndef TOLUA_RELEASE
836 tolua_error(tolua_S,"#ferror in function 'reduce_specialists'.",&tolua_err);
837 return 0;
838#endif
839}
840
841/* function: api_edit_create_owned_extra */
843{
844#ifndef TOLUA_RELEASE
846 if (
847 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
849 !tolua_isusertype(tolua_S,3,"Player",0,&tolua_err) ||
851 )
852 goto tolua_lerror;
853 else
854#endif
855 {
857 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
858 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
859 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,3,0));
860 {
861 api_edit_create_owned_extra(L,ptile,name,pplayer);
862 }
863 }
864 return 0;
865#ifndef TOLUA_RELEASE
867 tolua_error(tolua_S,"#ferror in function 'create_owned_extra'.",&tolua_err);
868 return 0;
869#endif
870}
871
872/* function: api_edit_create_extra */
874{
875#ifndef TOLUA_RELEASE
877 if (
878 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
881 )
882 goto tolua_lerror;
883 else
884#endif
885 {
887 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
888 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
889 {
891 }
892 }
893 return 0;
894#ifndef TOLUA_RELEASE
896 tolua_error(tolua_S,"#ferror in function 'create_extra'.",&tolua_err);
897 return 0;
898#endif
899}
900
901/* function: api_edit_create_base */
903{
904#ifndef TOLUA_RELEASE
906 if (
907 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
909 !tolua_isusertype(tolua_S,3,"Player",0,&tolua_err) ||
911 )
912 goto tolua_lerror;
913 else
914#endif
915 {
917 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
918 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
919 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,3,0));
920 {
921 api_edit_create_base(L,ptile,name,pplayer);
922 }
923 }
924 return 0;
925#ifndef TOLUA_RELEASE
927 tolua_error(tolua_S,"#ferror in function 'create_base'.",&tolua_err);
928 return 0;
929#endif
930}
931
932/* function: api_edit_create_road */
934{
935#ifndef TOLUA_RELEASE
937 if (
938 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
941 )
942 goto tolua_lerror;
943 else
944#endif
945 {
947 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
948 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
949 {
951 }
952 }
953 return 0;
954#ifndef TOLUA_RELEASE
956 tolua_error(tolua_S,"#ferror in function 'create_road'.",&tolua_err);
957 return 0;
958#endif
959}
960
961/* function: api_edit_remove_extra */
963{
964#ifndef TOLUA_RELEASE
966 if (
967 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
970 )
971 goto tolua_lerror;
972 else
973#endif
974 {
976 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
977 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
978 {
980 }
981 }
982 return 0;
983#ifndef TOLUA_RELEASE
985 tolua_error(tolua_S,"#ferror in function 'remove_extra'.",&tolua_err);
986 return 0;
987#endif
988}
989
990/* function: api_edit_tile_set_label */
992{
993#ifndef TOLUA_RELEASE
995 if (
996 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
999 )
1000 goto tolua_lerror;
1001 else
1002#endif
1003 {
1004 lua_State* L = tolua_S;
1005 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
1006 const char* label = ((const char*) tolua_tostring(tolua_S,2,0));
1007 {
1008 api_edit_tile_set_label(L,ptile,label);
1009 }
1010 }
1011 return 0;
1012#ifndef TOLUA_RELEASE
1014 tolua_error(tolua_S,"#ferror in function 'tile_set_label'.",&tolua_err);
1015 return 0;
1016#endif
1017}
1018
1019/* function: api_edit_tile_show */
1021{
1022#ifndef TOLUA_RELEASE
1024 if (
1025 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
1026 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
1028 )
1029 goto tolua_lerror;
1030 else
1031#endif
1032 {
1033 lua_State* L = tolua_S;
1034 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
1035 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,2,0));
1036 {
1037 api_edit_tile_show(L,ptile,pplayer);
1038 }
1039 }
1040 return 0;
1041#ifndef TOLUA_RELEASE
1043 tolua_error(tolua_S,"#ferror in function 'tile_show'.",&tolua_err);
1044 return 0;
1045#endif
1046}
1047
1048/* function: api_edit_tile_hide */
1050{
1051#ifndef TOLUA_RELEASE
1053 if (
1054 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
1055 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
1057 )
1058 goto tolua_lerror;
1059 else
1060#endif
1061 {
1062 lua_State* L = tolua_S;
1063 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
1064 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,2,0));
1065 {
1066 bool tolua_ret = (bool) api_edit_tile_hide(L,ptile,pplayer);
1068 }
1069 }
1070 return 1;
1071#ifndef TOLUA_RELEASE
1073 tolua_error(tolua_S,"#ferror in function 'tile_hide'.",&tolua_err);
1074 return 0;
1075#endif
1076}
1077
1078/* function: api_edit_create_player */
1080{
1081#ifndef TOLUA_RELEASE
1083 if (
1085 !tolua_isusertype(tolua_S,2,"Nation_Type",0,&tolua_err) ||
1088 )
1089 goto tolua_lerror;
1090 else
1091#endif
1092 {
1093 lua_State* L = tolua_S;
1094 const char* username = ((const char*) tolua_tostring(tolua_S,1,0));
1095 Nation_Type* nation = ((Nation_Type*) tolua_tousertype(tolua_S,2,0));
1096 const char* ai = ((const char*) tolua_tostring(tolua_S,3,0));
1097 {
1098 Player* tolua_ret = (Player*) api_edit_create_player(L,username,nation,ai);
1099 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Player");
1100 }
1101 }
1102 return 1;
1103#ifndef TOLUA_RELEASE
1105 tolua_error(tolua_S,"#ferror in function 'create_player'.",&tolua_err);
1106 return 0;
1107#endif
1108}
1109
1110/* function: api_edit_change_gold */
1112{
1113#ifndef TOLUA_RELEASE
1115 if (
1116 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1119 )
1120 goto tolua_lerror;
1121 else
1122#endif
1123 {
1124 lua_State* L = tolua_S;
1125 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1126 int amount = ((int) tolua_tonumber(tolua_S,2,0));
1127 {
1128 api_edit_change_gold(L,pplayer,amount);
1129 }
1130 }
1131 return 0;
1132#ifndef TOLUA_RELEASE
1134 tolua_error(tolua_S,"#ferror in function 'change_gold'.",&tolua_err);
1135 return 0;
1136#endif
1137}
1138
1139/* function: api_edit_change_infrapoints */
1141{
1142#ifndef TOLUA_RELEASE
1144 if (
1145 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1148 )
1149 goto tolua_lerror;
1150 else
1151#endif
1152 {
1153 lua_State* L = tolua_S;
1154 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1155 int amount = ((int) tolua_tonumber(tolua_S,2,0));
1156 {
1158 }
1159 }
1160 return 0;
1161#ifndef TOLUA_RELEASE
1163 tolua_error(tolua_S,"#ferror in function 'change_infrapoints'.",&tolua_err);
1164 return 0;
1165#endif
1166}
1167
1168/* function: api_edit_give_technology */
1170{
1171#ifndef TOLUA_RELEASE
1173 if (
1174 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1175 !tolua_isusertype(tolua_S,2,"Tech_Type",0,&tolua_err) ||
1180 )
1181 goto tolua_lerror;
1182 else
1183#endif
1184 {
1185 lua_State* L = tolua_S;
1186 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1188 int cost = ((int) tolua_tonumber(tolua_S,3,0));
1189 bool notify = ((bool) tolua_toboolean(tolua_S,4,0));
1190 const char* reason = ((const char*) tolua_tostring(tolua_S,5,0));
1191 {
1193 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Tech_Type");
1194 }
1195 }
1196 return 1;
1197#ifndef TOLUA_RELEASE
1199 tolua_error(tolua_S,"#ferror in function 'give_tech'.",&tolua_err);
1200 return 0;
1201#endif
1202}
1203
1204/* function: api_edit_trait_mod_set */
1206{
1207#ifndef TOLUA_RELEASE
1209 if (
1210 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1214 )
1215 goto tolua_lerror;
1216 else
1217#endif
1218 {
1219 lua_State* L = tolua_S;
1220 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1221 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
1222 const int mod = ((const int) tolua_tonumber(tolua_S,3,0));
1223 {
1224 bool tolua_ret = (bool) api_edit_trait_mod_set(L,pplayer,tname,mod);
1226 }
1227 }
1228 return 1;
1229#ifndef TOLUA_RELEASE
1231 tolua_error(tolua_S,"#ferror in function 'trait_mod'.",&tolua_err);
1232 return 0;
1233#endif
1234}
1235
1236/* function: api_edit_unleash_barbarians */
1238{
1239#ifndef TOLUA_RELEASE
1241 if (
1242 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
1244 )
1245 goto tolua_lerror;
1246 else
1247#endif
1248 {
1249 lua_State* L = tolua_S;
1250 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
1251 {
1254 }
1255 }
1256 return 1;
1257#ifndef TOLUA_RELEASE
1259 tolua_error(tolua_S,"#ferror in function 'unleash_barbarians'.",&tolua_err);
1260 return 0;
1261#endif
1262}
1263
1264/* function: api_edit_place_partisans */
1266{
1267#ifndef TOLUA_RELEASE
1269 if (
1270 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
1271 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
1275 )
1276 goto tolua_lerror;
1277 else
1278#endif
1279 {
1280 lua_State* L = tolua_S;
1281 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
1282 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,2,0));
1283 int count = ((int) tolua_tonumber(tolua_S,3,0));
1284 int sq_radius = ((int) tolua_tonumber(tolua_S,4,0));
1285 {
1286 api_edit_place_partisans(L,ptile,pplayer,count,sq_radius);
1287 }
1288 }
1289 return 0;
1290#ifndef TOLUA_RELEASE
1292 tolua_error(tolua_S,"#ferror in function 'place_partisans'.",&tolua_err);
1293 return 0;
1294#endif
1295}
1296
1297/* function: api_edit_climate_change */
1299{
1300#ifndef TOLUA_RELEASE
1302 if (
1306 )
1307 goto tolua_lerror;
1308 else
1309#endif
1310 {
1311 lua_State* L = tolua_S;
1313 int effect = ((int) tolua_tonumber(tolua_S,2,0));
1314 {
1316 }
1317 }
1318 return 0;
1319#ifndef TOLUA_RELEASE
1321 tolua_error(tolua_S,"#ferror in function 'climate_change'.",&tolua_err);
1322 return 0;
1323#endif
1324}
1325
1326/* function: api_edit_civil_war */
1328{
1329#ifndef TOLUA_RELEASE
1331 if (
1332 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1335 )
1336 goto tolua_lerror;
1337 else
1338#endif
1339 {
1340 lua_State* L = tolua_S;
1341 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1342 int probability = ((int) tolua_tonumber(tolua_S,2,0));
1343 {
1345 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Player");
1346 }
1347 }
1348 return 1;
1349#ifndef TOLUA_RELEASE
1351 tolua_error(tolua_S,"#ferror in function 'civil_war'.",&tolua_err);
1352 return 0;
1353#endif
1354}
1355
1356/* function: api_edit_unit_turn */
1358{
1359#ifndef TOLUA_RELEASE
1361 if (
1362 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1363 !tolua_isusertype(tolua_S,2,"Direction",0,&tolua_err) ||
1365 )
1366 goto tolua_lerror;
1367 else
1368#endif
1369 {
1370 lua_State* L = tolua_S;
1371 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1373 {
1375 }
1376 }
1377 return 0;
1378#ifndef TOLUA_RELEASE
1380 tolua_error(tolua_S,"#ferror in function 'unit_turn'.",&tolua_err);
1381 return 0;
1382#endif
1383}
1384
1385/* function: api_edit_player_victory */
1387{
1388#ifndef TOLUA_RELEASE
1390 if (
1391 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1393 )
1394 goto tolua_lerror;
1395 else
1396#endif
1397 {
1398 lua_State* L = tolua_S;
1400 {
1402 }
1403 }
1404 return 0;
1405#ifndef TOLUA_RELEASE
1407 tolua_error(tolua_S,"#ferror in function 'player_victory'.",&tolua_err);
1408 return 0;
1409#endif
1410}
1411
1412/* function: api_edit_unit_move */
1414{
1415#ifndef TOLUA_RELEASE
1417 if (
1418 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1419 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
1421 !tolua_isusertype(tolua_S,4,"Unit",0,&tolua_err) ||
1428 )
1429 goto tolua_lerror;
1430 else
1431#endif
1432 {
1433 lua_State* L = tolua_S;
1434 Unit* self = ((Unit*) tolua_tousertype(tolua_S,1,0));
1436 int movecost = ((int) tolua_tonumber(tolua_S,3,0));
1439 bool conquer_city = ((bool) tolua_toboolean(tolua_S,6,0));
1440 bool conquer_extra = ((bool) tolua_toboolean(tolua_S,7,0));
1441 bool enter_hut = ((bool) tolua_toboolean(tolua_S,8,0));
1442 bool frighten_hut = ((bool) tolua_toboolean(tolua_S,9,0));
1443 {
1446 }
1447 }
1448 return 1;
1449#ifndef TOLUA_RELEASE
1451 tolua_error(tolua_S,"#ferror in function 'unit_move'.",&tolua_err);
1452 return 0;
1453#endif
1454}
1455
1456/* function: api_edit_unit_moving_disallow */
1458{
1459#ifndef TOLUA_RELEASE
1461 if (
1462 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1464 )
1465 goto tolua_lerror;
1466 else
1467#endif
1468 {
1469 lua_State* L = tolua_S;
1470 Unit* self = ((Unit*) tolua_tousertype(tolua_S,1,0));
1471 {
1473 }
1474 }
1475 return 0;
1476#ifndef TOLUA_RELEASE
1478 tolua_error(tolua_S,"#ferror in function 'movement_disallow'.",&tolua_err);
1479 return 0;
1480#endif
1481}
1482
1483/* function: api_edit_unit_moving_allow */
1485{
1486#ifndef TOLUA_RELEASE
1488 if (
1489 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1491 )
1492 goto tolua_lerror;
1493 else
1494#endif
1495 {
1496 lua_State* L = tolua_S;
1497 Unit* self = ((Unit*) tolua_tousertype(tolua_S,1,0));
1498 {
1500 }
1501 }
1502 return 0;
1503#ifndef TOLUA_RELEASE
1505 tolua_error(tolua_S,"#ferror in function 'movement_allow'.",&tolua_err);
1506 return 0;
1507#endif
1508}
1509
1510/* function: api_edit_perform_action_unit_vs_city */
1512{
1513#ifndef TOLUA_RELEASE
1515 if (
1516 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1517 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1518 !tolua_isusertype(tolua_S,3,"City",0,&tolua_err) ||
1520 )
1521 goto tolua_lerror;
1522 else
1523#endif
1524 {
1525 lua_State* L = tolua_S;
1526 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1528 City* tgt = ((City*) tolua_tousertype(tolua_S,3,0));
1529 {
1532 }
1533 }
1534 return 1;
1535#ifndef TOLUA_RELEASE
1537 tolua_error(tolua_S,"#ferror in function 'perform_action'.",&tolua_err);
1538 return 0;
1539#endif
1540}
1541
1542/* function: api_edit_perform_action_unit_vs_city_impr */
1544{
1546 if (
1547 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1548 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1549 !tolua_isusertype(tolua_S,3,"City",0,&tolua_err) ||
1550 !tolua_isusertype(tolua_S,4,"Building_Type",0,&tolua_err) ||
1552 )
1553 goto tolua_lerror;
1554 else
1555 {
1556 lua_State* L = tolua_S;
1557 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1559 City* tgt = ((City*) tolua_tousertype(tolua_S,3,0));
1561 {
1564 }
1565 }
1566 return 1;
1569}
1570
1571/* function: api_edit_perform_action_unit_vs_city_tech */
1573{
1575 if (
1576 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1577 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1578 !tolua_isusertype(tolua_S,3,"City",0,&tolua_err) ||
1579 !tolua_isusertype(tolua_S,4,"Tech_Type",0,&tolua_err) ||
1581 )
1582 goto tolua_lerror;
1583 else
1584 {
1585 lua_State* L = tolua_S;
1586 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1588 City* tgt = ((City*) tolua_tousertype(tolua_S,3,0));
1590 {
1593 }
1594 }
1595 return 1;
1598}
1599
1600/* function: api_edit_perform_action_unit_vs_unit */
1602{
1604 if (
1605 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1606 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1607 !tolua_isusertype(tolua_S,3,"Unit",0,&tolua_err) ||
1609 )
1610 goto tolua_lerror;
1611 else
1612 {
1613 lua_State* L = tolua_S;
1614 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1616 Unit* tgt = ((Unit*) tolua_tousertype(tolua_S,3,0));
1617 {
1620 }
1621 }
1622 return 1;
1625}
1626
1627/* function: api_edit_perform_action_unit_vs_tile */
1629{
1631 if (
1632 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1633 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1634 !tolua_isusertype(tolua_S,3,"Tile",0,&tolua_err) ||
1636 )
1637 goto tolua_lerror;
1638 else
1639 {
1640 lua_State* L = tolua_S;
1641 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1643 Tile* tgt = ((Tile*) tolua_tousertype(tolua_S,3,0));
1644 {
1647 }
1648 }
1649 return 1;
1652}
1653
1654/* function: api_edit_perform_action_unit_vs_tile_extra */
1656{
1658 if (
1659 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1660 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1661 !tolua_isusertype(tolua_S,3,"Tile",0,&tolua_err) ||
1664 )
1665 goto tolua_lerror;
1666 else
1667 {
1668 lua_State* L = tolua_S;
1669 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1671 Tile* tgt = ((Tile*) tolua_tousertype(tolua_S,3,0));
1672 const char* sub_tgt = ((const char*) tolua_tostring(tolua_S,4,0));
1673 {
1676 }
1677 }
1678 return 1;
1681}
1682
1683/* function: api_edit_perform_action_unit_vs_self */
1685{
1687 if (
1688 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1689 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1691 )
1692 goto tolua_lerror;
1693 else
1694 {
1695 lua_State* L = tolua_S;
1696 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1698 {
1701 }
1702 }
1703 return 1;
1706}
1707
1708/* function: api_edit_city_add_history */
1710{
1711#ifndef TOLUA_RELEASE
1713 if (
1714 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
1717 )
1718 goto tolua_lerror;
1719 else
1720#endif
1721 {
1722 lua_State* L = tolua_S;
1723 City* self = ((City*) tolua_tousertype(tolua_S,1,0));
1724 int amount = ((int) tolua_tonumber(tolua_S,2,0));
1725 {
1727 }
1728 }
1729 return 0;
1730#ifndef TOLUA_RELEASE
1732 tolua_error(tolua_S,"#ferror in function 'add_city_history'.",&tolua_err);
1733 return 0;
1734#endif
1735}
1736
1737/* function: api_edit_player_add_history */
1739{
1740#ifndef TOLUA_RELEASE
1742 if (
1743 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1746 )
1747 goto tolua_lerror;
1748 else
1749#endif
1750 {
1751 lua_State* L = tolua_S;
1753 int amount = ((int) tolua_tonumber(tolua_S,2,0));
1754 {
1756 }
1757 }
1758 return 0;
1759#ifndef TOLUA_RELEASE
1761 tolua_error(tolua_S,"#ferror in function 'add_player_history'.",&tolua_err);
1762 return 0;
1763#endif
1764}
1765
1766/* function: api_edit_player_give_bulbs */
1768{
1769#ifndef TOLUA_RELEASE
1771 if (
1772 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1774 !tolua_isusertype(tolua_S,3,"Tech_Type",1,&tolua_err) ||
1776 )
1777 goto tolua_lerror;
1778 else
1779#endif
1780 {
1781 lua_State* L = tolua_S;
1783 int amount = ((int) tolua_tonumber(tolua_S,2,0));
1785 {
1787 }
1788 }
1789 return 0;
1790#ifndef TOLUA_RELEASE
1792 tolua_error(tolua_S,"#ferror in function 'give_bulbs'.",&tolua_err);
1793 return 0;
1794#endif
1795}
1796
1797/* function: api_edit_create_trade_route */
1799{
1800#ifndef TOLUA_RELEASE
1802 if (
1803 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
1804 !tolua_isusertype(tolua_S,2,"City",0,&tolua_err) ||
1806 )
1807 goto tolua_lerror;
1808 else
1809#endif
1810 {
1811 lua_State* L = tolua_S;
1812 City* from = ((City*) tolua_tousertype(tolua_S,1,0));
1813 City* to = ((City*) tolua_tousertype(tolua_S,2,0));
1814 {
1815 bool tolua_ret = (bool) api_edit_create_trade_route(L,from,to);
1817 }
1818 }
1819 return 1;
1820#ifndef TOLUA_RELEASE
1822 tolua_error(tolua_S,"#ferror in function 'create_trade_route'.",&tolua_err);
1823 return 0;
1824#endif
1825}
1826
1827/* function: api_edit_change_city_size */
1829{
1830#ifndef TOLUA_RELEASE
1832 if (
1833 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
1835 !tolua_isusertype(tolua_S,3,"Player",0,&tolua_err) ||
1837 )
1838 goto tolua_lerror;
1839 else
1840#endif
1841 {
1842 lua_State* L = tolua_S;
1843 City* pcity = ((City*) tolua_tousertype(tolua_S,1,0));
1844 int change = ((int) tolua_tonumber(tolua_S,2,0));
1845 Player* nationality = ((Player*) tolua_tousertype(tolua_S,3,0));
1846 {
1847 api_edit_change_city_size(L,pcity,change,nationality);
1848 }
1849 }
1850 return 0;
1851#ifndef TOLUA_RELEASE
1853 tolua_error(tolua_S,"#ferror in function 'change_city_size'.",&tolua_err);
1854 return 0;
1855#endif
1856}
1857
1858/* function: api_edit_change_citizen_nationality */
1860{
1861#ifndef TOLUA_RELEASE
1863 if (
1864 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
1865 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
1866 !tolua_isusertype(tolua_S,3,"Player",0,&tolua_err) ||
1869 )
1870 goto tolua_lerror;
1871 else
1872#endif
1873 {
1874 lua_State* L = tolua_S;
1875 City* pcity = ((City*) tolua_tousertype(tolua_S,1,0));
1876 Player* from = ((Player*) tolua_tousertype(tolua_S,2,0));
1877 Player* to = ((Player*) tolua_tousertype(tolua_S,3,0));
1878 int amount = ((int) tolua_tonumber(tolua_S,4,0));
1879 {
1881 }
1882 }
1883 return 0;
1884#ifndef TOLUA_RELEASE
1886 tolua_error(tolua_S,"#ferror in function 'change_citizen_nationality'.",&tolua_err);
1887 return 0;
1888#endif
1889}
1890
1891/* function: api_luadata_get_str */
1893{
1894#ifndef TOLUA_RELEASE
1896 if (
1899 )
1900 goto tolua_lerror;
1901 else
1902#endif
1903 {
1904 lua_State* L = tolua_S;
1905 const char* field = ((const char*) tolua_tostring(tolua_S,1,0));
1906 {
1907 const char* tolua_ret = (const char*) api_luadata_get_str(L,field);
1908 tolua_pushstring(tolua_S,(const char*)tolua_ret);
1909 }
1910 }
1911 return 1;
1912#ifndef TOLUA_RELEASE
1914 tolua_error(tolua_S,"#ferror in function 'get_str'.",&tolua_err);
1915 return 0;
1916#endif
1917}
1918
1919/* function: api_methods_player_free_bulbs */
1921{
1922#ifndef TOLUA_RELEASE
1924 if (
1925 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1927 )
1928 goto tolua_lerror;
1929 else
1930#endif
1931 {
1932 lua_State* L = tolua_S;
1933 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1934 {
1937 }
1938 }
1939 return 1;
1940#ifndef TOLUA_RELEASE
1942 tolua_error(tolua_S,"#ferror in function 'free_bulbs'.",&tolua_err);
1943 return 0;
1944#endif
1945}
1946
1947/* function: api_methods_player_trait */
1949{
1950#ifndef TOLUA_RELEASE
1952 if (
1953 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1956 )
1957 goto tolua_lerror;
1958 else
1959#endif
1960 {
1961 lua_State* L = tolua_S;
1962 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1963 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
1964 {
1965 int tolua_ret = (int) api_methods_player_trait(L,pplayer,tname);
1967 }
1968 }
1969 return 1;
1970#ifndef TOLUA_RELEASE
1972 tolua_error(tolua_S,"#ferror in function 'trait'.",&tolua_err);
1973 return 0;
1974#endif
1975}
1976
1977/* function: api_methods_player_trait_base */
1979{
1980#ifndef TOLUA_RELEASE
1982 if (
1983 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1986 )
1987 goto tolua_lerror;
1988 else
1989#endif
1990 {
1991 lua_State* L = tolua_S;
1992 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1993 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
1994 {
1997 }
1998 }
1999 return 1;
2000#ifndef TOLUA_RELEASE
2002 tolua_error(tolua_S,"#ferror in function 'trait_base'.",&tolua_err);
2003 return 0;
2004#endif
2005}
2006
2007/* function: api_methods_player_trait_current_mod */
2009{
2010#ifndef TOLUA_RELEASE
2012 if (
2013 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
2016 )
2017 goto tolua_lerror;
2018 else
2019#endif
2020 {
2021 lua_State* L = tolua_S;
2022 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
2023 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
2024 {
2027 }
2028 }
2029 return 1;
2030#ifndef TOLUA_RELEASE
2032 tolua_error(tolua_S,"#ferror in function 'trait_current_mod'.",&tolua_err);
2033 return 0;
2034#endif
2035}
2036
2037/* function: api_methods_player_lose */
2039{
2040#ifndef TOLUA_RELEASE
2042 if (
2043 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
2044 !tolua_isusertype(tolua_S,2,"Player",1,&tolua_err) ||
2046 )
2047 goto tolua_lerror;
2048 else
2049#endif
2050 {
2051 lua_State* L = tolua_S;
2052 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
2054 {
2056 }
2057 }
2058 return 0;
2059#ifndef TOLUA_RELEASE
2061 tolua_error(tolua_S,"#ferror in function 'lose'.",&tolua_err);
2062 return 0;
2063#endif
2064}
2065
2066/* function: api_methods_player_tech_bulbs */
2068{
2069#ifndef TOLUA_RELEASE
2071 if (
2072 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
2073 !tolua_isusertype(tolua_S,2,"Tech_Type",0,&tolua_err) ||
2075 )
2076 goto tolua_lerror;
2077 else
2078#endif
2079 {
2080 lua_State* L = tolua_S;
2081 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
2082 Tech_Type* tech = ((Tech_Type*) tolua_tousertype(tolua_S,2,0));
2083 {
2084 int tolua_ret = (int) api_methods_player_tech_bulbs(L,pplayer,tech);
2086 }
2087 }
2088 return 1;
2089#ifndef TOLUA_RELEASE
2091 tolua_error(tolua_S,"#ferror in function 'bulbs_saved'.",&tolua_err);
2092 return 0;
2093#endif
2094}
2095
2096/* function: api_methods_tag_score */
2098{
2099#ifndef TOLUA_RELEASE
2101 if (
2102 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
2105 )
2106 goto tolua_lerror;
2107 else
2108#endif
2109 {
2110 lua_State* L = tolua_S;
2111 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
2112 const char* tag = ((const char*) tolua_tostring(tolua_S,2,0));
2113 {
2114 int tolua_ret = (int) api_methods_tag_score(L,pplayer,tag);
2116 }
2117 }
2118 return 1;
2119#ifndef TOLUA_RELEASE
2121 tolua_error(tolua_S,"#ferror in function 'tag_score'.",&tolua_err);
2122 return 0;
2123#endif
2124}
2125
2126/* function: api_methods_love */
2128{
2129#ifndef TOLUA_RELEASE
2131 if (
2132 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
2133 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
2135 )
2136 goto tolua_lerror;
2137 else
2138#endif
2139 {
2140 lua_State* L = tolua_S;
2141 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
2143 {
2144 int tolua_ret = (int) api_methods_love(L,pplayer,towards);
2146 }
2147 }
2148 return 1;
2149#ifndef TOLUA_RELEASE
2151 tolua_error(tolua_S,"#ferror in function 'love'.",&tolua_err);
2152 return 0;
2153#endif
2154}
2155
2156/* function: api_methods_add_love */
2158{
2159#ifndef TOLUA_RELEASE
2161 if (
2162 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
2163 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
2166 )
2167 goto tolua_lerror;
2168 else
2169#endif
2170 {
2171 lua_State* L = tolua_S;
2172 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
2174 int amount = ((int) tolua_tonumber(tolua_S,3,0));
2175 {
2177 }
2178 }
2179 return 0;
2180#ifndef TOLUA_RELEASE
2182 tolua_error(tolua_S,"#ferror in function 'add_love'.",&tolua_err);
2183 return 0;
2184#endif
2185}
2186
2187/* function: api_methods_cancel_pact */
2189{
2190#ifndef TOLUA_RELEASE
2192 if (
2193 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
2194 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
2196 )
2197 goto tolua_lerror;
2198 else
2199#endif
2200 {
2201 lua_State* L = tolua_S;
2202 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
2204 {
2206 }
2207 }
2208 return 0;
2209#ifndef TOLUA_RELEASE
2211 tolua_error(tolua_S,"#ferror in function 'cancel_pact'.",&tolua_err);
2212 return 0;
2213#endif
2214}
2215
2216/* get function: game_server_autoupgrade_veteran_loss */
2222
2223/* get function: game_server_upgrade_veteran_loss */
2229
2230/* get function: game_server_multiresearch */
2236
2237/* function: api_methods_nation_trait_min */
2239{
2240#ifndef TOLUA_RELEASE
2242 if (
2243 !tolua_isusertype(tolua_S,1,"Nation_Type",0,&tolua_err) ||
2246 )
2247 goto tolua_lerror;
2248 else
2249#endif
2250 {
2251 lua_State* L = tolua_S;
2252 Nation_Type* pnation = ((Nation_Type*) tolua_tousertype(tolua_S,1,0));
2253 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
2254 {
2257 }
2258 }
2259 return 1;
2260#ifndef TOLUA_RELEASE
2262 tolua_error(tolua_S,"#ferror in function 'trait_min'.",&tolua_err);
2263 return 0;
2264#endif
2265}
2266
2267/* function: api_methods_nation_trait_max */
2269{
2270#ifndef TOLUA_RELEASE
2272 if (
2273 !tolua_isusertype(tolua_S,1,"Nation_Type",0,&tolua_err) ||
2276 )
2277 goto tolua_lerror;
2278 else
2279#endif
2280 {
2281 lua_State* L = tolua_S;
2282 Nation_Type* pnation = ((Nation_Type*) tolua_tousertype(tolua_S,1,0));
2283 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
2284 {
2287 }
2288 }
2289 return 1;
2290#ifndef TOLUA_RELEASE
2292 tolua_error(tolua_S,"#ferror in function 'trait_max'.",&tolua_err);
2293 return 0;
2294#endif
2295}
2296
2297/* function: api_methods_nation_trait_default */
2299{
2300#ifndef TOLUA_RELEASE
2302 if (
2303 !tolua_isusertype(tolua_S,1,"Nation_Type",0,&tolua_err) ||
2306 )
2307 goto tolua_lerror;
2308 else
2309#endif
2310 {
2311 lua_State* L = tolua_S;
2312 Nation_Type* pnation = ((Nation_Type*) tolua_tousertype(tolua_S,1,0));
2313 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
2314 {
2317 }
2318 }
2319 return 1;
2320#ifndef TOLUA_RELEASE
2322 tolua_error(tolua_S,"#ferror in function 'trait_default'.",&tolua_err);
2323 return 0;
2324#endif
2325}
2326
2327/* function: api_edit_unit_upgrade */
2329{
2330#ifndef TOLUA_RELEASE
2332 if (
2333 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
2336 )
2337 goto tolua_lerror;
2338 else
2339#endif
2340 {
2341 lua_State* L = tolua_S;
2342 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
2343 int vet_loss = ((int) tolua_tonumber(tolua_S,2,0));
2344 {
2347 }
2348 }
2349 return 1;
2350#ifndef TOLUA_RELEASE
2352 tolua_error(tolua_S,"#ferror in function 'upgrade'.",&tolua_err);
2353 return 0;
2354#endif
2355}
2356
2357/* function: api_edit_unit_transform */
2359{
2360#ifndef TOLUA_RELEASE
2362 if (
2363 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
2364 !tolua_isusertype(tolua_S,2,"Unit_Type",0,&tolua_err) ||
2367 )
2368 goto tolua_lerror;
2369 else
2370#endif
2371 {
2372 lua_State* L = tolua_S;
2373 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
2375 int vet_loss = ((int) tolua_tonumber(tolua_S,3,0));
2376 {
2379 }
2380 }
2381 return 1;
2382#ifndef TOLUA_RELEASE
2384 tolua_error(tolua_S,"#ferror in function 'transform'.",&tolua_err);
2385 return 0;
2386#endif
2387}
2388
2389/* Open lib function */
2391{
2396 tolua_module(tolua_S,"server",0);
2397 tolua_beginmodule(tolua_S,"server");
2403 tolua_module(tolua_S,"setting",0);
2404 tolua_beginmodule(tolua_S,"setting");
2408 tolua_module(tolua_S,"Counter",0);
2409 tolua_beginmodule(tolua_S,"Counter");
2413 tolua_module(tolua_S,"notify",0);
2414 tolua_beginmodule(tolua_S,"notify");
2420
2421 { /* begin embedded lua code */
2422 static unsigned char B[] = {
2423 10,102,117,110, 99,116,105,111,110, 32,110,111,116,105,102,
2424 121, 46, 97,108,108, 40, 46, 46, 46, 41, 10,108,111, 99, 97,
2425 108, 32, 97,114,103, 32, 61, 32,116, 97, 98,108,101, 46,112,
2426 97, 99,107, 40, 46, 46, 46, 41, 59, 10,110,111,116,105,102,
2427 121, 46,101,118,101,110,116, 95,109,115,103, 40,110,105,108,
2428 44, 32,110,105,108, 44, 32, 69, 46, 83, 67, 82, 73, 80, 84,
2429 44, 32,115,116,114,105,110,103, 46,102,111,114,109, 97,116,
2430 40,116, 97, 98,108,101, 46,117,110,112, 97, 99,107, 40, 97,
2431 114,103, 41, 41, 41, 10,101,110,100, 10,102,117,110, 99,116,
2432 105,111,110, 32,110,111,116,105,102,121, 46,112,108, 97,121,
2433 101,114, 40,112,108, 97,121,101,114, 44, 32, 46, 46, 46, 41,
2434 10,108,111, 99, 97,108, 32, 97,114,103, 32, 61, 32,116, 97,
2435 98,108,101, 46,112, 97, 99,107, 40, 46, 46, 46, 41, 59, 10,
2436 110,111,116,105,102,121, 46,101,118,101,110,116, 95,109,115,
2437 103, 40,112,108, 97,121,101,114, 44, 32,110,105,108, 44, 32,
2438 69, 46, 83, 67, 82, 73, 80, 84, 44, 32,115,116,114,105,110,
2439 103, 46,102,111,114,109, 97,116, 40,116, 97, 98,108,101, 46,
2440 117,110,112, 97, 99,107, 40, 97,114,103, 41, 41, 41, 10,101,
2441 110,100, 10,102,117,110, 99,116,105,111,110, 32,110,111,116,
2442 105,102,121, 46,101,118,101,110,116, 40,112,108, 97,121,101,
2443 114, 44, 32,116,105,108,101, 44, 32,101,118,101,110,116, 44,
2444 32, 46, 46, 46, 41, 10,108,111, 99, 97,108, 32, 97,114,103,
2445 32, 61, 32,116, 97, 98,108,101, 46,112, 97, 99,107, 40, 46,
2446 46, 46, 41, 59, 10,110,111,116,105,102,121, 46,101,118,101,
2447 110,116, 95,109,115,103, 40,112,108, 97,121,101,114, 44, 32,
2448 116,105,108,101, 44, 32,101,118,101,110,116, 44, 32,115,116,
2449 114,105,110,103, 46,102,111,114,109, 97,116, 40,116, 97, 98,
2450 108,101, 46,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41,
2451 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32,
2452 110,111,116,105,102,121, 46,101,109, 98, 97,115,115,105,101,
2453 115, 40,112,108, 97,121,101,114, 44, 32,112,116,105,108,101,
2454 44, 32,101,118,101,110,116, 44, 32, 46, 46, 46, 41, 10,108,
2455 111, 99, 97,108, 32, 97,114,103, 32, 61, 32,116, 97, 98,108,
2456 101, 46,112, 97, 99,107, 40, 46, 46, 46, 41, 59, 10,110,111,
2457 116,105,102,121, 46,101,109, 98, 97,115,115,105,101,115, 95,
2458 109,115,103, 40,112,108, 97,121,101,114, 44, 32,112,116,105,
2459 108,101, 44, 32,101,118,101,110,116, 44, 32,115,116,114,105,
2460 110,103, 46,102,111,114,109, 97,116, 40,116, 97, 98,108,101,
2461 46,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41, 41, 10,
2462 101,110,100, 10,102,117,110, 99,116,105,111,110, 32,110,111,
2463 116,105,102,121, 46,114,101,115,101, 97,114, 99,104, 40,112,
2464 108, 97,121,101,114, 44, 32,115,101,108,102,109,115,103, 44,
2465 32,101,118,101,110,116, 44, 32, 46, 46, 46, 41, 10,108,111,
2466 99, 97,108, 32, 97,114,103, 32, 61, 32,116, 97, 98,108,101,
2467 46,112, 97, 99,107, 40, 46, 46, 46, 41, 59, 10,110,111,116,
2468 105,102,121, 46,114,101,115,101, 97,114, 99,104, 95,109,115,
2469 103, 40,112,108, 97,121,101,114, 44, 32,115,101,108,102,109,
2470 115,103, 44, 32,101,118,101,110,116, 44, 32,115,116,114,105,
2471 110,103, 46,102,111,114,109, 97,116, 40,116, 97, 98,108,101,
2472 46,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41, 41, 10,
2473 101,110,100, 10,102,117,110, 99,116,105,111,110, 32,110,111,
2474 116,105,102,121, 46,114,101,115,101, 97,114, 99,104, 95,101,
2475 109, 98, 97,115,115,105,101,115, 40,112,108, 97,121,101,114,
2476 44, 32,101,118,101,110,116, 44, 32, 46, 46, 46, 41, 10,108,
2477 111, 99, 97,108, 32, 97,114,103, 32, 61, 32,116, 97, 98,108,
2478 101, 46,112, 97, 99,107, 40, 46, 46, 46, 41, 59, 10,110,111,
2479 116,105,102,121, 46,114,101,115,101, 97,114, 99,104, 95,101,
2480 109, 98, 97,115,115,105,101,115, 95,109,115,103, 40,112,108,
2481 97,121,101,114, 44, 32,101,118,101,110,116, 44, 32,115,116,
2482 114,105,110,103, 46,102,111,114,109, 97,116, 40,116, 97, 98,
2483 108,101, 46,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41,
2484 41, 10,101,110,100,32
2485 };
2486 if (luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") == LUA_OK)
2488 } /* end of embedded lua code */
2489
2490 tolua_module(tolua_S,"edit",0);
2491 tolua_beginmodule(tolua_S,"edit");
2543 tolua_module(tolua_S,"luadata",0);
2544 tolua_beginmodule(tolua_S,"luadata");
2547
2548 { /* begin embedded lua code */
2549 static unsigned char B[] = {
2550 10,102,117,110, 99,116,105,111,110, 32, 99,114,101, 97,116,
2551 101, 95,117,110,105,116, 40,112,108, 97,121,101,114, 44, 32,
2552 116,105,108,101, 44, 32,117,116,121,112,101, 44, 32,118,101,
2553 116,101,114, 97,110, 95,108,101,118,101,108, 44, 32,104,111,
2554 109,101, 99,105,116,121, 44, 32,109,111,118,101,115, 95,108,
2555 101,102,116, 41, 10,108,111,103, 46,100,101,112,114,101, 99,
2556 97,116,105,111,110, 95,119, 97,114,110,105,110,103, 40, 34,
2557 99,114,101, 97,116,101, 95,117,110,105,116, 40, 41, 34, 44,
2558 32, 34,101,100,105,116, 46, 99,114,101, 97,116,101, 95,117,
2559 110,105,116, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41, 59,
2560 10,114,101,116,117,114,110, 32,101,100,105,116, 46, 99,114,
2561 101, 97,116,101, 95,117,110,105,116, 40,112,108, 97,121,101,
2562 114, 44, 32,116,105,108,101, 44, 32,117,116,121,112,101, 44,
2563 32,118,101,116,101,114, 97,110, 95,108,101,118,101,108, 44,
2564 32,104,111,109,101, 99,105,116,121, 44, 10,109,111,118,101,
2565 115, 95,108,101,102,116, 41, 10,101,110,100, 10,102,117,110,
2566 99,116,105,111,110, 32, 99,114,101, 97,116,101, 95,117,110,
2567 105,116, 95,102,117,108,108, 40,112,108, 97,121,101,114, 44,
2568 32,116,105,108,101, 44, 32,117,116,121,112,101, 44, 32,118,
2569 101,116,101,114, 97,110, 95,108,101,118,101,108, 44, 32,104,
2570 111,109,101, 99,105,116,121, 44, 10,109,111,118,101,115, 95,
2571 108,101,102,116, 44, 32,104,112, 95,108,101,102,116, 44, 32,
2572 116,114, 97,110,115,112,111,114,116, 41, 10,108,111,103, 46,
2573 100,101,112,114,101, 99, 97,116,105,111,110, 95,119, 97,114,
2574 110,105,110,103, 40, 34, 99,114,101, 97,116,101, 95,117,110,
2575 105,116, 95,102,117,108,108, 40, 41, 34, 44, 32, 34,101,100,
2576 105,116, 46, 99,114,101, 97,116,101, 95,117,110,105,116, 95,
2577 102,117,108,108, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41,
2578 59, 10,114,101,116,117,114,110, 32,101,100,105,116, 46, 99,
2579 114,101, 97,116,101, 95,117,110,105,116, 95,102,117,108,108,
2580 40,112,108, 97,121,101,114, 44, 32,116,105,108,101, 44, 32,
2581 117,116,121,112,101, 44, 32,118,101,116,101,114, 97,110, 95,
2582 108,101,118,101,108, 44, 32,104,111,109,101, 99,105,116,121,
2583 44, 10,109,111,118,101,115, 95,108,101,102,116, 44, 32,104,
2584 112, 95,108,101,102,116, 44, 32,116,114, 97,110,115,112,111,
2585 114,116, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2586 110, 32, 99,114,101, 97,116,101, 95, 99,105,116,121, 40,112,
2587 108, 97,121,101,114, 44, 32,116,105,108,101, 44, 32,110, 97,
2588 109,101, 41, 10,108,111,103, 46,100,101,112,114,101, 99, 97,
2589 116,105,111,110, 95,119, 97,114,110,105,110,103, 40, 34, 99,
2590 114,101, 97,116,101, 95, 99,105,116,121, 40, 41, 34, 44, 32,
2591 34,101,100,105,116, 46, 99,114,101, 97,116,101, 95, 99,105,
2592 116,121, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41, 59, 10,
2593 101,100,105,116, 46, 99,105,116,121, 95, 99,114,101, 97,116,
2594 101, 40,112,108, 97,121,101,114, 44, 32,116,105,108,101, 44,
2595 32,110, 97,109,101, 44, 32,110,105,108, 41, 10,101,110,100,
2596 10,102,117,110, 99,116,105,111,110, 32,101,100,105,116, 46,
2597 99,114,101, 97,116,101, 95, 99,105,116,121, 40,112,108, 97,
2598 121,101,114, 44, 32,116,105,108,101, 44, 32,110, 97,109,101,
2599 41, 10,108,111,103, 46,100,101,112,114,101, 99, 97,116,105,
2600 111,110, 95,119, 97,114,110,105,110,103, 40, 34,101,100,105,
2601 116, 46, 99,114,101, 97,116,101, 95, 99,105,116,121, 40, 41,
2602 34, 44, 32, 34,101,100,105,116, 46, 99,105,116,121, 95, 99,
2603 114,101, 97,116,101, 40, 41, 34, 44, 10, 34, 51, 46, 51, 34,
2604 41, 59, 10,101,100,105,116, 46, 99,105,116,121, 95, 99,114,
2605 101, 97,116,101, 40,112,108, 97,121,101,114, 44, 32,116,105,
2606 108,101, 44, 32,110, 97,109,101, 44, 32,110,105,108, 41, 10,
2607 101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 99,114,
2608 101, 97,116,101, 95, 98, 97,115,101, 40,116,105,108,101, 44,
2609 32,110, 97,109,101, 44, 32,112,108, 97,121,101,114, 41, 10,
2610 108,111,103, 46,100,101,112,114,101, 99, 97,116,105,111,110,
2611 95,119, 97,114,110,105,110,103, 40, 34, 99,114,101, 97,116,
2612 101, 95, 98, 97,115,101, 40, 41, 34, 44, 32, 34,101,100,105,
2613 116, 46, 99,114,101, 97,116,101, 95,111,119,110,101,100, 95,
2614 101,120,116,114, 97, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34,
2615 41, 59, 10,101,100,105,116, 46, 99,114,101, 97,116,101, 95,
2616 98, 97,115,101, 40,116,105,108,101, 44, 32,110, 97,109,101,
2617 44, 32,112,108, 97,121,101,114, 41, 10,101,110,100, 10,102,
2618 117,110, 99,116,105,111,110, 32, 99,114,101, 97,116,101, 95,
2619 112,108, 97,121,101,114, 40,117,115,101,114,110, 97,109,101,
2620 44, 32,110, 97,116,105,111,110, 41, 10,108,111,103, 46,100,
2621 101,112,114,101, 99, 97,116,105,111,110, 95,119, 97,114,110,
2622 105,110,103, 40, 34, 99,114,101, 97,116,101, 95,112,108, 97,
2623 121,101,114, 40, 41, 34, 44, 32, 34,101,100,105,116, 46, 99,
2624 114,101, 97,116,101, 95,112,108, 97,121,101,114, 40, 41, 34,
2625 44, 10, 34, 50, 46, 52, 34, 41, 59, 10,114,101,116,117,114,
2626 110, 32,101,100,105,116, 46, 99,114,101, 97,116,101, 95,112,
2627 108, 97,121,101,114, 40,117,115,101,114,110, 97,109,101, 44,
2628 32,110, 97,116,105,111,110, 44, 32,110,105,108, 41, 10,101,
2629 110,100, 10,102,117,110, 99,116,105,111,110, 32, 99,104, 97,
2630 110,103,101, 95,103,111,108,100, 40,112,112,108, 97,121,101,
2631 114, 44, 32, 97,109,111,117,110,116, 41, 10,108,111,103, 46,
2632 100,101,112,114,101, 99, 97,116,105,111,110, 95,119, 97,114,
2633 110,105,110,103, 40, 34, 99,104, 97,110,103,101, 95,103,111,
2634 108,100, 40, 41, 34, 44, 32, 34,101,100,105,116, 46, 99,104,
2635 97,110,103,101, 95,103,111,108,100, 40, 41, 34, 44, 10, 34,
2636 50, 46, 52, 34, 41, 59, 10,101,100,105,116, 46, 99,104, 97,
2637 110,103,101, 95,103,111,108,100, 40,112,112,108, 97,121,101,
2638 114, 44, 32, 97,109,111,117,110,116, 41, 10,101,110,100, 10,
2639 102,117,110, 99,116,105,111,110, 32,103,105,118,101, 95,116,
2640 101, 99,104,110,111,108,111,103,121, 40,112,108, 97,121,101,
2641 114, 44, 32,116,101, 99,104, 44, 32,114,101, 97,115,111,110,
2642 41, 10,108,111,103, 46,100,101,112,114,101, 99, 97,116,105,
2643 111,110, 95,119, 97,114,110,105,110,103, 40, 34,103,105,118,
2644 101, 95,116,101, 99,104,110,111,108,111,103,121, 40, 41, 34,
2645 44, 32, 34,101,100,105,116, 46,103,105,118,101, 95,116,101,
2646 99,104, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41, 59, 10,
2647 114,101,116,117,114,110, 32,101,100,105,116, 46,103,105,118,
2648 101, 95,116,101, 99,104, 40,112,108, 97,121,101,114, 44, 32,
2649 116,101, 99,104, 44, 32, 45, 49, 44, 32,102, 97,108,115,101,
2650 44, 32,114,101, 97,115,111,110, 41, 10,101,110,100, 10,102,
2651 117,110, 99,116,105,111,110, 32,101,100,105,116, 46,103,105,
2652 118,101, 95,116,101, 99,104,110,111,108,111,103,121, 40,112,
2653 108, 97,121,101,114, 44, 32,116,101, 99,104, 44, 32,114,101,
2654 97,115,111,110, 41, 10,108,111,103, 46,100,101,112,114,101,
2655 99, 97,116,105,111,110, 95,119, 97,114,110,105,110,103, 40,
2656 34,101,100,105,116, 46,103,105,118,101, 95,116,101, 99,104,
2657 110,111,108,111,103,121, 40, 41, 34, 44, 32, 34,101,100,105,
2658 116, 46,103,105,118,101, 95,116,101, 99,104, 40, 41, 34, 44,
2659 10, 34, 50, 46, 54, 34, 41, 59, 10,114,101,116,117,114,110,
2660 32,101,100,105,116, 46,103,105,118,101, 95,116,101, 99,104,
2661 40,112,108, 97,121,101,114, 44, 32,116,101, 99,104, 44, 32,
2662 45, 49, 44, 32,102, 97,108,115,101, 44, 32,114,101, 97,115,
2663 111,110, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2664 110, 32,116,114, 97,105,116, 95,109,111,100, 40,112,108, 97,
2665 121,101,114, 44, 32,116,114, 97,105,116, 44, 32,109,111,100,
2666 41, 10,108,111,103, 46,100,101,112,114,101, 99, 97,116,105,
2667 111,110, 95,119, 97,114,110,105,110,103, 40, 34,116,114, 97,
2668 105,116, 95,109,111,100, 40, 41, 34, 44, 32, 34,101,100,105,
2669 116, 46,116,114, 97,105,116, 95,109,111,100, 40, 41, 34, 44,
2670 10, 34, 50, 46, 52, 34, 41, 59, 10,114,101,116,117,114,110,
2671 32,101,100,105,116, 46,116,114, 97,105,116, 95,109,111,100,
2672 40,112,108, 97,121,101,114, 44, 32,116,114, 97,105,116, 44,
2673 32,109,111,100, 41, 10,101,110,100, 10,102,117,110, 99,116,
2674 105,111,110, 32,117,110,108,101, 97,115,104, 95, 98, 97,114,
2675 98, 97,114,105, 97,110,115, 40,116,105,108,101, 41, 10,108,
2676 111,103, 46,100,101,112,114,101, 99, 97,116,105,111,110, 95,
2677 119, 97,114,110,105,110,103, 40, 34,117,110,108,101, 97,115,
2678 104, 95, 98, 97,114, 98, 97,114,105, 97,110,115, 40, 41, 34,
2679 44, 32, 34,101,100,105,116, 46,117,110,108,101, 97,115,104,
2680 95, 98, 97,114, 98, 97,114,105, 97,110,115, 40, 41, 34, 44,
2681 10, 34, 50, 46, 52, 34, 41, 59, 10,114,101,116,117,114,110,
2682 32,101,100,105,116, 46,117,110,108,101, 97,115,104, 95, 98,
2683 97,114, 98, 97,114,105, 97,110,115, 40,116,105,108,101, 41,
2684 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32,112,
2685 108, 97, 99,101, 95,112, 97,114,116,105,115, 97,110,115, 40,
2686 116,105,108,101, 44, 32,112,108, 97,121,101,114, 44, 32, 99,
2687 111,117,110,116, 44, 32,115,113, 95,114, 97,100,105,117,115,
2688 41, 10,108,111,103, 46,100,101,112,114,101, 99, 97,116,105,
2689 111,110, 95,119, 97,114,110,105,110,103, 40, 34,112,108, 97,
2690 99,101, 95,112, 97,114,116,105,115, 97,110,115, 40, 41, 34,
2691 44, 32, 34,101,100,105,116, 46,112,108, 97, 99,101, 95,112,
2692 97,114,116,105,115, 97,110,115, 40, 41, 34, 44, 10, 34, 50,
2693 46, 52, 34, 41, 59, 10,101,100,105,116, 46,112,108, 97, 99,
2694 101, 95,112, 97,114,116,105,115, 97,110,115, 40,116,105,108,
2695 101, 44, 32,112,108, 97,121,101,114, 44, 32, 99,111,117,110,
2696 116, 44, 32,115,113, 95,114, 97,100,105,117,115, 41, 10,101,
2697 110,100, 10,102,117,110, 99,116,105,111,110, 32, 80,108, 97,
2698 121,101,114, 58, 99,114,101, 97,116,101, 95,117,110,105,116,
2699 40,116,105,108,101, 44, 32,117,116,121,112,101, 44, 32,118,
2700 101,116,101,114, 97,110, 95,108,101,118,101,108, 44, 32,104,
2701 111,109,101, 99,105,116,121, 44, 32,109,111,118,101,115, 95,
2702 108,101,102,116, 41, 10,114,101,116,117,114,110, 32,101,100,
2703 105,116, 46, 99,114,101, 97,116,101, 95,117,110,105,116, 40,
2704 115,101,108,102, 44, 32,116,105,108,101, 44, 32,117,116,121,
2705 112,101, 44, 32,118,101,116,101,114, 97,110, 95,108,101,118,
2706 101,108, 44, 32,104,111,109,101, 99,105,116,121, 44, 10,109,
2707 111,118,101,115, 95,108,101,102,116, 41, 10,101,110,100, 10,
2708 102,117,110, 99,116,105,111,110, 32, 80,108, 97,121,101,114,
2709 58, 99,114,101, 97,116,101, 95,117,110,105,116, 95,102,117,
2710 108,108, 40,116,105,108,101, 44, 32,117,116,121,112,101, 44,
2711 32,118,101,116,101,114, 97,110, 95,108,101,118,101,108, 44,
2712 32,104,111,109,101, 99,105,116,121, 44, 10,109,111,118,101,
2713 115, 95,108,101,102,116, 44, 32,104,112, 95,108,101,102,116,
2714 44, 32,112,116,114, 97,110,115,112,111,114,116, 41, 10,114,
2715 101,116,117,114,110, 32,101,100,105,116, 46, 99,114,101, 97,
2716 116,101, 95,117,110,105,116, 95,102,117,108,108, 40,115,101,
2717 108,102, 44, 32,116,105,108,101, 44, 32,117,116,121,112,101,
2718 44, 32,118,101,116,101,114, 97,110, 95,108,101,118,101,108,
2719 44, 32,104,111,109,101, 99,105,116,121, 44, 10,109,111,118,
2720 101,115, 95,108,101,102,116, 44, 32,104,112, 95,108,101,102,
2721 116, 44, 32,112,116,114, 97,110,115,112,111,114,116, 41, 10,
2722 101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 80,108,
2723 97,121,101,114, 58, 99,105,118,105,108,105,122, 97,116,105,
2724 111,110, 95,115, 99,111,114,101, 40, 41, 10,114,101,116,117,
2725 114,110, 32,115,101,114,118,101,114, 46, 99,105,118,105,108,
2726 105,122, 97,116,105,111,110, 95,115, 99,111,114,101, 40,115,
2727 101,108,102, 41, 10,101,110,100, 10,102,117,110, 99,116,105,
2728 111,110, 32, 80,108, 97,121,101,114, 58, 99,114,101, 97,116,
2729 101, 95, 99,105,116,121, 40,116,105,108,101, 44, 32,110, 97,
2730 109,101, 41, 10,108,111,103, 46,100,101,112,114,101, 99, 97,
2731 116,105,111,110, 95,119, 97,114,110,105,110,103, 40, 34, 80,
2732 108, 97,121,101,114, 58, 99,114,101, 97,116,101, 95, 99,105,
2733 116,121, 40, 41, 34, 44, 32, 34, 80,108, 97,121,101,114, 58,
2734 99,105,116,121, 95, 99,114,101, 97,116,101, 40, 41, 34, 44,
2735 10, 34, 51, 46, 51, 34, 41, 59, 10,101,100,105,116, 46, 99,
2736 105,116,121, 95, 99,114,101, 97,116,101, 40,115,101,108,102,
2737 44, 32,116,105,108,101, 44, 32,110, 97,109,101, 44, 32,110,
2738 105,108, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2739 110, 32, 80,108, 97,121,101,114, 58, 99,105,116,121, 95, 99,
2740 114,101, 97,116,101, 40,116,105,108,101, 44, 32,110, 97,109,
2741 101, 44, 32,110, 97,116,105,111,110, 97,108,105,116,121, 41,
2742 10,101,100,105,116, 46, 99,105,116,121, 95, 99,114,101, 97,
2743 116,101, 40,115,101,108,102, 44, 32,116,105,108,101, 44, 32,
2744 110, 97,109,101, 44, 32,110, 97,116,105,111,110, 97,108,105,
2745 116,121, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2746 110, 32, 80,108, 97,121,101,114, 58, 99,104, 97,110,103,101,
2747 95,103,111,108,100, 40, 97,109,111,117,110,116, 41, 10,101,
2748 100,105,116, 46, 99,104, 97,110,103,101, 95,103,111,108,100,
2749 40,115,101,108,102, 44, 32, 97,109,111,117,110,116, 41, 10,
2750 101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 80,108,
2751 97,121,101,114, 58, 99,104, 97,110,103,101, 95,105,110,102,
2752 114, 97,112,111,105,110,116,115, 40, 97,109,111,117,110,116,
2753 41, 10,101,100,105,116, 46, 99,104, 97,110,103,101, 95,105,
2754 110,102,114, 97,112,111,105,110,116,115, 40,115,101,108,102,
2755 44, 32, 97,109,111,117,110,116, 41, 10,101,110,100, 10,102,
2756 117,110, 99,116,105,111,110, 32, 80,108, 97,121,101,114, 58,
2757 103,105,118,101, 95,116,101, 99,104, 40,116,101, 99,104, 44,
2758 32, 99,111,115,116, 44, 32,110,111,116,105,102,121, 44, 32,
2759 114,101, 97,115,111,110, 41, 10,114,101,116,117,114,110, 32,
2760 101,100,105,116, 46,103,105,118,101, 95,116,101, 99,104, 40,
2761 115,101,108,102, 44, 32,116,101, 99,104, 44, 32, 99,111,115,
2762 116, 44, 32,110,111,116,105,102,121, 44, 32,114,101, 97,115,
2763 111,110, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2764 110, 32, 80,108, 97,121,101,114, 58,103,105,118,101, 95,116,
2765 101, 99,104,110,111,108,111,103,121, 40,116,101, 99,104, 44,
2766 32,114,101, 97,115,111,110, 41, 10,108,111,103, 46,100,101,
2767 112,114,101, 99, 97,116,105,111,110, 95,119, 97,114,110,105,
2768 110,103, 40, 34, 80,108, 97,121,101,114, 58,103,105,118,101,
2769 95,116,101, 99,104,110,111,108,111,103,121, 40, 41, 34, 44,
2770 32, 34, 80,108, 97,121,101,114, 58,103,105,118,101, 95,116,
2771 101, 99,104, 40, 41, 34, 44, 10, 34, 50, 46, 54, 34, 41, 59,
2772 10,114,101,116,117,114,110, 32,101,100,105,116, 46,103,105,
2773 118,101, 95,116,101, 99,104, 40,115,101,108,102, 44, 32,116,
2774 101, 99,104, 44, 32, 45, 49, 44, 32,102, 97,108,115,101, 44,
2775 32,114,101, 97,115,111,110, 41, 10,101,110,100, 10,102,117,
2776 110, 99,116,105,111,110, 32, 80,108, 97,121,101,114, 58,116,
2777 114, 97,105,116, 95,109,111,100, 40,116,114, 97,105,116, 44,
2778 32,109,111,100, 41, 10,114,101,116,117,114,110, 32,101,100,
2779 105,116, 46,116,114, 97,105,116, 95,109,111,100, 40,115,101,
2780 108,102, 44, 32,116,114, 97,105,116, 44, 32,109,111,100, 41,
2781 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 80,
2782 108, 97,121,101,114, 58, 99,105,118,105,108, 95,119, 97,114,
2783 40,112,114,111, 98, 97, 98,105,108,105,116,121, 41, 10,114,
2784 101,116,117,114,110, 32,101,100,105,116, 46, 99,105,118,105,
2785 108, 95,119, 97,114, 40,115,101,108,102, 44, 32,112,114,111,
2786 98, 97, 98,105,108,105,116,121, 41, 10,101,110,100, 10,102,
2787 117,110, 99,116,105,111,110, 32, 80,108, 97,121,101,114, 58,
2788 118,105, 99,116,111,114,121, 40, 41, 10,101,100,105,116, 46,
2789 112,108, 97,121,101,114, 95,118,105, 99,116,111,114,121, 40,
2790 115,101,108,102, 41, 10,101,110,100, 10,102,117,110, 99,116,
2791 105,111,110, 32, 80,108, 97,121,101,114, 58, 97,100,100, 95,
2792 104,105,115,116,111,114,121, 40, 97,109,111,117,110,116, 41,
2793 10,101,100,105,116, 46, 97,100,100, 95,112,108, 97,121,101,
2794 114, 95,104,105,115,116,111,114,121, 40,115,101,108,102, 44,
2795 32, 97,109,111,117,110,116, 41, 10,101,110,100, 10,102,117,
2796 110, 99,116,105,111,110, 32, 80,108, 97,121,101,114, 58,103,
2797 105,118,101, 95, 98,117,108, 98,115, 40, 97,109,111,117,110,
2798 116, 44, 32,116,101, 99,104, 41, 10,101,100,105,116, 46,103,
2799 105,118,101, 95, 98,117,108, 98,115, 40,115,101,108,102, 44,
2800 32, 97,109,111,117,110,116, 44, 32,116,101, 99,104, 41, 10,
2801 101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 67,105,
2802 116,121, 58,114,101,109,111,118,101, 40, 41, 10,101,100,105,
2803 116, 46,114,101,109,111,118,101, 95, 99,105,116,121, 40,115,
2804 101,108,102, 41, 10,101,110,100, 10,102,117,110, 99,116,105,
2805 111,110, 32, 67,105,116,121, 58,116,114, 97,110,115,102,101,
2806 114, 40,110,101,119, 95,111,119,110,101,114, 41, 10,101,100,
2807 105,116, 46,116,114, 97,110,115,102,101,114, 95, 99,105,116,
2808 121, 40,115,101,108,102, 44, 32,110,101,119, 95,111,119,110,
2809 101,114, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2810 110, 32, 67,105,116,121, 58, 97,100,100, 95,104,105,115,116,
2811 111,114,121, 40, 97,109,111,117,110,116, 41, 10,101,100,105,
2812 116, 46, 97,100,100, 95, 99,105,116,121, 95,104,105,115,116,
2813 111,114,121, 40,115,101,108,102, 44, 32, 97,109,111,117,110,
2814 116, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110,
2815 32, 67,105,116,121, 58, 99,114,101, 97,116,101, 95, 98,117,
2816 105,108,100,105,110,103, 40,105,109,112,114, 41, 10,101,100,
2817 105,116, 46, 99,114,101, 97,116,101, 95, 98,117,105,108,100,
2818 105,110,103, 40,115,101,108,102, 44, 32,105,109,112,114, 41,
2819 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 67,
2820 105,116,121, 58,114,101,109,111,118,101, 95, 98,117,105,108,
2821 100,105,110,103, 40,105,109,112,114, 41, 10,101,100,105,116,
2822 46,114,101,109,111,118,101, 95, 98,117,105,108,100,105,110,
2823 103, 40,115,101,108,102, 44, 32,105,109,112,114, 41, 10,101,
2824 110,100, 10,102,117,110, 99,116,105,111,110, 32, 67,105,116,
2825 121, 58,114,101,100,117, 99,101, 95,115,112,101, 99,105, 97,
2826 108,105,115,116,115, 40,115,112,101, 99, 44, 32, 97,109,111,
2827 117,110,116, 41, 10,114,101,116,117,114,110, 32,101,100,105,
2828 116, 46,114,101,100,117, 99,101, 95,115,112,101, 99,105, 97,
2829 108,105,115,116,115, 40,115,101,108,102, 44, 32,115,112,101,
2830 99, 44, 32, 97,109,111,117,110,116, 32,111,114, 32, 49, 41,
2831 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 67,
2832 105,116,121, 58, 99,104, 97,110,103,101, 95,115,105,122,101,
2833 40, 99,104, 97,110,103,101, 44, 32,110, 97,116,105,111,110,
2834 97,108,105,116,121, 41, 10,101,100,105,116, 46, 99,104, 97,
2835 110,103,101, 95, 99,105,116,121, 95,115,105,122,101, 40,115,
2836 101,108,102, 44, 32, 99,104, 97,110,103,101, 44, 32,110, 97,
2837 116,105,111,110, 97,108,105,116,121, 41, 10,101,110,100, 10,
2838 102,117,110, 99,116,105,111,110, 32, 67,105,116,121, 58, 99,
2839 104, 97,110,103,101, 95,110, 97,116,105,111,110, 97,108,105,
2840 116,121, 40,102,114,111,109, 44, 32,116,111, 44, 32, 97,109,
2841 111,117,110,116, 41, 10,101,100,105,116, 46, 99,104, 97,110,
2842 103,101, 95, 99,105,116,105,122,101,110, 95,110, 97,116,105,
2843 111,110, 97,108,105,116,121, 40,115,101,108,102, 44, 32,102,
2844 114,111,109, 44, 32,116,111, 44, 32, 97,109,111,117,110,116,
2845 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32,
2846 85,110,105,116, 58,116,101,108,101,112,111,114,116, 40,100,
2847 101,115,116, 44, 10,101,109, 98, 97,114,107, 95,116,111, 44,
2848 32, 97,108,108,111,119, 95,100,105,115,101,109, 98, 97,114,
2849 107, 44, 10, 99,111,110,113,117,101,114, 95, 99,105,116,121,
2850 44, 32, 99,111,110,113,117,101,114, 95,101,120,116,114, 97,
2851 44, 10,101,110,116,101,114, 95,104,117,116, 44, 32,102,114,
2852 105,103,104,116,101,110, 95,104,117,116, 41, 10,105,102, 32,
2853 97,108,108,111,119, 95,100,105,115,101,109, 98, 97,114,107,
2854 32, 61, 61, 32,110,105,108, 32,116,104,101,110, 10,114,101,
2855 116,117,114,110, 32,101,100,105,116, 46,117,110,105,116, 95,
2856 116,101,108,101,112,111,114,116, 40,115,101,108,102, 44, 32,
2857 100,101,115,116, 44, 32,110,105,108, 44, 32,102, 97,108,115,
2858 101, 44, 10,102, 97,108,115,101, 44, 32,102, 97,108,115,101,
2859 44, 32,102, 97,108,115,101, 44, 32,102, 97,108,115,101, 41,
2860 10,101,108,115,101, 10,114,101,116,117,114,110, 32,101,100,
2861 105,116, 46,117,110,105,116, 95,116,101,108,101,112,111,114,
2862 116, 40,115,101,108,102, 44, 32,100,101,115,116, 44, 10,101,
2863 109, 98, 97,114,107, 95,116,111, 44, 32, 97,108,108,111,119,
2864 95,100,105,115,101,109, 98, 97,114,107, 44, 10, 99,111,110,
2865 113,117,101,114, 95, 99,105,116,121, 44, 32, 99,111,110,113,
2866 117,101,114, 95,101,120,116,114, 97, 44, 10,101,110,116,101,
2867 114, 95,104,117,116, 44, 32,102,114,105,103,104,116,101,110,
2868 95,104,117,116, 41, 10,101,110,100, 10,101,110,100, 10,102,
2869 117,110, 99,116,105,111,110, 32, 85,110,105,116, 58,112,101,
2870 114,102,111,114,109, 95, 97, 99,116,105,111,110, 40, 97, 99,
2871 116,105,111,110, 44, 32,116, 97,114,103,101,116, 44, 32,115,
2872 117, 98, 95,116, 97,114,103,101,116, 41, 10,105,102, 32,116,
2873 97,114,103,101,116, 32, 61, 61, 32,110,105,108, 32,116,104,
2874 101,110, 10,114,101,116,117,114,110, 32,101,100,105,116, 46,
2875 112,101,114,102,111,114,109, 95, 97, 99,116,105,111,110, 40,
2876 115,101,108,102, 44, 32, 97, 99,116,105,111,110, 41, 10,101,
2877 108,115,101,105,102, 32,115,117, 98, 95,116, 97,114,103,101,
2878 116, 32, 61, 61, 32,110,105,108, 32,116,104,101,110, 10,114,
2879 101,116,117,114,110, 32,101,100,105,116, 46,112,101,114,102,
2880 111,114,109, 95, 97, 99,116,105,111,110, 40,115,101,108,102,
2881 44, 32, 97, 99,116,105,111,110, 44, 32,116, 97,114,103,101,
2882 116, 41, 10,101,108,115,101, 10,114,101,116,117,114,110, 32,
2883 101,100,105,116, 46,112,101,114,102,111,114,109, 95, 97, 99,
2884 116,105,111,110, 40,115,101,108,102, 44, 32, 97, 99,116,105,
2885 111,110, 44, 32,116, 97,114,103,101,116, 44, 32,115,117, 98,
2886 95,116, 97,114,103,101,116, 41, 10,101,110,100, 10,101,110,
2887 100, 10,102,117,110, 99,116,105,111,110, 32, 85,110,105,116,
2888 58,116,117,114,110, 40,100,105,114,101, 99,116,105,111,110,
2889 41, 10,101,100,105,116, 46,117,110,105,116, 95,116,117,114,
2890 110, 40,115,101,108,102, 44, 32,100,105,114,101, 99,116,105,
2891 111,110, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2892 110, 32, 85,110,105,116, 58,107,105,108,108, 40,114,101, 97,
2893 115,111,110, 44, 32,107,105,108,108,101,114, 41, 10,101,100,
2894 105,116, 46,117,110,105,116, 95,107,105,108,108, 40,115,101,
2895 108,102, 44, 32,114,101, 97,115,111,110, 44, 32,107,105,108,
2896 108,101,114, 41, 10,101,110,100, 10,102,117,110, 99,116,105,
2897 111,110, 32, 85,110,105,116, 58,109,111,118,101, 40,109,111,
2898 118,101,116,111, 44, 32,109,111,118,101, 99,111,115,116, 44,
2899 10,101,109, 98, 97,114,107, 95,116,111, 44, 32, 97,108,108,
2900 111,119, 95,100,105,115,101,109, 98, 97,114,107, 44, 10, 99,
2901 111,110,113,117,101,114, 95, 99,105,116,121, 44, 32, 99,111,
2902 110,113,117,101,114, 95,101,120,116,114, 97, 44, 10,101,110,
2903 116,101,114, 95,104,117,116, 44, 32,102,114,105,103,104,116,
2904 101,110, 95,104,117,116, 41, 10,105,102, 32, 97,108,108,111,
2905 119, 95,100,105,115,101,109, 98, 97,114,107, 32, 61, 61, 32,
2906 110,105,108, 32,116,104,101,110, 10,114,101,116,117,114,110,
2907 32,101,100,105,116, 46,117,110,105,116, 95,109,111,118,101,
2908 40,115,101,108,102, 44, 32,109,111,118,101,116,111, 44, 32,
2909 109,111,118,101, 99,111,115,116, 44, 32,110,105,108, 44, 32,
2910 102, 97,108,115,101, 44, 10,102, 97,108,115,101, 44, 32,102,
2911 97,108,115,101, 44, 32,102, 97,108,115,101, 44, 32,102, 97,
2912 108,115,101, 41, 10,101,108,115,101, 10,114,101,116,117,114,
2913 110, 32,101,100,105,116, 46,117,110,105,116, 95,109,111,118,
2914 101, 40,115,101,108,102, 44, 32,109,111,118,101,116,111, 44,
2915 32,109,111,118,101, 99,111,115,116, 44, 10,101,109, 98, 97,
2916 114,107, 95,116,111, 44, 32, 97,108,108,111,119, 95,100,105,
2917 115,101,109, 98, 97,114,107, 44, 10, 99,111,110,113,117,101,
2918 114, 95, 99,105,116,121, 44, 32, 99,111,110,113,117,101,114,
2919 95,101,120,116,114, 97, 44, 10,101,110,116,101,114, 95,104,
2920 117,116, 44, 32,102,114,105,103,104,116,101,110, 95,104,117,
2921 116, 41, 10,101,110,100, 10,101,110,100, 10,102,117,110, 99,
2922 116,105,111,110, 32, 85,110,105,116, 58,109,111,118,101,109,
2923 101,110,116, 95,100,105,115, 97,108,108,111,119, 40, 41, 10,
2924 101,100,105,116, 46,109,111,118,101,109,101,110,116, 95,100,
2925 105,115, 97,108,108,111,119, 40,115,101,108,102, 41, 10,101,
2926 110,100, 10,102,117,110, 99,116,105,111,110, 32, 85,110,105,
2927 116, 58,109,111,118,101,109,101,110,116, 95, 97,108,108,111,
2928 119, 40, 41, 10,101,100,105,116, 46,109,111,118,101,109,101,
2929 110,116, 95, 97,108,108,111,119, 40,115,101,108,102, 41, 10,
2930 101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 84,105,
2931 108,101, 58, 99,114,101, 97,116,101, 95,111,119,110,101,100,
2932 95,101,120,116,114, 97, 40,110, 97,109,101, 44, 32,112,108,
2933 97,121,101,114, 41, 10,101,100,105,116, 46, 99,114,101, 97,
2934 116,101, 95,111,119,110,101,100, 95,101,120,116,114, 97, 40,
2935 115,101,108,102, 44, 32,110, 97,109,101, 44, 32,112,108, 97,
2936 121,101,114, 41, 10,101,110,100, 10,102,117,110, 99,116,105,
2937 111,110, 32, 84,105,108,101, 58, 99,114,101, 97,116,101, 95,
2938 101,120,116,114, 97, 40,110, 97,109,101, 41, 10,101,100,105,
2939 116, 46, 99,114,101, 97,116,101, 95,101,120,116,114, 97, 40,
2940 115,101,108,102, 44, 32,110, 97,109,101, 41, 10,101,110,100,
2941 10,102,117,110, 99,116,105,111,110, 32, 84,105,108,101, 58,
2942 99,114,101, 97,116,101, 95, 98, 97,115,101, 40,110, 97,109,
2943 101, 44, 32,112,108, 97,121,101,114, 41, 10,108,111,103, 46,
2944 100,101,112,114,101, 99, 97,116,105,111,110, 95,119, 97,114,
2945 110,105,110,103, 40, 34, 84,105,108,101, 58, 99,114,101, 97,
2946 116,101, 95, 98, 97,115,101, 40, 41, 34, 44, 32, 34, 84,105,
2947 108,101, 58, 99,114,101, 97,116,101, 95,111,119,110,101,100,
2948 95,101,120,116,114, 97, 40, 41, 34, 44, 10, 34, 51, 46, 48,
2949 34, 41, 59, 10,101,100,105,116, 46, 99,114,101, 97,116,101,
2950 95, 98, 97,115,101, 40,115,101,108,102, 44, 32,110, 97,109,
2951 101, 44, 32,112,108, 97,121,101,114, 41, 10,101,110,100, 10,
2952 102,117,110, 99,116,105,111,110, 32, 84,105,108,101, 58, 99,
2953 114,101, 97,116,101, 95,114,111, 97,100, 40,110, 97,109,101,
2954 41, 10,108,111,103, 46,100,101,112,114,101, 99, 97,116,105,
2955 111,110, 95,119, 97,114,110,105,110,103, 40, 34, 84,105,108,
2956 101, 58, 99,114,101, 97,116,101, 95,114,111, 97,100, 40, 41,
2957 34, 44, 32, 34, 84,105,108,101, 58, 99,114,101, 97,116,101,
2958 95,101,120,116,114, 97, 40, 41, 34, 44, 10, 34, 50, 46, 54,
2959 34, 41, 59, 10,101,100,105,116, 46, 99,114,101, 97,116,101,
2960 95,114,111, 97,100, 40,115,101,108,102, 44, 32,110, 97,109,
2961 101, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110,
2962 32, 84,105,108,101, 58,114,101,109,111,118,101, 95,101,120,
2963 116,114, 97, 40,110, 97,109,101, 41, 10,101,100,105,116, 46,
2964 114,101,109,111,118,101, 95,101,120,116,114, 97, 40,115,101,
2965 108,102, 44, 32,110, 97,109,101, 41, 10,101,110,100, 10,102,
2966 117,110, 99,116,105,111,110, 32, 84,105,108,101, 58, 99,104,
2967 97,110,103,101, 95,116,101,114,114, 97,105,110, 40,116,101,
2968 114,114, 97,105,110, 41, 10,101,100,105,116, 46, 99,104, 97,
2969 110,103,101, 95,116,101,114,114, 97,105,110, 40,115,101,108,
2970 102, 44, 32,116,101,114,114, 97,105,110, 41, 10,101,110,100,
2971 10,102,117,110, 99,116,105,111,110, 32, 84,105,108,101, 58,
2972 117,110,108,101, 97,115,104, 95, 98, 97,114, 98, 97,114,105,
2973 97,110,115, 40, 41, 10,114,101,116,117,114,110, 32,101,100,
2974 105,116, 46,117,110,108,101, 97,115,104, 95, 98, 97,114, 98,
2975 97,114,105, 97,110,115, 40,115,101,108,102, 41, 10,101,110,
2976 100, 10,102,117,110, 99,116,105,111,110, 32, 84,105,108,101,
2977 58,112,108, 97, 99,101, 95,112, 97,114,116,105,115, 97,110,
2978 115, 40,112,108, 97,121,101,114, 44, 32, 99,111,117,110,116,
2979 44, 32,115,113, 95,114, 97,100,105,117,115, 41, 10,101,100,
2980 105,116, 46,112,108, 97, 99,101, 95,112, 97,114,116,105,115,
2981 97,110,115, 40,115,101,108,102, 44, 32,112,108, 97,121,101,
2982 114, 44, 32, 99,111,117,110,116, 44, 32,115,113, 95,114, 97,
2983 100,105,117,115, 41, 10,101,110,100, 10,102,117,110, 99,116,
2984 105,111,110, 32, 84,105,108,101, 58,115,101,116, 95,108, 97,
2985 98,101,108, 40,108, 97, 98,101,108, 41, 10,101,100,105,116,
2986 46,116,105,108,101, 95,115,101,116, 95,108, 97, 98,101,108,
2987 40,115,101,108,102, 44, 32,108, 97, 98,101,108, 41, 10,101,
2988 110,100, 10,102,117,110, 99,116,105,111,110, 32, 84,105,108,
2989 101, 58,115,104,111,119, 40,112,108, 97,121,101,114, 41, 10,
2990 101,100,105,116, 46,116,105,108,101, 95,115,104,111,119, 40,
2991 115,101,108,102, 44, 32,112,108, 97,121,101,114, 41, 10,101,
2992 110,100, 10,102,117,110, 99,116,105,111,110, 32, 84,105,108,
2993 101, 58,104,105,100,101, 40,112,108, 97,121,101,114, 41, 10,
2994 114,101,116,117,114,110, 32,101,100,105,116, 46,116,105,108,
2995 101, 95,104,105,100,101, 40,115,101,108,102, 44, 32,112,108,
2996 97,121,101,114, 41, 10,101,110,100,32
2997 };
2998 if (luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") == LUA_OK)
3000 } /* end of embedded lua code */
3001
3002 tolua_module(tolua_S,"Player",0);
3003 tolua_beginmodule(tolua_S,"Player");
3004 tolua_module(tolua_S,"properties",0);
3005 tolua_beginmodule(tolua_S,"properties");
3018
3019 { /* begin embedded lua code */
3020 static unsigned char B[] = {
3021 10,101,100,105,116, 46,112,108, 97,121,101,114, 95,108,111,
3022 115,101, 32, 61, 32, 80,108, 97,121,101,114, 46,108,111,115,
3023 101,32
3024 };
3025 if (luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") == LUA_OK)
3027 } /* end of embedded lua code */
3028
3029 tolua_module(tolua_S,"game",1);
3030 tolua_beginmodule(tolua_S,"game");
3035 tolua_module(tolua_S,"Nation_Type",0);
3036 tolua_beginmodule(tolua_S,"Nation_Type");
3041 tolua_module(tolua_S,"Unit",0);
3042 tolua_beginmodule(tolua_S,"Unit");
3047 return 1;
3048}
3049/* Open tolua function */
3051{
3053 lua_pushstring(tolua_S, "server");
3054 lua_call(tolua_S, 1, 0);
3055 return 1;
3056}
const char * api_server_setting_get(lua_State *L, const char *sett_name)
bool api_server_was_started(lua_State *L)
bool api_popup_image(lua_State *L, Player *pplayer, const char *tag)
int api_server_player_civilization_score(lua_State *L, Player *pplayer)
bool api_play_music(lua_State *L, Player *pplayer, const char *tag)
bool api_server_save(lua_State *L, const char *filename)
void api_counter_increase(lua_State *L, Counter *c, City *city)
void api_counter_zero(lua_State *L, Counter *c, City *city)
void api_edit_change_city_size(lua_State *L, City *pcity, int change, Player *nationality)
bool api_edit_perform_action_unit_vs_tile_extra(lua_State *L, Unit *punit, Action *paction, Tile *tgt, const char *sub_tgt)
bool api_edit_perform_action_unit_vs_tile(lua_State *L, Unit *punit, Action *paction, Tile *tgt)
void api_edit_climate_change(lua_State *L, enum climate_change_type type, int effect)
void api_edit_player_give_bulbs(lua_State *L, Player *pplayer, int amount, Tech_Type *tech)
void api_edit_unit_moving_allow(lua_State *L, Unit *punit)
void api_edit_remove_city(lua_State *L, City *pcity)
bool api_edit_trait_mod_set(lua_State *L, Player *pplayer, const char *tname, const int mod)
bool api_edit_unleash_barbarians(lua_State *L, Tile *ptile)
void api_edit_remove_building(lua_State *L, City *pcity, Building_Type *impr)
void api_edit_player_victory(lua_State *L, Player *pplayer)
void api_edit_create_extra(lua_State *L, Tile *ptile, const char *name)
void api_edit_unit_movepoints(lua_State *L, Unit *self, int change)
Unit * api_edit_create_unit(lua_State *L, Player *pplayer, Tile *ptile, Unit_Type *ptype, int veteran_level, City *homecity, int moves_left)
bool api_edit_perform_action_unit_vs_unit(lua_State *L, Unit *punit, Action *paction, Unit *tgt)
void api_edit_player_add_history(lua_State *L, Player *pplayer, int amount)
Tech_Type * api_edit_give_technology(lua_State *L, Player *pplayer, Tech_Type *ptech, int cost, bool notify, const char *reason)
bool api_edit_perform_action_unit_vs_city_impr(lua_State *L, Unit *punit, Action *paction, City *tgt, Building_Type *sub_tgt)
void api_edit_create_building(lua_State *L, City *pcity, Building_Type *impr)
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)
bool api_edit_transfer_city(lua_State *L, City *pcity, Player *new_owner)
bool api_edit_change_terrain(lua_State *L, Tile *ptile, Terrain *pterr)
void api_edit_create_owned_extra(lua_State *L, Tile *ptile, const char *name, Player *pplayer)
void api_edit_tile_show(lua_State *L, Tile *ptile, Player *pplayer)
void api_edit_unit_kill(lua_State *L, Unit *punit, const char *reason, Player *killer)
bool api_edit_tile_hide(lua_State *L, Tile *ptile, Player *pplayer)
void api_edit_unit_turn(lua_State *L, Unit *punit, Direction dir)
void api_edit_place_partisans(lua_State *L, Tile *ptile, Player *pplayer, int count, int sq_radius)
void api_edit_remove_extra(lua_State *L, Tile *ptile, const char *name)
bool api_edit_city_reduce_specialists(lua_State *L, City *pcity, Specialist *s, int amount)
bool api_edit_unit_hitpoints(lua_State *L, Unit *self, int change, const char *reason, Player *killer)
void api_edit_tile_set_label(lua_State *L, Tile *ptile, const char *label)
void api_edit_create_road(lua_State *L, Tile *ptile, const char *name)
void api_edit_change_citizen_nationality(lua_State *L, City *pcity, Player *from, Player *to, int amount)
bool api_edit_perform_action_unit_vs_city(lua_State *L, Unit *punit, Action *paction, City *tgt)
void api_edit_city_add_history(lua_State *L, City *pcity, int amount)
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)
void api_edit_unit_moving_disallow(lua_State *L, Unit *punit)
bool api_edit_unit_upgrade(lua_State *L, Unit *punit, int vet_loss)
bool api_edit_create_city(lua_State *L, Player *pplayer, Tile *ptile, const char *name, Player *nationality)
bool api_edit_create_trade_route(lua_State *L, City *from, City *to)
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)
void api_edit_change_infrapoints(lua_State *L, Player *pplayer, int amount)
bool api_edit_perform_action_unit_vs_self(lua_State *L, Unit *punit, Action *paction)
Player * api_edit_create_player(lua_State *L, const char *username, Nation_Type *pnation, const char *ai)
bool api_edit_unit_transform(lua_State *L, Unit *punit, Unit_Type *ptype, int vet_loss)
void api_edit_change_gold(lua_State *L, Player *pplayer, int amount)
Player * api_edit_civil_war(lua_State *L, Player *pplayer, int probability)
bool api_edit_perform_action_unit_vs_city_tech(lua_State *L, Unit *punit, Action *paction, City *tgt, Tech_Type *sub_tgt)
void api_edit_create_base(lua_State *L, Tile *ptile, const char *name, Player *pplayer)
climate_change_type
@ CLIMATE_CHANGE_GLOBAL_WARMING
@ CLIMATE_CHANGE_NUCLEAR_WINTER
void api_methods_player_lose(lua_State *L, Player *pplayer, Player *looter)
int api_methods_love(lua_State *L, Player *pplayer, Player *towards)
void api_methods_add_love(lua_State *L, Player *pplayer, Player *towards, int amount)
int api_methods_nation_trait_min(lua_State *L, Nation_Type *pnation, const char *tname)
int api_methods_player_tech_bulbs(lua_State *L, Player *pplayer, Tech_Type *tech)
int api_methods_player_trait_base(lua_State *L, Player *pplayer, const char *tname)
int api_methods_player_free_bulbs(lua_State *L, Player *pplayer)
int api_methods_player_trait(lua_State *L, Player *pplayer, const char *tname)
void api_methods_cancel_pact(lua_State *L, Player *pplayer, Player *towards)
int api_methods_nation_trait_default(lua_State *L, Nation_Type *pnation, const char *tname)
int api_methods_player_trait_current_mod(lua_State *L, Player *pplayer, const char *tname)
int api_methods_nation_trait_max(lua_State *L, Nation_Type *pnation, const char *tname)
int api_methods_tag_score(lua_State *L, Player *pplayer, const char *tag)
const char * api_luadata_get_str(lua_State *L, const char *field)
void api_notify_event_msg(lua_State *L, Player *pplayer, Tile *ptile, int event, const char *message)
void api_notify_embassies_msg(lua_State *L, Player *pplayer, Tile *ptile, int event, const char *message)
void api_notify_research_embassies_msg(lua_State *L, Player *pplayer, int event, const char *message)
void api_notify_research_msg(lua_State *L, Player *pplayer, bool include_plr, int event, const char *message)
static struct ai_type * self
Definition classicai.c:46
char * incite_cost
Definition comments.c:76
static void enter_hut(QVariant data1, QVariant data2)
Definition dialogs.cpp:2680
static void frighten_hut(QVariant data1, QVariant data2)
Definition dialogs.cpp:2710
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
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 const struct action *paction struct unit struct city * pcity
Definition dialogs_g.h:78
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
enum event_type event
Definition events.c:81
GType type
Definition repodlgs.c:1313
const char * name
Definition inputfile.c:127
enum direction8 Direction
const char * setting_name(const struct setting *pset)
Definition settings.c:3333
Definition city.h:317
Definition tile.h:50
Definition unit.h:140
#define bool
Definition support.h:71
static int tolua_server_edit_unit_kill00(lua_State *tolua_S)
static int tolua_server_edit_perform_action01(lua_State *tolua_S)
static int tolua_server_server_started00(lua_State *tolua_S)
TOLUA_API int tolua_server_open(lua_State *tolua_S)
static int tolua_server_server_play_music00(lua_State *tolua_S)
static int tolua_server_edit_change_citizen_nationality00(lua_State *tolua_S)
static int tolua_server_edit_reduce_specialists00(lua_State *tolua_S)
static int tolua_server_edit_create_trade_route00(lua_State *tolua_S)
static int tolua_server_luadata_get_str00(lua_State *tolua_S)
static int tolua_server_edit_perform_action04(lua_State *tolua_S)
static int tolua_server_server_popup_image00(lua_State *tolua_S)
static int tolua_server_edit_create_unit00(lua_State *tolua_S)
static int tolua_server_edit_perform_action03(lua_State *tolua_S)
static int tolua_server_edit_tile_show00(lua_State *tolua_S)
static int tolua_server_Counter_increase00(lua_State *tolua_S)
static int tolua_server_edit_player_victory00(lua_State *tolua_S)
static int tolua_server_edit_change_city_size00(lua_State *tolua_S)
static int tolua_server_Unit_transform00(lua_State *tolua_S)
static int tolua_server_notify_embassies_msg00(lua_State *tolua_S)
#define game_server_multiresearch
static int tolua_server_edit_give_tech00(lua_State *tolua_S)
static int tolua_server_edit_unit_add_movepoints00(lua_State *tolua_S)
static int tolua_server_edit_place_partisans00(lua_State *tolua_S)
static int tolua_get_game_game_server_autoupgrade_veteran_loss(lua_State *tolua_S)
static int tolua_server_edit_create_building00(lua_State *tolua_S)
static int tolua_server_edit_climate_change00(lua_State *tolua_S)
static int tolua_server_Counter_zero00(lua_State *tolua_S)
static int tolua_server_edit_change_terrain00(lua_State *tolua_S)
static int tolua_server_edit_city_create00(lua_State *tolua_S)
static int tolua_server_edit_unit_add_hitpoints00(lua_State *tolua_S)
static int tolua_server_edit_perform_action06(lua_State *tolua_S)
static int tolua_server_Player_bulbs_saved00(lua_State *tolua_S)
static int tolua_server_server_civilization_score00(lua_State *tolua_S)
static void tolua_reg_types(lua_State *tolua_S)
static int tolua_server_notify_research_msg00(lua_State *tolua_S)
static int tolua_server_edit_create_owned_extra00(lua_State *tolua_S)
static int tolua_server_Nation_Type_trait_max00(lua_State *tolua_S)
static int tolua_server_notify_research_embassies_msg00(lua_State *tolua_S)
static int tolua_server_Player_cancel_pact00(lua_State *tolua_S)
static int tolua_server_Nation_Type_trait_min00(lua_State *tolua_S)
static int tolua_server_edit_remove_city00(lua_State *tolua_S)
int tolua_bnd_takeownership(lua_State *L)
static int tolua_server_Player_lose00(lua_State *tolua_S)
static int tolua_server_edit_add_player_history00(lua_State *tolua_S)
static int tolua_server_Player_tag_score00(lua_State *tolua_S)
static int tolua_server_server_setting_get00(lua_State *tolua_S)
static int tolua_server_edit_remove_extra00(lua_State *tolua_S)
static int tolua_server_edit_create_player00(lua_State *tolua_S)
static int tolua_server_server_save00(lua_State *tolua_S)
static int tolua_server_Player_love00(lua_State *tolua_S)
static int tolua_server_Player_trait_current_mod00(lua_State *tolua_S)
#define game_server_upgrade_veteran_loss
static int tolua_server_edit_unleash_barbarians00(lua_State *tolua_S)
static int tolua_server_edit_tile_set_label00(lua_State *tolua_S)
static int tolua_server_edit_change_gold00(lua_State *tolua_S)
static int tolua_get_game_game_server_multiresearch(lua_State *tolua_S)
static int tolua_server_edit_perform_action02(lua_State *tolua_S)
static int tolua_server_Nation_Type_trait_default00(lua_State *tolua_S)
static int tolua_server_edit_transfer_city00(lua_State *tolua_S)
static int tolua_server_edit_add_city_history00(lua_State *tolua_S)
static int tolua_get_game_game_server_upgrade_veteran_loss(lua_State *tolua_S)
static int tolua_server_edit_create_extra00(lua_State *tolua_S)
static int tolua_server_edit_movement_disallow00(lua_State *tolua_S)
static int tolua_server_edit_create_unit_full00(lua_State *tolua_S)
static int tolua_server_edit_create_road00(lua_State *tolua_S)
static int tolua_server_edit_unit_teleport00(lua_State *tolua_S)
static int tolua_server_edit_perform_action00(lua_State *tolua_S)
static int tolua_server_edit_perform_action05(lua_State *tolua_S)
#define game_server_autoupgrade_veteran_loss
static int tolua_server_Player_trait_base00(lua_State *tolua_S)
static int tolua_server_edit_tile_hide00(lua_State *tolua_S)
static int tolua_server_edit_give_bulbs00(lua_State *tolua_S)
static int tolua_server_edit_trait_mod00(lua_State *tolua_S)
static int tolua_server_Player_add_love00(lua_State *tolua_S)
static int tolua_server_notify_event_msg00(lua_State *tolua_S)
static int tolua_server_edit_remove_building00(lua_State *tolua_S)
static int tolua_server_edit_civil_war00(lua_State *tolua_S)
LUALIB_API int luaopen_server(lua_State *tolua_S)
static int tolua_server_edit_movement_allow00(lua_State *tolua_S)
static int tolua_server_Player_trait00(lua_State *tolua_S)
static int tolua_server_edit_change_infrapoints00(lua_State *tolua_S)
static int tolua_server_edit_create_base00(lua_State *tolua_S)
static int tolua_server_Unit_upgrade00(lua_State *tolua_S)
static int tolua_server_Player_properties_free_bulbs00(lua_State *tolua_S)
static int tolua_server_edit_unit_move00(lua_State *tolua_S)
static int tolua_server_edit_unit_turn00(lua_State *tolua_S)