Freeciv-3.4
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,"Player");
42 tolua_usertype(tolua_S,"Tech_Type");
43 tolua_usertype(tolua_S,"Building_Type");
44 tolua_usertype(tolua_S,"Specialist");
45 tolua_usertype(tolua_S,"Counter");
46 tolua_usertype(tolua_S,"City");
47 tolua_usertype(tolua_S,"Direction");
48 tolua_usertype(tolua_S,"Nation_Type");
49 tolua_usertype(tolua_S,"Unit");
50 tolua_usertype(tolua_S,"Tile");
51 tolua_usertype(tolua_S,"Action");
52 tolua_usertype(tolua_S,"Unit_Type");
53 tolua_usertype(tolua_S,"Terrain");
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_city_add_specialist */
843{
844#ifndef TOLUA_RELEASE
846 if (
847 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
848 !tolua_isusertype(tolua_S,2,"Specialist",0,&tolua_err) ||
851 )
852 goto tolua_lerror;
853 else
854#endif
855 {
859 int amount = ((int) tolua_tonumber(tolua_S,3,1));
860 {
863 }
864 }
865 return 1;
866#ifndef TOLUA_RELEASE
868 tolua_error(tolua_S,"#ferror in function 'add_specialist'.",&tolua_err);
869 return 0;
870#endif
871}
872
873/* function: api_edit_create_owned_extra */
875{
876#ifndef TOLUA_RELEASE
878 if (
879 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
881 !tolua_isusertype(tolua_S,3,"Player",0,&tolua_err) ||
883 )
884 goto tolua_lerror;
885 else
886#endif
887 {
889 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
890 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
891 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,3,0));
892 {
893 api_edit_create_owned_extra(L,ptile,name,pplayer);
894 }
895 }
896 return 0;
897#ifndef TOLUA_RELEASE
899 tolua_error(tolua_S,"#ferror in function 'create_owned_extra'.",&tolua_err);
900 return 0;
901#endif
902}
903
904/* function: api_edit_create_extra */
906{
907#ifndef TOLUA_RELEASE
909 if (
910 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
913 )
914 goto tolua_lerror;
915 else
916#endif
917 {
919 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
920 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
921 {
923 }
924 }
925 return 0;
926#ifndef TOLUA_RELEASE
928 tolua_error(tolua_S,"#ferror in function 'create_extra'.",&tolua_err);
929 return 0;
930#endif
931}
932
933/* function: api_edit_create_base */
935{
936#ifndef TOLUA_RELEASE
938 if (
939 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
941 !tolua_isusertype(tolua_S,3,"Player",0,&tolua_err) ||
943 )
944 goto tolua_lerror;
945 else
946#endif
947 {
949 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
950 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
951 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,3,0));
952 {
953 api_edit_create_base(L,ptile,name,pplayer);
954 }
955 }
956 return 0;
957#ifndef TOLUA_RELEASE
959 tolua_error(tolua_S,"#ferror in function 'create_base'.",&tolua_err);
960 return 0;
961#endif
962}
963
964/* function: api_edit_create_road */
966{
967#ifndef TOLUA_RELEASE
969 if (
970 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
973 )
974 goto tolua_lerror;
975 else
976#endif
977 {
979 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
980 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
981 {
983 }
984 }
985 return 0;
986#ifndef TOLUA_RELEASE
988 tolua_error(tolua_S,"#ferror in function 'create_road'.",&tolua_err);
989 return 0;
990#endif
991}
992
993/* function: api_edit_remove_extra */
995{
996#ifndef TOLUA_RELEASE
998 if (
999 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
1002 )
1003 goto tolua_lerror;
1004 else
1005#endif
1006 {
1007 lua_State* L = tolua_S;
1008 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
1009 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
1010 {
1012 }
1013 }
1014 return 0;
1015#ifndef TOLUA_RELEASE
1017 tolua_error(tolua_S,"#ferror in function 'remove_extra'.",&tolua_err);
1018 return 0;
1019#endif
1020}
1021
1022/* function: api_edit_tile_set_label */
1024{
1025#ifndef TOLUA_RELEASE
1027 if (
1028 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
1031 )
1032 goto tolua_lerror;
1033 else
1034#endif
1035 {
1036 lua_State* L = tolua_S;
1037 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
1038 const char* label = ((const char*) tolua_tostring(tolua_S,2,0));
1039 {
1040 api_edit_tile_set_label(L,ptile,label);
1041 }
1042 }
1043 return 0;
1044#ifndef TOLUA_RELEASE
1046 tolua_error(tolua_S,"#ferror in function 'tile_set_label'.",&tolua_err);
1047 return 0;
1048#endif
1049}
1050
1051/* function: api_edit_tile_show */
1053{
1054#ifndef TOLUA_RELEASE
1056 if (
1057 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
1058 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
1060 )
1061 goto tolua_lerror;
1062 else
1063#endif
1064 {
1065 lua_State* L = tolua_S;
1066 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
1067 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,2,0));
1068 {
1069 api_edit_tile_show(L,ptile,pplayer);
1070 }
1071 }
1072 return 0;
1073#ifndef TOLUA_RELEASE
1075 tolua_error(tolua_S,"#ferror in function 'tile_show'.",&tolua_err);
1076 return 0;
1077#endif
1078}
1079
1080/* function: api_edit_tile_hide */
1082{
1083#ifndef TOLUA_RELEASE
1085 if (
1086 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
1087 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
1089 )
1090 goto tolua_lerror;
1091 else
1092#endif
1093 {
1094 lua_State* L = tolua_S;
1095 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
1096 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,2,0));
1097 {
1098 bool tolua_ret = (bool) api_edit_tile_hide(L,ptile,pplayer);
1100 }
1101 }
1102 return 1;
1103#ifndef TOLUA_RELEASE
1105 tolua_error(tolua_S,"#ferror in function 'tile_hide'.",&tolua_err);
1106 return 0;
1107#endif
1108}
1109
1110/* function: api_edit_create_player */
1112{
1113#ifndef TOLUA_RELEASE
1115 if (
1117 !tolua_isusertype(tolua_S,2,"Nation_Type",0,&tolua_err) ||
1120 )
1121 goto tolua_lerror;
1122 else
1123#endif
1124 {
1125 lua_State* L = tolua_S;
1126 const char* username = ((const char*) tolua_tostring(tolua_S,1,0));
1127 Nation_Type* nation = ((Nation_Type*) tolua_tousertype(tolua_S,2,0));
1128 const char* ai = ((const char*) tolua_tostring(tolua_S,3,0));
1129 {
1130 Player* tolua_ret = (Player*) api_edit_create_player(L,username,nation,ai);
1131 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Player");
1132 }
1133 }
1134 return 1;
1135#ifndef TOLUA_RELEASE
1137 tolua_error(tolua_S,"#ferror in function 'create_player'.",&tolua_err);
1138 return 0;
1139#endif
1140}
1141
1142/* function: api_edit_change_gold */
1144{
1145#ifndef TOLUA_RELEASE
1147 if (
1148 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1151 )
1152 goto tolua_lerror;
1153 else
1154#endif
1155 {
1156 lua_State* L = tolua_S;
1157 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1158 int amount = ((int) tolua_tonumber(tolua_S,2,0));
1159 {
1160 api_edit_change_gold(L,pplayer,amount);
1161 }
1162 }
1163 return 0;
1164#ifndef TOLUA_RELEASE
1166 tolua_error(tolua_S,"#ferror in function 'change_gold'.",&tolua_err);
1167 return 0;
1168#endif
1169}
1170
1171/* function: api_edit_change_infrapoints */
1173{
1174#ifndef TOLUA_RELEASE
1176 if (
1177 !tolua_isusertype(tolua_S,1,"Player",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));
1187 int amount = ((int) tolua_tonumber(tolua_S,2,0));
1188 {
1190 }
1191 }
1192 return 0;
1193#ifndef TOLUA_RELEASE
1195 tolua_error(tolua_S,"#ferror in function 'change_infrapoints'.",&tolua_err);
1196 return 0;
1197#endif
1198}
1199
1200/* function: api_edit_give_technology */
1202{
1203#ifndef TOLUA_RELEASE
1205 if (
1206 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1207 !tolua_isusertype(tolua_S,2,"Tech_Type",0,&tolua_err) ||
1212 )
1213 goto tolua_lerror;
1214 else
1215#endif
1216 {
1217 lua_State* L = tolua_S;
1218 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1220 int cost = ((int) tolua_tonumber(tolua_S,3,0));
1221 bool notify = ((bool) tolua_toboolean(tolua_S,4,0));
1222 const char* reason = ((const char*) tolua_tostring(tolua_S,5,0));
1223 {
1225 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Tech_Type");
1226 }
1227 }
1228 return 1;
1229#ifndef TOLUA_RELEASE
1231 tolua_error(tolua_S,"#ferror in function 'give_tech'.",&tolua_err);
1232 return 0;
1233#endif
1234}
1235
1236/* function: api_edit_trait_mod_set */
1238{
1239#ifndef TOLUA_RELEASE
1241 if (
1242 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1246 )
1247 goto tolua_lerror;
1248 else
1249#endif
1250 {
1251 lua_State* L = tolua_S;
1252 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1253 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
1254 const int mod = ((const int) tolua_tonumber(tolua_S,3,0));
1255 {
1256 bool tolua_ret = (bool) api_edit_trait_mod_set(L,pplayer,tname,mod);
1258 }
1259 }
1260 return 1;
1261#ifndef TOLUA_RELEASE
1263 tolua_error(tolua_S,"#ferror in function 'trait_mod'.",&tolua_err);
1264 return 0;
1265#endif
1266}
1267
1268/* function: api_edit_unleash_barbarians */
1270{
1271#ifndef TOLUA_RELEASE
1273 if (
1274 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
1276 )
1277 goto tolua_lerror;
1278 else
1279#endif
1280 {
1281 lua_State* L = tolua_S;
1282 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
1283 {
1286 }
1287 }
1288 return 1;
1289#ifndef TOLUA_RELEASE
1291 tolua_error(tolua_S,"#ferror in function 'unleash_barbarians'.",&tolua_err);
1292 return 0;
1293#endif
1294}
1295
1296/* function: api_edit_place_partisans */
1298{
1299#ifndef TOLUA_RELEASE
1301 if (
1302 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
1303 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
1307 )
1308 goto tolua_lerror;
1309 else
1310#endif
1311 {
1312 lua_State* L = tolua_S;
1313 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
1314 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,2,0));
1315 int count = ((int) tolua_tonumber(tolua_S,3,0));
1316 int sq_radius = ((int) tolua_tonumber(tolua_S,4,0));
1317 {
1318 api_edit_place_partisans(L,ptile,pplayer,count,sq_radius);
1319 }
1320 }
1321 return 0;
1322#ifndef TOLUA_RELEASE
1324 tolua_error(tolua_S,"#ferror in function 'place_partisans'.",&tolua_err);
1325 return 0;
1326#endif
1327}
1328
1329/* function: api_edit_climate_change */
1331{
1332#ifndef TOLUA_RELEASE
1334 if (
1338 )
1339 goto tolua_lerror;
1340 else
1341#endif
1342 {
1343 lua_State* L = tolua_S;
1345 int effect = ((int) tolua_tonumber(tolua_S,2,0));
1346 {
1348 }
1349 }
1350 return 0;
1351#ifndef TOLUA_RELEASE
1353 tolua_error(tolua_S,"#ferror in function 'climate_change'.",&tolua_err);
1354 return 0;
1355#endif
1356}
1357
1358/* function: api_edit_civil_war */
1360{
1361#ifndef TOLUA_RELEASE
1363 if (
1364 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1367 )
1368 goto tolua_lerror;
1369 else
1370#endif
1371 {
1372 lua_State* L = tolua_S;
1373 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1374 int probability = ((int) tolua_tonumber(tolua_S,2,0));
1375 {
1377 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Player");
1378 }
1379 }
1380 return 1;
1381#ifndef TOLUA_RELEASE
1383 tolua_error(tolua_S,"#ferror in function 'civil_war'.",&tolua_err);
1384 return 0;
1385#endif
1386}
1387
1388/* function: api_edit_unit_turn */
1390{
1391#ifndef TOLUA_RELEASE
1393 if (
1394 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1395 !tolua_isusertype(tolua_S,2,"Direction",0,&tolua_err) ||
1397 )
1398 goto tolua_lerror;
1399 else
1400#endif
1401 {
1402 lua_State* L = tolua_S;
1403 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1405 {
1407 }
1408 }
1409 return 0;
1410#ifndef TOLUA_RELEASE
1412 tolua_error(tolua_S,"#ferror in function 'unit_turn'.",&tolua_err);
1413 return 0;
1414#endif
1415}
1416
1417/* function: api_edit_player_victory */
1419{
1420#ifndef TOLUA_RELEASE
1422 if (
1423 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1425 )
1426 goto tolua_lerror;
1427 else
1428#endif
1429 {
1430 lua_State* L = tolua_S;
1432 {
1434 }
1435 }
1436 return 0;
1437#ifndef TOLUA_RELEASE
1439 tolua_error(tolua_S,"#ferror in function 'player_victory'.",&tolua_err);
1440 return 0;
1441#endif
1442}
1443
1444/* function: api_edit_unit_move */
1446{
1447#ifndef TOLUA_RELEASE
1449 if (
1450 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1451 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
1453 !tolua_isusertype(tolua_S,4,"Unit",0,&tolua_err) ||
1460 )
1461 goto tolua_lerror;
1462 else
1463#endif
1464 {
1465 lua_State* L = tolua_S;
1466 Unit* self = ((Unit*) tolua_tousertype(tolua_S,1,0));
1468 int movecost = ((int) tolua_tonumber(tolua_S,3,0));
1471 bool conquer_city = ((bool) tolua_toboolean(tolua_S,6,0));
1472 bool conquer_extra = ((bool) tolua_toboolean(tolua_S,7,0));
1473 bool enter_hut = ((bool) tolua_toboolean(tolua_S,8,0));
1474 bool frighten_hut = ((bool) tolua_toboolean(tolua_S,9,0));
1475 {
1478 }
1479 }
1480 return 1;
1481#ifndef TOLUA_RELEASE
1483 tolua_error(tolua_S,"#ferror in function 'unit_move'.",&tolua_err);
1484 return 0;
1485#endif
1486}
1487
1488/* function: api_edit_unit_moving_disallow */
1490{
1491#ifndef TOLUA_RELEASE
1493 if (
1494 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1496 )
1497 goto tolua_lerror;
1498 else
1499#endif
1500 {
1501 lua_State* L = tolua_S;
1502 Unit* self = ((Unit*) tolua_tousertype(tolua_S,1,0));
1503 {
1505 }
1506 }
1507 return 0;
1508#ifndef TOLUA_RELEASE
1510 tolua_error(tolua_S,"#ferror in function 'movement_disallow'.",&tolua_err);
1511 return 0;
1512#endif
1513}
1514
1515/* function: api_edit_unit_moving_allow */
1517{
1518#ifndef TOLUA_RELEASE
1520 if (
1521 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1523 )
1524 goto tolua_lerror;
1525 else
1526#endif
1527 {
1528 lua_State* L = tolua_S;
1529 Unit* self = ((Unit*) tolua_tousertype(tolua_S,1,0));
1530 {
1532 }
1533 }
1534 return 0;
1535#ifndef TOLUA_RELEASE
1537 tolua_error(tolua_S,"#ferror in function 'movement_allow'.",&tolua_err);
1538 return 0;
1539#endif
1540}
1541
1542/* function: api_edit_perform_action_unit_vs_city */
1544{
1545#ifndef TOLUA_RELEASE
1547 if (
1548 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1549 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1550 !tolua_isusertype(tolua_S,3,"City",0,&tolua_err) ||
1552 )
1553 goto tolua_lerror;
1554 else
1555#endif
1556 {
1557 lua_State* L = tolua_S;
1558 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1560 City* tgt = ((City*) tolua_tousertype(tolua_S,3,0));
1561 {
1564 }
1565 }
1566 return 1;
1567#ifndef TOLUA_RELEASE
1569 tolua_error(tolua_S,"#ferror in function 'perform_action'.",&tolua_err);
1570 return 0;
1571#endif
1572}
1573
1574/* function: api_edit_perform_action_unit_vs_city_impr */
1576{
1578 if (
1579 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1580 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1581 !tolua_isusertype(tolua_S,3,"City",0,&tolua_err) ||
1582 !tolua_isusertype(tolua_S,4,"Building_Type",0,&tolua_err) ||
1584 )
1585 goto tolua_lerror;
1586 else
1587 {
1588 lua_State* L = tolua_S;
1589 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1591 City* tgt = ((City*) tolua_tousertype(tolua_S,3,0));
1593 {
1596 }
1597 }
1598 return 1;
1601}
1602
1603/* function: api_edit_perform_action_unit_vs_city_tech */
1605{
1607 if (
1608 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1609 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1610 !tolua_isusertype(tolua_S,3,"City",0,&tolua_err) ||
1611 !tolua_isusertype(tolua_S,4,"Tech_Type",0,&tolua_err) ||
1613 )
1614 goto tolua_lerror;
1615 else
1616 {
1617 lua_State* L = tolua_S;
1618 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1620 City* tgt = ((City*) tolua_tousertype(tolua_S,3,0));
1622 {
1625 }
1626 }
1627 return 1;
1630}
1631
1632/* function: api_edit_perform_action_unit_vs_unit */
1634{
1636 if (
1637 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1638 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1639 !tolua_isusertype(tolua_S,3,"Unit",0,&tolua_err) ||
1641 )
1642 goto tolua_lerror;
1643 else
1644 {
1645 lua_State* L = tolua_S;
1646 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1648 Unit* tgt = ((Unit*) tolua_tousertype(tolua_S,3,0));
1649 {
1652 }
1653 }
1654 return 1;
1657}
1658
1659/* function: api_edit_perform_action_unit_vs_tile */
1661{
1663 if (
1664 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1665 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1666 !tolua_isusertype(tolua_S,3,"Tile",0,&tolua_err) ||
1668 )
1669 goto tolua_lerror;
1670 else
1671 {
1672 lua_State* L = tolua_S;
1673 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1675 Tile* tgt = ((Tile*) tolua_tousertype(tolua_S,3,0));
1676 {
1679 }
1680 }
1681 return 1;
1684}
1685
1686/* function: api_edit_perform_action_unit_vs_tile_extra */
1688{
1690 if (
1691 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1692 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1693 !tolua_isusertype(tolua_S,3,"Tile",0,&tolua_err) ||
1696 )
1697 goto tolua_lerror;
1698 else
1699 {
1700 lua_State* L = tolua_S;
1701 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1703 Tile* tgt = ((Tile*) tolua_tousertype(tolua_S,3,0));
1704 const char* sub_tgt = ((const char*) tolua_tostring(tolua_S,4,0));
1705 {
1708 }
1709 }
1710 return 1;
1713}
1714
1715/* function: api_edit_perform_action_unit_vs_self */
1717{
1719 if (
1720 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1721 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1723 )
1724 goto tolua_lerror;
1725 else
1726 {
1727 lua_State* L = tolua_S;
1728 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1730 {
1733 }
1734 }
1735 return 1;
1738}
1739
1740/* function: api_edit_city_add_history */
1742{
1743#ifndef TOLUA_RELEASE
1745 if (
1746 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
1749 )
1750 goto tolua_lerror;
1751 else
1752#endif
1753 {
1754 lua_State* L = tolua_S;
1755 City* self = ((City*) tolua_tousertype(tolua_S,1,0));
1756 int amount = ((int) tolua_tonumber(tolua_S,2,0));
1757 {
1759 }
1760 }
1761 return 0;
1762#ifndef TOLUA_RELEASE
1764 tolua_error(tolua_S,"#ferror in function 'add_city_history'.",&tolua_err);
1765 return 0;
1766#endif
1767}
1768
1769/* function: api_edit_player_add_history */
1771{
1772#ifndef TOLUA_RELEASE
1774 if (
1775 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1778 )
1779 goto tolua_lerror;
1780 else
1781#endif
1782 {
1783 lua_State* L = tolua_S;
1785 int amount = ((int) tolua_tonumber(tolua_S,2,0));
1786 {
1788 }
1789 }
1790 return 0;
1791#ifndef TOLUA_RELEASE
1793 tolua_error(tolua_S,"#ferror in function 'add_player_history'.",&tolua_err);
1794 return 0;
1795#endif
1796}
1797
1798/* function: api_edit_player_give_bulbs */
1800{
1801#ifndef TOLUA_RELEASE
1803 if (
1804 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1806 !tolua_isusertype(tolua_S,3,"Tech_Type",1,&tolua_err) ||
1808 )
1809 goto tolua_lerror;
1810 else
1811#endif
1812 {
1813 lua_State* L = tolua_S;
1815 int amount = ((int) tolua_tonumber(tolua_S,2,0));
1817 {
1819 }
1820 }
1821 return 0;
1822#ifndef TOLUA_RELEASE
1824 tolua_error(tolua_S,"#ferror in function 'give_bulbs'.",&tolua_err);
1825 return 0;
1826#endif
1827}
1828
1829/* function: api_edit_create_trade_route */
1831{
1832#ifndef TOLUA_RELEASE
1834 if (
1835 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
1836 !tolua_isusertype(tolua_S,2,"City",0,&tolua_err) ||
1838 )
1839 goto tolua_lerror;
1840 else
1841#endif
1842 {
1843 lua_State* L = tolua_S;
1844 City* from = ((City*) tolua_tousertype(tolua_S,1,0));
1845 City* to = ((City*) tolua_tousertype(tolua_S,2,0));
1846 {
1847 bool tolua_ret = (bool) api_edit_create_trade_route(L,from,to);
1849 }
1850 }
1851 return 1;
1852#ifndef TOLUA_RELEASE
1854 tolua_error(tolua_S,"#ferror in function 'create_trade_route'.",&tolua_err);
1855 return 0;
1856#endif
1857}
1858
1859/* function: api_edit_change_city_size */
1861{
1862#ifndef TOLUA_RELEASE
1864 if (
1865 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
1867 !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 int change = ((int) tolua_tonumber(tolua_S,2,0));
1877 Player* nationality = ((Player*) tolua_tousertype(tolua_S,3,0));
1878 {
1879 api_edit_change_city_size(L,pcity,change,nationality);
1880 }
1881 }
1882 return 0;
1883#ifndef TOLUA_RELEASE
1885 tolua_error(tolua_S,"#ferror in function 'change_city_size'.",&tolua_err);
1886 return 0;
1887#endif
1888}
1889
1890/* function: api_edit_change_citizen_nationality */
1892{
1893#ifndef TOLUA_RELEASE
1895 if (
1896 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
1897 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
1898 !tolua_isusertype(tolua_S,3,"Player",0,&tolua_err) ||
1901 )
1902 goto tolua_lerror;
1903 else
1904#endif
1905 {
1906 lua_State* L = tolua_S;
1907 City* pcity = ((City*) tolua_tousertype(tolua_S,1,0));
1908 Player* from = ((Player*) tolua_tousertype(tolua_S,2,0));
1909 Player* to = ((Player*) tolua_tousertype(tolua_S,3,0));
1910 int amount = ((int) tolua_tonumber(tolua_S,4,0));
1911 {
1913 }
1914 }
1915 return 0;
1916#ifndef TOLUA_RELEASE
1918 tolua_error(tolua_S,"#ferror in function 'change_citizen_nationality'.",&tolua_err);
1919 return 0;
1920#endif
1921}
1922
1923/* function: api_luadata_get_str */
1925{
1926#ifndef TOLUA_RELEASE
1928 if (
1931 )
1932 goto tolua_lerror;
1933 else
1934#endif
1935 {
1936 lua_State* L = tolua_S;
1937 const char* field = ((const char*) tolua_tostring(tolua_S,1,0));
1938 {
1939 const char* tolua_ret = (const char*) api_luadata_get_str(L,field);
1940 tolua_pushstring(tolua_S,(const char*)tolua_ret);
1941 }
1942 }
1943 return 1;
1944#ifndef TOLUA_RELEASE
1946 tolua_error(tolua_S,"#ferror in function 'get_str'.",&tolua_err);
1947 return 0;
1948#endif
1949}
1950
1951/* function: api_methods_player_free_bulbs */
1953{
1954#ifndef TOLUA_RELEASE
1956 if (
1957 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1959 )
1960 goto tolua_lerror;
1961 else
1962#endif
1963 {
1964 lua_State* L = tolua_S;
1965 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1966 {
1969 }
1970 }
1971 return 1;
1972#ifndef TOLUA_RELEASE
1974 tolua_error(tolua_S,"#ferror in function 'free_bulbs'.",&tolua_err);
1975 return 0;
1976#endif
1977}
1978
1979/* function: api_methods_player_trait */
1981{
1982#ifndef TOLUA_RELEASE
1984 if (
1985 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1988 )
1989 goto tolua_lerror;
1990 else
1991#endif
1992 {
1993 lua_State* L = tolua_S;
1994 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1995 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
1996 {
1997 int tolua_ret = (int) api_methods_player_trait(L,pplayer,tname);
1999 }
2000 }
2001 return 1;
2002#ifndef TOLUA_RELEASE
2004 tolua_error(tolua_S,"#ferror in function 'trait'.",&tolua_err);
2005 return 0;
2006#endif
2007}
2008
2009/* function: api_methods_player_trait_base */
2011{
2012#ifndef TOLUA_RELEASE
2014 if (
2015 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
2018 )
2019 goto tolua_lerror;
2020 else
2021#endif
2022 {
2023 lua_State* L = tolua_S;
2024 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
2025 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
2026 {
2029 }
2030 }
2031 return 1;
2032#ifndef TOLUA_RELEASE
2034 tolua_error(tolua_S,"#ferror in function 'trait_base'.",&tolua_err);
2035 return 0;
2036#endif
2037}
2038
2039/* function: api_methods_player_trait_current_mod */
2041{
2042#ifndef TOLUA_RELEASE
2044 if (
2045 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
2048 )
2049 goto tolua_lerror;
2050 else
2051#endif
2052 {
2053 lua_State* L = tolua_S;
2054 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
2055 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
2056 {
2059 }
2060 }
2061 return 1;
2062#ifndef TOLUA_RELEASE
2064 tolua_error(tolua_S,"#ferror in function 'trait_current_mod'.",&tolua_err);
2065 return 0;
2066#endif
2067}
2068
2069/* function: api_methods_player_lose */
2071{
2072#ifndef TOLUA_RELEASE
2074 if (
2075 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
2076 !tolua_isusertype(tolua_S,2,"Player",1,&tolua_err) ||
2078 )
2079 goto tolua_lerror;
2080 else
2081#endif
2082 {
2083 lua_State* L = tolua_S;
2084 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
2086 {
2088 }
2089 }
2090 return 0;
2091#ifndef TOLUA_RELEASE
2093 tolua_error(tolua_S,"#ferror in function 'lose'.",&tolua_err);
2094 return 0;
2095#endif
2096}
2097
2098/* function: api_methods_player_tech_bulbs */
2100{
2101#ifndef TOLUA_RELEASE
2103 if (
2104 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
2105 !tolua_isusertype(tolua_S,2,"Tech_Type",0,&tolua_err) ||
2107 )
2108 goto tolua_lerror;
2109 else
2110#endif
2111 {
2112 lua_State* L = tolua_S;
2113 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
2114 Tech_Type* tech = ((Tech_Type*) tolua_tousertype(tolua_S,2,0));
2115 {
2116 int tolua_ret = (int) api_methods_player_tech_bulbs(L,pplayer,tech);
2118 }
2119 }
2120 return 1;
2121#ifndef TOLUA_RELEASE
2123 tolua_error(tolua_S,"#ferror in function 'bulbs_saved'.",&tolua_err);
2124 return 0;
2125#endif
2126}
2127
2128/* function: api_methods_tag_score */
2130{
2131#ifndef TOLUA_RELEASE
2133 if (
2134 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
2137 )
2138 goto tolua_lerror;
2139 else
2140#endif
2141 {
2142 lua_State* L = tolua_S;
2143 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
2144 const char* tag = ((const char*) tolua_tostring(tolua_S,2,0));
2145 {
2146 int tolua_ret = (int) api_methods_tag_score(L,pplayer,tag);
2148 }
2149 }
2150 return 1;
2151#ifndef TOLUA_RELEASE
2153 tolua_error(tolua_S,"#ferror in function 'tag_score'.",&tolua_err);
2154 return 0;
2155#endif
2156}
2157
2158/* function: api_methods_love */
2160{
2161#ifndef TOLUA_RELEASE
2163 if (
2164 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
2165 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
2167 )
2168 goto tolua_lerror;
2169 else
2170#endif
2171 {
2172 lua_State* L = tolua_S;
2173 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
2175 {
2176 int tolua_ret = (int) api_methods_love(L,pplayer,towards);
2178 }
2179 }
2180 return 1;
2181#ifndef TOLUA_RELEASE
2183 tolua_error(tolua_S,"#ferror in function 'love'.",&tolua_err);
2184 return 0;
2185#endif
2186}
2187
2188/* function: api_methods_add_love */
2190{
2191#ifndef TOLUA_RELEASE
2193 if (
2194 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
2195 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
2198 )
2199 goto tolua_lerror;
2200 else
2201#endif
2202 {
2203 lua_State* L = tolua_S;
2204 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
2206 int amount = ((int) tolua_tonumber(tolua_S,3,0));
2207 {
2209 }
2210 }
2211 return 0;
2212#ifndef TOLUA_RELEASE
2214 tolua_error(tolua_S,"#ferror in function 'add_love'.",&tolua_err);
2215 return 0;
2216#endif
2217}
2218
2219/* function: api_methods_cancel_pact */
2221{
2222#ifndef TOLUA_RELEASE
2224 if (
2225 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
2226 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
2228 )
2229 goto tolua_lerror;
2230 else
2231#endif
2232 {
2233 lua_State* L = tolua_S;
2234 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
2236 {
2238 }
2239 }
2240 return 0;
2241#ifndef TOLUA_RELEASE
2243 tolua_error(tolua_S,"#ferror in function 'cancel_pact'.",&tolua_err);
2244 return 0;
2245#endif
2246}
2247
2248/* get function: game_server_autoupgrade_veteran_loss */
2254
2255/* get function: game_server_upgrade_veteran_loss */
2261
2262/* get function: game_server_multiresearch */
2268
2269/* function: api_methods_nation_trait_min */
2271{
2272#ifndef TOLUA_RELEASE
2274 if (
2275 !tolua_isusertype(tolua_S,1,"Nation_Type",0,&tolua_err) ||
2278 )
2279 goto tolua_lerror;
2280 else
2281#endif
2282 {
2283 lua_State* L = tolua_S;
2284 Nation_Type* pnation = ((Nation_Type*) tolua_tousertype(tolua_S,1,0));
2285 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
2286 {
2289 }
2290 }
2291 return 1;
2292#ifndef TOLUA_RELEASE
2294 tolua_error(tolua_S,"#ferror in function 'trait_min'.",&tolua_err);
2295 return 0;
2296#endif
2297}
2298
2299/* function: api_methods_nation_trait_max */
2301{
2302#ifndef TOLUA_RELEASE
2304 if (
2305 !tolua_isusertype(tolua_S,1,"Nation_Type",0,&tolua_err) ||
2308 )
2309 goto tolua_lerror;
2310 else
2311#endif
2312 {
2313 lua_State* L = tolua_S;
2314 Nation_Type* pnation = ((Nation_Type*) tolua_tousertype(tolua_S,1,0));
2315 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
2316 {
2319 }
2320 }
2321 return 1;
2322#ifndef TOLUA_RELEASE
2324 tolua_error(tolua_S,"#ferror in function 'trait_max'.",&tolua_err);
2325 return 0;
2326#endif
2327}
2328
2329/* function: api_methods_nation_trait_default */
2331{
2332#ifndef TOLUA_RELEASE
2334 if (
2335 !tolua_isusertype(tolua_S,1,"Nation_Type",0,&tolua_err) ||
2338 )
2339 goto tolua_lerror;
2340 else
2341#endif
2342 {
2343 lua_State* L = tolua_S;
2344 Nation_Type* pnation = ((Nation_Type*) tolua_tousertype(tolua_S,1,0));
2345 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
2346 {
2349 }
2350 }
2351 return 1;
2352#ifndef TOLUA_RELEASE
2354 tolua_error(tolua_S,"#ferror in function 'trait_default'.",&tolua_err);
2355 return 0;
2356#endif
2357}
2358
2359/* function: api_edit_unit_upgrade */
2361{
2362#ifndef TOLUA_RELEASE
2364 if (
2365 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
2368 )
2369 goto tolua_lerror;
2370 else
2371#endif
2372 {
2373 lua_State* L = tolua_S;
2374 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
2375 int vet_loss = ((int) tolua_tonumber(tolua_S,2,0));
2376 {
2379 }
2380 }
2381 return 1;
2382#ifndef TOLUA_RELEASE
2384 tolua_error(tolua_S,"#ferror in function 'upgrade'.",&tolua_err);
2385 return 0;
2386#endif
2387}
2388
2389/* function: api_edit_unit_transform */
2391{
2392#ifndef TOLUA_RELEASE
2394 if (
2395 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
2396 !tolua_isusertype(tolua_S,2,"Unit_Type",0,&tolua_err) ||
2399 )
2400 goto tolua_lerror;
2401 else
2402#endif
2403 {
2404 lua_State* L = tolua_S;
2405 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
2407 int vet_loss = ((int) tolua_tonumber(tolua_S,3,0));
2408 {
2411 }
2412 }
2413 return 1;
2414#ifndef TOLUA_RELEASE
2416 tolua_error(tolua_S,"#ferror in function 'transform'.",&tolua_err);
2417 return 0;
2418#endif
2419}
2420
2421/* Open lib function */
2423{
2426 tolua_module(tolua_S, nullptr, 0);
2427 tolua_beginmodule(tolua_S, nullptr);
2428 tolua_module(tolua_S,"server",0);
2429 tolua_beginmodule(tolua_S,"server");
2435 tolua_module(tolua_S,"setting",0);
2436 tolua_beginmodule(tolua_S,"setting");
2440 tolua_module(tolua_S,"Counter",0);
2441 tolua_beginmodule(tolua_S,"Counter");
2445 tolua_module(tolua_S,"notify",0);
2446 tolua_beginmodule(tolua_S,"notify");
2452
2453 { /* begin embedded lua code */
2454 static unsigned char B[] = {
2455 10,102,117,110, 99,116,105,111,110, 32,110,111,116,105,102,
2456 121, 46, 97,108,108, 40, 46, 46, 46, 41, 10,108,111, 99, 97,
2457 108, 32, 97,114,103, 32, 61, 32,116, 97, 98,108,101, 46,112,
2458 97, 99,107, 40, 46, 46, 46, 41, 59, 10,110,111,116,105,102,
2459 121, 46,101,118,101,110,116, 95,109,115,103, 40,110,105,108,
2460 44, 32,110,105,108, 44, 32, 69, 46, 83, 67, 82, 73, 80, 84,
2461 44, 32,115,116,114,105,110,103, 46,102,111,114,109, 97,116,
2462 40,116, 97, 98,108,101, 46,117,110,112, 97, 99,107, 40, 97,
2463 114,103, 41, 41, 41, 10,101,110,100, 10,102,117,110, 99,116,
2464 105,111,110, 32,110,111,116,105,102,121, 46,112,108, 97,121,
2465 101,114, 40,112,108, 97,121,101,114, 44, 32, 46, 46, 46, 41,
2466 10,108,111, 99, 97,108, 32, 97,114,103, 32, 61, 32,116, 97,
2467 98,108,101, 46,112, 97, 99,107, 40, 46, 46, 46, 41, 59, 10,
2468 110,111,116,105,102,121, 46,101,118,101,110,116, 95,109,115,
2469 103, 40,112,108, 97,121,101,114, 44, 32,110,105,108, 44, 32,
2470 69, 46, 83, 67, 82, 73, 80, 84, 44, 32,115,116,114,105,110,
2471 103, 46,102,111,114,109, 97,116, 40,116, 97, 98,108,101, 46,
2472 117,110,112, 97, 99,107, 40, 97,114,103, 41, 41, 41, 10,101,
2473 110,100, 10,102,117,110, 99,116,105,111,110, 32,110,111,116,
2474 105,102,121, 46,101,118,101,110,116, 40,112,108, 97,121,101,
2475 114, 44, 32,116,105,108,101, 44, 32,101,118,101,110,116, 44,
2476 32, 46, 46, 46, 41, 10,108,111, 99, 97,108, 32, 97,114,103,
2477 32, 61, 32,116, 97, 98,108,101, 46,112, 97, 99,107, 40, 46,
2478 46, 46, 41, 59, 10,110,111,116,105,102,121, 46,101,118,101,
2479 110,116, 95,109,115,103, 40,112,108, 97,121,101,114, 44, 32,
2480 116,105,108,101, 44, 32,101,118,101,110,116, 44, 32,115,116,
2481 114,105,110,103, 46,102,111,114,109, 97,116, 40,116, 97, 98,
2482 108,101, 46,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41,
2483 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32,
2484 110,111,116,105,102,121, 46,101,109, 98, 97,115,115,105,101,
2485 115, 40,112,108, 97,121,101,114, 44, 32,112,116,105,108,101,
2486 44, 32,101,118,101,110,116, 44, 32, 46, 46, 46, 41, 10,108,
2487 111, 99, 97,108, 32, 97,114,103, 32, 61, 32,116, 97, 98,108,
2488 101, 46,112, 97, 99,107, 40, 46, 46, 46, 41, 59, 10,110,111,
2489 116,105,102,121, 46,101,109, 98, 97,115,115,105,101,115, 95,
2490 109,115,103, 40,112,108, 97,121,101,114, 44, 32,112,116,105,
2491 108,101, 44, 32,101,118,101,110,116, 44, 32,115,116,114,105,
2492 110,103, 46,102,111,114,109, 97,116, 40,116, 97, 98,108,101,
2493 46,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41, 41, 10,
2494 101,110,100, 10,102,117,110, 99,116,105,111,110, 32,110,111,
2495 116,105,102,121, 46,114,101,115,101, 97,114, 99,104, 40,112,
2496 108, 97,121,101,114, 44, 32,115,101,108,102,109,115,103, 44,
2497 32,101,118,101,110,116, 44, 32, 46, 46, 46, 41, 10,108,111,
2498 99, 97,108, 32, 97,114,103, 32, 61, 32,116, 97, 98,108,101,
2499 46,112, 97, 99,107, 40, 46, 46, 46, 41, 59, 10,110,111,116,
2500 105,102,121, 46,114,101,115,101, 97,114, 99,104, 95,109,115,
2501 103, 40,112,108, 97,121,101,114, 44, 32,115,101,108,102,109,
2502 115,103, 44, 32,101,118,101,110,116, 44, 32,115,116,114,105,
2503 110,103, 46,102,111,114,109, 97,116, 40,116, 97, 98,108,101,
2504 46,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41, 41, 10,
2505 101,110,100, 10,102,117,110, 99,116,105,111,110, 32,110,111,
2506 116,105,102,121, 46,114,101,115,101, 97,114, 99,104, 95,101,
2507 109, 98, 97,115,115,105,101,115, 40,112,108, 97,121,101,114,
2508 44, 32,101,118,101,110,116, 44, 32, 46, 46, 46, 41, 10,108,
2509 111, 99, 97,108, 32, 97,114,103, 32, 61, 32,116, 97, 98,108,
2510 101, 46,112, 97, 99,107, 40, 46, 46, 46, 41, 59, 10,110,111,
2511 116,105,102,121, 46,114,101,115,101, 97,114, 99,104, 95,101,
2512 109, 98, 97,115,115,105,101,115, 95,109,115,103, 40,112,108,
2513 97,121,101,114, 44, 32,101,118,101,110,116, 44, 32,115,116,
2514 114,105,110,103, 46,102,111,114,109, 97,116, 40,116, 97, 98,
2515 108,101, 46,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41,
2516 41, 10,101,110,100,32
2517 };
2518 if (luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") == LUA_OK)
2520 } /* end of embedded lua code */
2521
2522 tolua_module(tolua_S,"edit",0);
2523 tolua_beginmodule(tolua_S,"edit");
2576 tolua_module(tolua_S,"luadata",0);
2577 tolua_beginmodule(tolua_S,"luadata");
2580
2581 { /* begin embedded lua code */
2582 static unsigned char B[] = {
2583 10,102,117,110, 99,116,105,111,110, 32, 99,114,101, 97,116,
2584 101, 95,117,110,105,116, 40,112,108, 97,121,101,114, 44, 32,
2585 116,105,108,101, 44, 32,117,116,121,112,101, 44, 32,118,101,
2586 116,101,114, 97,110, 95,108,101,118,101,108, 44, 32,104,111,
2587 109,101, 99,105,116,121, 44, 32,109,111,118,101,115, 95,108,
2588 101,102,116, 41, 10,108,111,103, 46,100,101,112,114,101, 99,
2589 97,116,105,111,110, 95,119, 97,114,110,105,110,103, 40, 34,
2590 99,114,101, 97,116,101, 95,117,110,105,116, 40, 41, 34, 44,
2591 32, 34,101,100,105,116, 46, 99,114,101, 97,116,101, 95,117,
2592 110,105,116, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41, 59,
2593 10,114,101,116,117,114,110, 32,101,100,105,116, 46, 99,114,
2594 101, 97,116,101, 95,117,110,105,116, 40,112,108, 97,121,101,
2595 114, 44, 32,116,105,108,101, 44, 32,117,116,121,112,101, 44,
2596 32,118,101,116,101,114, 97,110, 95,108,101,118,101,108, 44,
2597 32,104,111,109,101, 99,105,116,121, 44, 10,109,111,118,101,
2598 115, 95,108,101,102,116, 41, 10,101,110,100, 10,102,117,110,
2599 99,116,105,111,110, 32, 99,114,101, 97,116,101, 95,117,110,
2600 105,116, 95,102,117,108,108, 40,112,108, 97,121,101,114, 44,
2601 32,116,105,108,101, 44, 32,117,116,121,112,101, 44, 32,118,
2602 101,116,101,114, 97,110, 95,108,101,118,101,108, 44, 32,104,
2603 111,109,101, 99,105,116,121, 44, 10,109,111,118,101,115, 95,
2604 108,101,102,116, 44, 32,104,112, 95,108,101,102,116, 44, 32,
2605 116,114, 97,110,115,112,111,114,116, 41, 10,108,111,103, 46,
2606 100,101,112,114,101, 99, 97,116,105,111,110, 95,119, 97,114,
2607 110,105,110,103, 40, 34, 99,114,101, 97,116,101, 95,117,110,
2608 105,116, 95,102,117,108,108, 40, 41, 34, 44, 32, 34,101,100,
2609 105,116, 46, 99,114,101, 97,116,101, 95,117,110,105,116, 95,
2610 102,117,108,108, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41,
2611 59, 10,114,101,116,117,114,110, 32,101,100,105,116, 46, 99,
2612 114,101, 97,116,101, 95,117,110,105,116, 95,102,117,108,108,
2613 40,112,108, 97,121,101,114, 44, 32,116,105,108,101, 44, 32,
2614 117,116,121,112,101, 44, 32,118,101,116,101,114, 97,110, 95,
2615 108,101,118,101,108, 44, 32,104,111,109,101, 99,105,116,121,
2616 44, 10,109,111,118,101,115, 95,108,101,102,116, 44, 32,104,
2617 112, 95,108,101,102,116, 44, 32,116,114, 97,110,115,112,111,
2618 114,116, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2619 110, 32, 99,114,101, 97,116,101, 95, 99,105,116,121, 40,112,
2620 108, 97,121,101,114, 44, 32,116,105,108,101, 44, 32,110, 97,
2621 109,101, 41, 10,108,111,103, 46,100,101,112,114,101, 99, 97,
2622 116,105,111,110, 95,119, 97,114,110,105,110,103, 40, 34, 99,
2623 114,101, 97,116,101, 95, 99,105,116,121, 40, 41, 34, 44, 32,
2624 34,101,100,105,116, 46, 99,114,101, 97,116,101, 95, 99,105,
2625 116,121, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41, 59, 10,
2626 101,100,105,116, 46, 99,105,116,121, 95, 99,114,101, 97,116,
2627 101, 40,112,108, 97,121,101,114, 44, 32,116,105,108,101, 44,
2628 32,110, 97,109,101, 44, 32,110,105,108, 41, 10,101,110,100,
2629 10,102,117,110, 99,116,105,111,110, 32,101,100,105,116, 46,
2630 99,114,101, 97,116,101, 95, 99,105,116,121, 40,112,108, 97,
2631 121,101,114, 44, 32,116,105,108,101, 44, 32,110, 97,109,101,
2632 41, 10,108,111,103, 46,100,101,112,114,101, 99, 97,116,105,
2633 111,110, 95,119, 97,114,110,105,110,103, 40, 34,101,100,105,
2634 116, 46, 99,114,101, 97,116,101, 95, 99,105,116,121, 40, 41,
2635 34, 44, 32, 34,101,100,105,116, 46, 99,105,116,121, 95, 99,
2636 114,101, 97,116,101, 40, 41, 34, 44, 10, 34, 51, 46, 51, 34,
2637 41, 59, 10,101,100,105,116, 46, 99,105,116,121, 95, 99,114,
2638 101, 97,116,101, 40,112,108, 97,121,101,114, 44, 32,116,105,
2639 108,101, 44, 32,110, 97,109,101, 44, 32,110,105,108, 41, 10,
2640 101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 99,114,
2641 101, 97,116,101, 95, 98, 97,115,101, 40,116,105,108,101, 44,
2642 32,110, 97,109,101, 44, 32,112,108, 97,121,101,114, 41, 10,
2643 108,111,103, 46,100,101,112,114,101, 99, 97,116,105,111,110,
2644 95,119, 97,114,110,105,110,103, 40, 34, 99,114,101, 97,116,
2645 101, 95, 98, 97,115,101, 40, 41, 34, 44, 32, 34,101,100,105,
2646 116, 46, 99,114,101, 97,116,101, 95,111,119,110,101,100, 95,
2647 101,120,116,114, 97, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34,
2648 41, 59, 10,101,100,105,116, 46, 99,114,101, 97,116,101, 95,
2649 98, 97,115,101, 40,116,105,108,101, 44, 32,110, 97,109,101,
2650 44, 32,112,108, 97,121,101,114, 41, 10,101,110,100, 10,102,
2651 117,110, 99,116,105,111,110, 32, 99,114,101, 97,116,101, 95,
2652 112,108, 97,121,101,114, 40,117,115,101,114,110, 97,109,101,
2653 44, 32,110, 97,116,105,111,110, 41, 10,108,111,103, 46,100,
2654 101,112,114,101, 99, 97,116,105,111,110, 95,119, 97,114,110,
2655 105,110,103, 40, 34, 99,114,101, 97,116,101, 95,112,108, 97,
2656 121,101,114, 40, 41, 34, 44, 32, 34,101,100,105,116, 46, 99,
2657 114,101, 97,116,101, 95,112,108, 97,121,101,114, 40, 41, 34,
2658 44, 10, 34, 50, 46, 52, 34, 41, 59, 10,114,101,116,117,114,
2659 110, 32,101,100,105,116, 46, 99,114,101, 97,116,101, 95,112,
2660 108, 97,121,101,114, 40,117,115,101,114,110, 97,109,101, 44,
2661 32,110, 97,116,105,111,110, 44, 32,110,105,108, 41, 10,101,
2662 110,100, 10,102,117,110, 99,116,105,111,110, 32, 99,104, 97,
2663 110,103,101, 95,103,111,108,100, 40,112,112,108, 97,121,101,
2664 114, 44, 32, 97,109,111,117,110,116, 41, 10,108,111,103, 46,
2665 100,101,112,114,101, 99, 97,116,105,111,110, 95,119, 97,114,
2666 110,105,110,103, 40, 34, 99,104, 97,110,103,101, 95,103,111,
2667 108,100, 40, 41, 34, 44, 32, 34,101,100,105,116, 46, 99,104,
2668 97,110,103,101, 95,103,111,108,100, 40, 41, 34, 44, 10, 34,
2669 50, 46, 52, 34, 41, 59, 10,101,100,105,116, 46, 99,104, 97,
2670 110,103,101, 95,103,111,108,100, 40,112,112,108, 97,121,101,
2671 114, 44, 32, 97,109,111,117,110,116, 41, 10,101,110,100, 10,
2672 102,117,110, 99,116,105,111,110, 32,103,105,118,101, 95,116,
2673 101, 99,104,110,111,108,111,103,121, 40,112,108, 97,121,101,
2674 114, 44, 32,116,101, 99,104, 44, 32,114,101, 97,115,111,110,
2675 41, 10,108,111,103, 46,100,101,112,114,101, 99, 97,116,105,
2676 111,110, 95,119, 97,114,110,105,110,103, 40, 34,103,105,118,
2677 101, 95,116,101, 99,104,110,111,108,111,103,121, 40, 41, 34,
2678 44, 32, 34,101,100,105,116, 46,103,105,118,101, 95,116,101,
2679 99,104, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41, 59, 10,
2680 114,101,116,117,114,110, 32,101,100,105,116, 46,103,105,118,
2681 101, 95,116,101, 99,104, 40,112,108, 97,121,101,114, 44, 32,
2682 116,101, 99,104, 44, 32, 45, 49, 44, 32,102, 97,108,115,101,
2683 44, 32,114,101, 97,115,111,110, 41, 10,101,110,100, 10,102,
2684 117,110, 99,116,105,111,110, 32,101,100,105,116, 46,103,105,
2685 118,101, 95,116,101, 99,104,110,111,108,111,103,121, 40,112,
2686 108, 97,121,101,114, 44, 32,116,101, 99,104, 44, 32,114,101,
2687 97,115,111,110, 41, 10,108,111,103, 46,100,101,112,114,101,
2688 99, 97,116,105,111,110, 95,119, 97,114,110,105,110,103, 40,
2689 34,101,100,105,116, 46,103,105,118,101, 95,116,101, 99,104,
2690 110,111,108,111,103,121, 40, 41, 34, 44, 32, 34,101,100,105,
2691 116, 46,103,105,118,101, 95,116,101, 99,104, 40, 41, 34, 44,
2692 10, 34, 50, 46, 54, 34, 41, 59, 10,114,101,116,117,114,110,
2693 32,101,100,105,116, 46,103,105,118,101, 95,116,101, 99,104,
2694 40,112,108, 97,121,101,114, 44, 32,116,101, 99,104, 44, 32,
2695 45, 49, 44, 32,102, 97,108,115,101, 44, 32,114,101, 97,115,
2696 111,110, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2697 110, 32,116,114, 97,105,116, 95,109,111,100, 40,112,108, 97,
2698 121,101,114, 44, 32,116,114, 97,105,116, 44, 32,109,111,100,
2699 41, 10,108,111,103, 46,100,101,112,114,101, 99, 97,116,105,
2700 111,110, 95,119, 97,114,110,105,110,103, 40, 34,116,114, 97,
2701 105,116, 95,109,111,100, 40, 41, 34, 44, 32, 34,101,100,105,
2702 116, 46,116,114, 97,105,116, 95,109,111,100, 40, 41, 34, 44,
2703 10, 34, 50, 46, 52, 34, 41, 59, 10,114,101,116,117,114,110,
2704 32,101,100,105,116, 46,116,114, 97,105,116, 95,109,111,100,
2705 40,112,108, 97,121,101,114, 44, 32,116,114, 97,105,116, 44,
2706 32,109,111,100, 41, 10,101,110,100, 10,102,117,110, 99,116,
2707 105,111,110, 32,117,110,108,101, 97,115,104, 95, 98, 97,114,
2708 98, 97,114,105, 97,110,115, 40,116,105,108,101, 41, 10,108,
2709 111,103, 46,100,101,112,114,101, 99, 97,116,105,111,110, 95,
2710 119, 97,114,110,105,110,103, 40, 34,117,110,108,101, 97,115,
2711 104, 95, 98, 97,114, 98, 97,114,105, 97,110,115, 40, 41, 34,
2712 44, 32, 34,101,100,105,116, 46,117,110,108,101, 97,115,104,
2713 95, 98, 97,114, 98, 97,114,105, 97,110,115, 40, 41, 34, 44,
2714 10, 34, 50, 46, 52, 34, 41, 59, 10,114,101,116,117,114,110,
2715 32,101,100,105,116, 46,117,110,108,101, 97,115,104, 95, 98,
2716 97,114, 98, 97,114,105, 97,110,115, 40,116,105,108,101, 41,
2717 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32,112,
2718 108, 97, 99,101, 95,112, 97,114,116,105,115, 97,110,115, 40,
2719 116,105,108,101, 44, 32,112,108, 97,121,101,114, 44, 32, 99,
2720 111,117,110,116, 44, 32,115,113, 95,114, 97,100,105,117,115,
2721 41, 10,108,111,103, 46,100,101,112,114,101, 99, 97,116,105,
2722 111,110, 95,119, 97,114,110,105,110,103, 40, 34,112,108, 97,
2723 99,101, 95,112, 97,114,116,105,115, 97,110,115, 40, 41, 34,
2724 44, 32, 34,101,100,105,116, 46,112,108, 97, 99,101, 95,112,
2725 97,114,116,105,115, 97,110,115, 40, 41, 34, 44, 10, 34, 50,
2726 46, 52, 34, 41, 59, 10,101,100,105,116, 46,112,108, 97, 99,
2727 101, 95,112, 97,114,116,105,115, 97,110,115, 40,116,105,108,
2728 101, 44, 32,112,108, 97,121,101,114, 44, 32, 99,111,117,110,
2729 116, 44, 32,115,113, 95,114, 97,100,105,117,115, 41, 10,101,
2730 110,100, 10,102,117,110, 99,116,105,111,110, 32, 80,108, 97,
2731 121,101,114, 58, 99,114,101, 97,116,101, 95,117,110,105,116,
2732 40,116,105,108,101, 44, 32,117,116,121,112,101, 44, 32,118,
2733 101,116,101,114, 97,110, 95,108,101,118,101,108, 44, 32,104,
2734 111,109,101, 99,105,116,121, 44, 32,109,111,118,101,115, 95,
2735 108,101,102,116, 41, 10,114,101,116,117,114,110, 32,101,100,
2736 105,116, 46, 99,114,101, 97,116,101, 95,117,110,105,116, 40,
2737 115,101,108,102, 44, 32,116,105,108,101, 44, 32,117,116,121,
2738 112,101, 44, 32,118,101,116,101,114, 97,110, 95,108,101,118,
2739 101,108, 44, 32,104,111,109,101, 99,105,116,121, 44, 10,109,
2740 111,118,101,115, 95,108,101,102,116, 41, 10,101,110,100, 10,
2741 102,117,110, 99,116,105,111,110, 32, 80,108, 97,121,101,114,
2742 58, 99,114,101, 97,116,101, 95,117,110,105,116, 95,102,117,
2743 108,108, 40,116,105,108,101, 44, 32,117,116,121,112,101, 44,
2744 32,118,101,116,101,114, 97,110, 95,108,101,118,101,108, 44,
2745 32,104,111,109,101, 99,105,116,121, 44, 10,109,111,118,101,
2746 115, 95,108,101,102,116, 44, 32,104,112, 95,108,101,102,116,
2747 44, 32,112,116,114, 97,110,115,112,111,114,116, 41, 10,114,
2748 101,116,117,114,110, 32,101,100,105,116, 46, 99,114,101, 97,
2749 116,101, 95,117,110,105,116, 95,102,117,108,108, 40,115,101,
2750 108,102, 44, 32,116,105,108,101, 44, 32,117,116,121,112,101,
2751 44, 32,118,101,116,101,114, 97,110, 95,108,101,118,101,108,
2752 44, 32,104,111,109,101, 99,105,116,121, 44, 10,109,111,118,
2753 101,115, 95,108,101,102,116, 44, 32,104,112, 95,108,101,102,
2754 116, 44, 32,112,116,114, 97,110,115,112,111,114,116, 41, 10,
2755 101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 80,108,
2756 97,121,101,114, 58, 99,105,118,105,108,105,122, 97,116,105,
2757 111,110, 95,115, 99,111,114,101, 40, 41, 10,114,101,116,117,
2758 114,110, 32,115,101,114,118,101,114, 46, 99,105,118,105,108,
2759 105,122, 97,116,105,111,110, 95,115, 99,111,114,101, 40,115,
2760 101,108,102, 41, 10,101,110,100, 10,102,117,110, 99,116,105,
2761 111,110, 32, 80,108, 97,121,101,114, 58, 99,114,101, 97,116,
2762 101, 95, 99,105,116,121, 40,116,105,108,101, 44, 32,110, 97,
2763 109,101, 41, 10,108,111,103, 46,100,101,112,114,101, 99, 97,
2764 116,105,111,110, 95,119, 97,114,110,105,110,103, 40, 34, 80,
2765 108, 97,121,101,114, 58, 99,114,101, 97,116,101, 95, 99,105,
2766 116,121, 40, 41, 34, 44, 32, 34, 80,108, 97,121,101,114, 58,
2767 99,105,116,121, 95, 99,114,101, 97,116,101, 40, 41, 34, 44,
2768 10, 34, 51, 46, 51, 34, 41, 59, 10,101,100,105,116, 46, 99,
2769 105,116,121, 95, 99,114,101, 97,116,101, 40,115,101,108,102,
2770 44, 32,116,105,108,101, 44, 32,110, 97,109,101, 44, 32,110,
2771 105,108, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2772 110, 32, 80,108, 97,121,101,114, 58, 99,105,116,121, 95, 99,
2773 114,101, 97,116,101, 40,116,105,108,101, 44, 32,110, 97,109,
2774 101, 44, 32,110, 97,116,105,111,110, 97,108,105,116,121, 41,
2775 10,101,100,105,116, 46, 99,105,116,121, 95, 99,114,101, 97,
2776 116,101, 40,115,101,108,102, 44, 32,116,105,108,101, 44, 32,
2777 110, 97,109,101, 44, 32,110, 97,116,105,111,110, 97,108,105,
2778 116,121, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2779 110, 32, 80,108, 97,121,101,114, 58, 99,104, 97,110,103,101,
2780 95,103,111,108,100, 40, 97,109,111,117,110,116, 41, 10,101,
2781 100,105,116, 46, 99,104, 97,110,103,101, 95,103,111,108,100,
2782 40,115,101,108,102, 44, 32, 97,109,111,117,110,116, 41, 10,
2783 101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 80,108,
2784 97,121,101,114, 58, 99,104, 97,110,103,101, 95,105,110,102,
2785 114, 97,112,111,105,110,116,115, 40, 97,109,111,117,110,116,
2786 41, 10,101,100,105,116, 46, 99,104, 97,110,103,101, 95,105,
2787 110,102,114, 97,112,111,105,110,116,115, 40,115,101,108,102,
2788 44, 32, 97,109,111,117,110,116, 41, 10,101,110,100, 10,102,
2789 117,110, 99,116,105,111,110, 32, 80,108, 97,121,101,114, 58,
2790 103,105,118,101, 95,116,101, 99,104, 40,116,101, 99,104, 44,
2791 32, 99,111,115,116, 44, 32,110,111,116,105,102,121, 44, 32,
2792 114,101, 97,115,111,110, 41, 10,114,101,116,117,114,110, 32,
2793 101,100,105,116, 46,103,105,118,101, 95,116,101, 99,104, 40,
2794 115,101,108,102, 44, 32,116,101, 99,104, 44, 32, 99,111,115,
2795 116, 44, 32,110,111,116,105,102,121, 44, 32,114,101, 97,115,
2796 111,110, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2797 110, 32, 80,108, 97,121,101,114, 58,103,105,118,101, 95,116,
2798 101, 99,104,110,111,108,111,103,121, 40,116,101, 99,104, 44,
2799 32,114,101, 97,115,111,110, 41, 10,108,111,103, 46,100,101,
2800 112,114,101, 99, 97,116,105,111,110, 95,119, 97,114,110,105,
2801 110,103, 40, 34, 80,108, 97,121,101,114, 58,103,105,118,101,
2802 95,116,101, 99,104,110,111,108,111,103,121, 40, 41, 34, 44,
2803 32, 34, 80,108, 97,121,101,114, 58,103,105,118,101, 95,116,
2804 101, 99,104, 40, 41, 34, 44, 10, 34, 50, 46, 54, 34, 41, 59,
2805 10,114,101,116,117,114,110, 32,101,100,105,116, 46,103,105,
2806 118,101, 95,116,101, 99,104, 40,115,101,108,102, 44, 32,116,
2807 101, 99,104, 44, 32, 45, 49, 44, 32,102, 97,108,115,101, 44,
2808 32,114,101, 97,115,111,110, 41, 10,101,110,100, 10,102,117,
2809 110, 99,116,105,111,110, 32, 80,108, 97,121,101,114, 58,116,
2810 114, 97,105,116, 95,109,111,100, 40,116,114, 97,105,116, 44,
2811 32,109,111,100, 41, 10,114,101,116,117,114,110, 32,101,100,
2812 105,116, 46,116,114, 97,105,116, 95,109,111,100, 40,115,101,
2813 108,102, 44, 32,116,114, 97,105,116, 44, 32,109,111,100, 41,
2814 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 80,
2815 108, 97,121,101,114, 58, 99,105,118,105,108, 95,119, 97,114,
2816 40,112,114,111, 98, 97, 98,105,108,105,116,121, 41, 10,114,
2817 101,116,117,114,110, 32,101,100,105,116, 46, 99,105,118,105,
2818 108, 95,119, 97,114, 40,115,101,108,102, 44, 32,112,114,111,
2819 98, 97, 98,105,108,105,116,121, 41, 10,101,110,100, 10,102,
2820 117,110, 99,116,105,111,110, 32, 80,108, 97,121,101,114, 58,
2821 118,105, 99,116,111,114,121, 40, 41, 10,101,100,105,116, 46,
2822 112,108, 97,121,101,114, 95,118,105, 99,116,111,114,121, 40,
2823 115,101,108,102, 41, 10,101,110,100, 10,102,117,110, 99,116,
2824 105,111,110, 32, 80,108, 97,121,101,114, 58, 97,100,100, 95,
2825 104,105,115,116,111,114,121, 40, 97,109,111,117,110,116, 41,
2826 10,101,100,105,116, 46, 97,100,100, 95,112,108, 97,121,101,
2827 114, 95,104,105,115,116,111,114,121, 40,115,101,108,102, 44,
2828 32, 97,109,111,117,110,116, 41, 10,101,110,100, 10,102,117,
2829 110, 99,116,105,111,110, 32, 80,108, 97,121,101,114, 58,103,
2830 105,118,101, 95, 98,117,108, 98,115, 40, 97,109,111,117,110,
2831 116, 44, 32,116,101, 99,104, 41, 10,101,100,105,116, 46,103,
2832 105,118,101, 95, 98,117,108, 98,115, 40,115,101,108,102, 44,
2833 32, 97,109,111,117,110,116, 44, 32,116,101, 99,104, 41, 10,
2834 101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 67,105,
2835 116,121, 58,114,101,109,111,118,101, 40, 41, 10,101,100,105,
2836 116, 46,114,101,109,111,118,101, 95, 99,105,116,121, 40,115,
2837 101,108,102, 41, 10,101,110,100, 10,102,117,110, 99,116,105,
2838 111,110, 32, 67,105,116,121, 58,116,114, 97,110,115,102,101,
2839 114, 40,110,101,119, 95,111,119,110,101,114, 41, 10,101,100,
2840 105,116, 46,116,114, 97,110,115,102,101,114, 95, 99,105,116,
2841 121, 40,115,101,108,102, 44, 32,110,101,119, 95,111,119,110,
2842 101,114, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2843 110, 32, 67,105,116,121, 58, 97,100,100, 95,104,105,115,116,
2844 111,114,121, 40, 97,109,111,117,110,116, 41, 10,101,100,105,
2845 116, 46, 97,100,100, 95, 99,105,116,121, 95,104,105,115,116,
2846 111,114,121, 40,115,101,108,102, 44, 32, 97,109,111,117,110,
2847 116, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110,
2848 32, 67,105,116,121, 58, 99,114,101, 97,116,101, 95, 98,117,
2849 105,108,100,105,110,103, 40,105,109,112,114, 41, 10,101,100,
2850 105,116, 46, 99,114,101, 97,116,101, 95, 98,117,105,108,100,
2851 105,110,103, 40,115,101,108,102, 44, 32,105,109,112,114, 41,
2852 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 67,
2853 105,116,121, 58,114,101,109,111,118,101, 95, 98,117,105,108,
2854 100,105,110,103, 40,105,109,112,114, 41, 10,101,100,105,116,
2855 46,114,101,109,111,118,101, 95, 98,117,105,108,100,105,110,
2856 103, 40,115,101,108,102, 44, 32,105,109,112,114, 41, 10,101,
2857 110,100, 10,102,117,110, 99,116,105,111,110, 32, 67,105,116,
2858 121, 58,114,101,100,117, 99,101, 95,115,112,101, 99,105, 97,
2859 108,105,115,116,115, 40,115,112,101, 99, 44, 32, 97,109,111,
2860 117,110,116, 41, 10,114,101,116,117,114,110, 32,101,100,105,
2861 116, 46,114,101,100,117, 99,101, 95,115,112,101, 99,105, 97,
2862 108,105,115,116,115, 40,115,101,108,102, 44, 32,115,112,101,
2863 99, 44, 32, 97,109,111,117,110,116, 32,111,114, 32, 49, 41,
2864 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 67,
2865 105,116,121, 58, 97,100,100, 95,115,112,101, 99,105, 97,108,
2866 105,115,116, 40,115,112,101, 99, 44, 32, 97,109,111,117,110,
2867 116, 41, 10,114,101,116,117,114,110, 32,101,100,105,116, 46,
2868 97,100,100, 95,115,112,101, 99,105, 97,108,105,115,116, 40,
2869 115,101,108,102, 44, 32,115,112,101, 99, 44, 32, 97,109,111,
2870 117,110,116, 32,111,114, 32, 49, 41, 10,101,110,100, 10,102,
2871 117,110, 99,116,105,111,110, 32, 67,105,116,121, 58, 99,104,
2872 97,110,103,101, 95,115,105,122,101, 40, 99,104, 97,110,103,
2873 101, 44, 32,110, 97,116,105,111,110, 97,108,105,116,121, 41,
2874 10,101,100,105,116, 46, 99,104, 97,110,103,101, 95, 99,105,
2875 116,121, 95,115,105,122,101, 40,115,101,108,102, 44, 32, 99,
2876 104, 97,110,103,101, 44, 32,110, 97,116,105,111,110, 97,108,
2877 105,116,121, 41, 10,101,110,100, 10,102,117,110, 99,116,105,
2878 111,110, 32, 67,105,116,121, 58, 99,104, 97,110,103,101, 95,
2879 110, 97,116,105,111,110, 97,108,105,116,121, 40,102,114,111,
2880 109, 44, 32,116,111, 44, 32, 97,109,111,117,110,116, 41, 10,
2881 101,100,105,116, 46, 99,104, 97,110,103,101, 95, 99,105,116,
2882 105,122,101,110, 95,110, 97,116,105,111,110, 97,108,105,116,
2883 121, 40,115,101,108,102, 44, 32,102,114,111,109, 44, 32,116,
2884 111, 44, 32, 97,109,111,117,110,116, 41, 10,101,110,100, 10,
2885 102,117,110, 99,116,105,111,110, 32, 85,110,105,116, 58,116,
2886 101,108,101,112,111,114,116, 40,100,101,115,116, 44, 10,101,
2887 109, 98, 97,114,107, 95,116,111, 44, 32, 97,108,108,111,119,
2888 95,100,105,115,101,109, 98, 97,114,107, 44, 10, 99,111,110,
2889 113,117,101,114, 95, 99,105,116,121, 44, 32, 99,111,110,113,
2890 117,101,114, 95,101,120,116,114, 97, 44, 10,101,110,116,101,
2891 114, 95,104,117,116, 44, 32,102,114,105,103,104,116,101,110,
2892 95,104,117,116, 41, 10,105,102, 32, 97,108,108,111,119, 95,
2893 100,105,115,101,109, 98, 97,114,107, 32, 61, 61, 32,110,105,
2894 108, 32,116,104,101,110, 10,114,101,116,117,114,110, 32,101,
2895 100,105,116, 46,117,110,105,116, 95,116,101,108,101,112,111,
2896 114,116, 40,115,101,108,102, 44, 32,100,101,115,116, 44, 32,
2897 110,105,108, 44, 32,102, 97,108,115,101, 44, 10,102, 97,108,
2898 115,101, 44, 32,102, 97,108,115,101, 44, 32,102, 97,108,115,
2899 101, 44, 32,102, 97,108,115,101, 41, 10,101,108,115,101, 10,
2900 114,101,116,117,114,110, 32,101,100,105,116, 46,117,110,105,
2901 116, 95,116,101,108,101,112,111,114,116, 40,115,101,108,102,
2902 44, 32,100,101,115,116, 44, 10,101,109, 98, 97,114,107, 95,
2903 116,111, 44, 32, 97,108,108,111,119, 95,100,105,115,101,109,
2904 98, 97,114,107, 44, 10, 99,111,110,113,117,101,114, 95, 99,
2905 105,116,121, 44, 32, 99,111,110,113,117,101,114, 95,101,120,
2906 116,114, 97, 44, 10,101,110,116,101,114, 95,104,117,116, 44,
2907 32,102,114,105,103,104,116,101,110, 95,104,117,116, 41, 10,
2908 101,110,100, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2909 110, 32, 85,110,105,116, 58,112,101,114,102,111,114,109, 95,
2910 97, 99,116,105,111,110, 40, 97, 99,116,105,111,110, 44, 32,
2911 116, 97,114,103,101,116, 44, 32,115,117, 98, 95,116, 97,114,
2912 103,101,116, 41, 10,105,102, 32,116, 97,114,103,101,116, 32,
2913 61, 61, 32,110,105,108, 32,116,104,101,110, 10,114,101,116,
2914 117,114,110, 32,101,100,105,116, 46,112,101,114,102,111,114,
2915 109, 95, 97, 99,116,105,111,110, 40,115,101,108,102, 44, 32,
2916 97, 99,116,105,111,110, 41, 10,101,108,115,101,105,102, 32,
2917 115,117, 98, 95,116, 97,114,103,101,116, 32, 61, 61, 32,110,
2918 105,108, 32,116,104,101,110, 10,114,101,116,117,114,110, 32,
2919 101,100,105,116, 46,112,101,114,102,111,114,109, 95, 97, 99,
2920 116,105,111,110, 40,115,101,108,102, 44, 32, 97, 99,116,105,
2921 111,110, 44, 32,116, 97,114,103,101,116, 41, 10,101,108,115,
2922 101, 10,114,101,116,117,114,110, 32,101,100,105,116, 46,112,
2923 101,114,102,111,114,109, 95, 97, 99,116,105,111,110, 40,115,
2924 101,108,102, 44, 32, 97, 99,116,105,111,110, 44, 32,116, 97,
2925 114,103,101,116, 44, 32,115,117, 98, 95,116, 97,114,103,101,
2926 116, 41, 10,101,110,100, 10,101,110,100, 10,102,117,110, 99,
2927 116,105,111,110, 32, 85,110,105,116, 58,116,117,114,110, 40,
2928 100,105,114,101, 99,116,105,111,110, 41, 10,101,100,105,116,
2929 46,117,110,105,116, 95,116,117,114,110, 40,115,101,108,102,
2930 44, 32,100,105,114,101, 99,116,105,111,110, 41, 10,101,110,
2931 100, 10,102,117,110, 99,116,105,111,110, 32, 85,110,105,116,
2932 58,107,105,108,108, 40,114,101, 97,115,111,110, 44, 32,107,
2933 105,108,108,101,114, 41, 10,101,100,105,116, 46,117,110,105,
2934 116, 95,107,105,108,108, 40,115,101,108,102, 44, 32,114,101,
2935 97,115,111,110, 44, 32,107,105,108,108,101,114, 41, 10,101,
2936 110,100, 10,102,117,110, 99,116,105,111,110, 32, 85,110,105,
2937 116, 58,109,111,118,101, 40,109,111,118,101,116,111, 44, 32,
2938 109,111,118,101, 99,111,115,116, 44, 10,101,109, 98, 97,114,
2939 107, 95,116,111, 44, 32, 97,108,108,111,119, 95,100,105,115,
2940 101,109, 98, 97,114,107, 44, 10, 99,111,110,113,117,101,114,
2941 95, 99,105,116,121, 44, 32, 99,111,110,113,117,101,114, 95,
2942 101,120,116,114, 97, 44, 10,101,110,116,101,114, 95,104,117,
2943 116, 44, 32,102,114,105,103,104,116,101,110, 95,104,117,116,
2944 41, 10,105,102, 32, 97,108,108,111,119, 95,100,105,115,101,
2945 109, 98, 97,114,107, 32, 61, 61, 32,110,105,108, 32,116,104,
2946 101,110, 10,114,101,116,117,114,110, 32,101,100,105,116, 46,
2947 117,110,105,116, 95,109,111,118,101, 40,115,101,108,102, 44,
2948 32,109,111,118,101,116,111, 44, 32,109,111,118,101, 99,111,
2949 115,116, 44, 32,110,105,108, 44, 32,102, 97,108,115,101, 44,
2950 10,102, 97,108,115,101, 44, 32,102, 97,108,115,101, 44, 32,
2951 102, 97,108,115,101, 44, 32,102, 97,108,115,101, 41, 10,101,
2952 108,115,101, 10,114,101,116,117,114,110, 32,101,100,105,116,
2953 46,117,110,105,116, 95,109,111,118,101, 40,115,101,108,102,
2954 44, 32,109,111,118,101,116,111, 44, 32,109,111,118,101, 99,
2955 111,115,116, 44, 10,101,109, 98, 97,114,107, 95,116,111, 44,
2956 32, 97,108,108,111,119, 95,100,105,115,101,109, 98, 97,114,
2957 107, 44, 10, 99,111,110,113,117,101,114, 95, 99,105,116,121,
2958 44, 32, 99,111,110,113,117,101,114, 95,101,120,116,114, 97,
2959 44, 10,101,110,116,101,114, 95,104,117,116, 44, 32,102,114,
2960 105,103,104,116,101,110, 95,104,117,116, 41, 10,101,110,100,
2961 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 85,
2962 110,105,116, 58,109,111,118,101,109,101,110,116, 95,100,105,
2963 115, 97,108,108,111,119, 40, 41, 10,101,100,105,116, 46,109,
2964 111,118,101,109,101,110,116, 95,100,105,115, 97,108,108,111,
2965 119, 40,115,101,108,102, 41, 10,101,110,100, 10,102,117,110,
2966 99,116,105,111,110, 32, 85,110,105,116, 58,109,111,118,101,
2967 109,101,110,116, 95, 97,108,108,111,119, 40, 41, 10,101,100,
2968 105,116, 46,109,111,118,101,109,101,110,116, 95, 97,108,108,
2969 111,119, 40,115,101,108,102, 41, 10,101,110,100, 10,102,117,
2970 110, 99,116,105,111,110, 32, 84,105,108,101, 58, 99,114,101,
2971 97,116,101, 95,111,119,110,101,100, 95,101,120,116,114, 97,
2972 40,110, 97,109,101, 44, 32,112,108, 97,121,101,114, 41, 10,
2973 101,100,105,116, 46, 99,114,101, 97,116,101, 95,111,119,110,
2974 101,100, 95,101,120,116,114, 97, 40,115,101,108,102, 44, 32,
2975 110, 97,109,101, 44, 32,112,108, 97,121,101,114, 41, 10,101,
2976 110,100, 10,102,117,110, 99,116,105,111,110, 32, 84,105,108,
2977 101, 58, 99,114,101, 97,116,101, 95,101,120,116,114, 97, 40,
2978 110, 97,109,101, 41, 10,101,100,105,116, 46, 99,114,101, 97,
2979 116,101, 95,101,120,116,114, 97, 40,115,101,108,102, 44, 32,
2980 110, 97,109,101, 41, 10,101,110,100, 10,102,117,110, 99,116,
2981 105,111,110, 32, 84,105,108,101, 58, 99,114,101, 97,116,101,
2982 95, 98, 97,115,101, 40,110, 97,109,101, 44, 32,112,108, 97,
2983 121,101,114, 41, 10,108,111,103, 46,100,101,112,114,101, 99,
2984 97,116,105,111,110, 95,119, 97,114,110,105,110,103, 40, 34,
2985 84,105,108,101, 58, 99,114,101, 97,116,101, 95, 98, 97,115,
2986 101, 40, 41, 34, 44, 32, 34, 84,105,108,101, 58, 99,114,101,
2987 97,116,101, 95,111,119,110,101,100, 95,101,120,116,114, 97,
2988 40, 41, 34, 44, 10, 34, 51, 46, 48, 34, 41, 59, 10,101,100,
2989 105,116, 46, 99,114,101, 97,116,101, 95, 98, 97,115,101, 40,
2990 115,101,108,102, 44, 32,110, 97,109,101, 44, 32,112,108, 97,
2991 121,101,114, 41, 10,101,110,100, 10,102,117,110, 99,116,105,
2992 111,110, 32, 84,105,108,101, 58, 99,114,101, 97,116,101, 95,
2993 114,111, 97,100, 40,110, 97,109,101, 41, 10,108,111,103, 46,
2994 100,101,112,114,101, 99, 97,116,105,111,110, 95,119, 97,114,
2995 110,105,110,103, 40, 34, 84,105,108,101, 58, 99,114,101, 97,
2996 116,101, 95,114,111, 97,100, 40, 41, 34, 44, 32, 34, 84,105,
2997 108,101, 58, 99,114,101, 97,116,101, 95,101,120,116,114, 97,
2998 40, 41, 34, 44, 10, 34, 50, 46, 54, 34, 41, 59, 10,101,100,
2999 105,116, 46, 99,114,101, 97,116,101, 95,114,111, 97,100, 40,
3000 115,101,108,102, 44, 32,110, 97,109,101, 41, 10,101,110,100,
3001 10,102,117,110, 99,116,105,111,110, 32, 84,105,108,101, 58,
3002 114,101,109,111,118,101, 95,101,120,116,114, 97, 40,110, 97,
3003 109,101, 41, 10,101,100,105,116, 46,114,101,109,111,118,101,
3004 95,101,120,116,114, 97, 40,115,101,108,102, 44, 32,110, 97,
3005 109,101, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
3006 110, 32, 84,105,108,101, 58, 99,104, 97,110,103,101, 95,116,
3007 101,114,114, 97,105,110, 40,116,101,114,114, 97,105,110, 41,
3008 10,101,100,105,116, 46, 99,104, 97,110,103,101, 95,116,101,
3009 114,114, 97,105,110, 40,115,101,108,102, 44, 32,116,101,114,
3010 114, 97,105,110, 41, 10,101,110,100, 10,102,117,110, 99,116,
3011 105,111,110, 32, 84,105,108,101, 58,117,110,108,101, 97,115,
3012 104, 95, 98, 97,114, 98, 97,114,105, 97,110,115, 40, 41, 10,
3013 114,101,116,117,114,110, 32,101,100,105,116, 46,117,110,108,
3014 101, 97,115,104, 95, 98, 97,114, 98, 97,114,105, 97,110,115,
3015 40,115,101,108,102, 41, 10,101,110,100, 10,102,117,110, 99,
3016 116,105,111,110, 32, 84,105,108,101, 58,112,108, 97, 99,101,
3017 95,112, 97,114,116,105,115, 97,110,115, 40,112,108, 97,121,
3018 101,114, 44, 32, 99,111,117,110,116, 44, 32,115,113, 95,114,
3019 97,100,105,117,115, 41, 10,101,100,105,116, 46,112,108, 97,
3020 99,101, 95,112, 97,114,116,105,115, 97,110,115, 40,115,101,
3021 108,102, 44, 32,112,108, 97,121,101,114, 44, 32, 99,111,117,
3022 110,116, 44, 32,115,113, 95,114, 97,100,105,117,115, 41, 10,
3023 101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 84,105,
3024 108,101, 58,115,101,116, 95,108, 97, 98,101,108, 40,108, 97,
3025 98,101,108, 41, 10,101,100,105,116, 46,116,105,108,101, 95,
3026 115,101,116, 95,108, 97, 98,101,108, 40,115,101,108,102, 44,
3027 32,108, 97, 98,101,108, 41, 10,101,110,100, 10,102,117,110,
3028 99,116,105,111,110, 32, 84,105,108,101, 58,115,104,111,119,
3029 40,112,108, 97,121,101,114, 41, 10,101,100,105,116, 46,116,
3030 105,108,101, 95,115,104,111,119, 40,115,101,108,102, 44, 32,
3031 112,108, 97,121,101,114, 41, 10,101,110,100, 10,102,117,110,
3032 99,116,105,111,110, 32, 84,105,108,101, 58,104,105,100,101,
3033 40,112,108, 97,121,101,114, 41, 10,114,101,116,117,114,110,
3034 32,101,100,105,116, 46,116,105,108,101, 95,104,105,100,101,
3035 40,115,101,108,102, 44, 32,112,108, 97,121,101,114, 41, 10,
3036 101,110,100,32
3037 };
3038 if (luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") == LUA_OK)
3040 } /* end of embedded lua code */
3041
3042 tolua_module(tolua_S,"Player",0);
3043 tolua_beginmodule(tolua_S,"Player");
3044 tolua_module(tolua_S,"properties",0);
3045 tolua_beginmodule(tolua_S,"properties");
3058
3059 { /* begin embedded lua code */
3060 static unsigned char B[] = {
3061 10,101,100,105,116, 46,112,108, 97,121,101,114, 95,108,111,
3062 115,101, 32, 61, 32, 80,108, 97,121,101,114, 46,108,111,115,
3063 101,32
3064 };
3065 if (luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") == LUA_OK)
3067 } /* end of embedded lua code */
3068
3069 tolua_module(tolua_S,"game",1);
3070 tolua_beginmodule(tolua_S,"game");
3075 tolua_module(tolua_S,"Nation_Type",0);
3076 tolua_beginmodule(tolua_S,"Nation_Type");
3081 tolua_module(tolua_S,"Unit",0);
3082 tolua_beginmodule(tolua_S,"Unit");
3087 return 1;
3088}
3089/* Open tolua function */
3091{
3093 lua_pushstring(tolua_S, "server");
3094 lua_call(tolua_S, 1, 0);
3095 return 1;
3096}
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)
bool api_edit_city_add_specialist(lua_State *L, City *pcity, Specialist *s, int amount)
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:2681
static void frighten_hut(QVariant data1, QVariant data2)
Definition dialogs.cpp:2711
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:3375
Definition city.h:318
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_edit_add_specialist00(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)