Freeciv-3.2
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,"City");
42 tolua_usertype(tolua_S,"Unit_Type");
43 tolua_usertype(tolua_S,"Player");
44 tolua_usertype(tolua_S,"Unit");
45 tolua_usertype(tolua_S,"Tile");
46 tolua_usertype(tolua_S,"Action");
47 tolua_usertype(tolua_S,"Nation_Type");
48 tolua_usertype(tolua_S,"Tech_Type");
49 tolua_usertype(tolua_S,"Counter");
50 tolua_usertype(tolua_S,"Direction");
51 tolua_usertype(tolua_S,"Terrain");
52 tolua_usertype(tolua_S,"Building_Type");
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) ||
669 )
670 goto tolua_lerror;
671 else
672#endif
673 {
675 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
676 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,2,0));
677 const char* name = ((const char*) tolua_tostring(tolua_S,3,0));
678 {
679 bool tolua_ret = (bool) api_edit_create_city(L,pplayer,ptile,name);
681 }
682 }
683 return 1;
684#ifndef TOLUA_RELEASE
686 tolua_error(tolua_S,"#ferror in function 'create_city'.",&tolua_err);
687 return 0;
688#endif
689}
690
691/* function: api_edit_transfer_city */
693{
694#ifndef TOLUA_RELEASE
696 if (
697 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
698 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
700 )
701 goto tolua_lerror;
702 else
703#endif
704 {
706 City* pcity = ((City*) tolua_tousertype(tolua_S,1,0));
708 {
711 }
712 }
713 return 1;
714#ifndef TOLUA_RELEASE
716 tolua_error(tolua_S,"#ferror in function 'transfer_city'.",&tolua_err);
717 return 0;
718#endif
719}
720
721/* function: api_edit_remove_city */
723{
724#ifndef TOLUA_RELEASE
726 if (
727 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
729 )
730 goto tolua_lerror;
731 else
732#endif
733 {
735 City* pcity = ((City*) tolua_tousertype(tolua_S,1,0));
736 {
737 api_edit_remove_city(L,pcity);
738 }
739 }
740 return 0;
741#ifndef TOLUA_RELEASE
743 tolua_error(tolua_S,"#ferror in function 'remove_city'.",&tolua_err);
744 return 0;
745#endif
746}
747
748/* function: api_edit_create_building */
750{
751#ifndef TOLUA_RELEASE
753 if (
754 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
755 !tolua_isusertype(tolua_S,2,"Building_Type",0,&tolua_err) ||
757 )
758 goto tolua_lerror;
759 else
760#endif
761 {
763 City* pcity = ((City*) tolua_tousertype(tolua_S,1,0));
765 {
766 api_edit_create_building(L,pcity,impr);
767 }
768 }
769 return 0;
770#ifndef TOLUA_RELEASE
772 tolua_error(tolua_S,"#ferror in function 'create_building'.",&tolua_err);
773 return 0;
774#endif
775}
776
777/* function: api_edit_remove_building */
779{
780#ifndef TOLUA_RELEASE
782 if (
783 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
784 !tolua_isusertype(tolua_S,2,"Building_Type",0,&tolua_err) ||
786 )
787 goto tolua_lerror;
788 else
789#endif
790 {
792 City* pcity = ((City*) tolua_tousertype(tolua_S,1,0));
794 {
795 api_edit_remove_building(L,pcity,impr);
796 }
797 }
798 return 0;
799#ifndef TOLUA_RELEASE
801 tolua_error(tolua_S,"#ferror in function 'remove_building'.",&tolua_err);
802 return 0;
803#endif
804}
805
806/* function: api_edit_create_owned_extra */
808{
809#ifndef TOLUA_RELEASE
811 if (
812 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
814 !tolua_isusertype(tolua_S,3,"Player",0,&tolua_err) ||
816 )
817 goto tolua_lerror;
818 else
819#endif
820 {
822 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
823 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
824 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,3,0));
825 {
826 api_edit_create_owned_extra(L,ptile,name,pplayer);
827 }
828 }
829 return 0;
830#ifndef TOLUA_RELEASE
832 tolua_error(tolua_S,"#ferror in function 'create_owned_extra'.",&tolua_err);
833 return 0;
834#endif
835}
836
837/* function: api_edit_create_extra */
839{
840#ifndef TOLUA_RELEASE
842 if (
843 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
846 )
847 goto tolua_lerror;
848 else
849#endif
850 {
852 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
853 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
854 {
856 }
857 }
858 return 0;
859#ifndef TOLUA_RELEASE
861 tolua_error(tolua_S,"#ferror in function 'create_extra'.",&tolua_err);
862 return 0;
863#endif
864}
865
866/* function: api_edit_create_base */
868{
869#ifndef TOLUA_RELEASE
871 if (
872 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
874 !tolua_isusertype(tolua_S,3,"Player",0,&tolua_err) ||
876 )
877 goto tolua_lerror;
878 else
879#endif
880 {
882 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
883 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
884 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,3,0));
885 {
886 api_edit_create_base(L,ptile,name,pplayer);
887 }
888 }
889 return 0;
890#ifndef TOLUA_RELEASE
892 tolua_error(tolua_S,"#ferror in function 'create_base'.",&tolua_err);
893 return 0;
894#endif
895}
896
897/* function: api_edit_create_road */
899{
900#ifndef TOLUA_RELEASE
902 if (
903 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
906 )
907 goto tolua_lerror;
908 else
909#endif
910 {
912 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
913 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
914 {
916 }
917 }
918 return 0;
919#ifndef TOLUA_RELEASE
921 tolua_error(tolua_S,"#ferror in function 'create_road'.",&tolua_err);
922 return 0;
923#endif
924}
925
926/* function: api_edit_remove_extra */
928{
929#ifndef TOLUA_RELEASE
931 if (
932 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
935 )
936 goto tolua_lerror;
937 else
938#endif
939 {
941 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
942 const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
943 {
945 }
946 }
947 return 0;
948#ifndef TOLUA_RELEASE
950 tolua_error(tolua_S,"#ferror in function 'remove_extra'.",&tolua_err);
951 return 0;
952#endif
953}
954
955/* function: api_edit_tile_set_label */
957{
958#ifndef TOLUA_RELEASE
960 if (
961 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
964 )
965 goto tolua_lerror;
966 else
967#endif
968 {
970 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
971 const char* label = ((const char*) tolua_tostring(tolua_S,2,0));
972 {
973 api_edit_tile_set_label(L,ptile,label);
974 }
975 }
976 return 0;
977#ifndef TOLUA_RELEASE
979 tolua_error(tolua_S,"#ferror in function 'tile_set_label'.",&tolua_err);
980 return 0;
981#endif
982}
983
984/* function: api_edit_tile_show */
986{
987#ifndef TOLUA_RELEASE
989 if (
990 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
991 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
993 )
994 goto tolua_lerror;
995 else
996#endif
997 {
999 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
1000 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,2,0));
1001 {
1002 api_edit_tile_show(L,ptile,pplayer);
1003 }
1004 }
1005 return 0;
1006#ifndef TOLUA_RELEASE
1008 tolua_error(tolua_S,"#ferror in function 'tile_show'.",&tolua_err);
1009 return 0;
1010#endif
1011}
1012
1013/* function: api_edit_tile_hide */
1015{
1016#ifndef TOLUA_RELEASE
1018 if (
1019 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
1020 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
1022 )
1023 goto tolua_lerror;
1024 else
1025#endif
1026 {
1027 lua_State* L = tolua_S;
1028 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
1029 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,2,0));
1030 {
1031 bool tolua_ret = (bool) api_edit_tile_hide(L,ptile,pplayer);
1033 }
1034 }
1035 return 1;
1036#ifndef TOLUA_RELEASE
1038 tolua_error(tolua_S,"#ferror in function 'tile_hide'.",&tolua_err);
1039 return 0;
1040#endif
1041}
1042
1043/* function: api_edit_create_player */
1045{
1046#ifndef TOLUA_RELEASE
1048 if (
1050 !tolua_isusertype(tolua_S,2,"Nation_Type",0,&tolua_err) ||
1053 )
1054 goto tolua_lerror;
1055 else
1056#endif
1057 {
1058 lua_State* L = tolua_S;
1059 const char* username = ((const char*) tolua_tostring(tolua_S,1,0));
1060 Nation_Type* nation = ((Nation_Type*) tolua_tousertype(tolua_S,2,0));
1061 const char* ai = ((const char*) tolua_tostring(tolua_S,3,0));
1062 {
1063 Player* tolua_ret = (Player*) api_edit_create_player(L,username,nation,ai);
1064 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Player");
1065 }
1066 }
1067 return 1;
1068#ifndef TOLUA_RELEASE
1070 tolua_error(tolua_S,"#ferror in function 'create_player'.",&tolua_err);
1071 return 0;
1072#endif
1073}
1074
1075/* function: api_edit_change_gold */
1077{
1078#ifndef TOLUA_RELEASE
1080 if (
1081 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1084 )
1085 goto tolua_lerror;
1086 else
1087#endif
1088 {
1089 lua_State* L = tolua_S;
1090 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1091 int amount = ((int) tolua_tonumber(tolua_S,2,0));
1092 {
1093 api_edit_change_gold(L,pplayer,amount);
1094 }
1095 }
1096 return 0;
1097#ifndef TOLUA_RELEASE
1099 tolua_error(tolua_S,"#ferror in function 'change_gold'.",&tolua_err);
1100 return 0;
1101#endif
1102}
1103
1104/* function: api_edit_change_infrapoints */
1106{
1107#ifndef TOLUA_RELEASE
1109 if (
1110 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1113 )
1114 goto tolua_lerror;
1115 else
1116#endif
1117 {
1118 lua_State* L = tolua_S;
1119 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1120 int amount = ((int) tolua_tonumber(tolua_S,2,0));
1121 {
1123 }
1124 }
1125 return 0;
1126#ifndef TOLUA_RELEASE
1128 tolua_error(tolua_S,"#ferror in function 'change_infrapoints'.",&tolua_err);
1129 return 0;
1130#endif
1131}
1132
1133/* function: api_edit_give_technology */
1135{
1136#ifndef TOLUA_RELEASE
1138 if (
1139 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1140 !tolua_isusertype(tolua_S,2,"Tech_Type",0,&tolua_err) ||
1145 )
1146 goto tolua_lerror;
1147 else
1148#endif
1149 {
1150 lua_State* L = tolua_S;
1151 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1153 int cost = ((int) tolua_tonumber(tolua_S,3,0));
1154 bool notify = ((bool) tolua_toboolean(tolua_S,4,0));
1155 const char* reason = ((const char*) tolua_tostring(tolua_S,5,0));
1156 {
1158 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Tech_Type");
1159 }
1160 }
1161 return 1;
1162#ifndef TOLUA_RELEASE
1164 tolua_error(tolua_S,"#ferror in function 'give_tech'.",&tolua_err);
1165 return 0;
1166#endif
1167}
1168
1169/* function: api_edit_trait_mod_set */
1171{
1172#ifndef TOLUA_RELEASE
1174 if (
1175 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1179 )
1180 goto tolua_lerror;
1181 else
1182#endif
1183 {
1184 lua_State* L = tolua_S;
1185 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1186 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
1187 const int mod = ((const int) tolua_tonumber(tolua_S,3,0));
1188 {
1189 bool tolua_ret = (bool) api_edit_trait_mod_set(L,pplayer,tname,mod);
1191 }
1192 }
1193 return 1;
1194#ifndef TOLUA_RELEASE
1196 tolua_error(tolua_S,"#ferror in function 'trait_mod'.",&tolua_err);
1197 return 0;
1198#endif
1199}
1200
1201/* function: api_edit_unleash_barbarians */
1203{
1204#ifndef TOLUA_RELEASE
1206 if (
1207 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
1209 )
1210 goto tolua_lerror;
1211 else
1212#endif
1213 {
1214 lua_State* L = tolua_S;
1215 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
1216 {
1219 }
1220 }
1221 return 1;
1222#ifndef TOLUA_RELEASE
1224 tolua_error(tolua_S,"#ferror in function 'unleash_barbarians'.",&tolua_err);
1225 return 0;
1226#endif
1227}
1228
1229/* function: api_edit_place_partisans */
1231{
1232#ifndef TOLUA_RELEASE
1234 if (
1235 !tolua_isusertype(tolua_S,1,"Tile",0,&tolua_err) ||
1236 !tolua_isusertype(tolua_S,2,"Player",0,&tolua_err) ||
1240 )
1241 goto tolua_lerror;
1242 else
1243#endif
1244 {
1245 lua_State* L = tolua_S;
1246 Tile* ptile = ((Tile*) tolua_tousertype(tolua_S,1,0));
1247 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,2,0));
1248 int count = ((int) tolua_tonumber(tolua_S,3,0));
1249 int sq_radius = ((int) tolua_tonumber(tolua_S,4,0));
1250 {
1251 api_edit_place_partisans(L,ptile,pplayer,count,sq_radius);
1252 }
1253 }
1254 return 0;
1255#ifndef TOLUA_RELEASE
1257 tolua_error(tolua_S,"#ferror in function 'place_partisans'.",&tolua_err);
1258 return 0;
1259#endif
1260}
1261
1262/* function: api_edit_climate_change */
1264{
1265#ifndef TOLUA_RELEASE
1267 if (
1271 )
1272 goto tolua_lerror;
1273 else
1274#endif
1275 {
1276 lua_State* L = tolua_S;
1278 int effect = ((int) tolua_tonumber(tolua_S,2,0));
1279 {
1281 }
1282 }
1283 return 0;
1284#ifndef TOLUA_RELEASE
1286 tolua_error(tolua_S,"#ferror in function 'climate_change'.",&tolua_err);
1287 return 0;
1288#endif
1289}
1290
1291/* function: api_edit_civil_war */
1293{
1294#ifndef TOLUA_RELEASE
1296 if (
1297 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1300 )
1301 goto tolua_lerror;
1302 else
1303#endif
1304 {
1305 lua_State* L = tolua_S;
1306 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1307 int probability = ((int) tolua_tonumber(tolua_S,2,0));
1308 {
1310 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Player");
1311 }
1312 }
1313 return 1;
1314#ifndef TOLUA_RELEASE
1316 tolua_error(tolua_S,"#ferror in function 'civil_war'.",&tolua_err);
1317 return 0;
1318#endif
1319}
1320
1321/* function: api_edit_unit_turn */
1323{
1324#ifndef TOLUA_RELEASE
1326 if (
1327 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1328 !tolua_isusertype(tolua_S,2,"Direction",0,&tolua_err) ||
1330 )
1331 goto tolua_lerror;
1332 else
1333#endif
1334 {
1335 lua_State* L = tolua_S;
1336 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1338 {
1340 }
1341 }
1342 return 0;
1343#ifndef TOLUA_RELEASE
1345 tolua_error(tolua_S,"#ferror in function 'unit_turn'.",&tolua_err);
1346 return 0;
1347#endif
1348}
1349
1350/* function: api_edit_player_victory */
1352{
1353#ifndef TOLUA_RELEASE
1355 if (
1356 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1358 )
1359 goto tolua_lerror;
1360 else
1361#endif
1362 {
1363 lua_State* L = tolua_S;
1365 {
1367 }
1368 }
1369 return 0;
1370#ifndef TOLUA_RELEASE
1372 tolua_error(tolua_S,"#ferror in function 'player_victory'.",&tolua_err);
1373 return 0;
1374#endif
1375}
1376
1377/* function: api_edit_unit_move */
1379{
1380#ifndef TOLUA_RELEASE
1382 if (
1383 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1384 !tolua_isusertype(tolua_S,2,"Tile",0,&tolua_err) ||
1386 !tolua_isusertype(tolua_S,4,"Unit",0,&tolua_err) ||
1393 )
1394 goto tolua_lerror;
1395 else
1396#endif
1397 {
1398 lua_State* L = tolua_S;
1399 Unit* self = ((Unit*) tolua_tousertype(tolua_S,1,0));
1401 int movecost = ((int) tolua_tonumber(tolua_S,3,0));
1404 bool conquer_city = ((bool) tolua_toboolean(tolua_S,6,0));
1405 bool conquer_extra = ((bool) tolua_toboolean(tolua_S,7,0));
1406 bool enter_hut = ((bool) tolua_toboolean(tolua_S,8,0));
1407 bool frighten_hut = ((bool) tolua_toboolean(tolua_S,9,0));
1408 {
1411 }
1412 }
1413 return 1;
1414#ifndef TOLUA_RELEASE
1416 tolua_error(tolua_S,"#ferror in function 'unit_move'.",&tolua_err);
1417 return 0;
1418#endif
1419}
1420
1421/* function: api_edit_unit_moving_disallow */
1423{
1424#ifndef TOLUA_RELEASE
1426 if (
1427 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1429 )
1430 goto tolua_lerror;
1431 else
1432#endif
1433 {
1434 lua_State* L = tolua_S;
1435 Unit* self = ((Unit*) tolua_tousertype(tolua_S,1,0));
1436 {
1438 }
1439 }
1440 return 0;
1441#ifndef TOLUA_RELEASE
1443 tolua_error(tolua_S,"#ferror in function 'movement_disallow'.",&tolua_err);
1444 return 0;
1445#endif
1446}
1447
1448/* function: api_edit_unit_moving_allow */
1450{
1451#ifndef TOLUA_RELEASE
1453 if (
1454 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1456 )
1457 goto tolua_lerror;
1458 else
1459#endif
1460 {
1461 lua_State* L = tolua_S;
1462 Unit* self = ((Unit*) tolua_tousertype(tolua_S,1,0));
1463 {
1465 }
1466 }
1467 return 0;
1468#ifndef TOLUA_RELEASE
1470 tolua_error(tolua_S,"#ferror in function 'movement_allow'.",&tolua_err);
1471 return 0;
1472#endif
1473}
1474
1475/* function: api_edit_perform_action_unit_vs_city */
1477{
1478#ifndef TOLUA_RELEASE
1480 if (
1481 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1482 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1483 !tolua_isusertype(tolua_S,3,"City",0,&tolua_err) ||
1485 )
1486 goto tolua_lerror;
1487 else
1488#endif
1489 {
1490 lua_State* L = tolua_S;
1491 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1493 City* tgt = ((City*) tolua_tousertype(tolua_S,3,0));
1494 {
1497 }
1498 }
1499 return 1;
1500#ifndef TOLUA_RELEASE
1502 tolua_error(tolua_S,"#ferror in function 'perform_action'.",&tolua_err);
1503 return 0;
1504#endif
1505}
1506
1507/* function: api_edit_perform_action_unit_vs_city_impr */
1509{
1511 if (
1512 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1513 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1514 !tolua_isusertype(tolua_S,3,"City",0,&tolua_err) ||
1515 !tolua_isusertype(tolua_S,4,"Building_Type",0,&tolua_err) ||
1517 )
1518 goto tolua_lerror;
1519 else
1520 {
1521 lua_State* L = tolua_S;
1522 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1524 City* tgt = ((City*) tolua_tousertype(tolua_S,3,0));
1526 {
1529 }
1530 }
1531 return 1;
1534}
1535
1536/* function: api_edit_perform_action_unit_vs_city_tech */
1538{
1540 if (
1541 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1542 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1543 !tolua_isusertype(tolua_S,3,"City",0,&tolua_err) ||
1544 !tolua_isusertype(tolua_S,4,"Tech_Type",0,&tolua_err) ||
1546 )
1547 goto tolua_lerror;
1548 else
1549 {
1550 lua_State* L = tolua_S;
1551 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1553 City* tgt = ((City*) tolua_tousertype(tolua_S,3,0));
1555 {
1558 }
1559 }
1560 return 1;
1563}
1564
1565/* function: api_edit_perform_action_unit_vs_unit */
1567{
1569 if (
1570 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1571 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1572 !tolua_isusertype(tolua_S,3,"Unit",0,&tolua_err) ||
1574 )
1575 goto tolua_lerror;
1576 else
1577 {
1578 lua_State* L = tolua_S;
1579 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1581 Unit* tgt = ((Unit*) tolua_tousertype(tolua_S,3,0));
1582 {
1585 }
1586 }
1587 return 1;
1590}
1591
1592/* function: api_edit_perform_action_unit_vs_tile */
1594{
1596 if (
1597 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1598 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1599 !tolua_isusertype(tolua_S,3,"Tile",0,&tolua_err) ||
1601 )
1602 goto tolua_lerror;
1603 else
1604 {
1605 lua_State* L = tolua_S;
1606 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1608 Tile* tgt = ((Tile*) tolua_tousertype(tolua_S,3,0));
1609 {
1612 }
1613 }
1614 return 1;
1617}
1618
1619/* function: api_edit_perform_action_unit_vs_tile_extra */
1621{
1623 if (
1624 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1625 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1626 !tolua_isusertype(tolua_S,3,"Tile",0,&tolua_err) ||
1629 )
1630 goto tolua_lerror;
1631 else
1632 {
1633 lua_State* L = tolua_S;
1634 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1636 Tile* tgt = ((Tile*) tolua_tousertype(tolua_S,3,0));
1637 const char* sub_tgt = ((const char*) tolua_tostring(tolua_S,4,0));
1638 {
1641 }
1642 }
1643 return 1;
1646}
1647
1648/* function: api_edit_perform_action_unit_vs_self */
1650{
1652 if (
1653 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
1654 !tolua_isusertype(tolua_S,2,"Action",0,&tolua_err) ||
1656 )
1657 goto tolua_lerror;
1658 else
1659 {
1660 lua_State* L = tolua_S;
1661 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
1663 {
1666 }
1667 }
1668 return 1;
1671}
1672
1673/* function: api_edit_city_add_history */
1675{
1676#ifndef TOLUA_RELEASE
1678 if (
1679 !tolua_isusertype(tolua_S,1,"City",0,&tolua_err) ||
1682 )
1683 goto tolua_lerror;
1684 else
1685#endif
1686 {
1687 lua_State* L = tolua_S;
1688 City* self = ((City*) tolua_tousertype(tolua_S,1,0));
1689 int amount = ((int) tolua_tonumber(tolua_S,2,0));
1690 {
1692 }
1693 }
1694 return 0;
1695#ifndef TOLUA_RELEASE
1697 tolua_error(tolua_S,"#ferror in function 'add_city_history'.",&tolua_err);
1698 return 0;
1699#endif
1700}
1701
1702/* function: api_edit_player_add_history */
1704{
1705#ifndef TOLUA_RELEASE
1707 if (
1708 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1711 )
1712 goto tolua_lerror;
1713 else
1714#endif
1715 {
1716 lua_State* L = tolua_S;
1718 int amount = ((int) tolua_tonumber(tolua_S,2,0));
1719 {
1721 }
1722 }
1723 return 0;
1724#ifndef TOLUA_RELEASE
1726 tolua_error(tolua_S,"#ferror in function 'add_player_history'.",&tolua_err);
1727 return 0;
1728#endif
1729}
1730
1731/* function: api_edit_player_give_bulbs */
1733{
1734#ifndef TOLUA_RELEASE
1736 if (
1737 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1739 !tolua_isusertype(tolua_S,3,"Tech_Type",1,&tolua_err) ||
1741 )
1742 goto tolua_lerror;
1743 else
1744#endif
1745 {
1746 lua_State* L = tolua_S;
1748 int amount = ((int) tolua_tonumber(tolua_S,2,0));
1750 {
1752 }
1753 }
1754 return 0;
1755#ifndef TOLUA_RELEASE
1757 tolua_error(tolua_S,"#ferror in function 'give_bulbs'.",&tolua_err);
1758 return 0;
1759#endif
1760}
1761
1762/* function: api_luadata_get_str */
1764{
1765#ifndef TOLUA_RELEASE
1767 if (
1770 )
1771 goto tolua_lerror;
1772 else
1773#endif
1774 {
1775 lua_State* L = tolua_S;
1776 const char* field = ((const char*) tolua_tostring(tolua_S,1,0));
1777 {
1778 const char* tolua_ret = (const char*) api_luadata_get_str(L,field);
1779 tolua_pushstring(tolua_S,(const char*)tolua_ret);
1780 }
1781 }
1782 return 1;
1783#ifndef TOLUA_RELEASE
1785 tolua_error(tolua_S,"#ferror in function 'get_str'.",&tolua_err);
1786 return 0;
1787#endif
1788}
1789
1790/* function: api_methods_player_free_bulbs */
1792{
1793#ifndef TOLUA_RELEASE
1795 if (
1796 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1798 )
1799 goto tolua_lerror;
1800 else
1801#endif
1802 {
1803 lua_State* L = tolua_S;
1804 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1805 {
1808 }
1809 }
1810 return 1;
1811#ifndef TOLUA_RELEASE
1813 tolua_error(tolua_S,"#ferror in function 'free_bulbs'.",&tolua_err);
1814 return 0;
1815#endif
1816}
1817
1818/* function: api_methods_player_trait */
1820{
1821#ifndef TOLUA_RELEASE
1823 if (
1824 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1827 )
1828 goto tolua_lerror;
1829 else
1830#endif
1831 {
1832 lua_State* L = tolua_S;
1833 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1834 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
1835 {
1836 int tolua_ret = (int) api_methods_player_trait(L,pplayer,tname);
1838 }
1839 }
1840 return 1;
1841#ifndef TOLUA_RELEASE
1843 tolua_error(tolua_S,"#ferror in function 'trait'.",&tolua_err);
1844 return 0;
1845#endif
1846}
1847
1848/* function: api_methods_player_trait_base */
1850{
1851#ifndef TOLUA_RELEASE
1853 if (
1854 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1857 )
1858 goto tolua_lerror;
1859 else
1860#endif
1861 {
1862 lua_State* L = tolua_S;
1863 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1864 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
1865 {
1868 }
1869 }
1870 return 1;
1871#ifndef TOLUA_RELEASE
1873 tolua_error(tolua_S,"#ferror in function 'trait_base'.",&tolua_err);
1874 return 0;
1875#endif
1876}
1877
1878/* function: api_methods_player_trait_current_mod */
1880{
1881#ifndef TOLUA_RELEASE
1883 if (
1884 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1887 )
1888 goto tolua_lerror;
1889 else
1890#endif
1891 {
1892 lua_State* L = tolua_S;
1893 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1894 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
1895 {
1898 }
1899 }
1900 return 1;
1901#ifndef TOLUA_RELEASE
1903 tolua_error(tolua_S,"#ferror in function 'trait_current_mod'.",&tolua_err);
1904 return 0;
1905#endif
1906}
1907
1908/* function: api_methods_player_lose */
1910{
1911#ifndef TOLUA_RELEASE
1913 if (
1914 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1915 !tolua_isusertype(tolua_S,2,"Player",1,&tolua_err) ||
1917 )
1918 goto tolua_lerror;
1919 else
1920#endif
1921 {
1922 lua_State* L = tolua_S;
1923 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1925 {
1927 }
1928 }
1929 return 0;
1930#ifndef TOLUA_RELEASE
1932 tolua_error(tolua_S,"#ferror in function 'lose'.",&tolua_err);
1933 return 0;
1934#endif
1935}
1936
1937/* function: api_methods_player_tech_bulbs */
1939{
1940#ifndef TOLUA_RELEASE
1942 if (
1943 !tolua_isusertype(tolua_S,1,"Player",0,&tolua_err) ||
1944 !tolua_isusertype(tolua_S,2,"Tech_Type",0,&tolua_err) ||
1946 )
1947 goto tolua_lerror;
1948 else
1949#endif
1950 {
1951 lua_State* L = tolua_S;
1952 Player* pplayer = ((Player*) tolua_tousertype(tolua_S,1,0));
1953 Tech_Type* tech = ((Tech_Type*) tolua_tousertype(tolua_S,2,0));
1954 {
1955 int tolua_ret = (int) api_methods_player_tech_bulbs(L,pplayer,tech);
1957 }
1958 }
1959 return 1;
1960#ifndef TOLUA_RELEASE
1962 tolua_error(tolua_S,"#ferror in function 'bulbs_saved'.",&tolua_err);
1963 return 0;
1964#endif
1965}
1966
1967/* get function: game_server_autoupgrade_veteran_loss */
1973
1974/* get function: game_server_upgrade_veteran_loss */
1980
1981/* get function: game_server_multiresearch */
1987
1988/* function: api_methods_nation_trait_min */
1990{
1991#ifndef TOLUA_RELEASE
1993 if (
1994 !tolua_isusertype(tolua_S,1,"Nation_Type",0,&tolua_err) ||
1997 )
1998 goto tolua_lerror;
1999 else
2000#endif
2001 {
2002 lua_State* L = tolua_S;
2003 Nation_Type* pnation = ((Nation_Type*) tolua_tousertype(tolua_S,1,0));
2004 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
2005 {
2008 }
2009 }
2010 return 1;
2011#ifndef TOLUA_RELEASE
2013 tolua_error(tolua_S,"#ferror in function 'trait_min'.",&tolua_err);
2014 return 0;
2015#endif
2016}
2017
2018/* function: api_methods_nation_trait_max */
2020{
2021#ifndef TOLUA_RELEASE
2023 if (
2024 !tolua_isusertype(tolua_S,1,"Nation_Type",0,&tolua_err) ||
2027 )
2028 goto tolua_lerror;
2029 else
2030#endif
2031 {
2032 lua_State* L = tolua_S;
2033 Nation_Type* pnation = ((Nation_Type*) tolua_tousertype(tolua_S,1,0));
2034 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
2035 {
2038 }
2039 }
2040 return 1;
2041#ifndef TOLUA_RELEASE
2043 tolua_error(tolua_S,"#ferror in function 'trait_max'.",&tolua_err);
2044 return 0;
2045#endif
2046}
2047
2048/* function: api_methods_nation_trait_default */
2050{
2051#ifndef TOLUA_RELEASE
2053 if (
2054 !tolua_isusertype(tolua_S,1,"Nation_Type",0,&tolua_err) ||
2057 )
2058 goto tolua_lerror;
2059 else
2060#endif
2061 {
2062 lua_State* L = tolua_S;
2063 Nation_Type* pnation = ((Nation_Type*) tolua_tousertype(tolua_S,1,0));
2064 const char* tname = ((const char*) tolua_tostring(tolua_S,2,0));
2065 {
2068 }
2069 }
2070 return 1;
2071#ifndef TOLUA_RELEASE
2073 tolua_error(tolua_S,"#ferror in function 'trait_default'.",&tolua_err);
2074 return 0;
2075#endif
2076}
2077
2078/* function: api_edit_unit_upgrade */
2080{
2081#ifndef TOLUA_RELEASE
2083 if (
2084 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
2087 )
2088 goto tolua_lerror;
2089 else
2090#endif
2091 {
2092 lua_State* L = tolua_S;
2093 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
2094 int vet_loss = ((int) tolua_tonumber(tolua_S,2,0));
2095 {
2098 }
2099 }
2100 return 1;
2101#ifndef TOLUA_RELEASE
2103 tolua_error(tolua_S,"#ferror in function 'upgrade'.",&tolua_err);
2104 return 0;
2105#endif
2106}
2107
2108/* function: api_edit_unit_transform */
2110{
2111#ifndef TOLUA_RELEASE
2113 if (
2114 !tolua_isusertype(tolua_S,1,"Unit",0,&tolua_err) ||
2115 !tolua_isusertype(tolua_S,2,"Unit_Type",0,&tolua_err) ||
2118 )
2119 goto tolua_lerror;
2120 else
2121#endif
2122 {
2123 lua_State* L = tolua_S;
2124 Unit* punit = ((Unit*) tolua_tousertype(tolua_S,1,0));
2126 int vet_loss = ((int) tolua_tonumber(tolua_S,3,0));
2127 {
2130 }
2131 }
2132 return 1;
2133#ifndef TOLUA_RELEASE
2135 tolua_error(tolua_S,"#ferror in function 'transform'.",&tolua_err);
2136 return 0;
2137#endif
2138}
2139
2140/* Open lib function */
2142{
2147 tolua_module(tolua_S,"server",0);
2148 tolua_beginmodule(tolua_S,"server");
2154 tolua_module(tolua_S,"setting",0);
2155 tolua_beginmodule(tolua_S,"setting");
2159 tolua_module(tolua_S,"Counter",0);
2160 tolua_beginmodule(tolua_S,"Counter");
2164 tolua_module(tolua_S,"notify",0);
2165 tolua_beginmodule(tolua_S,"notify");
2171
2172 { /* begin embedded lua code */
2173 static unsigned char B[] = {
2174 10,102,117,110, 99,116,105,111,110, 32,110,111,116,105,102,
2175 121, 46, 97,108,108, 40, 46, 46, 46, 41, 10,108,111, 99, 97,
2176 108, 32, 97,114,103, 32, 61, 32,116, 97, 98,108,101, 46,112,
2177 97, 99,107, 40, 46, 46, 46, 41, 59, 10,110,111,116,105,102,
2178 121, 46,101,118,101,110,116, 95,109,115,103, 40,110,105,108,
2179 44, 32,110,105,108, 44, 32, 69, 46, 83, 67, 82, 73, 80, 84,
2180 44, 32,115,116,114,105,110,103, 46,102,111,114,109, 97,116,
2181 40,116, 97, 98,108,101, 46,117,110,112, 97, 99,107, 40, 97,
2182 114,103, 41, 41, 41, 10,101,110,100, 10,102,117,110, 99,116,
2183 105,111,110, 32,110,111,116,105,102,121, 46,112,108, 97,121,
2184 101,114, 40,112,108, 97,121,101,114, 44, 32, 46, 46, 46, 41,
2185 10,108,111, 99, 97,108, 32, 97,114,103, 32, 61, 32,116, 97,
2186 98,108,101, 46,112, 97, 99,107, 40, 46, 46, 46, 41, 59, 10,
2187 110,111,116,105,102,121, 46,101,118,101,110,116, 95,109,115,
2188 103, 40,112,108, 97,121,101,114, 44, 32,110,105,108, 44, 32,
2189 69, 46, 83, 67, 82, 73, 80, 84, 44, 32,115,116,114,105,110,
2190 103, 46,102,111,114,109, 97,116, 40,116, 97, 98,108,101, 46,
2191 117,110,112, 97, 99,107, 40, 97,114,103, 41, 41, 41, 10,101,
2192 110,100, 10,102,117,110, 99,116,105,111,110, 32,110,111,116,
2193 105,102,121, 46,101,118,101,110,116, 40,112,108, 97,121,101,
2194 114, 44, 32,116,105,108,101, 44, 32,101,118,101,110,116, 44,
2195 32, 46, 46, 46, 41, 10,108,111, 99, 97,108, 32, 97,114,103,
2196 32, 61, 32,116, 97, 98,108,101, 46,112, 97, 99,107, 40, 46,
2197 46, 46, 41, 59, 10,110,111,116,105,102,121, 46,101,118,101,
2198 110,116, 95,109,115,103, 40,112,108, 97,121,101,114, 44, 32,
2199 116,105,108,101, 44, 32,101,118,101,110,116, 44, 32,115,116,
2200 114,105,110,103, 46,102,111,114,109, 97,116, 40,116, 97, 98,
2201 108,101, 46,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41,
2202 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32,
2203 110,111,116,105,102,121, 46,101,109, 98, 97,115,115,105,101,
2204 115, 40,112,108, 97,121,101,114, 44, 32,112,116,105,108,101,
2205 44, 32,101,118,101,110,116, 44, 32, 46, 46, 46, 41, 10,108,
2206 111, 99, 97,108, 32, 97,114,103, 32, 61, 32,116, 97, 98,108,
2207 101, 46,112, 97, 99,107, 40, 46, 46, 46, 41, 59, 10,110,111,
2208 116,105,102,121, 46,101,109, 98, 97,115,115,105,101,115, 95,
2209 109,115,103, 40,112,108, 97,121,101,114, 44, 32,112,116,105,
2210 108,101, 44, 32,101,118,101,110,116, 44, 32,115,116,114,105,
2211 110,103, 46,102,111,114,109, 97,116, 40,116, 97, 98,108,101,
2212 46,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41, 41, 10,
2213 101,110,100, 10,102,117,110, 99,116,105,111,110, 32,110,111,
2214 116,105,102,121, 46,114,101,115,101, 97,114, 99,104, 40,112,
2215 108, 97,121,101,114, 44, 32,115,101,108,102,109,115,103, 44,
2216 32,101,118,101,110,116, 44, 32, 46, 46, 46, 41, 10,108,111,
2217 99, 97,108, 32, 97,114,103, 32, 61, 32,116, 97, 98,108,101,
2218 46,112, 97, 99,107, 40, 46, 46, 46, 41, 59, 10,110,111,116,
2219 105,102,121, 46,114,101,115,101, 97,114, 99,104, 95,109,115,
2220 103, 40,112,108, 97,121,101,114, 44, 32,115,101,108,102,109,
2221 115,103, 44, 32,101,118,101,110,116, 44, 32,115,116,114,105,
2222 110,103, 46,102,111,114,109, 97,116, 40,116, 97, 98,108,101,
2223 46,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41, 41, 10,
2224 101,110,100, 10,102,117,110, 99,116,105,111,110, 32,110,111,
2225 116,105,102,121, 46,114,101,115,101, 97,114, 99,104, 95,101,
2226 109, 98, 97,115,115,105,101,115, 40,112,108, 97,121,101,114,
2227 44, 32,101,118,101,110,116, 44, 32, 46, 46, 46, 41, 10,108,
2228 111, 99, 97,108, 32, 97,114,103, 32, 61, 32,116, 97, 98,108,
2229 101, 46,112, 97, 99,107, 40, 46, 46, 46, 41, 59, 10,110,111,
2230 116,105,102,121, 46,114,101,115,101, 97,114, 99,104, 95,101,
2231 109, 98, 97,115,115,105,101,115, 95,109,115,103, 40,112,108,
2232 97,121,101,114, 44, 32,101,118,101,110,116, 44, 32,115,116,
2233 114,105,110,103, 46,102,111,114,109, 97,116, 40,116, 97, 98,
2234 108,101, 46,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41,
2235 41, 10,101,110,100,32
2236 };
2237 if (luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") == LUA_OK)
2239 } /* end of embedded lua code */
2240
2241 tolua_module(tolua_S,"edit",0);
2242 tolua_beginmodule(tolua_S,"edit");
2290 tolua_module(tolua_S,"luadata",0);
2291 tolua_beginmodule(tolua_S,"luadata");
2294
2295 { /* begin embedded lua code */
2296 static unsigned char B[] = {
2297 10,102,117,110, 99,116,105,111,110, 32, 99,114,101, 97,116,
2298 101, 95,117,110,105,116, 40,112,108, 97,121,101,114, 44, 32,
2299 116,105,108,101, 44, 32,117,116,121,112,101, 44, 32,118,101,
2300 116,101,114, 97,110, 95,108,101,118,101,108, 44, 32,104,111,
2301 109,101, 99,105,116,121, 44, 32,109,111,118,101,115, 95,108,
2302 101,102,116, 41, 10,108,111,103, 46,100,101,112,114,101, 99,
2303 97,116,105,111,110, 95,119, 97,114,110,105,110,103, 40, 34,
2304 99,114,101, 97,116,101, 95,117,110,105,116, 40, 41, 34, 44,
2305 32, 34,101,100,105,116, 46, 99,114,101, 97,116,101, 95,117,
2306 110,105,116, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41, 59,
2307 10,114,101,116,117,114,110, 32,101,100,105,116, 46, 99,114,
2308 101, 97,116,101, 95,117,110,105,116, 40,112,108, 97,121,101,
2309 114, 44, 32,116,105,108,101, 44, 32,117,116,121,112,101, 44,
2310 32,118,101,116,101,114, 97,110, 95,108,101,118,101,108, 44,
2311 32,104,111,109,101, 99,105,116,121, 44, 10,109,111,118,101,
2312 115, 95,108,101,102,116, 41, 10,101,110,100, 10,102,117,110,
2313 99,116,105,111,110, 32, 99,114,101, 97,116,101, 95,117,110,
2314 105,116, 95,102,117,108,108, 40,112,108, 97,121,101,114, 44,
2315 32,116,105,108,101, 44, 32,117,116,121,112,101, 44, 32,118,
2316 101,116,101,114, 97,110, 95,108,101,118,101,108, 44, 32,104,
2317 111,109,101, 99,105,116,121, 44, 10,109,111,118,101,115, 95,
2318 108,101,102,116, 44, 32,104,112, 95,108,101,102,116, 44, 32,
2319 116,114, 97,110,115,112,111,114,116, 41, 10,108,111,103, 46,
2320 100,101,112,114,101, 99, 97,116,105,111,110, 95,119, 97,114,
2321 110,105,110,103, 40, 34, 99,114,101, 97,116,101, 95,117,110,
2322 105,116, 95,102,117,108,108, 40, 41, 34, 44, 32, 34,101,100,
2323 105,116, 46, 99,114,101, 97,116,101, 95,117,110,105,116, 95,
2324 102,117,108,108, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41,
2325 59, 10,114,101,116,117,114,110, 32,101,100,105,116, 46, 99,
2326 114,101, 97,116,101, 95,117,110,105,116, 95,102,117,108,108,
2327 40,112,108, 97,121,101,114, 44, 32,116,105,108,101, 44, 32,
2328 117,116,121,112,101, 44, 32,118,101,116,101,114, 97,110, 95,
2329 108,101,118,101,108, 44, 32,104,111,109,101, 99,105,116,121,
2330 44, 10,109,111,118,101,115, 95,108,101,102,116, 44, 32,104,
2331 112, 95,108,101,102,116, 44, 32,116,114, 97,110,115,112,111,
2332 114,116, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2333 110, 32, 99,114,101, 97,116,101, 95, 99,105,116,121, 40,112,
2334 108, 97,121,101,114, 44, 32,116,105,108,101, 44, 32,110, 97,
2335 109,101, 41, 10,108,111,103, 46,100,101,112,114,101, 99, 97,
2336 116,105,111,110, 95,119, 97,114,110,105,110,103, 40, 34, 99,
2337 114,101, 97,116,101, 95, 99,105,116,121, 40, 41, 34, 44, 32,
2338 34,101,100,105,116, 46, 99,114,101, 97,116,101, 95, 99,105,
2339 116,121, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41, 59, 10,
2340 101,100,105,116, 46, 99,114,101, 97,116,101, 95, 99,105,116,
2341 121, 32, 40,112,108, 97,121,101,114, 44, 32,116,105,108,101,
2342 44, 32,110, 97,109,101, 41, 10,101,110,100, 10,102,117,110,
2343 99,116,105,111,110, 32, 99,114,101, 97,116,101, 95, 98, 97,
2344 115,101, 40,116,105,108,101, 44, 32,110, 97,109,101, 44, 32,
2345 112,108, 97,121,101,114, 41, 10,108,111,103, 46,100,101,112,
2346 114,101, 99, 97,116,105,111,110, 95,119, 97,114,110,105,110,
2347 103, 40, 34, 99,114,101, 97,116,101, 95, 98, 97,115,101, 40,
2348 41, 34, 44, 32, 34,101,100,105,116, 46, 99,114,101, 97,116,
2349 101, 95,111,119,110,101,100, 95,101,120,116,114, 97, 40, 41,
2350 34, 44, 10, 34, 50, 46, 52, 34, 41, 59, 10,101,100,105,116,
2351 46, 99,114,101, 97,116,101, 95, 98, 97,115,101, 40,116,105,
2352 108,101, 44, 32,110, 97,109,101, 44, 32,112,108, 97,121,101,
2353 114, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110,
2354 32, 99,114,101, 97,116,101, 95,112,108, 97,121,101,114, 40,
2355 117,115,101,114,110, 97,109,101, 44, 32,110, 97,116,105,111,
2356 110, 41, 10,108,111,103, 46,100,101,112,114,101, 99, 97,116,
2357 105,111,110, 95,119, 97,114,110,105,110,103, 40, 34, 99,114,
2358 101, 97,116,101, 95,112,108, 97,121,101,114, 40, 41, 34, 44,
2359 32, 34,101,100,105,116, 46, 99,114,101, 97,116,101, 95,112,
2360 108, 97,121,101,114, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34,
2361 41, 59, 10,114,101,116,117,114,110, 32,101,100,105,116, 46,
2362 99,114,101, 97,116,101, 95,112,108, 97,121,101,114, 40,117,
2363 115,101,114,110, 97,109,101, 44, 32,110, 97,116,105,111,110,
2364 44, 32,110,105,108, 41, 10,101,110,100, 10,102,117,110, 99,
2365 116,105,111,110, 32, 99,104, 97,110,103,101, 95,103,111,108,
2366 100, 40,112,112,108, 97,121,101,114, 44, 32, 97,109,111,117,
2367 110,116, 41, 10,108,111,103, 46,100,101,112,114,101, 99, 97,
2368 116,105,111,110, 95,119, 97,114,110,105,110,103, 40, 34, 99,
2369 104, 97,110,103,101, 95,103,111,108,100, 40, 41, 34, 44, 32,
2370 34,101,100,105,116, 46, 99,104, 97,110,103,101, 95,103,111,
2371 108,100, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41, 59, 10,
2372 101,100,105,116, 46, 99,104, 97,110,103,101, 95,103,111,108,
2373 100, 40,112,112,108, 97,121,101,114, 44, 32, 97,109,111,117,
2374 110,116, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2375 110, 32,103,105,118,101, 95,116,101, 99,104,110,111,108,111,
2376 103,121, 40,112,108, 97,121,101,114, 44, 32,116,101, 99,104,
2377 44, 32,114,101, 97,115,111,110, 41, 10,108,111,103, 46,100,
2378 101,112,114,101, 99, 97,116,105,111,110, 95,119, 97,114,110,
2379 105,110,103, 40, 34,103,105,118,101, 95,116,101, 99,104,110,
2380 111,108,111,103,121, 40, 41, 34, 44, 32, 34,101,100,105,116,
2381 46,103,105,118,101, 95,116,101, 99,104, 40, 41, 34, 44, 10,
2382 34, 50, 46, 52, 34, 41, 59, 10,114,101,116,117,114,110, 32,
2383 101,100,105,116, 46,103,105,118,101, 95,116,101, 99,104, 40,
2384 112,108, 97,121,101,114, 44, 32,116,101, 99,104, 44, 32, 45,
2385 49, 44, 32,102, 97,108,115,101, 44, 32,114,101, 97,115,111,
2386 110, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110,
2387 32,101,100,105,116, 46,103,105,118,101, 95,116,101, 99,104,
2388 110,111,108,111,103,121, 40,112,108, 97,121,101,114, 44, 32,
2389 116,101, 99,104, 44, 32,114,101, 97,115,111,110, 41, 10,108,
2390 111,103, 46,100,101,112,114,101, 99, 97,116,105,111,110, 95,
2391 119, 97,114,110,105,110,103, 40, 34,101,100,105,116, 46,103,
2392 105,118,101, 95,116,101, 99,104,110,111,108,111,103,121, 40,
2393 41, 34, 44, 32, 34,101,100,105,116, 46,103,105,118,101, 95,
2394 116,101, 99,104, 40, 41, 34, 44, 10, 34, 50, 46, 54, 34, 41,
2395 59, 10,114,101,116,117,114,110, 32,101,100,105,116, 46,103,
2396 105,118,101, 95,116,101, 99,104, 40,112,108, 97,121,101,114,
2397 44, 32,116,101, 99,104, 44, 32, 45, 49, 44, 32,102, 97,108,
2398 115,101, 44, 32,114,101, 97,115,111,110, 41, 10,101,110,100,
2399 10,102,117,110, 99,116,105,111,110, 32,116,114, 97,105,116,
2400 95,109,111,100, 40,112,108, 97,121,101,114, 44, 32,116,114,
2401 97,105,116, 44, 32,109,111,100, 41, 10,108,111,103, 46,100,
2402 101,112,114,101, 99, 97,116,105,111,110, 95,119, 97,114,110,
2403 105,110,103, 40, 34,116,114, 97,105,116, 95,109,111,100, 40,
2404 41, 34, 44, 32, 34,101,100,105,116, 46,116,114, 97,105,116,
2405 95,109,111,100, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41,
2406 59, 10,114,101,116,117,114,110, 32,101,100,105,116, 46,116,
2407 114, 97,105,116, 95,109,111,100, 40,112,108, 97,121,101,114,
2408 44, 32,116,114, 97,105,116, 44, 32,109,111,100, 41, 10,101,
2409 110,100, 10,102,117,110, 99,116,105,111,110, 32,117,110,108,
2410 101, 97,115,104, 95, 98, 97,114, 98, 97,114,105, 97,110,115,
2411 40,116,105,108,101, 41, 10,108,111,103, 46,100,101,112,114,
2412 101, 99, 97,116,105,111,110, 95,119, 97,114,110,105,110,103,
2413 40, 34,117,110,108,101, 97,115,104, 95, 98, 97,114, 98, 97,
2414 114,105, 97,110,115, 40, 41, 34, 44, 32, 34,101,100,105,116,
2415 46,117,110,108,101, 97,115,104, 95, 98, 97,114, 98, 97,114,
2416 105, 97,110,115, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41,
2417 59, 10,114,101,116,117,114,110, 32,101,100,105,116, 46,117,
2418 110,108,101, 97,115,104, 95, 98, 97,114, 98, 97,114,105, 97,
2419 110,115, 40,116,105,108,101, 41, 10,101,110,100, 10,102,117,
2420 110, 99,116,105,111,110, 32,112,108, 97, 99,101, 95,112, 97,
2421 114,116,105,115, 97,110,115, 40,116,105,108,101, 44, 32,112,
2422 108, 97,121,101,114, 44, 32, 99,111,117,110,116, 44, 32,115,
2423 113, 95,114, 97,100,105,117,115, 41, 10,108,111,103, 46,100,
2424 101,112,114,101, 99, 97,116,105,111,110, 95,119, 97,114,110,
2425 105,110,103, 40, 34,112,108, 97, 99,101, 95,112, 97,114,116,
2426 105,115, 97,110,115, 40, 41, 34, 44, 32, 34,101,100,105,116,
2427 46,112,108, 97, 99,101, 95,112, 97,114,116,105,115, 97,110,
2428 115, 40, 41, 34, 44, 10, 34, 50, 46, 52, 34, 41, 59, 10,101,
2429 100,105,116, 46,112,108, 97, 99,101, 95,112, 97,114,116,105,
2430 115, 97,110,115, 40,116,105,108,101, 44, 32,112,108, 97,121,
2431 101,114, 44, 32, 99,111,117,110,116, 44, 32,115,113, 95,114,
2432 97,100,105,117,115, 41, 10,101,110,100, 10,102,117,110, 99,
2433 116,105,111,110, 32, 80,108, 97,121,101,114, 58, 99,114,101,
2434 97,116,101, 95,117,110,105,116, 40,116,105,108,101, 44, 32,
2435 117,116,121,112,101, 44, 32,118,101,116,101,114, 97,110, 95,
2436 108,101,118,101,108, 44, 32,104,111,109,101, 99,105,116,121,
2437 44, 32,109,111,118,101,115, 95,108,101,102,116, 41, 10,114,
2438 101,116,117,114,110, 32,101,100,105,116, 46, 99,114,101, 97,
2439 116,101, 95,117,110,105,116, 40,115,101,108,102, 44, 32,116,
2440 105,108,101, 44, 32,117,116,121,112,101, 44, 32,118,101,116,
2441 101,114, 97,110, 95,108,101,118,101,108, 44, 32,104,111,109,
2442 101, 99,105,116,121, 44, 10,109,111,118,101,115, 95,108,101,
2443 102,116, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2444 110, 32, 80,108, 97,121,101,114, 58, 99,114,101, 97,116,101,
2445 95,117,110,105,116, 95,102,117,108,108, 40,116,105,108,101,
2446 44, 32,117,116,121,112,101, 44, 32,118,101,116,101,114, 97,
2447 110, 95,108,101,118,101,108, 44, 32,104,111,109,101, 99,105,
2448 116,121, 44, 10,109,111,118,101,115, 95,108,101,102,116, 44,
2449 32,104,112, 95,108,101,102,116, 44, 32,112,116,114, 97,110,
2450 115,112,111,114,116, 41, 10,114,101,116,117,114,110, 32,101,
2451 100,105,116, 46, 99,114,101, 97,116,101, 95,117,110,105,116,
2452 95,102,117,108,108, 40,115,101,108,102, 44, 32,116,105,108,
2453 101, 44, 32,117,116,121,112,101, 44, 32,118,101,116,101,114,
2454 97,110, 95,108,101,118,101,108, 44, 32,104,111,109,101, 99,
2455 105,116,121, 44, 10,109,111,118,101,115, 95,108,101,102,116,
2456 44, 32,104,112, 95,108,101,102,116, 44, 32,112,116,114, 97,
2457 110,115,112,111,114,116, 41, 10,101,110,100, 10,102,117,110,
2458 99,116,105,111,110, 32, 80,108, 97,121,101,114, 58, 99,105,
2459 118,105,108,105,122, 97,116,105,111,110, 95,115, 99,111,114,
2460 101, 40, 41, 10,114,101,116,117,114,110, 32,115,101,114,118,
2461 101,114, 46, 99,105,118,105,108,105,122, 97,116,105,111,110,
2462 95,115, 99,111,114,101, 40,115,101,108,102, 41, 10,101,110,
2463 100, 10,102,117,110, 99,116,105,111,110, 32, 80,108, 97,121,
2464 101,114, 58, 99,114,101, 97,116,101, 95, 99,105,116,121, 40,
2465 116,105,108,101, 44, 32,110, 97,109,101, 41, 10,101,100,105,
2466 116, 46, 99,114,101, 97,116,101, 95, 99,105,116,121, 40,115,
2467 101,108,102, 44, 32,116,105,108,101, 44, 32,110, 97,109,101,
2468 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32,
2469 80,108, 97,121,101,114, 58, 99,104, 97,110,103,101, 95,103,
2470 111,108,100, 40, 97,109,111,117,110,116, 41, 10,101,100,105,
2471 116, 46, 99,104, 97,110,103,101, 95,103,111,108,100, 40,115,
2472 101,108,102, 44, 32, 97,109,111,117,110,116, 41, 10,101,110,
2473 100, 10,102,117,110, 99,116,105,111,110, 32, 80,108, 97,121,
2474 101,114, 58, 99,104, 97,110,103,101, 95,105,110,102,114, 97,
2475 112,111,105,110,116,115, 40, 97,109,111,117,110,116, 41, 10,
2476 101,100,105,116, 46, 99,104, 97,110,103,101, 95,105,110,102,
2477 114, 97,112,111,105,110,116,115, 40,115,101,108,102, 44, 32,
2478 97,109,111,117,110,116, 41, 10,101,110,100, 10,102,117,110,
2479 99,116,105,111,110, 32, 80,108, 97,121,101,114, 58,103,105,
2480 118,101, 95,116,101, 99,104, 40,116,101, 99,104, 44, 32, 99,
2481 111,115,116, 44, 32,110,111,116,105,102,121, 44, 32,114,101,
2482 97,115,111,110, 41, 10,114,101,116,117,114,110, 32,101,100,
2483 105,116, 46,103,105,118,101, 95,116,101, 99,104, 40,115,101,
2484 108,102, 44, 32,116,101, 99,104, 44, 32, 99,111,115,116, 44,
2485 32,110,111,116,105,102,121, 44, 32,114,101, 97,115,111,110,
2486 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32,
2487 80,108, 97,121,101,114, 58,103,105,118,101, 95,116,101, 99,
2488 104,110,111,108,111,103,121, 40,116,101, 99,104, 44, 32,114,
2489 101, 97,115,111,110, 41, 10,108,111,103, 46,100,101,112,114,
2490 101, 99, 97,116,105,111,110, 95,119, 97,114,110,105,110,103,
2491 40, 34, 80,108, 97,121,101,114, 58,103,105,118,101, 95,116,
2492 101, 99,104,110,111,108,111,103,121, 40, 41, 34, 44, 32, 34,
2493 80,108, 97,121,101,114, 58,103,105,118,101, 95,116,101, 99,
2494 104, 40, 41, 34, 44, 10, 34, 50, 46, 54, 34, 41, 59, 10,114,
2495 101,116,117,114,110, 32,101,100,105,116, 46,103,105,118,101,
2496 95,116,101, 99,104, 40,115,101,108,102, 44, 32,116,101, 99,
2497 104, 44, 32, 45, 49, 44, 32,102, 97,108,115,101, 44, 32,114,
2498 101, 97,115,111,110, 41, 10,101,110,100, 10,102,117,110, 99,
2499 116,105,111,110, 32, 80,108, 97,121,101,114, 58,116,114, 97,
2500 105,116, 95,109,111,100, 40,116,114, 97,105,116, 44, 32,109,
2501 111,100, 41, 10,114,101,116,117,114,110, 32,101,100,105,116,
2502 46,116,114, 97,105,116, 95,109,111,100, 40,115,101,108,102,
2503 44, 32,116,114, 97,105,116, 44, 32,109,111,100, 41, 10,101,
2504 110,100, 10,102,117,110, 99,116,105,111,110, 32, 80,108, 97,
2505 121,101,114, 58, 99,105,118,105,108, 95,119, 97,114, 40,112,
2506 114,111, 98, 97, 98,105,108,105,116,121, 41, 10,114,101,116,
2507 117,114,110, 32,101,100,105,116, 46, 99,105,118,105,108, 95,
2508 119, 97,114, 40,115,101,108,102, 44, 32,112,114,111, 98, 97,
2509 98,105,108,105,116,121, 41, 10,101,110,100, 10,102,117,110,
2510 99,116,105,111,110, 32, 80,108, 97,121,101,114, 58,118,105,
2511 99,116,111,114,121, 40, 41, 10,101,100,105,116, 46,112,108,
2512 97,121,101,114, 95,118,105, 99,116,111,114,121, 40,115,101,
2513 108,102, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
2514 110, 32, 80,108, 97,121,101,114, 58, 97,100,100, 95,104,105,
2515 115,116,111,114,121, 40, 97,109,111,117,110,116, 41, 10,101,
2516 100,105,116, 46, 97,100,100, 95,112,108, 97,121,101,114, 95,
2517 104,105,115,116,111,114,121, 40,115,101,108,102, 44, 32, 97,
2518 109,111,117,110,116, 41, 10,101,110,100, 10,102,117,110, 99,
2519 116,105,111,110, 32, 80,108, 97,121,101,114, 58,103,105,118,
2520 101, 95, 98,117,108, 98,115, 40, 97,109,111,117,110,116, 44,
2521 32,116,101, 99,104, 41, 10,101,100,105,116, 46,103,105,118,
2522 101, 95, 98,117,108, 98,115, 40,115,101,108,102, 44, 32, 97,
2523 109,111,117,110,116, 44, 32,116,101, 99,104, 41, 10,101,110,
2524 100, 10,102,117,110, 99,116,105,111,110, 32, 67,105,116,121,
2525 58,114,101,109,111,118,101, 40, 41, 10,101,100,105,116, 46,
2526 114,101,109,111,118,101, 95, 99,105,116,121, 40,115,101,108,
2527 102, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110,
2528 32, 67,105,116,121, 58,116,114, 97,110,115,102,101,114, 40,
2529 110,101,119, 95,111,119,110,101,114, 41, 10,101,100,105,116,
2530 46,116,114, 97,110,115,102,101,114, 95, 99,105,116,121, 40,
2531 115,101,108,102, 44, 32,110,101,119, 95,111,119,110,101,114,
2532 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32,
2533 67,105,116,121, 58, 97,100,100, 95,104,105,115,116,111,114,
2534 121, 40, 97,109,111,117,110,116, 41, 10,101,100,105,116, 46,
2535 97,100,100, 95, 99,105,116,121, 95,104,105,115,116,111,114,
2536 121, 40,115,101,108,102, 44, 32, 97,109,111,117,110,116, 41,
2537 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 67,
2538 105,116,121, 58, 99,114,101, 97,116,101, 95, 98,117,105,108,
2539 100,105,110,103, 40,105,109,112,114, 41, 10,101,100,105,116,
2540 46, 99,114,101, 97,116,101, 95, 98,117,105,108,100,105,110,
2541 103, 40,115,101,108,102, 44, 32,105,109,112,114, 41, 10,101,
2542 110,100, 10,102,117,110, 99,116,105,111,110, 32, 67,105,116,
2543 121, 58,114,101,109,111,118,101, 95, 98,117,105,108,100,105,
2544 110,103, 40,105,109,112,114, 41, 10,101,100,105,116, 46,114,
2545 101,109,111,118,101, 95, 98,117,105,108,100,105,110,103, 40,
2546 115,101,108,102, 44, 32,105,109,112,114, 41, 10,101,110,100,
2547 10,102,117,110, 99,116,105,111,110, 32, 85,110,105,116, 58,
2548 116,101,108,101,112,111,114,116, 40,100,101,115,116, 44, 10,
2549 101,109, 98, 97,114,107, 95,116,111, 44, 32, 97,108,108,111,
2550 119, 95,100,105,115,101,109, 98, 97,114,107, 44, 10, 99,111,
2551 110,113,117,101,114, 95, 99,105,116,121, 44, 32, 99,111,110,
2552 113,117,101,114, 95,101,120,116,114, 97, 44, 10,101,110,116,
2553 101,114, 95,104,117,116, 44, 32,102,114,105,103,104,116,101,
2554 110, 95,104,117,116, 41, 10,105,102, 32, 97,108,108,111,119,
2555 95,100,105,115,101,109, 98, 97,114,107, 32, 61, 61, 32,110,
2556 105,108, 32,116,104,101,110, 10,114,101,116,117,114,110, 32,
2557 101,100,105,116, 46,117,110,105,116, 95,116,101,108,101,112,
2558 111,114,116, 40,115,101,108,102, 44, 32,100,101,115,116, 44,
2559 32,110,105,108, 44, 32,102, 97,108,115,101, 44, 10,102, 97,
2560 108,115,101, 44, 32,102, 97,108,115,101, 44, 32,102, 97,108,
2561 115,101, 44, 32,102, 97,108,115,101, 41, 10,101,108,115,101,
2562 10,114,101,116,117,114,110, 32,101,100,105,116, 46,117,110,
2563 105,116, 95,116,101,108,101,112,111,114,116, 40,115,101,108,
2564 102, 44, 32,100,101,115,116, 44, 10,101,109, 98, 97,114,107,
2565 95,116,111, 44, 32, 97,108,108,111,119, 95,100,105,115,101,
2566 109, 98, 97,114,107, 44, 10, 99,111,110,113,117,101,114, 95,
2567 99,105,116,121, 44, 32, 99,111,110,113,117,101,114, 95,101,
2568 120,116,114, 97, 44, 10,101,110,116,101,114, 95,104,117,116,
2569 44, 32,102,114,105,103,104,116,101,110, 95,104,117,116, 41,
2570 10,101,110,100, 10,101,110,100, 10,102,117,110, 99,116,105,
2571 111,110, 32, 85,110,105,116, 58,112,101,114,102,111,114,109,
2572 95, 97, 99,116,105,111,110, 40, 97, 99,116,105,111,110, 44,
2573 32,116, 97,114,103,101,116, 44, 32,115,117, 98, 95,116, 97,
2574 114,103,101,116, 41, 10,105,102, 32,116, 97,114,103,101,116,
2575 32, 61, 61, 32,110,105,108, 32,116,104,101,110, 10,114,101,
2576 116,117,114,110, 32,101,100,105,116, 46,112,101,114,102,111,
2577 114,109, 95, 97, 99,116,105,111,110, 40,115,101,108,102, 44,
2578 32, 97, 99,116,105,111,110, 41, 10,101,108,115,101,105,102,
2579 32,115,117, 98, 95,116, 97,114,103,101,116, 32, 61, 61, 32,
2580 110,105,108, 32,116,104,101,110, 10,114,101,116,117,114,110,
2581 32,101,100,105,116, 46,112,101,114,102,111,114,109, 95, 97,
2582 99,116,105,111,110, 40,115,101,108,102, 44, 32, 97, 99,116,
2583 105,111,110, 44, 32,116, 97,114,103,101,116, 41, 10,101,108,
2584 115,101, 10,114,101,116,117,114,110, 32,101,100,105,116, 46,
2585 112,101,114,102,111,114,109, 95, 97, 99,116,105,111,110, 40,
2586 115,101,108,102, 44, 32, 97, 99,116,105,111,110, 44, 32,116,
2587 97,114,103,101,116, 44, 32,115,117, 98, 95,116, 97,114,103,
2588 101,116, 41, 10,101,110,100, 10,101,110,100, 10,102,117,110,
2589 99,116,105,111,110, 32, 85,110,105,116, 58,116,117,114,110,
2590 40,100,105,114,101, 99,116,105,111,110, 41, 10,101,100,105,
2591 116, 46,117,110,105,116, 95,116,117,114,110, 40,115,101,108,
2592 102, 44, 32,100,105,114,101, 99,116,105,111,110, 41, 10,101,
2593 110,100, 10,102,117,110, 99,116,105,111,110, 32, 85,110,105,
2594 116, 58,107,105,108,108, 40,114,101, 97,115,111,110, 44, 32,
2595 107,105,108,108,101,114, 41, 10,101,100,105,116, 46,117,110,
2596 105,116, 95,107,105,108,108, 40,115,101,108,102, 44, 32,114,
2597 101, 97,115,111,110, 44, 32,107,105,108,108,101,114, 41, 10,
2598 101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 85,110,
2599 105,116, 58,109,111,118,101, 40,109,111,118,101,116,111, 44,
2600 32,109,111,118,101, 99,111,115,116, 44, 10,101,109, 98, 97,
2601 114,107, 95,116,111, 44, 32, 97,108,108,111,119, 95,100,105,
2602 115,101,109, 98, 97,114,107, 44, 10, 99,111,110,113,117,101,
2603 114, 95, 99,105,116,121, 44, 32, 99,111,110,113,117,101,114,
2604 95,101,120,116,114, 97, 44, 10,101,110,116,101,114, 95,104,
2605 117,116, 44, 32,102,114,105,103,104,116,101,110, 95,104,117,
2606 116, 41, 10,105,102, 32, 97,108,108,111,119, 95,100,105,115,
2607 101,109, 98, 97,114,107, 32, 61, 61, 32,110,105,108, 32,116,
2608 104,101,110, 10,114,101,116,117,114,110, 32,101,100,105,116,
2609 46,117,110,105,116, 95,109,111,118,101, 40,115,101,108,102,
2610 44, 32,109,111,118,101,116,111, 44, 32,109,111,118,101, 99,
2611 111,115,116, 44, 32,110,105,108, 44, 32,102, 97,108,115,101,
2612 44, 10,102, 97,108,115,101, 44, 32,102, 97,108,115,101, 44,
2613 32,102, 97,108,115,101, 44, 32,102, 97,108,115,101, 41, 10,
2614 101,108,115,101, 10,114,101,116,117,114,110, 32,101,100,105,
2615 116, 46,117,110,105,116, 95,109,111,118,101, 40,115,101,108,
2616 102, 44, 32,109,111,118,101,116,111, 44, 32,109,111,118,101,
2617 99,111,115,116, 44, 10,101,109, 98, 97,114,107, 95,116,111,
2618 44, 32, 97,108,108,111,119, 95,100,105,115,101,109, 98, 97,
2619 114,107, 44, 10, 99,111,110,113,117,101,114, 95, 99,105,116,
2620 121, 44, 32, 99,111,110,113,117,101,114, 95,101,120,116,114,
2621 97, 44, 10,101,110,116,101,114, 95,104,117,116, 44, 32,102,
2622 114,105,103,104,116,101,110, 95,104,117,116, 41, 10,101,110,
2623 100, 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32,
2624 85,110,105,116, 58,109,111,118,101,109,101,110,116, 95,100,
2625 105,115, 97,108,108,111,119, 40, 41, 10,101,100,105,116, 46,
2626 109,111,118,101,109,101,110,116, 95,100,105,115, 97,108,108,
2627 111,119, 40,115,101,108,102, 41, 10,101,110,100, 10,102,117,
2628 110, 99,116,105,111,110, 32, 85,110,105,116, 58,109,111,118,
2629 101,109,101,110,116, 95, 97,108,108,111,119, 40, 41, 10,101,
2630 100,105,116, 46,109,111,118,101,109,101,110,116, 95, 97,108,
2631 108,111,119, 40,115,101,108,102, 41, 10,101,110,100, 10,102,
2632 117,110, 99,116,105,111,110, 32, 84,105,108,101, 58, 99,114,
2633 101, 97,116,101, 95,111,119,110,101,100, 95,101,120,116,114,
2634 97, 40,110, 97,109,101, 44, 32,112,108, 97,121,101,114, 41,
2635 10,101,100,105,116, 46, 99,114,101, 97,116,101, 95,111,119,
2636 110,101,100, 95,101,120,116,114, 97, 40,115,101,108,102, 44,
2637 32,110, 97,109,101, 44, 32,112,108, 97,121,101,114, 41, 10,
2638 101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 84,105,
2639 108,101, 58, 99,114,101, 97,116,101, 95,101,120,116,114, 97,
2640 40,110, 97,109,101, 41, 10,101,100,105,116, 46, 99,114,101,
2641 97,116,101, 95,101,120,116,114, 97, 40,115,101,108,102, 44,
2642 32,110, 97,109,101, 41, 10,101,110,100, 10,102,117,110, 99,
2643 116,105,111,110, 32, 84,105,108,101, 58, 99,114,101, 97,116,
2644 101, 95, 98, 97,115,101, 40,110, 97,109,101, 44, 32,112,108,
2645 97,121,101,114, 41, 10,108,111,103, 46,100,101,112,114,101,
2646 99, 97,116,105,111,110, 95,119, 97,114,110,105,110,103, 40,
2647 34, 84,105,108,101, 58, 99,114,101, 97,116,101, 95, 98, 97,
2648 115,101, 40, 41, 34, 44, 32, 34, 84,105,108,101, 58, 99,114,
2649 101, 97,116,101, 95,111,119,110,101,100, 95,101,120,116,114,
2650 97, 40, 41, 34, 44, 10, 34, 51, 46, 48, 34, 41, 59, 10,101,
2651 100,105,116, 46, 99,114,101, 97,116,101, 95, 98, 97,115,101,
2652 40,115,101,108,102, 44, 32,110, 97,109,101, 44, 32,112,108,
2653 97,121,101,114, 41, 10,101,110,100, 10,102,117,110, 99,116,
2654 105,111,110, 32, 84,105,108,101, 58, 99,114,101, 97,116,101,
2655 95,114,111, 97,100, 40,110, 97,109,101, 41, 10,108,111,103,
2656 46,100,101,112,114,101, 99, 97,116,105,111,110, 95,119, 97,
2657 114,110,105,110,103, 40, 34, 84,105,108,101, 58, 99,114,101,
2658 97,116,101, 95,114,111, 97,100, 40, 41, 34, 44, 32, 34, 84,
2659 105,108,101, 58, 99,114,101, 97,116,101, 95,101,120,116,114,
2660 97, 40, 41, 34, 44, 10, 34, 50, 46, 54, 34, 41, 59, 10,101,
2661 100,105,116, 46, 99,114,101, 97,116,101, 95,114,111, 97,100,
2662 40,115,101,108,102, 44, 32,110, 97,109,101, 41, 10,101,110,
2663 100, 10,102,117,110, 99,116,105,111,110, 32, 84,105,108,101,
2664 58,114,101,109,111,118,101, 95,101,120,116,114, 97, 40,110,
2665 97,109,101, 41, 10,101,100,105,116, 46,114,101,109,111,118,
2666 101, 95,101,120,116,114, 97, 40,115,101,108,102, 44, 32,110,
2667 97,109,101, 41, 10,101,110,100, 10,102,117,110, 99,116,105,
2668 111,110, 32, 84,105,108,101, 58, 99,104, 97,110,103,101, 95,
2669 116,101,114,114, 97,105,110, 40,116,101,114,114, 97,105,110,
2670 41, 10,101,100,105,116, 46, 99,104, 97,110,103,101, 95,116,
2671 101,114,114, 97,105,110, 40,115,101,108,102, 44, 32,116,101,
2672 114,114, 97,105,110, 41, 10,101,110,100, 10,102,117,110, 99,
2673 116,105,111,110, 32, 84,105,108,101, 58,117,110,108,101, 97,
2674 115,104, 95, 98, 97,114, 98, 97,114,105, 97,110,115, 40, 41,
2675 10,114,101,116,117,114,110, 32,101,100,105,116, 46,117,110,
2676 108,101, 97,115,104, 95, 98, 97,114, 98, 97,114,105, 97,110,
2677 115, 40,115,101,108,102, 41, 10,101,110,100, 10,102,117,110,
2678 99,116,105,111,110, 32, 84,105,108,101, 58,112,108, 97, 99,
2679 101, 95,112, 97,114,116,105,115, 97,110,115, 40,112,108, 97,
2680 121,101,114, 44, 32, 99,111,117,110,116, 44, 32,115,113, 95,
2681 114, 97,100,105,117,115, 41, 10,101,100,105,116, 46,112,108,
2682 97, 99,101, 95,112, 97,114,116,105,115, 97,110,115, 40,115,
2683 101,108,102, 44, 32,112,108, 97,121,101,114, 44, 32, 99,111,
2684 117,110,116, 44, 32,115,113, 95,114, 97,100,105,117,115, 41,
2685 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 84,
2686 105,108,101, 58,115,101,116, 95,108, 97, 98,101,108, 40,108,
2687 97, 98,101,108, 41, 10,101,100,105,116, 46,116,105,108,101,
2688 95,115,101,116, 95,108, 97, 98,101,108, 40,115,101,108,102,
2689 44, 32,108, 97, 98,101,108, 41, 10,101,110,100, 10,102,117,
2690 110, 99,116,105,111,110, 32, 84,105,108,101, 58,115,104,111,
2691 119, 40,112,108, 97,121,101,114, 41, 10,101,100,105,116, 46,
2692 116,105,108,101, 95,115,104,111,119, 40,115,101,108,102, 44,
2693 32,112,108, 97,121,101,114, 41, 10,101,110,100, 10,102,117,
2694 110, 99,116,105,111,110, 32, 84,105,108,101, 58,104,105,100,
2695 101, 40,112,108, 97,121,101,114, 41, 10,114,101,116,117,114,
2696 110, 32,101,100,105,116, 46,116,105,108,101, 95,104,105,100,
2697 101, 40,115,101,108,102, 44, 32,112,108, 97,121,101,114, 41,
2698 10,101,110,100,32
2699 };
2700 if (luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") == LUA_OK)
2702 } /* end of embedded lua code */
2703
2704 tolua_module(tolua_S,"Player",0);
2705 tolua_beginmodule(tolua_S,"Player");
2706 tolua_module(tolua_S,"properties",0);
2707 tolua_beginmodule(tolua_S,"properties");
2716
2717 { /* begin embedded lua code */
2718 static unsigned char B[] = {
2719 10,101,100,105,116, 46,112,108, 97,121,101,114, 95,108,111,
2720 115,101, 32, 61, 32, 80,108, 97,121,101,114, 46,108,111,115,
2721 101,32
2722 };
2723 if (luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") == LUA_OK)
2725 } /* end of embedded lua code */
2726
2727 tolua_module(tolua_S,"game",1);
2728 tolua_beginmodule(tolua_S,"game");
2733 tolua_module(tolua_S,"Nation_Type",0);
2734 tolua_beginmodule(tolua_S,"Nation_Type");
2739 tolua_module(tolua_S,"Unit",0);
2740 tolua_beginmodule(tolua_S,"Unit");
2745 return 1;
2746}
2747/* Open tolua function */
2749{
2751 lua_pushstring(tolua_S, "server");
2752 lua_call(tolua_S, 1, 0);
2753 return 1;
2754}
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)
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)
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_create_city(lua_State *L, Player *pplayer, Tile *ptile, const char *name)
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_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_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)
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)
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:45
char * incite_cost
Definition comments.c:75
static void conquer_city(QVariant data1, QVariant data2)
Definition dialogs.cpp:1853
static void enter_hut(QVariant data1, QVariant data2)
Definition dialogs.cpp:2658
static void frighten_hut(QVariant data1, QVariant data2)
Definition dialogs.cpp:2688
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 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:3330
Definition city.h:320
Definition tile.h:50
Definition unit.h:138
#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_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_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_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_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_server_setting_get00(lua_State *tolua_S)
static int tolua_server_edit_remove_extra00(lua_State *tolua_S)
static int tolua_server_edit_create_city00(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_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_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)