Freeciv-3.3
Loading...
Searching...
No Matches
tolua_server_gen.c
Go to the documentation of this file.
1/*
2** Lua binding: server
3*/
4
5#include "tolua.h"
6
7#ifndef __cplusplus
8#include <stdlib.h>
9#endif
10#ifdef __cplusplus
11 extern "C" int tolua_bnd_takeownership (lua_State* L); // from tolua_map.c
12#else
13 int tolua_bnd_takeownership (lua_State* L); /* from tolua_map.c */
14#endif
15#include <string.h>
16
17/* Exported function */
20
21#ifdef HAVE_CONFIG_H
22#include <fc_config.h>
23#endif
24#include "luascript_types.h"
25#include "commands.h"
26#include "console.h"
27#include "api_server_edit.h"
28#include "api_server_base.h"
29#include "api_server_counters.h"
30#include "api_server_luadata.h"
31#include "api_server_notify.h"
33#include "script_server.h"
34#define game_server_autoupgrade_veteran_loss (game.server.autoupgrade_veteran_loss)
35#define game_server_upgrade_veteran_loss (game.server.upgrade_veteran_loss)
36#define game_server_multiresearch (game.server.multiresearch)
37
38/* function to register type */
40{
41 tolua_usertype(tolua_S,"Player");
42 tolua_usertype(tolua_S,"Tech_Type");
43 tolua_usertype(tolua_S,"Action");
44 tolua_usertype(tolua_S,"Nation_Type");
45 tolua_usertype(tolua_S,"Direction");
46 tolua_usertype(tolua_S,"City");
47 tolua_usertype(tolua_S,"Building_Type");
48 tolua_usertype(tolua_S,"Unit");
49 tolua_usertype(tolua_S,"Unit_Type");
50 tolua_usertype(tolua_S,"Tile");
51 tolua_usertype(tolua_S,"Counter");
52 tolua_usertype(tolua_S,"Terrain");
53}
54
55/* function: api_server_save */
57{
58#ifndef TOLUA_RELEASE
60 if (
63 )
64 goto tolua_lerror;
65 else
66#endif
67 {
69 const char* filename = ((const char*) tolua_tostring(tolua_S,1,0));
70 {
71 bool tolua_ret = (bool) api_server_save(L,filename);
73 }
74 }
75 return 1;
76#ifndef TOLUA_RELEASE
78 tolua_error(tolua_S,"#ferror in function 'save'.",&tolua_err);
79 return 0;
80#endif
81}
82
83/* function: api_server_was_started */
85{
86#ifndef TOLUA_RELEASE
88 if (
90 )
91 goto tolua_lerror;
92 else
93#endif
94 {
96 {
99 }
100 }
101 return 1;
102#ifndef TOLUA_RELEASE
104 tolua_error(tolua_S,"#ferror in function 'started'.",&tolua_err);
105 return 0;
106#endif
107}
108
109/* function: api_server_player_civilization_score */
111{
112#ifndef TOLUA_RELEASE
114 if (
115 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
117 )
118 goto tolua_lerror;
119 else
120#endif
121 {
123 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
124 {
127 }
128 }
129 return 1;
130#ifndef TOLUA_RELEASE
132 tolua_error(tolua_S,"#ferror in function 'civilization_score'.",&tolua_err);
133 return 0;
134#endif
135}
136
137/* function: api_play_music */
139{
140#ifndef TOLUA_RELEASE
142 if (
143 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
146 )
147 goto tolua_lerror;
148 else
149#endif
150 {
152 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
153 const char* tag = ((const char*) tolua_tostring(tolua_S,2,0));
154 {
155 bool tolua_ret = (bool) api_play_music(L,pplayer,tag);
157 }
158 }
159 return 1;
160#ifndef TOLUA_RELEASE
162 tolua_error(tolua_S,"#ferror in function 'play_music'.",&tolua_err);
163 return 0;
164#endif
165}
166
167/* function: api_popup_image */
169{
170#ifndef TOLUA_RELEASE
172 if (
173 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
176 )
177 goto tolua_lerror;
178 else
179#endif
180 {
182 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
183 const char* tag = ((const char*) tolua_tostring(tolua_S,2,0));
184 {
185 bool tolua_ret = (bool) api_popup_image(L,pplayer,tag);
187 }
188 }
189 return 1;
190#ifndef TOLUA_RELEASE
192 tolua_error(tolua_S,"#ferror in function 'popup_image'.",&tolua_err);
193 return 0;
194#endif
195}
196
197/* function: api_server_setting_get */
199{
200#ifndef TOLUA_RELEASE
202 if (
205 )
206 goto tolua_lerror;
207 else
208#endif
209 {
211 const char* setting_name = ((const char*) tolua_tostring(tolua_S,1,0));
212 {
213 const char* tolua_ret = (const char*) api_server_setting_get(L,setting_name);
214 tolua_pushstring(tolua_S,(const char*)tolua_ret);
215 }
216 }
217 return 1;
218#ifndef TOLUA_RELEASE
220 tolua_error(tolua_S,"#ferror in function 'get'.",&tolua_err);
221 return 0;
222#endif
223}
224
225/* function: api_counter_increase */
227{
228#ifndef TOLUA_RELEASE
230 if (
231 !tolua_isusertype(tolua_S,1,"Counter",0,&tolua_err) ||
232 !tolua_isusertype(tolua_S,2,"City",0,&tolua_err) ||
234 )
235 goto tolua_lerror;
236 else
237#endif
238 {
242 {
244 }
245 }
246 return 0;
247#ifndef TOLUA_RELEASE
249 tolua_error(tolua_S,"#ferror in function 'increase'.",&tolua_err);
250 return 0;
251#endif
252}
253
254/* function: api_counter_zero */
256{
257#ifndef TOLUA_RELEASE
259 if (
260 !tolua_isusertype(tolua_S,1,"Counter",0,&tolua_err) ||
261 !tolua_isusertype(tolua_S,2,"City",0,&tolua_err) ||
263 )
264 goto tolua_lerror;
265 else
266#endif
267 {
271 {
273 }
274 }
275 return 0;
276#ifndef TOLUA_RELEASE
278 tolua_error(tolua_S,"#ferror in function 'zero'.",&tolua_err);
279 return 0;
280#endif
281}
282
283/* function: api_notify_embassies_msg */
285{
286#ifndef TOLUA_RELEASE
288 if (
289 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
290 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
294 )
295 goto tolua_lerror;
296 else
297#endif
298 {
300 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
301 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,2,0));
302 int event = ((int) tolua_tonumber(tolua_S,3,0));
303 const char* message = ((const char*) tolua_tostring(tolua_S,4,0));
304 {
306 }
307 }
308 return 0;
309#ifndef TOLUA_RELEASE
311 tolua_error(tolua_S,"#ferror in function 'embassies_msg'.",&tolua_err);
312 return 0;
313#endif
314}
315
316/* function: api_notify_research_msg */
318{
319#ifndef TOLUA_RELEASE
321 if (
322 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
327 )
328 goto tolua_lerror;
329 else
330#endif
331 {
333 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
334 bool include_plr = ((bool) tolua_toboolean(tolua_S,2,0));
335 int event = ((int) tolua_tonumber(tolua_S,3,0));
336 const char* message = ((const char*) tolua_tostring(tolua_S,4,0));
337 {
339 }
340 }
341 return 0;
342#ifndef TOLUA_RELEASE
344 tolua_error(tolua_S,"#ferror in function 'research_msg'.",&tolua_err);
345 return 0;
346#endif
347}
348
349/* function: api_notify_research_embassies_msg */
351{
352#ifndef TOLUA_RELEASE
354 if (
355 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
359 )
360 goto tolua_lerror;
361 else
362#endif
363 {
365 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
366 int event = ((int) tolua_tonumber(tolua_S,2,0));
367 const char* message = ((const char*) tolua_tostring(tolua_S,3,0));
368 {
370 }
371 }
372 return 0;
373#ifndef TOLUA_RELEASE
375 tolua_error(tolua_S,"#ferror in function 'research_embassies_msg'.",&tolua_err);
376 return 0;
377#endif
378}
379
380/* function: api_notify_event_msg */
382{
383#ifndef TOLUA_RELEASE
385 if (
386 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
387 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
391 )
392 goto tolua_lerror;
393 else
394#endif
395 {
397 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
398 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,2,0));
399 int event = ((int) tolua_tonumber(tolua_S,3,0));
400 const char* message = ((const char*) tolua_tostring(tolua_S,4,0));
401 {
402 api_notify_event_msg(L,pplayer,ptile,event,message);
403 }
404 }
405 return 0;
406#ifndef TOLUA_RELEASE
408 tolua_error(tolua_S,"#ferror in function 'event_msg'.",&tolua_err);
409 return 0;
410#endif
411}
412
413/* function: api_edit_create_unit */
415{
416#ifndef TOLUA_RELEASE
418 if (
419 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
420 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
421 !tolua_isusertype(tolua_S,3,"Unit_Type",0,&tolua_err) ||
423 !tolua_isusertype(tolua_S,5,"City",0,&tolua_err) ||
426 )
427 goto tolua_lerror;
428 else
429#endif
430 {
432 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
433 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,2,0));
436 City* homecity = ((City*) tolua_tousertype(tolua_S,5,0));
437 int moves_left = ((int) tolua_tonumber(tolua_S,6,0));
438 {
439 Unit* tolua_ret = (Unit*) api_edit_create_unit(L,pplayer,ptile,ptype,veteran_level,homecity,moves_left);
440 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Unit");
441 }
442 }
443 return 1;
444#ifndef TOLUA_RELEASE
446 tolua_error(tolua_S,"#ferror in function 'create_unit'.",&tolua_err);
447 return 0;
448#endif
449}
450
451/* function: api_edit_create_unit_full */
453{
454#ifndef TOLUA_RELEASE
456 if (
457 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
458 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
459 !tolua_isusertype(tolua_S,3,"Unit_Type",0,&tolua_err) ||
461 !tolua_isusertype(tolua_S,5,"City",0,&tolua_err) ||
464 !tolua_isusertype(tolua_S,8,"Unit",0,&tolua_err) ||
466 )
467 goto tolua_lerror;
468 else
469#endif
470 {
472 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
473 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,2,0));
476 City* homecity = ((City*) tolua_tousertype(tolua_S,5,0));
477 int moves_left = ((int) tolua_tonumber(tolua_S,6,0));
478 int hp_left = ((int) tolua_tonumber(tolua_S,7,0));
480 {
481 Unit* tolua_ret = (Unit*) api_edit_create_unit_full(L,pplayer,ptile,ptype,veteran_level,homecity,moves_left,hp_left,ptransport);
482 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Unit");
483 }
484 }
485 return 1;
486#ifndef TOLUA_RELEASE
488 tolua_error(tolua_S,"#ferror in function 'create_unit_full'.",&tolua_err);
489 return 0;
490#endif
491}
492
493/* function: api_edit_unit_teleport */
495{
496#ifndef TOLUA_RELEASE
498 if (
499 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
500 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
501 !tolua_isusertype(tolua_S,3,"Unit",0,&tolua_err) ||
508 )
509 goto tolua_lerror;
510 else
511#endif
512 {
515 Tile* dest = ((Tile*) tolua_tousertype(tolua_S,2,0));
520 bool enter_hut = ((bool) tolua_toboolean(tolua_S,7,0));
522 {
525 }
526 }
527 return 1;
528#ifndef TOLUA_RELEASE
530 tolua_error(tolua_S,"#ferror in function 'unit_teleport'.",&tolua_err);
531 return 0;
532#endif
533}
534
535/* function: api_edit_unit_kill */
537{
538#ifndef TOLUA_RELEASE
540 if (
541 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
543 !tolua_isusertype(tolua_S,3,"Player",0,&tolua_err) ||
545 )
546 goto tolua_lerror;
547 else
548#endif
549 {
552 const char* reason = ((const char*) tolua_tostring(tolua_S,2,0));
554 {
556 }
557 }
558 return 0;
559#ifndef TOLUA_RELEASE
561 tolua_error(tolua_S,"#ferror in function 'unit_kill'.",&tolua_err);
562 return 0;
563#endif
564}
565
566/* function: api_edit_unit_hitpoints */
568{
569#ifndef TOLUA_RELEASE
571 if (
572 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
575 !tolua_isusertype(tolua_S,4,"Player",0,&tolua_err) ||
577 )
578 goto tolua_lerror;
579 else
580#endif
581 {
584 int change = ((int) tolua_tonumber(tolua_S,2,0));
585 const char* reason = ((const char*) tolua_tostring(tolua_S,3,0));
587 {
590 }
591 }
592 return 1;
593#ifndef TOLUA_RELEASE
595 tolua_error(tolua_S,"#ferror in function 'unit_add_hitpoints'.",&tolua_err);
596 return 0;
597#endif
598}
599
600/* function: api_edit_unit_movepoints */
602{
603#ifndef TOLUA_RELEASE
605 if (
606 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
609 )
610 goto tolua_lerror;
611 else
612#endif
613 {
616 int change = ((int) tolua_tonumber(tolua_S,2,0));
617 {
619 }
620 }
621 return 0;
622#ifndef TOLUA_RELEASE
624 tolua_error(tolua_S,"#ferror in function 'unit_add_movepoints'.",&tolua_err);
625 return 0;
626#endif
627}
628
629/* function: api_edit_change_terrain */
631{
632#ifndef TOLUA_RELEASE
634 if (
635 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
636 !tolua_isusertype(tolua_S,2,"Terrain",0,&tolua_err) ||
638 )
639 goto tolua_lerror;
640 else
641#endif
642 {
644 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
646 {
649 }
650 }
651 return 1;
652#ifndef TOLUA_RELEASE
654 tolua_error(tolua_S,"#ferror in function 'change_terrain'.",&tolua_err);
655 return 0;
656#endif
657}
658
659/* function: api_edit_create_city */
661{
662#ifndef TOLUA_RELEASE
664 if (
665 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
666 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
668 !tolua_isusertype(tolua_S,4,"Player",0,&tolua_err) ||
670 )
671 goto tolua_lerror;
672 else
673#endif
674 {
676 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
677 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,2,0));
678 const char* name = ((const char*) tolua_tostring(tolua_S,3,0));
679 Player* nationality = ((Player*) tolua_tousertype(tolua_S,4,0));
680 {
681 bool tolua_ret = (bool) api_edit_create_city(L,pplayer,ptile,name,nationality);
683 }
684 }
685 return 1;
686#ifndef TOLUA_RELEASE
688 tolua_error(tolua_S,"#ferror in function 'city_create'.",&tolua_err);
689 return 0;
690#endif
691}
692
693/* function: api_edit_transfer_city */
695{
696#ifndef TOLUA_RELEASE
698 if (
699 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
700 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
702 )
703 goto tolua_lerror;
704 else
705#endif
706 {
710 {
713 }
714 }
715 return 1;
716#ifndef TOLUA_RELEASE
718 tolua_error(tolua_S,"#ferror in function 'transfer_city'.",&tolua_err);
719 return 0;
720#endif
721}
722
723/* function: api_edit_remove_city */
725{
726#ifndef TOLUA_RELEASE
728 if (
729 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
731 )
732 goto tolua_lerror;
733 else
734#endif
735 {
738 {
740 }
741 }
742 return 0;
743#ifndef TOLUA_RELEASE
745 tolua_error(tolua_S,"#ferror in function 'remove_city'.",&tolua_err);
746 return 0;
747#endif
748}
749
750/* function: api_edit_create_building */
752{
753#ifndef TOLUA_RELEASE
755 if (
756 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
757 !tolua_isusertype(tolua_S,2,"Building_Type",0,&tolua_err) ||
759 )
760 goto tolua_lerror;
761 else
762#endif
763 {
767 {
769 }
770 }
771 return 0;
772#ifndef TOLUA_RELEASE
774 tolua_error(tolua_S,"#ferror in function 'create_building'.",&tolua_err);
775 return 0;
776#endif
777}
778
779/* function: api_edit_remove_building */
781{
782#ifndef TOLUA_RELEASE
784 if (
785 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
786 !tolua_isusertype(tolua_S,2,"Building_Type",0,&tolua_err) ||
788 )
789 goto tolua_lerror;
790 else
791#endif
792 {
796 {
798 }
799 }
800 return 0;
801#ifndef TOLUA_RELEASE
803 tolua_error(tolua_S,"#ferror in function 'remove_building'.",&tolua_err);
804 return 0;
805#endif
806}
807
808/* function: api_edit_create_owned_extra */
810{
811#ifndef TOLUA_RELEASE
813 if (
814 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
816 !tolua_isusertype(tolua_S,3,"Player",0,&tolua_err) ||
818 )
819 goto tolua_lerror;
820 else
821#endif
822 {
824 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
825 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
826 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,3,0));
827 {
828 api_edit_create_owned_extra(L,ptile,name,pplayer);
829 }
830 }
831 return 0;
832#ifndef TOLUA_RELEASE
834 tolua_error(tolua_S,"#ferror in function 'create_owned_extra'.",&tolua_err);
835 return 0;
836#endif
837}
838
839/* function: api_edit_create_extra */
841{
842#ifndef TOLUA_RELEASE
844 if (
845 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
848 )
849 goto tolua_lerror;
850 else
851#endif
852 {
854 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
855 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
856 {
858 }
859 }
860 return 0;
861#ifndef TOLUA_RELEASE
863 tolua_error(tolua_S,"#ferror in function 'create_extra'.",&tolua_err);
864 return 0;
865#endif
866}
867
868/* function: api_edit_create_base */
870{
871#ifndef TOLUA_RELEASE
873 if (
874 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
876 !tolua_isusertype(tolua_S,3,"Player",0,&tolua_err) ||
878 )
879 goto tolua_lerror;
880 else
881#endif
882 {
884 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
885 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
886 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,3,0));
887 {
888 api_edit_create_base(L,ptile,name,pplayer);
889 }
890 }
891 return 0;
892#ifndef TOLUA_RELEASE
894 tolua_error(tolua_S,"#ferror in function 'create_base'.",&tolua_err);
895 return 0;
896#endif
897}
898
899/* function: api_edit_create_road */
901{
902#ifndef TOLUA_RELEASE
904 if (
905 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
908 )
909 goto tolua_lerror;
910 else
911#endif
912 {
914 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
915 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
916 {
918 }
919 }
920 return 0;
921#ifndef TOLUA_RELEASE
923 tolua_error(tolua_S,"#ferror in function 'create_road'.",&tolua_err);
924 return 0;
925#endif
926}
927
928/* function: api_edit_remove_extra */
930{
931#ifndef TOLUA_RELEASE
933 if (
934 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
937 )
938 goto tolua_lerror;
939 else
940#endif
941 {
943 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
944 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
945 {
947 }
948 }
949 return 0;
950#ifndef TOLUA_RELEASE
952 tolua_error(tolua_S,"#ferror in function 'remove_extra'.",&tolua_err);
953 return 0;
954#endif
955}
956
957/* function: api_edit_tile_set_label */
959{
960#ifndef TOLUA_RELEASE
962 if (
963 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
966 )
967 goto tolua_lerror;
968 else
969#endif
970 {
972 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
973 const char* label = ((const char*) tolua_tostring(tolua_S,2,0));
974 {
975 api_edit_tile_set_label(L,ptile,label);
976 }
977 }
978 return 0;
979#ifndef TOLUA_RELEASE
981 tolua_error(tolua_S,"#ferror in function 'tile_set_label'.",&tolua_err);
982 return 0;
983#endif
984}
985
986/* function: api_edit_tile_show */
988{
989#ifndef TOLUA_RELEASE
991 if (
992 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
993 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
995 )
996 goto tolua_lerror;
997 else
998#endif
999 {
1000 lua_State* L = tolua_S;
1001 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
1002 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,2,0));
1003 {
1004 api_edit_tile_show(L,ptile,pplayer);
1005 }
1006 }
1007 return 0;
1008#ifndef TOLUA_RELEASE
1010 tolua_error(tolua_S,"#ferror in function 'tile_show'.",&tolua_err);
1011 return 0;
1012#endif
1013}
1014
1015/* function: api_edit_tile_hide */
1017{
1018#ifndef TOLUA_RELEASE
1020 if (
1021 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
1022 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
1024 )
1025 goto tolua_lerror;
1026 else
1027#endif
1028 {
1029 lua_State* L = tolua_S;
1030 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
1031 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,2,0));
1032 {
1033 bool tolua_ret = (bool) api_edit_tile_hide(L,ptile,pplayer);
1035 }
1036 }
1037 return 1;
1038#ifndef TOLUA_RELEASE
1040 tolua_error(tolua_S,"#ferror in function 'tile_hide'.",&tolua_err);
1041 return 0;
1042#endif
1043}
1044
1045/* function: api_edit_create_player */
1047{
1048#ifndef TOLUA_RELEASE
1050 if (
1052 !tolua_isusertype(tolua_S,2,"Nation_Type",0,&tolua_err) ||
1055 )
1056 goto tolua_lerror;
1057 else
1058#endif
1059 {
1060 lua_State* L = tolua_S;
1061 const char* username = ((const char*) tolua_tostring(tolua_S,1,0));
1062 Nation_Type* nation = ((Nation_Type*) tolua_tousertype(tolua_S,2,0));
1063 const char* ai = ((const char*) tolua_tostring(tolua_S,3,0));
1064 {
1065 Player* tolua_ret = (Player*) api_edit_create_player(L,username,nation,ai);
1066 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Player");
1067 }
1068 }
1069 return 1;
1070#ifndef TOLUA_RELEASE
1072 tolua_error(tolua_S,"#ferror in function 'create_player'.",&tolua_err);
1073 return 0;
1074#endif
1075}
1076
1077/* function: api_edit_change_gold */
1079{
1080#ifndef TOLUA_RELEASE
1082 if (
1083 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1086 )
1087 goto tolua_lerror;
1088 else
1089#endif
1090 {
1091 lua_State* L = tolua_S;
1092 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1093 int amount = ((int) tolua_tonumber(tolua_S,2,0));
1094 {
1095 api_edit_change_gold(L,pplayer,amount);
1096 }
1097 }
1098 return 0;
1099#ifndef TOLUA_RELEASE
1101 tolua_error(tolua_S,"#ferror in function 'change_gold'.",&tolua_err);
1102 return 0;
1103#endif
1104}
1105
1106/* function: api_edit_change_infrapoints */
1108{
1109#ifndef TOLUA_RELEASE
1111 if (
1112 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1115 )
1116 goto tolua_lerror;
1117 else
1118#endif
1119 {
1120 lua_State* L = tolua_S;
1121 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1122 int amount = ((int) tolua_tonumber(tolua_S,2,0));
1123 {
1125 }
1126 }
1127 return 0;
1128#ifndef TOLUA_RELEASE
1130 tolua_error(tolua_S,"#ferror in function 'change_infrapoints'.",&tolua_err);
1131 return 0;
1132#endif
1133}
1134
1135/* function: api_edit_give_technology */
1137{
1138#ifndef TOLUA_RELEASE
1140 if (
1141 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1142 !tolua_isusertype(tolua_S,2,"Tech_Type",0,&tolua_err) ||
1147 )
1148 goto tolua_lerror;
1149 else
1150#endif
1151 {
1152 lua_State* L = tolua_S;
1153 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1155 int cost = ((int) tolua_tonumber(tolua_S,3,0));
1156 bool notify = ((bool) tolua_toboolean(tolua_S,4,0));
1157 const char* reason = ((const char*) tolua_tostring(tolua_S,5,0));
1158 {
1160 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Tech_Type");
1161 }
1162 }
1163 return 1;
1164#ifndef TOLUA_RELEASE
1166 tolua_error(tolua_S,"#ferror in function 'give_tech'.",&tolua_err);
1167 return 0;
1168#endif
1169}
1170
1171/* function: api_edit_trait_mod_set */
1173{
1174#ifndef TOLUA_RELEASE
1176 if (
1177 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1181 )
1182 goto tolua_lerror;
1183 else
1184#endif
1185 {
1186 lua_State* L = tolua_S;
1187 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1188 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
1189 const int mod = ((const int) tolua_tonumber(tolua_S,3,0));
1190 {
1191 bool tolua_ret = (bool) api_edit_trait_mod_set(L,pplayer,tname,mod);
1193 }
1194 }
1195 return 1;
1196#ifndef TOLUA_RELEASE
1198 tolua_error(tolua_S,"#ferror in function 'trait_mod'.",&tolua_err);
1199 return 0;
1200#endif
1201}
1202
1203/* function: api_edit_unleash_barbarians */
1205{
1206#ifndef TOLUA_RELEASE
1208 if (
1209 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
1211 )
1212 goto tolua_lerror;
1213 else
1214#endif
1215 {
1216 lua_State* L = tolua_S;
1217 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
1218 {
1221 }
1222 }
1223 return 1;
1224#ifndef TOLUA_RELEASE
1226 tolua_error(tolua_S,"#ferror in function 'unleash_barbarians'.",&tolua_err);
1227 return 0;
1228#endif
1229}
1230
1231/* function: api_edit_place_partisans */
1233{
1234#ifndef TOLUA_RELEASE
1236 if (
1237 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
1238 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
1242 )
1243 goto tolua_lerror;
1244 else
1245#endif
1246 {
1247 lua_State* L = tolua_S;
1248 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
1249 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,2,0));
1250 int count = ((int) tolua_tonumber(tolua_S,3,0));
1251 int sq_radius = ((int) tolua_tonumber(tolua_S,4,0));
1252 {
1253 api_edit_place_partisans(L,ptile,pplayer,count,sq_radius);
1254 }
1255 }
1256 return 0;
1257#ifndef TOLUA_RELEASE
1259 tolua_error(tolua_S,"#ferror in function 'place_partisans'.",&tolua_err);
1260 return 0;
1261#endif
1262}
1263
1264/* function: api_edit_climate_change */
1266{
1267#ifndef TOLUA_RELEASE
1269 if (
1273 )
1274 goto tolua_lerror;
1275 else
1276#endif
1277 {
1278 lua_State* L = tolua_S;
1280 int effect = ((int) tolua_tonumber(tolua_S,2,0));
1281 {
1283 }
1284 }
1285 return 0;
1286#ifndef TOLUA_RELEASE
1288 tolua_error(tolua_S,"#ferror in function 'climate_change'.",&tolua_err);
1289 return 0;
1290#endif
1291}
1292
1293/* function: api_edit_civil_war */
1295{
1296#ifndef TOLUA_RELEASE
1298 if (
1299 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1302 )
1303 goto tolua_lerror;
1304 else
1305#endif
1306 {
1307 lua_State* L = tolua_S;
1308 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1309 int probability = ((int) tolua_tonumber(tolua_S,2,0));
1310 {
1312 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Player");
1313 }
1314 }
1315 return 1;
1316#ifndef TOLUA_RELEASE
1318 tolua_error(tolua_S,"#ferror in function 'civil_war'.",&tolua_err);
1319 return 0;
1320#endif
1321}
1322
1323/* function: api_edit_unit_turn */
1325{
1326#ifndef TOLUA_RELEASE
1328 if (
1329 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1330 !tolua_isusertype(tolua_S,2,"Direction",0,&tolua_err) ||
1332 )
1333 goto tolua_lerror;
1334 else
1335#endif
1336 {
1337 lua_State* L = tolua_S;
1338 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1340 {
1342 }
1343 }
1344 return 0;
1345#ifndef TOLUA_RELEASE
1347 tolua_error(tolua_S,"#ferror in function 'unit_turn'.",&tolua_err);
1348 return 0;
1349#endif
1350}
1351
1352/* function: api_edit_player_victory */
1354{
1355#ifndef TOLUA_RELEASE
1357 if (
1358 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1360 )
1361 goto tolua_lerror;
1362 else
1363#endif
1364 {
1365 lua_State* L = tolua_S;
1367 {
1369 }
1370 }
1371 return 0;
1372#ifndef TOLUA_RELEASE
1374 tolua_error(tolua_S,"#ferror in function 'player_victory'.",&tolua_err);
1375 return 0;
1376#endif
1377}
1378
1379/* function: api_edit_unit_move */
1381{
1382#ifndef TOLUA_RELEASE
1384 if (
1385 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1386 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
1388 !tolua_isusertype(tolua_S,4,"Unit",0,&tolua_err) ||
1395 )
1396 goto tolua_lerror;
1397 else
1398#endif
1399 {
1400 lua_State* L = tolua_S;
1401 Unit* self = ((Unit*) tolua_tousertype(tolua_S,1,0));
1403 int movecost = ((int) tolua_tonumber(tolua_S,3,0));
1406 bool conquer_city = ((bool) tolua_toboolean(tolua_S,6,0));
1407 bool conquer_extra = ((bool) tolua_toboolean(tolua_S,7,0));
1408 bool enter_hut = ((bool) tolua_toboolean(tolua_S,8,0));
1409 bool frighten_hut = ((bool) tolua_toboolean(tolua_S,9,0));
1410 {
1413 }
1414 }
1415 return 1;
1416#ifndef TOLUA_RELEASE
1418 tolua_error(tolua_S,"#ferror in function 'unit_move'.",&tolua_err);
1419 return 0;
1420#endif
1421}
1422
1423/* function: api_edit_unit_moving_disallow */
1425{
1426#ifndef TOLUA_RELEASE
1428 if (
1429 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1431 )
1432 goto tolua_lerror;
1433 else
1434#endif
1435 {
1436 lua_State* L = tolua_S;
1437 Unit* self = ((Unit*) tolua_tousertype(tolua_S,1,0));
1438 {
1440 }
1441 }
1442 return 0;
1443#ifndef TOLUA_RELEASE
1445 tolua_error(tolua_S,"#ferror in function 'movement_disallow'.",&tolua_err);
1446 return 0;
1447#endif
1448}
1449
1450/* function: api_edit_unit_moving_allow */
1452{
1453#ifndef TOLUA_RELEASE
1455 if (
1456 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1458 )
1459 goto tolua_lerror;
1460 else
1461#endif
1462 {
1463 lua_State* L = tolua_S;
1464 Unit* self = ((Unit*) tolua_tousertype(tolua_S,1,0));
1465 {
1467 }
1468 }
1469 return 0;
1470#ifndef TOLUA_RELEASE
1472 tolua_error(tolua_S,"#ferror in function 'movement_allow'.",&tolua_err);
1473 return 0;
1474#endif
1475}
1476
1477/* function: api_edit_perform_action_unit_vs_city */
1479{
1480#ifndef TOLUA_RELEASE
1482 if (
1483 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1484 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1485 !tolua_isusertype(tolua_S,3,"City",0,&tolua_err) ||
1487 )
1488 goto tolua_lerror;
1489 else
1490#endif
1491 {
1492 lua_State* L = tolua_S;
1493 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1495 City* tgt = ((City*) tolua_tousertype(tolua_S,3,0));
1496 {
1499 }
1500 }
1501 return 1;
1502#ifndef TOLUA_RELEASE
1504 tolua_error(tolua_S,"#ferror in function 'perform_action'.",&tolua_err);
1505 return 0;
1506#endif
1507}
1508
1509/* function: api_edit_perform_action_unit_vs_city_impr */
1511{
1513 if (
1514 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1515 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1516 !tolua_isusertype(tolua_S,3,"City",0,&tolua_err) ||
1517 !tolua_isusertype(tolua_S,4,"Building_Type",0,&tolua_err) ||
1519 )
1520 goto tolua_lerror;
1521 else
1522 {
1523 lua_State* L = tolua_S;
1524 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1526 City* tgt = ((City*) tolua_tousertype(tolua_S,3,0));
1528 {
1531 }
1532 }
1533 return 1;
1536}
1537
1538/* function: api_edit_perform_action_unit_vs_city_tech */
1540{
1542 if (
1543 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1544 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1545 !tolua_isusertype(tolua_S,3,"City",0,&tolua_err) ||
1546 !tolua_isusertype(tolua_S,4,"Tech_Type",0,&tolua_err) ||
1548 )
1549 goto tolua_lerror;
1550 else
1551 {
1552 lua_State* L = tolua_S;
1553 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1555 City* tgt = ((City*) tolua_tousertype(tolua_S,3,0));
1557 {
1560 }
1561 }
1562 return 1;
1565}
1566
1567/* function: api_edit_perform_action_unit_vs_unit */
1569{
1571 if (
1572 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1573 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1574 !tolua_isusertype(tolua_S,3,"Unit",0,&tolua_err) ||
1576 )
1577 goto tolua_lerror;
1578 else
1579 {
1580 lua_State* L = tolua_S;
1581 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1583 Unit* tgt = ((Unit*) tolua_tousertype(tolua_S,3,0));
1584 {
1587 }
1588 }
1589 return 1;
1592}
1593
1594/* function: api_edit_perform_action_unit_vs_tile */
1596{
1598 if (
1599 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1600 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1601 !tolua_isusertype(tolua_S,3,"Tile",0,&tolua_err) ||
1603 )
1604 goto tolua_lerror;
1605 else
1606 {
1607 lua_State* L = tolua_S;
1608 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1610 Tile* tgt = ((Tile*) tolua_tousertype(tolua_S,3,0));
1611 {
1614 }
1615 }
1616 return 1;
1619}
1620
1621/* function: api_edit_perform_action_unit_vs_tile_extra */
1623{
1625 if (
1626 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1627 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1628 !tolua_isusertype(tolua_S,3,"Tile",0,&tolua_err) ||
1631 )
1632 goto tolua_lerror;
1633 else
1634 {
1635 lua_State* L = tolua_S;
1636 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1638 Tile* tgt = ((Tile*) tolua_tousertype(tolua_S,3,0));
1639 const char* sub_tgt = ((const char*) tolua_tostring(tolua_S,4,0));
1640 {
1643 }
1644 }
1645 return 1;
1648}
1649
1650/* function: api_edit_perform_action_unit_vs_self */
1652{
1654 if (
1655 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1656 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1658 )
1659 goto tolua_lerror;
1660 else
1661 {
1662 lua_State* L = tolua_S;
1663 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1665 {
1668 }
1669 }
1670 return 1;
1673}
1674
1675/* function: api_edit_city_add_history */
1677{
1678#ifndef TOLUA_RELEASE
1680 if (
1681 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
1684 )
1685 goto tolua_lerror;
1686 else
1687#endif
1688 {
1689 lua_State* L = tolua_S;
1690 City* self = ((City*) tolua_tousertype(tolua_S,1,0));
1691 int amount = ((int) tolua_tonumber(tolua_S,2,0));
1692 {
1694 }
1695 }
1696 return 0;
1697#ifndef TOLUA_RELEASE
1699 tolua_error(tolua_S,"#ferror in function 'add_city_history'.",&tolua_err);
1700 return 0;
1701#endif
1702}
1703
1704/* function: api_edit_player_add_history */
1706{
1707#ifndef TOLUA_RELEASE
1709 if (
1710 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1713 )
1714 goto tolua_lerror;
1715 else
1716#endif
1717 {
1718 lua_State* L = tolua_S;
1720 int amount = ((int) tolua_tonumber(tolua_S,2,0));
1721 {
1723 }
1724 }
1725 return 0;
1726#ifndef TOLUA_RELEASE
1728 tolua_error(tolua_S,"#ferror in function 'add_player_history'.",&tolua_err);
1729 return 0;
1730#endif
1731}
1732
1733/* function: api_edit_player_give_bulbs */
1735{
1736#ifndef TOLUA_RELEASE
1738 if (
1739 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1741 !tolua_isusertype(tolua_S,3,"Tech_Type",1,&tolua_err) ||
1743 )
1744 goto tolua_lerror;
1745 else
1746#endif
1747 {
1748 lua_State* L = tolua_S;
1750 int amount = ((int) tolua_tonumber(tolua_S,2,0));
1752 {
1754 }
1755 }
1756 return 0;
1757#ifndef TOLUA_RELEASE
1759 tolua_error(tolua_S,"#ferror in function 'give_bulbs'.",&tolua_err);
1760 return 0;
1761#endif
1762}
1763
1764/* function: api_edit_create_trade_route */
1766{
1767#ifndef TOLUA_RELEASE
1769 if (
1770 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
1771 !tolua_isusertype(tolua_S,2,"City",0,&tolua_err) ||
1773 )
1774 goto tolua_lerror;
1775 else
1776#endif
1777 {
1778 lua_State* L = tolua_S;
1779 City* from = ((City*) tolua_tousertype(tolua_S,1,0));
1780 City* to = ((City*) tolua_tousertype(tolua_S,2,0));
1781 {
1782 bool tolua_ret = (bool) api_edit_create_trade_route(L,from,to);
1784 }
1785 }
1786 return 1;
1787#ifndef TOLUA_RELEASE
1789 tolua_error(tolua_S,"#ferror in function 'create_trade_route'.",&tolua_err);
1790 return 0;
1791#endif
1792}
1793
1794/* function: api_edit_change_city_size */
1796{
1797#ifndef TOLUA_RELEASE
1799 if (
1800 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
1802 !tolua_isusertype(tolua_S,3,"Player",0,&tolua_err) ||
1804 )
1805 goto tolua_lerror;
1806 else
1807#endif
1808 {
1809 lua_State* L = tolua_S;
1810 City* pcity = ((City*) tolua_tousertype(tolua_S,1,0));
1811 int change = ((int) tolua_tonumber(tolua_S,2,0));
1812 Player* nationality = ((Player*) tolua_tousertype(tolua_S,3,0));
1813 {
1814 api_edit_change_city_size(L,pcity,change,nationality);
1815 }
1816 }
1817 return 0;
1818#ifndef TOLUA_RELEASE
1820 tolua_error(tolua_S,"#ferror in function 'change_city_size'.",&tolua_err);
1821 return 0;
1822#endif
1823}
1824
1825/* function: api_edit_change_citizen_nationality */
1827{
1828#ifndef TOLUA_RELEASE
1830 if (
1831 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
1832 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
1833 !tolua_isusertype(tolua_S,3,"Player",0,&tolua_err) ||
1836 )
1837 goto tolua_lerror;
1838 else
1839#endif
1840 {
1841 lua_State* L = tolua_S;
1842 City* pcity = ((City*) tolua_tousertype(tolua_S,1,0));
1843 Player* from = ((Player*) tolua_tousertype(tolua_S,2,0));
1844 Player* to = ((Player*) tolua_tousertype(tolua_S,3,0));
1845 int amount = ((int) tolua_tonumber(tolua_S,4,0));
1846 {
1848 }
1849 }
1850 return 0;
1851#ifndef TOLUA_RELEASE
1853 tolua_error(tolua_S,"#ferror in function 'change_citizen_nationality'.",&tolua_err);
1854 return 0;
1855#endif
1856}
1857
1858/* function: api_luadata_get_str */
1860{
1861#ifndef TOLUA_RELEASE
1863 if (
1866 )
1867 goto tolua_lerror;
1868 else
1869#endif
1870 {
1871 lua_State* L = tolua_S;
1872 const char* field = ((const char*) tolua_tostring(tolua_S,1,0));
1873 {
1874 const char* tolua_ret = (const char*) api_luadata_get_str(L,field);
1875 tolua_pushstring(tolua_S,(const char*)tolua_ret);
1876 }
1877 }
1878 return 1;
1879#ifndef TOLUA_RELEASE
1881 tolua_error(tolua_S,"#ferror in function 'get_str'.",&tolua_err);
1882 return 0;
1883#endif
1884}
1885
1886/* function: api_methods_player_free_bulbs */
1888{
1889#ifndef TOLUA_RELEASE
1891 if (
1892 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1894 )
1895 goto tolua_lerror;
1896 else
1897#endif
1898 {
1899 lua_State* L = tolua_S;
1900 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1901 {
1904 }
1905 }
1906 return 1;
1907#ifndef TOLUA_RELEASE
1909 tolua_error(tolua_S,"#ferror in function 'free_bulbs'.",&tolua_err);
1910 return 0;
1911#endif
1912}
1913
1914/* function: api_methods_player_trait */
1916{
1917#ifndef TOLUA_RELEASE
1919 if (
1920 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1923 )
1924 goto tolua_lerror;
1925 else
1926#endif
1927 {
1928 lua_State* L = tolua_S;
1929 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1930 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
1931 {
1932 int tolua_ret = (int) api_methods_player_trait(L,pplayer,tname);
1934 }
1935 }
1936 return 1;
1937#ifndef TOLUA_RELEASE
1939 tolua_error(tolua_S,"#ferror in function 'trait'.",&tolua_err);
1940 return 0;
1941#endif
1942}
1943
1944/* function: api_methods_player_trait_base */
1946{
1947#ifndef TOLUA_RELEASE
1949 if (
1950 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1953 )
1954 goto tolua_lerror;
1955 else
1956#endif
1957 {
1958 lua_State* L = tolua_S;
1959 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1960 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
1961 {
1964 }
1965 }
1966 return 1;
1967#ifndef TOLUA_RELEASE
1969 tolua_error(tolua_S,"#ferror in function 'trait_base'.",&tolua_err);
1970 return 0;
1971#endif
1972}
1973
1974/* function: api_methods_player_trait_current_mod */
1976{
1977#ifndef TOLUA_RELEASE
1979 if (
1980 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1983 )
1984 goto tolua_lerror;
1985 else
1986#endif
1987 {
1988 lua_State* L = tolua_S;
1989 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1990 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
1991 {
1994 }
1995 }
1996 return 1;
1997#ifndef TOLUA_RELEASE
1999 tolua_error(tolua_S,"#ferror in function 'trait_current_mod'.",&tolua_err);
2000 return 0;
2001#endif
2002}
2003
2004/* function: api_methods_player_lose */
2006{
2007#ifndef TOLUA_RELEASE
2009 if (
2010 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
2011 !tolua_isusertype(tolua_S,2,"Player",1,&tolua_err) ||
2013 )
2014 goto tolua_lerror;
2015 else
2016#endif
2017 {
2018 lua_State* L = tolua_S;
2019 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
2021 {
2023 }
2024 }
2025 return 0;
2026#ifndef TOLUA_RELEASE
2028 tolua_error(tolua_S,"#ferror in function 'lose'.",&tolua_err);
2029 return 0;
2030#endif
2031}
2032
2033/* function: api_methods_player_tech_bulbs */
2035{
2036#ifndef TOLUA_RELEASE
2038 if (
2039 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
2040 !tolua_isusertype(tolua_S,2,"Tech_Type",0,&tolua_err) ||
2042 )
2043 goto tolua_lerror;
2044 else
2045#endif
2046 {
2047 lua_State* L = tolua_S;
2048 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
2049 Tech_Type* tech = ((Tech_Type*) tolua_tousertype(tolua_S,2,0));
2050 {
2051 int tolua_ret = (int) api_methods_player_tech_bulbs(L,pplayer,tech);
2053 }
2054 }
2055 return 1;
2056#ifndef TOLUA_RELEASE
2058 tolua_error(tolua_S,"#ferror in function 'bulbs_saved'.",&tolua_err);
2059 return 0;
2060#endif
2061}
2062
2063/* function: api_methods_tag_score */
2065{
2066#ifndef TOLUA_RELEASE
2068 if (
2069 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
2072 )
2073 goto tolua_lerror;
2074 else
2075#endif
2076 {
2077 lua_State* L = tolua_S;
2078 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
2079 const char* tag = ((const char*) tolua_tostring(tolua_S,2,0));
2080 {
2081 int tolua_ret = (int) api_methods_tag_score(L,pplayer,tag);
2083 }
2084 }
2085 return 1;
2086#ifndef TOLUA_RELEASE
2088 tolua_error(tolua_S,"#ferror in function 'tag_score'.",&tolua_err);
2089 return 0;
2090#endif
2091}
2092
2093/* function: api_methods_love */
2095{
2096#ifndef TOLUA_RELEASE
2098 if (
2099 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
2100 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
2102 )
2103 goto tolua_lerror;
2104 else
2105#endif
2106 {
2107 lua_State* L = tolua_S;
2108 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
2110 {
2111 int tolua_ret = (int) api_methods_love(L,pplayer,towards);
2113 }
2114 }
2115 return 1;
2116#ifndef TOLUA_RELEASE
2118 tolua_error(tolua_S,"#ferror in function 'love'.",&tolua_err);
2119 return 0;
2120#endif
2121}
2122
2123/* function: api_methods_add_love */
2125{
2126#ifndef TOLUA_RELEASE
2128 if (
2129 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
2130 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
2133 )
2134 goto tolua_lerror;
2135 else
2136#endif
2137 {
2138 lua_State* L = tolua_S;
2139 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
2141 int amount = ((int) tolua_tonumber(tolua_S,3,0));
2142 {
2144 }
2145 }
2146 return 0;
2147#ifndef TOLUA_RELEASE
2149 tolua_error(tolua_S,"#ferror in function 'add_love'.",&tolua_err);
2150 return 0;
2151#endif
2152}
2153
2154/* function: api_methods_cancel_pact */
2156{
2157#ifndef TOLUA_RELEASE
2159 if (
2160 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
2161 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
2163 )
2164 goto tolua_lerror;
2165 else
2166#endif
2167 {
2168 lua_State* L = tolua_S;
2169 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
2171 {
2173 }
2174 }
2175 return 0;
2176#ifndef TOLUA_RELEASE
2178 tolua_error(tolua_S,"#ferror in function 'cancel_pact'.",&tolua_err);
2179 return 0;
2180#endif
2181}
2182
2183/* get function: game_server_autoupgrade_veteran_loss */
2189
2190/* get function: game_server_upgrade_veteran_loss */
2196
2197/* get function: game_server_multiresearch */
2203
2204/* function: api_methods_nation_trait_min */
2206{
2207#ifndef TOLUA_RELEASE
2209 if (
2210 !tolua_isusertype(tolua_S,1,"Nation_Type",0,&tolua_err) ||
2213 )
2214 goto tolua_lerror;
2215 else
2216#endif
2217 {
2218 lua_State* L = tolua_S;
2219 Nation_Type* pnation = ((Nation_Type*) tolua_tousertype(tolua_S,1,0));
2220 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
2221 {
2224 }
2225 }
2226 return 1;
2227#ifndef TOLUA_RELEASE
2229 tolua_error(tolua_S,"#ferror in function 'trait_min'.",&tolua_err);
2230 return 0;
2231#endif
2232}
2233
2234/* function: api_methods_nation_trait_max */
2236{
2237#ifndef TOLUA_RELEASE
2239 if (
2240 !tolua_isusertype(tolua_S,1,"Nation_Type",0,&tolua_err) ||
2243 )
2244 goto tolua_lerror;
2245 else
2246#endif
2247 {
2248 lua_State* L = tolua_S;
2249 Nation_Type* pnation = ((Nation_Type*) tolua_tousertype(tolua_S,1,0));
2250 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
2251 {
2254 }
2255 }
2256 return 1;
2257#ifndef TOLUA_RELEASE
2259 tolua_error(tolua_S,"#ferror in function 'trait_max'.",&tolua_err);
2260 return 0;
2261#endif
2262}
2263
2264/* function: api_methods_nation_trait_default */
2266{
2267#ifndef TOLUA_RELEASE
2269 if (
2270 !tolua_isusertype(tolua_S,1,"Nation_Type",0,&tolua_err) ||
2273 )
2274 goto tolua_lerror;
2275 else
2276#endif
2277 {
2278 lua_State* L = tolua_S;
2279 Nation_Type* pnation = ((Nation_Type*) tolua_tousertype(tolua_S,1,0));
2280 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
2281 {
2284 }
2285 }
2286 return 1;
2287#ifndef TOLUA_RELEASE
2289 tolua_error(tolua_S,"#ferror in function 'trait_default'.",&tolua_err);
2290 return 0;
2291#endif
2292}
2293
2294/* function: api_edit_unit_upgrade */
2296{
2297#ifndef TOLUA_RELEASE
2299 if (
2300 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
2303 )
2304 goto tolua_lerror;
2305 else
2306#endif
2307 {
2308 lua_State* L = tolua_S;
2309 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
2310 int vet_loss = ((int) tolua_tonumber(tolua_S,2,0));
2311 {
2314 }
2315 }
2316 return 1;
2317#ifndef TOLUA_RELEASE
2319 tolua_error(tolua_S,"#ferror in function 'upgrade'.",&tolua_err);
2320 return 0;
2321#endif
2322}
2323
2324/* function: api_edit_unit_transform */
2326{
2327#ifndef TOLUA_RELEASE
2329 if (
2330 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
2331 !tolua_isusertype(tolua_S,2,"Unit_Type",0,&tolua_err) ||
2334 )
2335 goto tolua_lerror;
2336 else
2337#endif
2338 {
2339 lua_State* L = tolua_S;
2340 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
2342 int vet_loss = ((int) tolua_tonumber(tolua_S,3,0));
2343 {
2346 }
2347 }
2348 return 1;
2349#ifndef TOLUA_RELEASE
2351 tolua_error(tolua_S,"#ferror in function 'transform'.",&tolua_err);
2352 return 0;
2353#endif
2354}
2355
2356/* Open lib function */
2358{
2363 tolua_module(tolua_S,"server",0);
2364 tolua_beginmodule(tolua_S,"server");
2370 tolua_module(tolua_S,"setting",0);
2371 tolua_beginmodule(tolua_S,"setting");
2375 tolua_module(tolua_S,"Counter",0);
2376 tolua_beginmodule(tolua_S,"Counter");
2380 tolua_module(tolua_S,"notify",0);
2381 tolua_beginmodule(tolua_S,"notify");
2387
2388 { /* begin embedded lua code */
2389 static unsigned char B[] = {
2390 10,102,117,110, 99,116,105,111,110, 32,110,111,116,105,102,
2391 121, 46, 97,108,108, 40, 46, 46, 46, 41, 10,108,111, 99, 97,
2392 108, 32, 97,114,103, 32, 61, 32,116, 97, 98,108,101, 46,112,
2393 97, 99,107, 40, 46, 46, 46, 41, 59, 10,110,111,116,105,102,
2394 121, 46,101,118,101,110,116, 95,109,115,103, 40,110,105,108,
2395 44, 32,110,105,108, 44, 32, 69, 46, 83, 67, 82, 73, 80, 84,
2396 44, 32,115,116,114,105,110,103, 46,102,111,114,109, 97,116,
2397 40,116, 97, 98,108,101, 46,117,110,112, 97, 99,107, 40, 97,
2398 114,103, 41, 41, 41, 10,101,110,100, 10,102,117,110, 99,116,
2399 105,111,110, 32,110,111,116,105,102,121, 46,112,108, 97,121,
2400 101,114, 40,112,108, 97,121,101,114, 44, 32, 46, 46, 46, 41,
2401 10,108,111, 99, 97,108, 32, 97,114,103, 32, 61, 32,116, 97,
2402 98,108,101, 46,112, 97, 99,107, 40, 46, 46, 46, 41, 59, 10,
2403 110,111,116,105,102,121, 46,101,118,101,110,116, 95,109,115,
2404 103, 40,112,108, 97,121,101,114, 44, 32,110,105,108, 44, 32,
2405 69, 46, 83, 67, 82, 73, 80, 84, 44, 32,115,116,114,105,110,
2406 103, 46,102,111,114,109, 97,116, 40,116, 97, 98,108,101, 46,
2407 117,110,112, 97, 99,107, 40, 97,114,103, 41, 41, 41, 10,101,
2408 110,100, 10,102,117,110, 99,116,105,111,110, 32,110,111,116,
2409 105,102,121, 46,101,118,101,110,116, 40,112,108, 97,121,101,
2410 114, 44, 32,116,105,108,101, 44, 32,101,118,101,110,116, 44,
2411 32, 46, 46, 46, 41, 10,108,111, 99, 97,108, 32, 97,114,103,
2412 32, 61, 32,116, 97, 98,108,101, 46,112, 97, 99,107, 40, 46,
2413 46, 46, 41, 59, 10,110,111,116,105,102,121, 46,101,118,101,
2414 110,116, 95,109,115,103, 40,112,108, 97,121,101,114, 44, 32,
2415 116,105,108,101, 44, 32,101,118,101,110,116, 44, 32,115,116,
2416 114,105,110,103, 46,102,111,114,109, 97,116, 40,116, 97, 98,
2417 108,101, 46,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41,
2418 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32,
2419 110,111,116,105,102,121, 46,101,109, 98, 97,115,115,105,101,
2420 115, 40,112,108, 97,121,101,114, 44, 32,112,116,105,108,101,
2421 44, 32,101,118,101,110,116, 44, 32, 46, 46, 46, 41, 10,108,
2422 111, 99, 97,108, 32, 97,114,103, 32, 61, 32,116, 97, 98,108,
2423 101, 46,112, 97, 99,107, 40, 46, 46, 46, 41, 59, 10,110,111,
2424 116,105,102,121, 46,101,109, 98, 97,115,115,105,101,115, 95,
2425 109,115,103, 40,112,108, 97,121,101,114, 44, 32,112,116,105,
2426 108,101, 44, 32,101,118,101,110,116, 44, 32,115,116,114,105,
2427 110,103, 46,102,111,114,109, 97,116, 40,116, 97, 98,108,101,
2428 46,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41, 41, 10,
2429 101,110,100, 10,102,117,110, 99,116,105,111,110, 32,110,111,
2430 116,105,102,121, 46,114,101,115,101, 97,114, 99,104, 40,112,
2431 108, 97,121,101,114, 44, 32,115,101,108,102,109,115,103, 44,
2432 32,101,118,101,110,116, 44, 32, 46, 46, 46, 41, 10,108,111,
2433 99, 97,108, 32, 97,114,103, 32, 61, 32,116, 97, 98,108,101,
2434 46,112, 97, 99,107, 40, 46, 46, 46, 41, 59, 10,110,111,116,
2435 105,102,121, 46,114,101,115,101, 97,114, 99,104, 95,109,115,
2436 103, 40,112,108, 97,121,101,114, 44, 32,115,101,108,102,109,
2437 115,103, 44, 32,101,118,101,110,116, 44, 32,115,116,114,105,
2438 110,103, 46,102,111,114,109, 97,116, 40,116, 97, 98,108,101,
2439 46,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41, 41, 10,
2440 101,110,100, 10,102,117,110, 99,116,105,111,110, 32,110,111,
2441 116,105,102,121, 46,114,101,115,101, 97,114, 99,104, 95,101,
2442 109, 98, 97,115,115,105,101,115, 40,112,108, 97,121,101,114,
2443 44, 32,101,118,101,110,116, 44, 32, 46, 46, 46, 41, 10,108,
2444 111, 99, 97,108, 32, 97,114,103, 32, 61, 32,116, 97, 98,108,
2445 101, 46,112, 97, 99,107, 40, 46, 46, 46, 41, 59, 10,110,111,
2446 116,105,102,121, 46,114,101,115,101, 97,114, 99,104, 95,101,
2447 109, 98, 97,115,115,105,101,115, 95,109,115,103, 40,112,108,
2448 97,121,101,114, 44, 32,101,118,101,110,116, 44, 32,115,116,
2449 114,105,110,103, 46,102,111,114,109, 97,116, 40,116, 97, 98,
2450 108,101, 46,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41,
2451 41, 10,101,110,100,32
2452 };
2453 if (luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") == LUA_OK)
2455 } /* end of embedded lua code */
2456
2457 tolua_module(tolua_S,"edit",0);
2458 tolua_beginmodule(tolua_S,"edit");
2509 tolua_module(tolua_S,"luadata",0);
2510 tolua_beginmodule(tolua_S,"luadata");
2513
2514 { /* begin embedded lua code */
2515 static unsigned char B[] = {
2516 10,102,117,110, 99,116,105,111,110, 32, 99,114,101, 97,116,
2517 101, 95,117,110,105,116, 40,112,108, 97,121,101,114, 44, 32,
2518 116,105,108,101, 44, 32,117,116,121,112,101, 44, 32,118,101,
2519 116,101,114, 97,110, 95,108,101,118,101,108, 44, 32,104,111,
2520 109,101, 99,105,116,121, 44, 32,109,111,118,101,115, 95,108,
2521 101,102,116, 41, 10,108,111,103, 46,100,101,112,114,101, 99,
2522 97,116,105,111,110, 95,119, 97,114,110,105,110,103, 40, 34,
2523 99,114,101, 97,116,101, 95,117,110,105,116, 40, 41, 34, 44,
2524 32, 34,101,100,105,116, 46, 99,114,101, 97,116,101, 95,117,
2525 110,105,116, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41, 59,
2526 10,114,101,116,117,114,110, 32,101,100,105,116, 46, 99,114,
2527 101, 97,116,101, 95,117,110,105,116, 40,112,108, 97,121,101,
2528 114, 44, 32,116,105,108,101, 44, 32,117,116,121,112,101, 44,
2529 32,118,101,116,101,114, 97,110, 95,108,101,118,101,108, 44,
2530 32,104,111,109,101, 99,105,116,121, 44, 10,109,111,118,101,
2531 115, 95,108,101,102,116, 41, 10,101,110,100, 10,102,117,110,
2532 99,116,105,111,110, 32, 99,114,101, 97,116,101, 95,117,110,
2533 105,116, 95,102,117,108,108, 40,112,108, 97,121,101,114, 44,
2534 32,116,105,108,101, 44, 32,117,116,121,112,101, 44, 32,118,
2535 101,116,101,114, 97,110, 95,108,101,118,101,108, 44, 32,104,
2536 111,109,101, 99,105,116,121, 44, 10,109,111,118,101,115, 95,
2537 108,101,102,116, 44, 32,104,112, 95,108,101,102,116, 44, 32,
2538 116,114, 97,110,115,112,111,114,116, 41, 10,108,111,103, 46,
2539 100,101,112,114,101, 99, 97,116,105,111,110, 95,119, 97,114,
2540 110,105,110,103, 40, 34, 99,114,101, 97,116,101, 95,117,110,
2541 105,116, 95,102,117,108,108, 40, 41, 34, 44, 32, 34,101,100,
2542 105,116, 46, 99,114,101, 97,116,101, 95,117,110,105,116, 95,
2543 102,117,108,108, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41,
2544 59, 10,114,101,116,117,114,110, 32,101,100,105,116, 46, 99,
2545 114,101, 97,116,101, 95,117,110,105,116, 95,102,117,108,108,
2546 40,112,108, 97,121,101,114, 44, 32,116,105,108,101, 44, 32,
2547 117,116,121,112,101, 44, 32,118,101,116,101,114, 97,110, 95,
2548 108,101,118,101,108, 44, 32,104,111,109,101, 99,105,116,121,
2549 44, 10,109,111,118,101,115, 95,108,101,102,116, 44, 32,104,
2550 112, 95,108,101,102,116, 44, 32,116,114, 97,110,115,112,111,
2551 114,116, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2552 110, 32, 99,114,101, 97,116,101, 95, 99,105,116,121, 40,112,
2553 108, 97,121,101,114, 44, 32,116,105,108,101, 44, 32,110, 97,
2554 109,101, 41, 10,108,111,103, 46,100,101,112,114,101, 99, 97,
2555 116,105,111,110, 95,119, 97,114,110,105,110,103, 40, 34, 99,
2556 114,101, 97,116,101, 95, 99,105,116,121, 40, 41, 34, 44, 32,
2557 34,101,100,105,116, 46, 99,114,101, 97,116,101, 95, 99,105,
2558 116,121, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41, 59, 10,
2559 101,100,105,116, 46, 99,105,116,121, 95, 99,114,101, 97,116,
2560 101, 40,112,108, 97,121,101,114, 44, 32,116,105,108,101, 44,
2561 32,110, 97,109,101, 44, 32,110,105,108, 41, 10,101,110,100,
2562 10,102,117,110, 99,116,105,111,110, 32,101,100,105,116, 46,
2563 99,114,101, 97,116,101, 95, 99,105,116,121, 40,112,108, 97,
2564 121,101,114, 44, 32,116,105,108,101, 44, 32,110, 97,109,101,
2565 41, 10,108,111,103, 46,100,101,112,114,101, 99, 97,116,105,
2566 111,110, 95,119, 97,114,110,105,110,103, 40, 34,101,100,105,
2567 116, 46, 99,114,101, 97,116,101, 95, 99,105,116,121, 40, 41,
2568 34, 44, 32, 34,101,100,105,116, 46, 99,105,116,121, 95, 99,
2569 114,101, 97,116,101, 40, 41, 34, 44, 10, 34, 51, 46, 51, 34,
2570 41, 59, 10,101,100,105,116, 46, 99,105,116,121, 95, 99,114,
2571 101, 97,116,101, 40,112,108, 97,121,101,114, 44, 32,116,105,
2572 108,101, 44, 32,110, 97,109,101, 44, 32,110,105,108, 41, 10,
2573 101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 99,114,
2574 101, 97,116,101, 95, 98, 97,115,101, 40,116,105,108,101, 44,
2575 32,110, 97,109,101, 44, 32,112,108, 97,121,101,114, 41, 10,
2576 108,111,103, 46,100,101,112,114,101, 99, 97,116,105,111,110,
2577 95,119, 97,114,110,105,110,103, 40, 34, 99,114,101, 97,116,
2578 101, 95, 98, 97,115,101, 40, 41, 34, 44, 32, 34,101,100,105,
2579 116, 46, 99,114,101, 97,116,101, 95,111,119,110,101,100, 95,
2580 101,120,116,114, 97, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34,
2581 41, 59, 10,101,100,105,116, 46, 99,114,101, 97,116,101, 95,
2582 98, 97,115,101, 40,116,105,108,101, 44, 32,110, 97,109,101,
2583 44, 32,112,108, 97,121,101,114, 41, 10,101,110,100, 10,102,
2584 117,110, 99,116,105,111,110, 32, 99,114,101, 97,116,101, 95,
2585 112,108, 97,121,101,114, 40,117,115,101,114,110, 97,109,101,
2586 44, 32,110, 97,116,105,111,110, 41, 10,108,111,103, 46,100,
2587 101,112,114,101, 99, 97,116,105,111,110, 95,119, 97,114,110,
2588 105,110,103, 40, 34, 99,114,101, 97,116,101, 95,112,108, 97,
2589 121,101,114, 40, 41, 34, 44, 32, 34,101,100,105,116, 46, 99,
2590 114,101, 97,116,101, 95,112,108, 97,121,101,114, 40, 41, 34,
2591 44, 10, 34, 50, 46, 52, 34, 41, 59, 10,114,101,116,117,114,
2592 110, 32,101,100,105,116, 46, 99,114,101, 97,116,101, 95,112,
2593 108, 97,121,101,114, 40,117,115,101,114,110, 97,109,101, 44,
2594 32,110, 97,116,105,111,110, 44, 32,110,105,108, 41, 10,101,
2595 110,100, 10,102,117,110, 99,116,105,111,110, 32, 99,104, 97,
2596 110,103,101, 95,103,111,108,100, 40,112,112,108, 97,121,101,
2597 114, 44, 32, 97,109,111,117,110,116, 41, 10,108,111,103, 46,
2598 100,101,112,114,101, 99, 97,116,105,111,110, 95,119, 97,114,
2599 110,105,110,103, 40, 34, 99,104, 97,110,103,101, 95,103,111,
2600 108,100, 40, 41, 34, 44, 32, 34,101,100,105,116, 46, 99,104,
2601 97,110,103,101, 95,103,111,108,100, 40, 41, 34, 44, 10, 34,
2602 50, 46, 52, 34, 41, 59, 10,101,100,105,116, 46, 99,104, 97,
2603 110,103,101, 95,103,111,108,100, 40,112,112,108, 97,121,101,
2604 114, 44, 32, 97,109,111,117,110,116, 41, 10,101,110,100, 10,
2605 102,117,110, 99,116,105,111,110, 32,103,105,118,101, 95,116,
2606 101, 99,104,110,111,108,111,103,121, 40,112,108, 97,121,101,
2607 114, 44, 32,116,101, 99,104, 44, 32,114,101, 97,115,111,110,
2608 41, 10,108,111,103, 46,100,101,112,114,101, 99, 97,116,105,
2609 111,110, 95,119, 97,114,110,105,110,103, 40, 34,103,105,118,
2610 101, 95,116,101, 99,104,110,111,108,111,103,121, 40, 41, 34,
2611 44, 32, 34,101,100,105,116, 46,103,105,118,101, 95,116,101,
2612 99,104, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41, 59, 10,
2613 114,101,116,117,114,110, 32,101,100,105,116, 46,103,105,118,
2614 101, 95,116,101, 99,104, 40,112,108, 97,121,101,114, 44, 32,
2615 116,101, 99,104, 44, 32, 45, 49, 44, 32,102, 97,108,115,101,
2616 44, 32,114,101, 97,115,111,110, 41, 10,101,110,100, 10,102,
2617 117,110, 99,116,105,111,110, 32,101,100,105,116, 46,103,105,
2618 118,101, 95,116,101, 99,104,110,111,108,111,103,121, 40,112,
2619 108, 97,121,101,114, 44, 32,116,101, 99,104, 44, 32,114,101,
2620 97,115,111,110, 41, 10,108,111,103, 46,100,101,112,114,101,
2621 99, 97,116,105,111,110, 95,119, 97,114,110,105,110,103, 40,
2622 34,101,100,105,116, 46,103,105,118,101, 95,116,101, 99,104,
2623 110,111,108,111,103,121, 40, 41, 34, 44, 32, 34,101,100,105,
2624 116, 46,103,105,118,101, 95,116,101, 99,104, 40, 41, 34, 44,
2625 10, 34, 50, 46, 54, 34, 41, 59, 10,114,101,116,117,114,110,
2626 32,101,100,105,116, 46,103,105,118,101, 95,116,101, 99,104,
2627 40,112,108, 97,121,101,114, 44, 32,116,101, 99,104, 44, 32,
2628 45, 49, 44, 32,102, 97,108,115,101, 44, 32,114,101, 97,115,
2629 111,110, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2630 110, 32,116,114, 97,105,116, 95,109,111,100, 40,112,108, 97,
2631 121,101,114, 44, 32,116,114, 97,105,116, 44, 32,109,111,100,
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,116,114, 97,
2634 105,116, 95,109,111,100, 40, 41, 34, 44, 32, 34,101,100,105,
2635 116, 46,116,114, 97,105,116, 95,109,111,100, 40, 41, 34, 44,
2636 10, 34, 50, 46, 52, 34, 41, 59, 10,114,101,116,117,114,110,
2637 32,101,100,105,116, 46,116,114, 97,105,116, 95,109,111,100,
2638 40,112,108, 97,121,101,114, 44, 32,116,114, 97,105,116, 44,
2639 32,109,111,100, 41, 10,101,110,100, 10,102,117,110, 99,116,
2640 105,111,110, 32,117,110,108,101, 97,115,104, 95, 98, 97,114,
2641 98, 97,114,105, 97,110,115, 40,116,105,108,101, 41, 10,108,
2642 111,103, 46,100,101,112,114,101, 99, 97,116,105,111,110, 95,
2643 119, 97,114,110,105,110,103, 40, 34,117,110,108,101, 97,115,
2644 104, 95, 98, 97,114, 98, 97,114,105, 97,110,115, 40, 41, 34,
2645 44, 32, 34,101,100,105,116, 46,117,110,108,101, 97,115,104,
2646 95, 98, 97,114, 98, 97,114,105, 97,110,115, 40, 41, 34, 44,
2647 10, 34, 50, 46, 52, 34, 41, 59, 10,114,101,116,117,114,110,
2648 32,101,100,105,116, 46,117,110,108,101, 97,115,104, 95, 98,
2649 97,114, 98, 97,114,105, 97,110,115, 40,116,105,108,101, 41,
2650 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32,112,
2651 108, 97, 99,101, 95,112, 97,114,116,105,115, 97,110,115, 40,
2652 116,105,108,101, 44, 32,112,108, 97,121,101,114, 44, 32, 99,
2653 111,117,110,116, 44, 32,115,113, 95,114, 97,100,105,117,115,
2654 41, 10,108,111,103, 46,100,101,112,114,101, 99, 97,116,105,
2655 111,110, 95,119, 97,114,110,105,110,103, 40, 34,112,108, 97,
2656 99,101, 95,112, 97,114,116,105,115, 97,110,115, 40, 41, 34,
2657 44, 32, 34,101,100,105,116, 46,112,108, 97, 99,101, 95,112,
2658 97,114,116,105,115, 97,110,115, 40, 41, 34, 44, 10, 34, 50,
2659 46, 52, 34, 41, 59, 10,101,100,105,116, 46,112,108, 97, 99,
2660 101, 95,112, 97,114,116,105,115, 97,110,115, 40,116,105,108,
2661 101, 44, 32,112,108, 97,121,101,114, 44, 32, 99,111,117,110,
2662 116, 44, 32,115,113, 95,114, 97,100,105,117,115, 41, 10,101,
2663 110,100, 10,102,117,110, 99,116,105,111,110, 32, 80,108, 97,
2664 121,101,114, 58, 99,114,101, 97,116,101, 95,117,110,105,116,
2665 40,116,105,108,101, 44, 32,117,116,121,112,101, 44, 32,118,
2666 101,116,101,114, 97,110, 95,108,101,118,101,108, 44, 32,104,
2667 111,109,101, 99,105,116,121, 44, 32,109,111,118,101,115, 95,
2668 108,101,102,116, 41, 10,114,101,116,117,114,110, 32,101,100,
2669 105,116, 46, 99,114,101, 97,116,101, 95,117,110,105,116, 40,
2670 115,101,108,102, 44, 32,116,105,108,101, 44, 32,117,116,121,
2671 112,101, 44, 32,118,101,116,101,114, 97,110, 95,108,101,118,
2672 101,108, 44, 32,104,111,109,101, 99,105,116,121, 44, 10,109,
2673 111,118,101,115, 95,108,101,102,116, 41, 10,101,110,100, 10,
2674 102,117,110, 99,116,105,111,110, 32, 80,108, 97,121,101,114,
2675 58, 99,114,101, 97,116,101, 95,117,110,105,116, 95,102,117,
2676 108,108, 40,116,105,108,101, 44, 32,117,116,121,112,101, 44,
2677 32,118,101,116,101,114, 97,110, 95,108,101,118,101,108, 44,
2678 32,104,111,109,101, 99,105,116,121, 44, 10,109,111,118,101,
2679 115, 95,108,101,102,116, 44, 32,104,112, 95,108,101,102,116,
2680 44, 32,112,116,114, 97,110,115,112,111,114,116, 41, 10,114,
2681 101,116,117,114,110, 32,101,100,105,116, 46, 99,114,101, 97,
2682 116,101, 95,117,110,105,116, 95,102,117,108,108, 40,115,101,
2683 108,102, 44, 32,116,105,108,101, 44, 32,117,116,121,112,101,
2684 44, 32,118,101,116,101,114, 97,110, 95,108,101,118,101,108,
2685 44, 32,104,111,109,101, 99,105,116,121, 44, 10,109,111,118,
2686 101,115, 95,108,101,102,116, 44, 32,104,112, 95,108,101,102,
2687 116, 44, 32,112,116,114, 97,110,115,112,111,114,116, 41, 10,
2688 101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 80,108,
2689 97,121,101,114, 58, 99,105,118,105,108,105,122, 97,116,105,
2690 111,110, 95,115, 99,111,114,101, 40, 41, 10,114,101,116,117,
2691 114,110, 32,115,101,114,118,101,114, 46, 99,105,118,105,108,
2692 105,122, 97,116,105,111,110, 95,115, 99,111,114,101, 40,115,
2693 101,108,102, 41, 10,101,110,100, 10,102,117,110, 99,116,105,
2694 111,110, 32, 80,108, 97,121,101,114, 58, 99,114,101, 97,116,
2695 101, 95, 99,105,116,121, 40,116,105,108,101, 44, 32,110, 97,
2696 109,101, 41, 10,108,111,103, 46,100,101,112,114,101, 99, 97,
2697 116,105,111,110, 95,119, 97,114,110,105,110,103, 40, 34, 80,
2698 108, 97,121,101,114, 58, 99,114,101, 97,116,101, 95, 99,105,
2699 116,121, 40, 41, 34, 44, 32, 34, 80,108, 97,121,101,114, 58,
2700 99,105,116,121, 95, 99,114,101, 97,116,101, 40, 41, 34, 44,
2701 10, 34, 51, 46, 51, 34, 41, 59, 10,101,100,105,116, 46, 99,
2702 105,116,121, 95, 99,114,101, 97,116,101, 40,115,101,108,102,
2703 44, 32,116,105,108,101, 44, 32,110, 97,109,101, 44, 32,110,
2704 105,108, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2705 110, 32, 80,108, 97,121,101,114, 58, 99,105,116,121, 95, 99,
2706 114,101, 97,116,101, 40,116,105,108,101, 44, 32,110, 97,109,
2707 101, 44, 32,110, 97,116,105,111,110, 97,108,105,116,121, 41,
2708 10,101,100,105,116, 46, 99,105,116,121, 95, 99,114,101, 97,
2709 116,101, 40,115,101,108,102, 44, 32,116,105,108,101, 44, 32,
2710 110, 97,109,101, 44, 32,110, 97,116,105,111,110, 97,108,105,
2711 116,121, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2712 110, 32, 80,108, 97,121,101,114, 58, 99,104, 97,110,103,101,
2713 95,103,111,108,100, 40, 97,109,111,117,110,116, 41, 10,101,
2714 100,105,116, 46, 99,104, 97,110,103,101, 95,103,111,108,100,
2715 40,115,101,108,102, 44, 32, 97,109,111,117,110,116, 41, 10,
2716 101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 80,108,
2717 97,121,101,114, 58, 99,104, 97,110,103,101, 95,105,110,102,
2718 114, 97,112,111,105,110,116,115, 40, 97,109,111,117,110,116,
2719 41, 10,101,100,105,116, 46, 99,104, 97,110,103,101, 95,105,
2720 110,102,114, 97,112,111,105,110,116,115, 40,115,101,108,102,
2721 44, 32, 97,109,111,117,110,116, 41, 10,101,110,100, 10,102,
2722 117,110, 99,116,105,111,110, 32, 80,108, 97,121,101,114, 58,
2723 103,105,118,101, 95,116,101, 99,104, 40,116,101, 99,104, 44,
2724 32, 99,111,115,116, 44, 32,110,111,116,105,102,121, 44, 32,
2725 114,101, 97,115,111,110, 41, 10,114,101,116,117,114,110, 32,
2726 101,100,105,116, 46,103,105,118,101, 95,116,101, 99,104, 40,
2727 115,101,108,102, 44, 32,116,101, 99,104, 44, 32, 99,111,115,
2728 116, 44, 32,110,111,116,105,102,121, 44, 32,114,101, 97,115,
2729 111,110, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2730 110, 32, 80,108, 97,121,101,114, 58,103,105,118,101, 95,116,
2731 101, 99,104,110,111,108,111,103,121, 40,116,101, 99,104, 44,
2732 32,114,101, 97,115,111,110, 41, 10,108,111,103, 46,100,101,
2733 112,114,101, 99, 97,116,105,111,110, 95,119, 97,114,110,105,
2734 110,103, 40, 34, 80,108, 97,121,101,114, 58,103,105,118,101,
2735 95,116,101, 99,104,110,111,108,111,103,121, 40, 41, 34, 44,
2736 32, 34, 80,108, 97,121,101,114, 58,103,105,118,101, 95,116,
2737 101, 99,104, 40, 41, 34, 44, 10, 34, 50, 46, 54, 34, 41, 59,
2738 10,114,101,116,117,114,110, 32,101,100,105,116, 46,103,105,
2739 118,101, 95,116,101, 99,104, 40,115,101,108,102, 44, 32,116,
2740 101, 99,104, 44, 32, 45, 49, 44, 32,102, 97,108,115,101, 44,
2741 32,114,101, 97,115,111,110, 41, 10,101,110,100, 10,102,117,
2742 110, 99,116,105,111,110, 32, 80,108, 97,121,101,114, 58,116,
2743 114, 97,105,116, 95,109,111,100, 40,116,114, 97,105,116, 44,
2744 32,109,111,100, 41, 10,114,101,116,117,114,110, 32,101,100,
2745 105,116, 46,116,114, 97,105,116, 95,109,111,100, 40,115,101,
2746 108,102, 44, 32,116,114, 97,105,116, 44, 32,109,111,100, 41,
2747 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 80,
2748 108, 97,121,101,114, 58, 99,105,118,105,108, 95,119, 97,114,
2749 40,112,114,111, 98, 97, 98,105,108,105,116,121, 41, 10,114,
2750 101,116,117,114,110, 32,101,100,105,116, 46, 99,105,118,105,
2751 108, 95,119, 97,114, 40,115,101,108,102, 44, 32,112,114,111,
2752 98, 97, 98,105,108,105,116,121, 41, 10,101,110,100, 10,102,
2753 117,110, 99,116,105,111,110, 32, 80,108, 97,121,101,114, 58,
2754 118,105, 99,116,111,114,121, 40, 41, 10,101,100,105,116, 46,
2755 112,108, 97,121,101,114, 95,118,105, 99,116,111,114,121, 40,
2756 115,101,108,102, 41, 10,101,110,100, 10,102,117,110, 99,116,
2757 105,111,110, 32, 80,108, 97,121,101,114, 58, 97,100,100, 95,
2758 104,105,115,116,111,114,121, 40, 97,109,111,117,110,116, 41,
2759 10,101,100,105,116, 46, 97,100,100, 95,112,108, 97,121,101,
2760 114, 95,104,105,115,116,111,114,121, 40,115,101,108,102, 44,
2761 32, 97,109,111,117,110,116, 41, 10,101,110,100, 10,102,117,
2762 110, 99,116,105,111,110, 32, 80,108, 97,121,101,114, 58,103,
2763 105,118,101, 95, 98,117,108, 98,115, 40, 97,109,111,117,110,
2764 116, 44, 32,116,101, 99,104, 41, 10,101,100,105,116, 46,103,
2765 105,118,101, 95, 98,117,108, 98,115, 40,115,101,108,102, 44,
2766 32, 97,109,111,117,110,116, 44, 32,116,101, 99,104, 41, 10,
2767 101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 67,105,
2768 116,121, 58,114,101,109,111,118,101, 40, 41, 10,101,100,105,
2769 116, 46,114,101,109,111,118,101, 95, 99,105,116,121, 40,115,
2770 101,108,102, 41, 10,101,110,100, 10,102,117,110, 99,116,105,
2771 111,110, 32, 67,105,116,121, 58,116,114, 97,110,115,102,101,
2772 114, 40,110,101,119, 95,111,119,110,101,114, 41, 10,101,100,
2773 105,116, 46,116,114, 97,110,115,102,101,114, 95, 99,105,116,
2774 121, 40,115,101,108,102, 44, 32,110,101,119, 95,111,119,110,
2775 101,114, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2776 110, 32, 67,105,116,121, 58, 97,100,100, 95,104,105,115,116,
2777 111,114,121, 40, 97,109,111,117,110,116, 41, 10,101,100,105,
2778 116, 46, 97,100,100, 95, 99,105,116,121, 95,104,105,115,116,
2779 111,114,121, 40,115,101,108,102, 44, 32, 97,109,111,117,110,
2780 116, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110,
2781 32, 67,105,116,121, 58, 99,114,101, 97,116,101, 95, 98,117,
2782 105,108,100,105,110,103, 40,105,109,112,114, 41, 10,101,100,
2783 105,116, 46, 99,114,101, 97,116,101, 95, 98,117,105,108,100,
2784 105,110,103, 40,115,101,108,102, 44, 32,105,109,112,114, 41,
2785 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 67,
2786 105,116,121, 58,114,101,109,111,118,101, 95, 98,117,105,108,
2787 100,105,110,103, 40,105,109,112,114, 41, 10,101,100,105,116,
2788 46,114,101,109,111,118,101, 95, 98,117,105,108,100,105,110,
2789 103, 40,115,101,108,102, 44, 32,105,109,112,114, 41, 10,101,
2790 110,100, 10,102,117,110, 99,116,105,111,110, 32, 67,105,116,
2791 121, 58, 99,104, 97,110,103,101, 95,115,105,122,101, 40, 99,
2792 104, 97,110,103,101, 44, 32,110, 97,116,105,111,110, 97,108,
2793 105,116,121, 41, 10,101,100,105,116, 46, 99,104, 97,110,103,
2794 101, 95, 99,105,116,121, 95,115,105,122,101, 40,115,101,108,
2795 102, 44, 32, 99,104, 97,110,103,101, 44, 32,110, 97,116,105,
2796 111,110, 97,108,105,116,121, 41, 10,101,110,100, 10,102,117,
2797 110, 99,116,105,111,110, 32, 67,105,116,121, 58, 99,104, 97,
2798 110,103,101, 95,110, 97,116,105,111,110, 97,108,105,116,121,
2799 40,102,114,111,109, 44, 32,116,111, 44, 32, 97,109,111,117,
2800 110,116, 41, 10,101,100,105,116, 46, 99,104, 97,110,103,101,
2801 95, 99,105,116,105,122,101,110, 95,110, 97,116,105,111,110,
2802 97,108,105,116,121, 40,115,101,108,102, 44, 32,102,114,111,
2803 109, 44, 32,116,111, 44, 32, 97,109,111,117,110,116, 41, 10,
2804 101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 85,110,
2805 105,116, 58,116,101,108,101,112,111,114,116, 40,100,101,115,
2806 116, 44, 10,101,109, 98, 97,114,107, 95,116,111, 44, 32, 97,
2807 108,108,111,119, 95,100,105,115,101,109, 98, 97,114,107, 44,
2808 10, 99,111,110,113,117,101,114, 95, 99,105,116,121, 44, 32,
2809 99,111,110,113,117,101,114, 95,101,120,116,114, 97, 44, 10,
2810 101,110,116,101,114, 95,104,117,116, 44, 32,102,114,105,103,
2811 104,116,101,110, 95,104,117,116, 41, 10,105,102, 32, 97,108,
2812 108,111,119, 95,100,105,115,101,109, 98, 97,114,107, 32, 61,
2813 61, 32,110,105,108, 32,116,104,101,110, 10,114,101,116,117,
2814 114,110, 32,101,100,105,116, 46,117,110,105,116, 95,116,101,
2815 108,101,112,111,114,116, 40,115,101,108,102, 44, 32,100,101,
2816 115,116, 44, 32,110,105,108, 44, 32,102, 97,108,115,101, 44,
2817 10,102, 97,108,115,101, 44, 32,102, 97,108,115,101, 44, 32,
2818 102, 97,108,115,101, 44, 32,102, 97,108,115,101, 41, 10,101,
2819 108,115,101, 10,114,101,116,117,114,110, 32,101,100,105,116,
2820 46,117,110,105,116, 95,116,101,108,101,112,111,114,116, 40,
2821 115,101,108,102, 44, 32,100,101,115,116, 44, 10,101,109, 98,
2822 97,114,107, 95,116,111, 44, 32, 97,108,108,111,119, 95,100,
2823 105,115,101,109, 98, 97,114,107, 44, 10, 99,111,110,113,117,
2824 101,114, 95, 99,105,116,121, 44, 32, 99,111,110,113,117,101,
2825 114, 95,101,120,116,114, 97, 44, 10,101,110,116,101,114, 95,
2826 104,117,116, 44, 32,102,114,105,103,104,116,101,110, 95,104,
2827 117,116, 41, 10,101,110,100, 10,101,110,100, 10,102,117,110,
2828 99,116,105,111,110, 32, 85,110,105,116, 58,112,101,114,102,
2829 111,114,109, 95, 97, 99,116,105,111,110, 40, 97, 99,116,105,
2830 111,110, 44, 32,116, 97,114,103,101,116, 44, 32,115,117, 98,
2831 95,116, 97,114,103,101,116, 41, 10,105,102, 32,116, 97,114,
2832 103,101,116, 32, 61, 61, 32,110,105,108, 32,116,104,101,110,
2833 10,114,101,116,117,114,110, 32,101,100,105,116, 46,112,101,
2834 114,102,111,114,109, 95, 97, 99,116,105,111,110, 40,115,101,
2835 108,102, 44, 32, 97, 99,116,105,111,110, 41, 10,101,108,115,
2836 101,105,102, 32,115,117, 98, 95,116, 97,114,103,101,116, 32,
2837 61, 61, 32,110,105,108, 32,116,104,101,110, 10,114,101,116,
2838 117,114,110, 32,101,100,105,116, 46,112,101,114,102,111,114,
2839 109, 95, 97, 99,116,105,111,110, 40,115,101,108,102, 44, 32,
2840 97, 99,116,105,111,110, 44, 32,116, 97,114,103,101,116, 41,
2841 10,101,108,115,101, 10,114,101,116,117,114,110, 32,101,100,
2842 105,116, 46,112,101,114,102,111,114,109, 95, 97, 99,116,105,
2843 111,110, 40,115,101,108,102, 44, 32, 97, 99,116,105,111,110,
2844 44, 32,116, 97,114,103,101,116, 44, 32,115,117, 98, 95,116,
2845 97,114,103,101,116, 41, 10,101,110,100, 10,101,110,100, 10,
2846 102,117,110, 99,116,105,111,110, 32, 85,110,105,116, 58,116,
2847 117,114,110, 40,100,105,114,101, 99,116,105,111,110, 41, 10,
2848 101,100,105,116, 46,117,110,105,116, 95,116,117,114,110, 40,
2849 115,101,108,102, 44, 32,100,105,114,101, 99,116,105,111,110,
2850 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32,
2851 85,110,105,116, 58,107,105,108,108, 40,114,101, 97,115,111,
2852 110, 44, 32,107,105,108,108,101,114, 41, 10,101,100,105,116,
2853 46,117,110,105,116, 95,107,105,108,108, 40,115,101,108,102,
2854 44, 32,114,101, 97,115,111,110, 44, 32,107,105,108,108,101,
2855 114, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110,
2856 32, 85,110,105,116, 58,109,111,118,101, 40,109,111,118,101,
2857 116,111, 44, 32,109,111,118,101, 99,111,115,116, 44, 10,101,
2858 109, 98, 97,114,107, 95,116,111, 44, 32, 97,108,108,111,119,
2859 95,100,105,115,101,109, 98, 97,114,107, 44, 10, 99,111,110,
2860 113,117,101,114, 95, 99,105,116,121, 44, 32, 99,111,110,113,
2861 117,101,114, 95,101,120,116,114, 97, 44, 10,101,110,116,101,
2862 114, 95,104,117,116, 44, 32,102,114,105,103,104,116,101,110,
2863 95,104,117,116, 41, 10,105,102, 32, 97,108,108,111,119, 95,
2864 100,105,115,101,109, 98, 97,114,107, 32, 61, 61, 32,110,105,
2865 108, 32,116,104,101,110, 10,114,101,116,117,114,110, 32,101,
2866 100,105,116, 46,117,110,105,116, 95,109,111,118,101, 40,115,
2867 101,108,102, 44, 32,109,111,118,101,116,111, 44, 32,109,111,
2868 118,101, 99,111,115,116, 44, 32,110,105,108, 44, 32,102, 97,
2869 108,115,101, 44, 10,102, 97,108,115,101, 44, 32,102, 97,108,
2870 115,101, 44, 32,102, 97,108,115,101, 44, 32,102, 97,108,115,
2871 101, 41, 10,101,108,115,101, 10,114,101,116,117,114,110, 32,
2872 101,100,105,116, 46,117,110,105,116, 95,109,111,118,101, 40,
2873 115,101,108,102, 44, 32,109,111,118,101,116,111, 44, 32,109,
2874 111,118,101, 99,111,115,116, 44, 10,101,109, 98, 97,114,107,
2875 95,116,111, 44, 32, 97,108,108,111,119, 95,100,105,115,101,
2876 109, 98, 97,114,107, 44, 10, 99,111,110,113,117,101,114, 95,
2877 99,105,116,121, 44, 32, 99,111,110,113,117,101,114, 95,101,
2878 120,116,114, 97, 44, 10,101,110,116,101,114, 95,104,117,116,
2879 44, 32,102,114,105,103,104,116,101,110, 95,104,117,116, 41,
2880 10,101,110,100, 10,101,110,100, 10,102,117,110, 99,116,105,
2881 111,110, 32, 85,110,105,116, 58,109,111,118,101,109,101,110,
2882 116, 95,100,105,115, 97,108,108,111,119, 40, 41, 10,101,100,
2883 105,116, 46,109,111,118,101,109,101,110,116, 95,100,105,115,
2884 97,108,108,111,119, 40,115,101,108,102, 41, 10,101,110,100,
2885 10,102,117,110, 99,116,105,111,110, 32, 85,110,105,116, 58,
2886 109,111,118,101,109,101,110,116, 95, 97,108,108,111,119, 40,
2887 41, 10,101,100,105,116, 46,109,111,118,101,109,101,110,116,
2888 95, 97,108,108,111,119, 40,115,101,108,102, 41, 10,101,110,
2889 100, 10,102,117,110, 99,116,105,111,110, 32, 84,105,108,101,
2890 58, 99,114,101, 97,116,101, 95,111,119,110,101,100, 95,101,
2891 120,116,114, 97, 40,110, 97,109,101, 44, 32,112,108, 97,121,
2892 101,114, 41, 10,101,100,105,116, 46, 99,114,101, 97,116,101,
2893 95,111,119,110,101,100, 95,101,120,116,114, 97, 40,115,101,
2894 108,102, 44, 32,110, 97,109,101, 44, 32,112,108, 97,121,101,
2895 114, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110,
2896 32, 84,105,108,101, 58, 99,114,101, 97,116,101, 95,101,120,
2897 116,114, 97, 40,110, 97,109,101, 41, 10,101,100,105,116, 46,
2898 99,114,101, 97,116,101, 95,101,120,116,114, 97, 40,115,101,
2899 108,102, 44, 32,110, 97,109,101, 41, 10,101,110,100, 10,102,
2900 117,110, 99,116,105,111,110, 32, 84,105,108,101, 58, 99,114,
2901 101, 97,116,101, 95, 98, 97,115,101, 40,110, 97,109,101, 44,
2902 32,112,108, 97,121,101,114, 41, 10,108,111,103, 46,100,101,
2903 112,114,101, 99, 97,116,105,111,110, 95,119, 97,114,110,105,
2904 110,103, 40, 34, 84,105,108,101, 58, 99,114,101, 97,116,101,
2905 95, 98, 97,115,101, 40, 41, 34, 44, 32, 34, 84,105,108,101,
2906 58, 99,114,101, 97,116,101, 95,111,119,110,101,100, 95,101,
2907 120,116,114, 97, 40, 41, 34, 44, 10, 34, 51, 46, 48, 34, 41,
2908 59, 10,101,100,105,116, 46, 99,114,101, 97,116,101, 95, 98,
2909 97,115,101, 40,115,101,108,102, 44, 32,110, 97,109,101, 44,
2910 32,112,108, 97,121,101,114, 41, 10,101,110,100, 10,102,117,
2911 110, 99,116,105,111,110, 32, 84,105,108,101, 58, 99,114,101,
2912 97,116,101, 95,114,111, 97,100, 40,110, 97,109,101, 41, 10,
2913 108,111,103, 46,100,101,112,114,101, 99, 97,116,105,111,110,
2914 95,119, 97,114,110,105,110,103, 40, 34, 84,105,108,101, 58,
2915 99,114,101, 97,116,101, 95,114,111, 97,100, 40, 41, 34, 44,
2916 32, 34, 84,105,108,101, 58, 99,114,101, 97,116,101, 95,101,
2917 120,116,114, 97, 40, 41, 34, 44, 10, 34, 50, 46, 54, 34, 41,
2918 59, 10,101,100,105,116, 46, 99,114,101, 97,116,101, 95,114,
2919 111, 97,100, 40,115,101,108,102, 44, 32,110, 97,109,101, 41,
2920 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 84,
2921 105,108,101, 58,114,101,109,111,118,101, 95,101,120,116,114,
2922 97, 40,110, 97,109,101, 41, 10,101,100,105,116, 46,114,101,
2923 109,111,118,101, 95,101,120,116,114, 97, 40,115,101,108,102,
2924 44, 32,110, 97,109,101, 41, 10,101,110,100, 10,102,117,110,
2925 99,116,105,111,110, 32, 84,105,108,101, 58, 99,104, 97,110,
2926 103,101, 95,116,101,114,114, 97,105,110, 40,116,101,114,114,
2927 97,105,110, 41, 10,101,100,105,116, 46, 99,104, 97,110,103,
2928 101, 95,116,101,114,114, 97,105,110, 40,115,101,108,102, 44,
2929 32,116,101,114,114, 97,105,110, 41, 10,101,110,100, 10,102,
2930 117,110, 99,116,105,111,110, 32, 84,105,108,101, 58,117,110,
2931 108,101, 97,115,104, 95, 98, 97,114, 98, 97,114,105, 97,110,
2932 115, 40, 41, 10,114,101,116,117,114,110, 32,101,100,105,116,
2933 46,117,110,108,101, 97,115,104, 95, 98, 97,114, 98, 97,114,
2934 105, 97,110,115, 40,115,101,108,102, 41, 10,101,110,100, 10,
2935 102,117,110, 99,116,105,111,110, 32, 84,105,108,101, 58,112,
2936 108, 97, 99,101, 95,112, 97,114,116,105,115, 97,110,115, 40,
2937 112,108, 97,121,101,114, 44, 32, 99,111,117,110,116, 44, 32,
2938 115,113, 95,114, 97,100,105,117,115, 41, 10,101,100,105,116,
2939 46,112,108, 97, 99,101, 95,112, 97,114,116,105,115, 97,110,
2940 115, 40,115,101,108,102, 44, 32,112,108, 97,121,101,114, 44,
2941 32, 99,111,117,110,116, 44, 32,115,113, 95,114, 97,100,105,
2942 117,115, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2943 110, 32, 84,105,108,101, 58,115,101,116, 95,108, 97, 98,101,
2944 108, 40,108, 97, 98,101,108, 41, 10,101,100,105,116, 46,116,
2945 105,108,101, 95,115,101,116, 95,108, 97, 98,101,108, 40,115,
2946 101,108,102, 44, 32,108, 97, 98,101,108, 41, 10,101,110,100,
2947 10,102,117,110, 99,116,105,111,110, 32, 84,105,108,101, 58,
2948 115,104,111,119, 40,112,108, 97,121,101,114, 41, 10,101,100,
2949 105,116, 46,116,105,108,101, 95,115,104,111,119, 40,115,101,
2950 108,102, 44, 32,112,108, 97,121,101,114, 41, 10,101,110,100,
2951 10,102,117,110, 99,116,105,111,110, 32, 84,105,108,101, 58,
2952 104,105,100,101, 40,112,108, 97,121,101,114, 41, 10,114,101,
2953 116,117,114,110, 32,101,100,105,116, 46,116,105,108,101, 95,
2954 104,105,100,101, 40,115,101,108,102, 44, 32,112,108, 97,121,
2955 101,114, 41, 10,101,110,100,32
2956 };
2957 if (luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") == LUA_OK)
2959 } /* end of embedded lua code */
2960
2961 tolua_module(tolua_S,"Player",0);
2962 tolua_beginmodule(tolua_S,"Player");
2963 tolua_module(tolua_S,"properties",0);
2964 tolua_beginmodule(tolua_S,"properties");
2977
2978 { /* begin embedded lua code */
2979 static unsigned char B[] = {
2980 10,101,100,105,116, 46,112,108, 97,121,101,114, 95,108,111,
2981 115,101, 32, 61, 32, 80,108, 97,121,101,114, 46,108,111,115,
2982 101,32
2983 };
2984 if (luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") == LUA_OK)
2986 } /* end of embedded lua code */
2987
2988 tolua_module(tolua_S,"game",1);
2989 tolua_beginmodule(tolua_S,"game");
2994 tolua_module(tolua_S,"Nation_Type",0);
2995 tolua_beginmodule(tolua_S,"Nation_Type");
3000 tolua_module(tolua_S,"Unit",0);
3001 tolua_beginmodule(tolua_S,"Unit");
3006 return 1;
3007}
3008/* Open tolua function */
3010{
3012 lua_pushstring(tolua_S, "server");
3013 lua_call(tolua_S, 1, 0);
3014 return 1;
3015}
const char * api_server_setting_get(lua_State *L, const char *sett_name)
bool api_server_was_started(lua_State *L)
bool api_popup_image(lua_State *L, Player *pplayer, const char *tag)
int api_server_player_civilization_score(lua_State *L, Player *pplayer)
bool api_play_music(lua_State *L, Player *pplayer, const char *tag)
bool api_server_save(lua_State *L, const char *filename)
void api_counter_increase(lua_State *L, Counter *c, City *city)
void api_counter_zero(lua_State *L, Counter *c, City *city)
void api_edit_change_city_size(lua_State *L, City *pcity, int change, Player *nationality)
bool api_edit_perform_action_unit_vs_tile_extra(lua_State *L, Unit *punit, Action *paction, Tile *tgt, const char *sub_tgt)
bool api_edit_perform_action_unit_vs_tile(lua_State *L, Unit *punit, Action *paction, Tile *tgt)
void api_edit_climate_change(lua_State *L, enum climate_change_type type, int effect)
void api_edit_player_give_bulbs(lua_State *L, Player *pplayer, int amount, Tech_Type *tech)
void api_edit_unit_moving_allow(lua_State *L, Unit *punit)
void api_edit_remove_city(lua_State *L, City *pcity)
bool api_edit_trait_mod_set(lua_State *L, Player *pplayer, const char *tname, const int mod)
bool api_edit_unleash_barbarians(lua_State *L, Tile *ptile)
void api_edit_remove_building(lua_State *L, City *pcity, Building_Type *impr)
void api_edit_player_victory(lua_State *L, Player *pplayer)
void api_edit_create_extra(lua_State *L, Tile *ptile, const char *name)
void api_edit_unit_movepoints(lua_State *L, Unit *self, int change)
Unit * api_edit_create_unit(lua_State *L, Player *pplayer, Tile *ptile, Unit_Type *ptype, int veteran_level, City *homecity, int moves_left)
bool api_edit_perform_action_unit_vs_unit(lua_State *L, Unit *punit, Action *paction, Unit *tgt)
void api_edit_player_add_history(lua_State *L, Player *pplayer, int amount)
Tech_Type * api_edit_give_technology(lua_State *L, Player *pplayer, Tech_Type *ptech, int cost, bool notify, const char *reason)
bool api_edit_perform_action_unit_vs_city_impr(lua_State *L, Unit *punit, Action *paction, City *tgt, Building_Type *sub_tgt)
void api_edit_create_building(lua_State *L, City *pcity, Building_Type *impr)
Unit * api_edit_create_unit_full(lua_State *L, Player *pplayer, Tile *ptile, Unit_Type *ptype, int veteran_level, City *homecity, int moves_left, int hp_left, Unit *ptransport)
bool api_edit_transfer_city(lua_State *L, City *pcity, Player *new_owner)
bool api_edit_change_terrain(lua_State *L, Tile *ptile, Terrain *pterr)
void api_edit_create_owned_extra(lua_State *L, Tile *ptile, const char *name, Player *pplayer)
void api_edit_tile_show(lua_State *L, Tile *ptile, Player *pplayer)
void api_edit_unit_kill(lua_State *L, Unit *punit, const char *reason, Player *killer)
bool api_edit_tile_hide(lua_State *L, Tile *ptile, Player *pplayer)
void api_edit_unit_turn(lua_State *L, Unit *punit, Direction dir)
void api_edit_place_partisans(lua_State *L, Tile *ptile, Player *pplayer, int count, int sq_radius)
void api_edit_remove_extra(lua_State *L, Tile *ptile, const char *name)
bool api_edit_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:2683
static void frighten_hut(QVariant data1, QVariant data2)
Definition dialogs.cpp:2713
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit * punit
Definition dialogs_g.h:74
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit int const struct action *paction struct unit struct city * pcity
Definition dialogs_g.h:78
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit int cost
Definition dialogs_g.h:74
enum event_type event
Definition events.c:81
GType type
Definition repodlgs.c:1313
const char * name
Definition inputfile.c:127
enum direction8 Direction
const char * setting_name(const struct setting *pset)
Definition settings.c:3333
Definition city.h:317
Definition tile.h:50
Definition unit.h:140
#define bool
Definition support.h:71
static int tolua_server_edit_unit_kill00(lua_State *tolua_S)
static int tolua_server_edit_perform_action01(lua_State *tolua_S)
static int tolua_server_server_started00(lua_State *tolua_S)
TOLUA_API int tolua_server_open(lua_State *tolua_S)
static int tolua_server_server_play_music00(lua_State *tolua_S)
static int tolua_server_edit_change_citizen_nationality00(lua_State *tolua_S)
static int tolua_server_edit_create_trade_route00(lua_State *tolua_S)
static int tolua_server_luadata_get_str00(lua_State *tolua_S)
static int tolua_server_edit_perform_action04(lua_State *tolua_S)
static int tolua_server_server_popup_image00(lua_State *tolua_S)
static int tolua_server_edit_create_unit00(lua_State *tolua_S)
static int tolua_server_edit_perform_action03(lua_State *tolua_S)
static int tolua_server_edit_tile_show00(lua_State *tolua_S)
static int tolua_server_Counter_increase00(lua_State *tolua_S)
static int tolua_server_edit_player_victory00(lua_State *tolua_S)
static int tolua_server_edit_change_city_size00(lua_State *tolua_S)
static int tolua_server_Unit_transform00(lua_State *tolua_S)
static int tolua_server_notify_embassies_msg00(lua_State *tolua_S)
#define game_server_multiresearch
static int tolua_server_edit_give_tech00(lua_State *tolua_S)
static int tolua_server_edit_unit_add_movepoints00(lua_State *tolua_S)
static int tolua_server_edit_place_partisans00(lua_State *tolua_S)
static int tolua_get_game_game_server_autoupgrade_veteran_loss(lua_State *tolua_S)
static int tolua_server_edit_create_building00(lua_State *tolua_S)
static int tolua_server_edit_climate_change00(lua_State *tolua_S)
static int tolua_server_Counter_zero00(lua_State *tolua_S)
static int tolua_server_edit_change_terrain00(lua_State *tolua_S)
static int tolua_server_edit_city_create00(lua_State *tolua_S)
static int tolua_server_edit_unit_add_hitpoints00(lua_State *tolua_S)
static int tolua_server_edit_perform_action06(lua_State *tolua_S)
static int tolua_server_Player_bulbs_saved00(lua_State *tolua_S)
static int tolua_server_server_civilization_score00(lua_State *tolua_S)
static void tolua_reg_types(lua_State *tolua_S)
static int tolua_server_notify_research_msg00(lua_State *tolua_S)
static int tolua_server_edit_create_owned_extra00(lua_State *tolua_S)
static int tolua_server_Nation_Type_trait_max00(lua_State *tolua_S)
static int tolua_server_notify_research_embassies_msg00(lua_State *tolua_S)
static int tolua_server_Player_cancel_pact00(lua_State *tolua_S)
static int tolua_server_Nation_Type_trait_min00(lua_State *tolua_S)
static int tolua_server_edit_remove_city00(lua_State *tolua_S)
int tolua_bnd_takeownership(lua_State *L)
static int tolua_server_Player_lose00(lua_State *tolua_S)
static int tolua_server_edit_add_player_history00(lua_State *tolua_S)
static int tolua_server_Player_tag_score00(lua_State *tolua_S)
static int tolua_server_server_setting_get00(lua_State *tolua_S)
static int tolua_server_edit_remove_extra00(lua_State *tolua_S)
static int tolua_server_edit_create_player00(lua_State *tolua_S)
static int tolua_server_server_save00(lua_State *tolua_S)
static int tolua_server_Player_love00(lua_State *tolua_S)
static int tolua_server_Player_trait_current_mod00(lua_State *tolua_S)
#define game_server_upgrade_veteran_loss
static int tolua_server_edit_unleash_barbarians00(lua_State *tolua_S)
static int tolua_server_edit_tile_set_label00(lua_State *tolua_S)
static int tolua_server_edit_change_gold00(lua_State *tolua_S)
static int tolua_get_game_game_server_multiresearch(lua_State *tolua_S)
static int tolua_server_edit_perform_action02(lua_State *tolua_S)
static int tolua_server_Nation_Type_trait_default00(lua_State *tolua_S)
static int tolua_server_edit_transfer_city00(lua_State *tolua_S)
static int tolua_server_edit_add_city_history00(lua_State *tolua_S)
static int tolua_get_game_game_server_upgrade_veteran_loss(lua_State *tolua_S)
static int tolua_server_edit_create_extra00(lua_State *tolua_S)
static int tolua_server_edit_movement_disallow00(lua_State *tolua_S)
static int tolua_server_edit_create_unit_full00(lua_State *tolua_S)
static int tolua_server_edit_create_road00(lua_State *tolua_S)
static int tolua_server_edit_unit_teleport00(lua_State *tolua_S)
static int tolua_server_edit_perform_action00(lua_State *tolua_S)
static int tolua_server_edit_perform_action05(lua_State *tolua_S)
#define game_server_autoupgrade_veteran_loss
static int tolua_server_Player_trait_base00(lua_State *tolua_S)
static int tolua_server_edit_tile_hide00(lua_State *tolua_S)
static int tolua_server_edit_give_bulbs00(lua_State *tolua_S)
static int tolua_server_edit_trait_mod00(lua_State *tolua_S)
static int tolua_server_Player_add_love00(lua_State *tolua_S)
static int tolua_server_notify_event_msg00(lua_State *tolua_S)
static int tolua_server_edit_remove_building00(lua_State *tolua_S)
static int tolua_server_edit_civil_war00(lua_State *tolua_S)
LUALIB_API int luaopen_server(lua_State *tolua_S)
static int tolua_server_edit_movement_allow00(lua_State *tolua_S)
static int tolua_server_Player_trait00(lua_State *tolua_S)
static int tolua_server_edit_change_infrapoints00(lua_State *tolua_S)
static int tolua_server_edit_create_base00(lua_State *tolua_S)
static int tolua_server_Unit_upgrade00(lua_State *tolua_S)
static int tolua_server_Player_properties_free_bulbs00(lua_State *tolua_S)
static int tolua_server_edit_unit_move00(lua_State *tolua_S)
static int tolua_server_edit_unit_turn00(lua_State *tolua_S)