00001
00002
00003
00004
00005
00006 #ifndef __cplusplus
00007 #include "stdlib.h"
00008 #endif
00009 #include "string.h"
00010
00011 #include "tolua++.h"
00012
00013
00014 TOLUA_API int tolua_stratagus_open (lua_State* tolua_S);
00015
00016 #include "stratagus.h"
00017 #include "ui.h"
00018 #include "minimap.h"
00019 #include "player.h"
00020 #include "unittype.h"
00021 #include "unit.h"
00022 #include "video.h"
00023 #include "font.h"
00024 #include "widgets.h"
00025 #include "sound.h"
00026 #include "sound_server.h"
00027 #include "netconnect.h"
00028 #include "map.h"
00029 #ifdef _MSC_VER
00030 #pragma warning(disable:4800)
00031 #endif
00032 using std::string;
00033 using std::vector;
00034 using namespace gcn;
00035 #include "network.h"
00036 int GetNetworkState() {return (int)NetLocalState;}
00037 extern string NetworkMapName;
00038 void NetworkGamePrepareGameSettings(void);
00039 extern void InitVideo();
00040 #include "editor.h"
00041 bool IsReplayGame();
00042 void StartMap(const string &str, bool clean = true);
00043 void StartReplay(const string &str, bool reveal = false);
00044 void StartSavedGame(const string &str);
00045 int SaveReplay(const std::string &filename);
00046 #include "results.h"
00047 void StopGame(GameResults result);
00048 #include "settings.h"
00049 extern int AlliedUnitRecyclingEfficiency[MaxCosts];
00050 extern int EnemyUnitRecyclingEfficiency[MaxCosts];
00051 #include "patch_type.h"
00052 #include "patch.h"
00053 #include "patch_manager.h"
00054 #include "pathfinder.h"
00055 int GetNumOpponents(int player);
00056 int GetTimer();
00057 void ActionVictory();
00058 void ActionDefeat();
00059 void ActionDraw();
00060 void ActionSetTimer(int cycles, bool increasing);
00061 void ActionStartTimer();
00062 void ActionStopTimer();
00063 void SetTrigger(int trigger);
00064 #include "particle.h"
00065 extern std::string CliMapName;
00066
00067
00068 #ifdef __cplusplus
00069
00070 static int tolua_collect_MenuScreen (lua_State* tolua_S)
00071 {
00072 MenuScreen* self = (MenuScreen*) tolua_tousertype(tolua_S,1,0);
00073 delete self;
00074 return 0;
00075 }
00076
00077 static int tolua_collect_ImageRadioButton (lua_State* tolua_S)
00078 {
00079 ImageRadioButton* self = (ImageRadioButton*) tolua_tousertype(tolua_S,1,0);
00080 delete self;
00081 return 0;
00082 }
00083
00084 static int tolua_collect_vector_CUIButton_ (lua_State* tolua_S)
00085 {
00086 vector<CUIButton>* self = (vector<CUIButton>*) tolua_tousertype(tolua_S,1,0);
00087 delete self;
00088 return 0;
00089 }
00090
00091 static int tolua_collect_CResourceInfo (lua_State* tolua_S)
00092 {
00093 CResourceInfo* self = (CResourceInfo*) tolua_tousertype(tolua_S,1,0);
00094 delete self;
00095 return 0;
00096 }
00097
00098 static int tolua_collect_CChunkParticle (lua_State* tolua_S)
00099 {
00100 CChunkParticle* self = (CChunkParticle*) tolua_tousertype(tolua_S,1,0);
00101 delete self;
00102 return 0;
00103 }
00104
00105 static int tolua_collect_vector_CFiller_ (lua_State* tolua_S)
00106 {
00107 vector<CFiller>* self = (vector<CFiller>*) tolua_tousertype(tolua_S,1,0);
00108 delete self;
00109 return 0;
00110 }
00111
00112 static int tolua_collect_TextField (lua_State* tolua_S)
00113 {
00114 TextField* self = (TextField*) tolua_tousertype(tolua_S,1,0);
00115 delete self;
00116 return 0;
00117 }
00118
00119 static int tolua_collect_CUIButton (lua_State* tolua_S)
00120 {
00121 CUIButton* self = (CUIButton*) tolua_tousertype(tolua_S,1,0);
00122 delete self;
00123 return 0;
00124 }
00125
00126 static int tolua_collect_MultiLineLabel (lua_State* tolua_S)
00127 {
00128 MultiLineLabel* self = (MultiLineLabel*) tolua_tousertype(tolua_S,1,0);
00129 delete self;
00130 return 0;
00131 }
00132
00133 static int tolua_collect_CheckBox (lua_State* tolua_S)
00134 {
00135 CheckBox* self = (CheckBox*) tolua_tousertype(tolua_S,1,0);
00136 delete self;
00137 return 0;
00138 }
00139
00140 static int tolua_collect_ImageWidget (lua_State* tolua_S)
00141 {
00142 ImageWidget* self = (ImageWidget*) tolua_tousertype(tolua_S,1,0);
00143 delete self;
00144 return 0;
00145 }
00146
00147 static int tolua_collect_CPlayer (lua_State* tolua_S)
00148 {
00149 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
00150 delete self;
00151 return 0;
00152 }
00153
00154 static int tolua_collect_CColor (lua_State* tolua_S)
00155 {
00156 CColor* self = (CColor*) tolua_tousertype(tolua_S,1,0);
00157 delete self;
00158 return 0;
00159 }
00160
00161 static int tolua_collect_ImageSlider (lua_State* tolua_S)
00162 {
00163 ImageSlider* self = (ImageSlider*) tolua_tousertype(tolua_S,1,0);
00164 delete self;
00165 return 0;
00166 }
00167
00168 static int tolua_collect_ListBoxWidget (lua_State* tolua_S)
00169 {
00170 ListBoxWidget* self = (ListBoxWidget*) tolua_tousertype(tolua_S,1,0);
00171 delete self;
00172 return 0;
00173 }
00174
00175 static int tolua_collect_Color (lua_State* tolua_S)
00176 {
00177 Color* self = (Color*) tolua_tousertype(tolua_S,1,0);
00178 delete self;
00179 return 0;
00180 }
00181
00182 static int tolua_collect_Window (lua_State* tolua_S)
00183 {
00184 Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
00185 delete self;
00186 return 0;
00187 }
00188
00189 static int tolua_collect_DropDownWidget (lua_State* tolua_S)
00190 {
00191 DropDownWidget* self = (DropDownWidget*) tolua_tousertype(tolua_S,1,0);
00192 delete self;
00193 return 0;
00194 }
00195
00196 static int tolua_collect_CFiller (lua_State* tolua_S)
00197 {
00198 CFiller* self = (CFiller*) tolua_tousertype(tolua_S,1,0);
00199 delete self;
00200 return 0;
00201 }
00202
00203 static int tolua_collect_vector_string_ (lua_State* tolua_S)
00204 {
00205 vector<string>* self = (vector<string>*) tolua_tousertype(tolua_S,1,0);
00206 delete self;
00207 return 0;
00208 }
00209
00210 static int tolua_collect_ScrollArea (lua_State* tolua_S)
00211 {
00212 ScrollArea* self = (ScrollArea*) tolua_tousertype(tolua_S,1,0);
00213 delete self;
00214 return 0;
00215 }
00216
00217 static int tolua_collect_Windows (lua_State* tolua_S)
00218 {
00219 Windows* self = (Windows*) tolua_tousertype(tolua_S,1,0);
00220 delete self;
00221 return 0;
00222 }
00223
00224 static int tolua_collect_Container (lua_State* tolua_S)
00225 {
00226 Container* self = (Container*) tolua_tousertype(tolua_S,1,0);
00227 delete self;
00228 return 0;
00229 }
00230
00231 static int tolua_collect_ButtonWidget (lua_State* tolua_S)
00232 {
00233 ButtonWidget* self = (ButtonWidget*) tolua_tousertype(tolua_S,1,0);
00234 delete self;
00235 return 0;
00236 }
00237
00238 static int tolua_collect_CParticleManager (lua_State* tolua_S)
00239 {
00240 CParticleManager* self = (CParticleManager*) tolua_tousertype(tolua_S,1,0);
00241 delete self;
00242 return 0;
00243 }
00244
00245 static int tolua_collect_ImageCheckBox (lua_State* tolua_S)
00246 {
00247 ImageCheckBox* self = (ImageCheckBox*) tolua_tousertype(tolua_S,1,0);
00248 delete self;
00249 return 0;
00250 }
00251
00252 static int tolua_collect_ScrollingWidget (lua_State* tolua_S)
00253 {
00254 ScrollingWidget* self = (ScrollingWidget*) tolua_tousertype(tolua_S,1,0);
00255 delete self;
00256 return 0;
00257 }
00258
00259 static int tolua_collect_CNetworkHost (lua_State* tolua_S)
00260 {
00261 CNetworkHost* self = (CNetworkHost*) tolua_tousertype(tolua_S,1,0);
00262 delete self;
00263 return 0;
00264 }
00265
00266 static int tolua_collect_StatBoxWidget (lua_State* tolua_S)
00267 {
00268 StatBoxWidget* self = (StatBoxWidget*) tolua_tousertype(tolua_S,1,0);
00269 delete self;
00270 return 0;
00271 }
00272
00273 static int tolua_collect_SettingsPresets (lua_State* tolua_S)
00274 {
00275 SettingsPresets* self = (SettingsPresets*) tolua_tousertype(tolua_S,1,0);
00276 delete self;
00277 return 0;
00278 }
00279
00280 static int tolua_collect_CPosition (lua_State* tolua_S)
00281 {
00282 CPosition* self = (CPosition*) tolua_tousertype(tolua_S,1,0);
00283 delete self;
00284 return 0;
00285 }
00286
00287 static int tolua_collect_GraphicAnimation (lua_State* tolua_S)
00288 {
00289 GraphicAnimation* self = (GraphicAnimation*) tolua_tousertype(tolua_S,1,0);
00290 delete self;
00291 return 0;
00292 }
00293
00294 static int tolua_collect_Label (lua_State* tolua_S)
00295 {
00296 Label* self = (Label*) tolua_tousertype(tolua_S,1,0);
00297 delete self;
00298 return 0;
00299 }
00300
00301 static int tolua_collect_RadioButton (lua_State* tolua_S)
00302 {
00303 RadioButton* self = (RadioButton*) tolua_tousertype(tolua_S,1,0);
00304 delete self;
00305 return 0;
00306 }
00307
00308 static int tolua_collect_LuaActionListener (lua_State* tolua_S)
00309 {
00310 LuaActionListener* self = (LuaActionListener*) tolua_tousertype(tolua_S,1,0);
00311 delete self;
00312 return 0;
00313 }
00314
00315 static int tolua_collect_StaticParticle (lua_State* tolua_S)
00316 {
00317 StaticParticle* self = (StaticParticle*) tolua_tousertype(tolua_S,1,0);
00318 delete self;
00319 return 0;
00320 }
00321
00322 static int tolua_collect_ImageButton (lua_State* tolua_S)
00323 {
00324 ImageButton* self = (ImageButton*) tolua_tousertype(tolua_S,1,0);
00325 delete self;
00326 return 0;
00327 }
00328
00329 static int tolua_collect_Slider (lua_State* tolua_S)
00330 {
00331 Slider* self = (Slider*) tolua_tousertype(tolua_S,1,0);
00332 delete self;
00333 return 0;
00334 }
00335 #endif
00336
00337
00338
00339 static void tolua_reg_types (lua_State* tolua_S)
00340 {
00341 tolua_usertype(tolua_S,"CPlayerColorGraphic");
00342 tolua_usertype(tolua_S,"MenuScreen");
00343 tolua_usertype(tolua_S,"BasicContainer");
00344 tolua_usertype(tolua_S,"vector<CUIButton>");
00345 tolua_usertype(tolua_S,"CFontColor");
00346 tolua_usertype(tolua_S,"CMap");
00347 tolua_usertype(tolua_S,"CChunkParticle");
00348 tolua_usertype(tolua_S,"CIcon");
00349 tolua_usertype(tolua_S,"CUIButton");
00350 tolua_usertype(tolua_S,"CheckBox");
00351 tolua_usertype(tolua_S,"ImageButton");
00352 tolua_usertype(tolua_S,"CPlayer");
00353 tolua_usertype(tolua_S,"CUnit");
00354 tolua_usertype(tolua_S,"CParticle");
00355 tolua_usertype(tolua_S,"Graphics");
00356 tolua_usertype(tolua_S,"CColor");
00357 tolua_usertype(tolua_S,"CButtonPanel");
00358 tolua_usertype(tolua_S,"CPatch");
00359 tolua_usertype(tolua_S,"ImageSlider");
00360 tolua_usertype(tolua_S,"ListBoxWidget");
00361 tolua_usertype(tolua_S,"Color");
00362 tolua_usertype(tolua_S,"ButtonStyle");
00363 tolua_usertype(tolua_S,"DropDownWidget");
00364 tolua_usertype(tolua_S,"CPieMenu");
00365 tolua_usertype(tolua_S,"ScrollArea");
00366 tolua_usertype(tolua_S,"Button");
00367 tolua_usertype(tolua_S,"CInfoPanel");
00368 tolua_usertype(tolua_S,"Animation");
00369 tolua_usertype(tolua_S,"ScrollingWidget");
00370 tolua_usertype(tolua_S,"CGraphic");
00371 tolua_usertype(tolua_S,"StatBoxWidget");
00372 tolua_usertype(tolua_S,"CUITimer");
00373 tolua_usertype(tolua_S,"Widget");
00374 tolua_usertype(tolua_S,"Label");
00375 tolua_usertype(tolua_S,"Settings");
00376 tolua_usertype(tolua_S,"CResourceInfo");
00377 tolua_usertype(tolua_S,"vector<CFiller>");
00378 tolua_usertype(tolua_S,"CUnitType");
00379 tolua_usertype(tolua_S,"CMapInfo");
00380 tolua_usertype(tolua_S,"TextField");
00381 tolua_usertype(tolua_S,"CServerSetup");
00382 tolua_usertype(tolua_S,"CMapArea");
00383 tolua_usertype(tolua_S,"ImageWidget");
00384 tolua_usertype(tolua_S,"SettingsPresets");
00385 tolua_usertype(tolua_S,"gcn::Graphics");
00386 tolua_usertype(tolua_S,"CStatusLine");
00387 tolua_usertype(tolua_S,"CMinimap");
00388 tolua_usertype(tolua_S,"CPatchManager");
00389 tolua_usertype(tolua_S,"Window");
00390 tolua_usertype(tolua_S,"CParticleManager");
00391 tolua_usertype(tolua_S,"CPreference");
00392 tolua_usertype(tolua_S,"CFiller");
00393 tolua_usertype(tolua_S,"CUserInterface");
00394 tolua_usertype(tolua_S,"vector<string>");
00395 tolua_usertype(tolua_S,"Windows");
00396 tolua_usertype(tolua_S,"MultiLineLabel");
00397 tolua_usertype(tolua_S,"CSmokeParticle");
00398 tolua_usertype(tolua_S,"CPatchType");
00399 tolua_usertype(tolua_S,"Container");
00400 tolua_usertype(tolua_S,"ButtonWidget");
00401 tolua_usertype(tolua_S,"CFont");
00402 tolua_usertype(tolua_S,"CVideo");
00403 tolua_usertype(tolua_S,"ImageCheckBox");
00404 tolua_usertype(tolua_S,"LuaActionListener");
00405 tolua_usertype(tolua_S,"ImageRadioButton");
00406 tolua_usertype(tolua_S,"CEditor");
00407 tolua_usertype(tolua_S,"ListBox");
00408 tolua_usertype(tolua_S,"CPosition");
00409 tolua_usertype(tolua_S,"GraphicAnimation");
00410 tolua_usertype(tolua_S,"CNetworkHost");
00411 tolua_usertype(tolua_S,"RadioButton");
00412 tolua_usertype(tolua_S,"CViewport");
00413 tolua_usertype(tolua_S,"StaticParticle");
00414 tolua_usertype(tolua_S,"DropDown");
00415 tolua_usertype(tolua_S,"Slider");
00416 }
00417
00418
00419 #ifndef TOLUA_DISABLE_tolua_get_CMinimap_X
00420 static int tolua_get_CMinimap_X(lua_State* tolua_S)
00421 {
00422 CMinimap* self = (CMinimap*) tolua_tousertype(tolua_S,1,0);
00423 #ifndef TOLUA_RELEASE
00424 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'X'",NULL);
00425 #endif
00426 tolua_pushnumber(tolua_S,(lua_Number)self->X);
00427 return 1;
00428 }
00429 #endif //#ifndef TOLUA_DISABLE
00430
00431
00432 #ifndef TOLUA_DISABLE_tolua_set_CMinimap_X
00433 static int tolua_set_CMinimap_X(lua_State* tolua_S)
00434 {
00435 CMinimap* self = (CMinimap*) tolua_tousertype(tolua_S,1,0);
00436 #ifndef TOLUA_RELEASE
00437 tolua_Error tolua_err;
00438 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'X'",NULL);
00439 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
00440 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
00441 #endif
00442 self->X = ((int) tolua_tonumber(tolua_S,2,0))
00443 ;
00444 return 0;
00445 }
00446 #endif //#ifndef TOLUA_DISABLE
00447
00448
00449 #ifndef TOLUA_DISABLE_tolua_get_CMinimap_Y
00450 static int tolua_get_CMinimap_Y(lua_State* tolua_S)
00451 {
00452 CMinimap* self = (CMinimap*) tolua_tousertype(tolua_S,1,0);
00453 #ifndef TOLUA_RELEASE
00454 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Y'",NULL);
00455 #endif
00456 tolua_pushnumber(tolua_S,(lua_Number)self->Y);
00457 return 1;
00458 }
00459 #endif //#ifndef TOLUA_DISABLE
00460
00461
00462 #ifndef TOLUA_DISABLE_tolua_set_CMinimap_Y
00463 static int tolua_set_CMinimap_Y(lua_State* tolua_S)
00464 {
00465 CMinimap* self = (CMinimap*) tolua_tousertype(tolua_S,1,0);
00466 #ifndef TOLUA_RELEASE
00467 tolua_Error tolua_err;
00468 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Y'",NULL);
00469 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
00470 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
00471 #endif
00472 self->Y = ((int) tolua_tonumber(tolua_S,2,0))
00473 ;
00474 return 0;
00475 }
00476 #endif //#ifndef TOLUA_DISABLE
00477
00478
00479 #ifndef TOLUA_DISABLE_tolua_get_CMinimap_W
00480 static int tolua_get_CMinimap_W(lua_State* tolua_S)
00481 {
00482 CMinimap* self = (CMinimap*) tolua_tousertype(tolua_S,1,0);
00483 #ifndef TOLUA_RELEASE
00484 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'W'",NULL);
00485 #endif
00486 tolua_pushnumber(tolua_S,(lua_Number)self->W);
00487 return 1;
00488 }
00489 #endif //#ifndef TOLUA_DISABLE
00490
00491
00492 #ifndef TOLUA_DISABLE_tolua_set_CMinimap_W
00493 static int tolua_set_CMinimap_W(lua_State* tolua_S)
00494 {
00495 CMinimap* self = (CMinimap*) tolua_tousertype(tolua_S,1,0);
00496 #ifndef TOLUA_RELEASE
00497 tolua_Error tolua_err;
00498 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'W'",NULL);
00499 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
00500 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
00501 #endif
00502 self->W = ((int) tolua_tonumber(tolua_S,2,0))
00503 ;
00504 return 0;
00505 }
00506 #endif //#ifndef TOLUA_DISABLE
00507
00508
00509 #ifndef TOLUA_DISABLE_tolua_get_CMinimap_H
00510 static int tolua_get_CMinimap_H(lua_State* tolua_S)
00511 {
00512 CMinimap* self = (CMinimap*) tolua_tousertype(tolua_S,1,0);
00513 #ifndef TOLUA_RELEASE
00514 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'H'",NULL);
00515 #endif
00516 tolua_pushnumber(tolua_S,(lua_Number)self->H);
00517 return 1;
00518 }
00519 #endif //#ifndef TOLUA_DISABLE
00520
00521
00522 #ifndef TOLUA_DISABLE_tolua_set_CMinimap_H
00523 static int tolua_set_CMinimap_H(lua_State* tolua_S)
00524 {
00525 CMinimap* self = (CMinimap*) tolua_tousertype(tolua_S,1,0);
00526 #ifndef TOLUA_RELEASE
00527 tolua_Error tolua_err;
00528 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'H'",NULL);
00529 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
00530 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
00531 #endif
00532 self->H = ((int) tolua_tonumber(tolua_S,2,0))
00533 ;
00534 return 0;
00535 }
00536 #endif //#ifndef TOLUA_DISABLE
00537
00538
00539 #ifndef TOLUA_DISABLE_tolua_get_CMinimap_WithTerrain
00540 static int tolua_get_CMinimap_WithTerrain(lua_State* tolua_S)
00541 {
00542 CMinimap* self = (CMinimap*) tolua_tousertype(tolua_S,1,0);
00543 #ifndef TOLUA_RELEASE
00544 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'WithTerrain'",NULL);
00545 #endif
00546 tolua_pushboolean(tolua_S,(bool)self->WithTerrain);
00547 return 1;
00548 }
00549 #endif //#ifndef TOLUA_DISABLE
00550
00551
00552 #ifndef TOLUA_DISABLE_tolua_set_CMinimap_WithTerrain
00553 static int tolua_set_CMinimap_WithTerrain(lua_State* tolua_S)
00554 {
00555 CMinimap* self = (CMinimap*) tolua_tousertype(tolua_S,1,0);
00556 #ifndef TOLUA_RELEASE
00557 tolua_Error tolua_err;
00558 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'WithTerrain'",NULL);
00559 if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
00560 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
00561 #endif
00562 self->WithTerrain = ((bool) tolua_toboolean(tolua_S,2,0))
00563 ;
00564 return 0;
00565 }
00566 #endif //#ifndef TOLUA_DISABLE
00567
00568
00569 #ifndef TOLUA_DISABLE_tolua_get_CMinimap_ShowSelected
00570 static int tolua_get_CMinimap_ShowSelected(lua_State* tolua_S)
00571 {
00572 CMinimap* self = (CMinimap*) tolua_tousertype(tolua_S,1,0);
00573 #ifndef TOLUA_RELEASE
00574 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ShowSelected'",NULL);
00575 #endif
00576 tolua_pushboolean(tolua_S,(bool)self->ShowSelected);
00577 return 1;
00578 }
00579 #endif //#ifndef TOLUA_DISABLE
00580
00581
00582 #ifndef TOLUA_DISABLE_tolua_set_CMinimap_ShowSelected
00583 static int tolua_set_CMinimap_ShowSelected(lua_State* tolua_S)
00584 {
00585 CMinimap* self = (CMinimap*) tolua_tousertype(tolua_S,1,0);
00586 #ifndef TOLUA_RELEASE
00587 tolua_Error tolua_err;
00588 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ShowSelected'",NULL);
00589 if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
00590 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
00591 #endif
00592 self->ShowSelected = ((bool) tolua_toboolean(tolua_S,2,0))
00593 ;
00594 return 0;
00595 }
00596 #endif //#ifndef TOLUA_DISABLE
00597
00598
00599 #ifndef TOLUA_DISABLE_tolua_get_CMinimap_Transparent
00600 static int tolua_get_CMinimap_Transparent(lua_State* tolua_S)
00601 {
00602 CMinimap* self = (CMinimap*) tolua_tousertype(tolua_S,1,0);
00603 #ifndef TOLUA_RELEASE
00604 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Transparent'",NULL);
00605 #endif
00606 tolua_pushboolean(tolua_S,(bool)self->Transparent);
00607 return 1;
00608 }
00609 #endif //#ifndef TOLUA_DISABLE
00610
00611
00612 #ifndef TOLUA_DISABLE_tolua_set_CMinimap_Transparent
00613 static int tolua_set_CMinimap_Transparent(lua_State* tolua_S)
00614 {
00615 CMinimap* self = (CMinimap*) tolua_tousertype(tolua_S,1,0);
00616 #ifndef TOLUA_RELEASE
00617 tolua_Error tolua_err;
00618 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Transparent'",NULL);
00619 if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
00620 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
00621 #endif
00622 self->Transparent = ((bool) tolua_toboolean(tolua_S,2,0))
00623 ;
00624 return 0;
00625 }
00626 #endif //#ifndef TOLUA_DISABLE
00627
00628
00629 #ifndef TOLUA_DISABLE_tolua_stratagus_LuaActionListener_new00
00630 static int tolua_stratagus_LuaActionListener_new00(lua_State* tolua_S)
00631 {
00632 #ifndef TOLUA_RELEASE
00633 tolua_Error tolua_err;
00634 if (
00635 !tolua_isusertable(tolua_S,1,"LuaActionListener",0,&tolua_err) ||
00636 !tolua_isnoobj(tolua_S,3,&tolua_err)
00637 )
00638 goto tolua_lerror;
00639 else
00640 #endif
00641 {
00642 lua_State* lua = tolua_S;
00643 lua_Object luaref = ((lua_Object) tolua_tovalue(tolua_S,2,0));
00644 {
00645 LuaActionListener* tolua_ret = (LuaActionListener*) new LuaActionListener(lua,luaref);
00646 tolua_pushusertype(tolua_S,(void*)tolua_ret,"LuaActionListener");
00647 }
00648 }
00649 return 1;
00650 #ifndef TOLUA_RELEASE
00651 tolua_lerror:
00652 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
00653 return 0;
00654 #endif
00655 }
00656 #endif //#ifndef TOLUA_DISABLE
00657
00658
00659 #ifndef TOLUA_DISABLE_tolua_stratagus_LuaActionListener_new00_local
00660 static int tolua_stratagus_LuaActionListener_new00_local(lua_State* tolua_S)
00661 {
00662 #ifndef TOLUA_RELEASE
00663 tolua_Error tolua_err;
00664 if (
00665 !tolua_isusertable(tolua_S,1,"LuaActionListener",0,&tolua_err) ||
00666 !tolua_isnoobj(tolua_S,3,&tolua_err)
00667 )
00668 goto tolua_lerror;
00669 else
00670 #endif
00671 {
00672 lua_State* lua = tolua_S;
00673 lua_Object luaref = ((lua_Object) tolua_tovalue(tolua_S,2,0));
00674 {
00675 LuaActionListener* tolua_ret = (LuaActionListener*) new LuaActionListener(lua,luaref);
00676 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"LuaActionListener");
00677 }
00678 }
00679 return 1;
00680 #ifndef TOLUA_RELEASE
00681 tolua_lerror:
00682 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
00683 return 0;
00684 #endif
00685 }
00686 #endif //#ifndef TOLUA_DISABLE
00687
00688
00689 #ifndef TOLUA_DISABLE_tolua_stratagus_CUIButton_new00
00690 static int tolua_stratagus_CUIButton_new00(lua_State* tolua_S)
00691 {
00692 #ifndef TOLUA_RELEASE
00693 tolua_Error tolua_err;
00694 if (
00695 !tolua_isusertable(tolua_S,1,"CUIButton",0,&tolua_err) ||
00696 !tolua_isnoobj(tolua_S,2,&tolua_err)
00697 )
00698 goto tolua_lerror;
00699 else
00700 #endif
00701 {
00702 {
00703 CUIButton* tolua_ret = (CUIButton*) new CUIButton();
00704 tolua_pushusertype(tolua_S,(void*)tolua_ret,"CUIButton");
00705 }
00706 }
00707 return 1;
00708 #ifndef TOLUA_RELEASE
00709 tolua_lerror:
00710 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
00711 return 0;
00712 #endif
00713 }
00714 #endif //#ifndef TOLUA_DISABLE
00715
00716
00717 #ifndef TOLUA_DISABLE_tolua_stratagus_CUIButton_new00_local
00718 static int tolua_stratagus_CUIButton_new00_local(lua_State* tolua_S)
00719 {
00720 #ifndef TOLUA_RELEASE
00721 tolua_Error tolua_err;
00722 if (
00723 !tolua_isusertable(tolua_S,1,"CUIButton",0,&tolua_err) ||
00724 !tolua_isnoobj(tolua_S,2,&tolua_err)
00725 )
00726 goto tolua_lerror;
00727 else
00728 #endif
00729 {
00730 {
00731 CUIButton* tolua_ret = (CUIButton*) new CUIButton();
00732 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"CUIButton");
00733 }
00734 }
00735 return 1;
00736 #ifndef TOLUA_RELEASE
00737 tolua_lerror:
00738 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
00739 return 0;
00740 #endif
00741 }
00742 #endif //#ifndef TOLUA_DISABLE
00743
00744
00745 #ifndef TOLUA_DISABLE_tolua_stratagus_CUIButton_delete00
00746 static int tolua_stratagus_CUIButton_delete00(lua_State* tolua_S)
00747 {
00748 #ifndef TOLUA_RELEASE
00749 tolua_Error tolua_err;
00750 if (
00751 !tolua_isusertype(tolua_S,1,"CUIButton",0,&tolua_err) ||
00752 !tolua_isnoobj(tolua_S,2,&tolua_err)
00753 )
00754 goto tolua_lerror;
00755 else
00756 #endif
00757 {
00758 CUIButton* self = (CUIButton*) tolua_tousertype(tolua_S,1,0);
00759 #ifndef TOLUA_RELEASE
00760 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'",NULL);
00761 #endif
00762 delete self;
00763 }
00764 return 0;
00765 #ifndef TOLUA_RELEASE
00766 tolua_lerror:
00767 tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
00768 return 0;
00769 #endif
00770 }
00771 #endif //#ifndef TOLUA_DISABLE
00772
00773
00774 #ifndef TOLUA_DISABLE_tolua_get_CUIButton_X
00775 static int tolua_get_CUIButton_X(lua_State* tolua_S)
00776 {
00777 CUIButton* self = (CUIButton*) tolua_tousertype(tolua_S,1,0);
00778 #ifndef TOLUA_RELEASE
00779 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'X'",NULL);
00780 #endif
00781 tolua_pushnumber(tolua_S,(lua_Number)self->X);
00782 return 1;
00783 }
00784 #endif //#ifndef TOLUA_DISABLE
00785
00786
00787 #ifndef TOLUA_DISABLE_tolua_set_CUIButton_X
00788 static int tolua_set_CUIButton_X(lua_State* tolua_S)
00789 {
00790 CUIButton* self = (CUIButton*) tolua_tousertype(tolua_S,1,0);
00791 #ifndef TOLUA_RELEASE
00792 tolua_Error tolua_err;
00793 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'X'",NULL);
00794 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
00795 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
00796 #endif
00797 self->X = ((int) tolua_tonumber(tolua_S,2,0))
00798 ;
00799 return 0;
00800 }
00801 #endif //#ifndef TOLUA_DISABLE
00802
00803
00804 #ifndef TOLUA_DISABLE_tolua_get_CUIButton_Y
00805 static int tolua_get_CUIButton_Y(lua_State* tolua_S)
00806 {
00807 CUIButton* self = (CUIButton*) tolua_tousertype(tolua_S,1,0);
00808 #ifndef TOLUA_RELEASE
00809 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Y'",NULL);
00810 #endif
00811 tolua_pushnumber(tolua_S,(lua_Number)self->Y);
00812 return 1;
00813 }
00814 #endif //#ifndef TOLUA_DISABLE
00815
00816
00817 #ifndef TOLUA_DISABLE_tolua_set_CUIButton_Y
00818 static int tolua_set_CUIButton_Y(lua_State* tolua_S)
00819 {
00820 CUIButton* self = (CUIButton*) tolua_tousertype(tolua_S,1,0);
00821 #ifndef TOLUA_RELEASE
00822 tolua_Error tolua_err;
00823 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Y'",NULL);
00824 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
00825 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
00826 #endif
00827 self->Y = ((int) tolua_tonumber(tolua_S,2,0))
00828 ;
00829 return 0;
00830 }
00831 #endif //#ifndef TOLUA_DISABLE
00832
00833
00834 #ifndef TOLUA_DISABLE_tolua_get_CUIButton_Text
00835 static int tolua_get_CUIButton_Text(lua_State* tolua_S)
00836 {
00837 CUIButton* self = (CUIButton*) tolua_tousertype(tolua_S,1,0);
00838 #ifndef TOLUA_RELEASE
00839 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Text'",NULL);
00840 #endif
00841 tolua_pushcppstring(tolua_S,(const char*)self->Text);
00842 return 1;
00843 }
00844 #endif //#ifndef TOLUA_DISABLE
00845
00846
00847 #ifndef TOLUA_DISABLE_tolua_set_CUIButton_Text
00848 static int tolua_set_CUIButton_Text(lua_State* tolua_S)
00849 {
00850 CUIButton* self = (CUIButton*) tolua_tousertype(tolua_S,1,0);
00851 #ifndef TOLUA_RELEASE
00852 tolua_Error tolua_err;
00853 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Text'",NULL);
00854 if (!tolua_iscppstring(tolua_S,2,0,&tolua_err))
00855 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
00856 #endif
00857 self->Text = ((string) tolua_tocppstring(tolua_S,2,0))
00858 ;
00859 return 0;
00860 }
00861 #endif //#ifndef TOLUA_DISABLE
00862
00863
00864 #ifndef TOLUA_DISABLE_tolua_get_CUIButton_Style_ptr
00865 static int tolua_get_CUIButton_Style_ptr(lua_State* tolua_S)
00866 {
00867 CUIButton* self = (CUIButton*) tolua_tousertype(tolua_S,1,0);
00868 #ifndef TOLUA_RELEASE
00869 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Style'",NULL);
00870 #endif
00871 tolua_pushusertype(tolua_S,(void*)self->Style,"ButtonStyle");
00872 return 1;
00873 }
00874 #endif //#ifndef TOLUA_DISABLE
00875
00876
00877 #ifndef TOLUA_DISABLE_tolua_set_CUIButton_Style_ptr
00878 static int tolua_set_CUIButton_Style_ptr(lua_State* tolua_S)
00879 {
00880 CUIButton* self = (CUIButton*) tolua_tousertype(tolua_S,1,0);
00881 #ifndef TOLUA_RELEASE
00882 tolua_Error tolua_err;
00883 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Style'",NULL);
00884 if (!tolua_isusertype(tolua_S,2,"ButtonStyle",0,&tolua_err))
00885 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
00886 #endif
00887 self->Style = ((ButtonStyle*) tolua_tousertype(tolua_S,2,0))
00888 ;
00889 return 0;
00890 }
00891 #endif //#ifndef TOLUA_DISABLE
00892
00893
00894 #ifndef TOLUA_DISABLE_tolua_get_CUIButton_Callback_ptr
00895 static int tolua_get_CUIButton_Callback_ptr(lua_State* tolua_S)
00896 {
00897 CUIButton* self = (CUIButton*) tolua_tousertype(tolua_S,1,0);
00898 #ifndef TOLUA_RELEASE
00899 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Callback'",NULL);
00900 #endif
00901 tolua_pushusertype(tolua_S,(void*)self->Callback,"LuaActionListener");
00902 return 1;
00903 }
00904 #endif //#ifndef TOLUA_DISABLE
00905
00906
00907 #ifndef TOLUA_DISABLE_tolua_set_CUIButton_Callback_ptr
00908 static int tolua_set_CUIButton_Callback_ptr(lua_State* tolua_S)
00909 {
00910 CUIButton* self = (CUIButton*) tolua_tousertype(tolua_S,1,0);
00911 #ifndef TOLUA_RELEASE
00912 tolua_Error tolua_err;
00913 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Callback'",NULL);
00914 if (!tolua_isusertype(tolua_S,2,"LuaActionListener",0,&tolua_err))
00915 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
00916 #endif
00917 self->Callback = ((LuaActionListener*) tolua_tousertype(tolua_S,2,0))
00918 ;
00919 return 0;
00920 }
00921 #endif //#ifndef TOLUA_DISABLE
00922
00923
00924 #ifndef TOLUA_DISABLE_tolua_get_CMapArea_X
00925 static int tolua_get_CMapArea_X(lua_State* tolua_S)
00926 {
00927 CMapArea* self = (CMapArea*) tolua_tousertype(tolua_S,1,0);
00928 #ifndef TOLUA_RELEASE
00929 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'X'",NULL);
00930 #endif
00931 tolua_pushnumber(tolua_S,(lua_Number)self->X);
00932 return 1;
00933 }
00934 #endif //#ifndef TOLUA_DISABLE
00935
00936
00937 #ifndef TOLUA_DISABLE_tolua_set_CMapArea_X
00938 static int tolua_set_CMapArea_X(lua_State* tolua_S)
00939 {
00940 CMapArea* self = (CMapArea*) tolua_tousertype(tolua_S,1,0);
00941 #ifndef TOLUA_RELEASE
00942 tolua_Error tolua_err;
00943 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'X'",NULL);
00944 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
00945 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
00946 #endif
00947 self->X = ((int) tolua_tonumber(tolua_S,2,0))
00948 ;
00949 return 0;
00950 }
00951 #endif //#ifndef TOLUA_DISABLE
00952
00953
00954 #ifndef TOLUA_DISABLE_tolua_get_CMapArea_Y
00955 static int tolua_get_CMapArea_Y(lua_State* tolua_S)
00956 {
00957 CMapArea* self = (CMapArea*) tolua_tousertype(tolua_S,1,0);
00958 #ifndef TOLUA_RELEASE
00959 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Y'",NULL);
00960 #endif
00961 tolua_pushnumber(tolua_S,(lua_Number)self->Y);
00962 return 1;
00963 }
00964 #endif //#ifndef TOLUA_DISABLE
00965
00966
00967 #ifndef TOLUA_DISABLE_tolua_set_CMapArea_Y
00968 static int tolua_set_CMapArea_Y(lua_State* tolua_S)
00969 {
00970 CMapArea* self = (CMapArea*) tolua_tousertype(tolua_S,1,0);
00971 #ifndef TOLUA_RELEASE
00972 tolua_Error tolua_err;
00973 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Y'",NULL);
00974 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
00975 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
00976 #endif
00977 self->Y = ((int) tolua_tonumber(tolua_S,2,0))
00978 ;
00979 return 0;
00980 }
00981 #endif //#ifndef TOLUA_DISABLE
00982
00983
00984 #ifndef TOLUA_DISABLE_tolua_get_CMapArea_EndX
00985 static int tolua_get_CMapArea_EndX(lua_State* tolua_S)
00986 {
00987 CMapArea* self = (CMapArea*) tolua_tousertype(tolua_S,1,0);
00988 #ifndef TOLUA_RELEASE
00989 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'EndX'",NULL);
00990 #endif
00991 tolua_pushnumber(tolua_S,(lua_Number)self->EndX);
00992 return 1;
00993 }
00994 #endif //#ifndef TOLUA_DISABLE
00995
00996
00997 #ifndef TOLUA_DISABLE_tolua_set_CMapArea_EndX
00998 static int tolua_set_CMapArea_EndX(lua_State* tolua_S)
00999 {
01000 CMapArea* self = (CMapArea*) tolua_tousertype(tolua_S,1,0);
01001 #ifndef TOLUA_RELEASE
01002 tolua_Error tolua_err;
01003 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'EndX'",NULL);
01004 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
01005 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
01006 #endif
01007 self->EndX = ((int) tolua_tonumber(tolua_S,2,0))
01008 ;
01009 return 0;
01010 }
01011 #endif //#ifndef TOLUA_DISABLE
01012
01013
01014 #ifndef TOLUA_DISABLE_tolua_get_CMapArea_EndY
01015 static int tolua_get_CMapArea_EndY(lua_State* tolua_S)
01016 {
01017 CMapArea* self = (CMapArea*) tolua_tousertype(tolua_S,1,0);
01018 #ifndef TOLUA_RELEASE
01019 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'EndY'",NULL);
01020 #endif
01021 tolua_pushnumber(tolua_S,(lua_Number)self->EndY);
01022 return 1;
01023 }
01024 #endif //#ifndef TOLUA_DISABLE
01025
01026
01027 #ifndef TOLUA_DISABLE_tolua_set_CMapArea_EndY
01028 static int tolua_set_CMapArea_EndY(lua_State* tolua_S)
01029 {
01030 CMapArea* self = (CMapArea*) tolua_tousertype(tolua_S,1,0);
01031 #ifndef TOLUA_RELEASE
01032 tolua_Error tolua_err;
01033 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'EndY'",NULL);
01034 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
01035 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
01036 #endif
01037 self->EndY = ((int) tolua_tonumber(tolua_S,2,0))
01038 ;
01039 return 0;
01040 }
01041 #endif //#ifndef TOLUA_DISABLE
01042
01043
01044 #ifndef TOLUA_DISABLE_tolua_get_CMapArea_ScrollPaddingLeft
01045 static int tolua_get_CMapArea_ScrollPaddingLeft(lua_State* tolua_S)
01046 {
01047 CMapArea* self = (CMapArea*) tolua_tousertype(tolua_S,1,0);
01048 #ifndef TOLUA_RELEASE
01049 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ScrollPaddingLeft'",NULL);
01050 #endif
01051 tolua_pushnumber(tolua_S,(lua_Number)self->ScrollPaddingLeft);
01052 return 1;
01053 }
01054 #endif //#ifndef TOLUA_DISABLE
01055
01056
01057 #ifndef TOLUA_DISABLE_tolua_set_CMapArea_ScrollPaddingLeft
01058 static int tolua_set_CMapArea_ScrollPaddingLeft(lua_State* tolua_S)
01059 {
01060 CMapArea* self = (CMapArea*) tolua_tousertype(tolua_S,1,0);
01061 #ifndef TOLUA_RELEASE
01062 tolua_Error tolua_err;
01063 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ScrollPaddingLeft'",NULL);
01064 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
01065 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
01066 #endif
01067 self->ScrollPaddingLeft = ((int) tolua_tonumber(tolua_S,2,0))
01068 ;
01069 return 0;
01070 }
01071 #endif //#ifndef TOLUA_DISABLE
01072
01073
01074 #ifndef TOLUA_DISABLE_tolua_get_CMapArea_ScrollPaddingRight
01075 static int tolua_get_CMapArea_ScrollPaddingRight(lua_State* tolua_S)
01076 {
01077 CMapArea* self = (CMapArea*) tolua_tousertype(tolua_S,1,0);
01078 #ifndef TOLUA_RELEASE
01079 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ScrollPaddingRight'",NULL);
01080 #endif
01081 tolua_pushnumber(tolua_S,(lua_Number)self->ScrollPaddingRight);
01082 return 1;
01083 }
01084 #endif //#ifndef TOLUA_DISABLE
01085
01086
01087 #ifndef TOLUA_DISABLE_tolua_set_CMapArea_ScrollPaddingRight
01088 static int tolua_set_CMapArea_ScrollPaddingRight(lua_State* tolua_S)
01089 {
01090 CMapArea* self = (CMapArea*) tolua_tousertype(tolua_S,1,0);
01091 #ifndef TOLUA_RELEASE
01092 tolua_Error tolua_err;
01093 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ScrollPaddingRight'",NULL);
01094 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
01095 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
01096 #endif
01097 self->ScrollPaddingRight = ((int) tolua_tonumber(tolua_S,2,0))
01098 ;
01099 return 0;
01100 }
01101 #endif //#ifndef TOLUA_DISABLE
01102
01103
01104 #ifndef TOLUA_DISABLE_tolua_get_CMapArea_ScrollPaddingTop
01105 static int tolua_get_CMapArea_ScrollPaddingTop(lua_State* tolua_S)
01106 {
01107 CMapArea* self = (CMapArea*) tolua_tousertype(tolua_S,1,0);
01108 #ifndef TOLUA_RELEASE
01109 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ScrollPaddingTop'",NULL);
01110 #endif
01111 tolua_pushnumber(tolua_S,(lua_Number)self->ScrollPaddingTop);
01112 return 1;
01113 }
01114 #endif //#ifndef TOLUA_DISABLE
01115
01116
01117 #ifndef TOLUA_DISABLE_tolua_set_CMapArea_ScrollPaddingTop
01118 static int tolua_set_CMapArea_ScrollPaddingTop(lua_State* tolua_S)
01119 {
01120 CMapArea* self = (CMapArea*) tolua_tousertype(tolua_S,1,0);
01121 #ifndef TOLUA_RELEASE
01122 tolua_Error tolua_err;
01123 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ScrollPaddingTop'",NULL);
01124 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
01125 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
01126 #endif
01127 self->ScrollPaddingTop = ((int) tolua_tonumber(tolua_S,2,0))
01128 ;
01129 return 0;
01130 }
01131 #endif //#ifndef TOLUA_DISABLE
01132
01133
01134 #ifndef TOLUA_DISABLE_tolua_get_CMapArea_ScrollPaddingBottom
01135 static int tolua_get_CMapArea_ScrollPaddingBottom(lua_State* tolua_S)
01136 {
01137 CMapArea* self = (CMapArea*) tolua_tousertype(tolua_S,1,0);
01138 #ifndef TOLUA_RELEASE
01139 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ScrollPaddingBottom'",NULL);
01140 #endif
01141 tolua_pushnumber(tolua_S,(lua_Number)self->ScrollPaddingBottom);
01142 return 1;
01143 }
01144 #endif //#ifndef TOLUA_DISABLE
01145
01146
01147 #ifndef TOLUA_DISABLE_tolua_set_CMapArea_ScrollPaddingBottom
01148 static int tolua_set_CMapArea_ScrollPaddingBottom(lua_State* tolua_S)
01149 {
01150 CMapArea* self = (CMapArea*) tolua_tousertype(tolua_S,1,0);
01151 #ifndef TOLUA_RELEASE
01152 tolua_Error tolua_err;
01153 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ScrollPaddingBottom'",NULL);
01154 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
01155 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
01156 #endif
01157 self->ScrollPaddingBottom = ((int) tolua_tonumber(tolua_S,2,0))
01158 ;
01159 return 0;
01160 }
01161 #endif //#ifndef TOLUA_DISABLE
01162
01163
01164 #ifndef TOLUA_DISABLE_tolua_stratagus_CViewport_Viewport2MapX00
01165 static int tolua_stratagus_CViewport_Viewport2MapX00(lua_State* tolua_S)
01166 {
01167 #ifndef TOLUA_RELEASE
01168 tolua_Error tolua_err;
01169 if (
01170 !tolua_isusertype(tolua_S,1,"CViewport",0,&tolua_err) ||
01171 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
01172 !tolua_isnoobj(tolua_S,3,&tolua_err)
01173 )
01174 goto tolua_lerror;
01175 else
01176 #endif
01177 {
01178 CViewport* self = (CViewport*) tolua_tousertype(tolua_S,1,0);
01179 int x = ((int) tolua_tonumber(tolua_S,2,0));
01180 #ifndef TOLUA_RELEASE
01181 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Viewport2MapX'",NULL);
01182 #endif
01183 {
01184 int tolua_ret = (int) self->Viewport2MapX(x);
01185 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01186 }
01187 }
01188 return 1;
01189 #ifndef TOLUA_RELEASE
01190 tolua_lerror:
01191 tolua_error(tolua_S,"#ferror in function 'Viewport2MapX'.",&tolua_err);
01192 return 0;
01193 #endif
01194 }
01195 #endif //#ifndef TOLUA_DISABLE
01196
01197
01198 #ifndef TOLUA_DISABLE_tolua_stratagus_CViewport_Viewport2MapY00
01199 static int tolua_stratagus_CViewport_Viewport2MapY00(lua_State* tolua_S)
01200 {
01201 #ifndef TOLUA_RELEASE
01202 tolua_Error tolua_err;
01203 if (
01204 !tolua_isusertype(tolua_S,1,"CViewport",0,&tolua_err) ||
01205 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
01206 !tolua_isnoobj(tolua_S,3,&tolua_err)
01207 )
01208 goto tolua_lerror;
01209 else
01210 #endif
01211 {
01212 CViewport* self = (CViewport*) tolua_tousertype(tolua_S,1,0);
01213 int y = ((int) tolua_tonumber(tolua_S,2,0));
01214 #ifndef TOLUA_RELEASE
01215 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Viewport2MapY'",NULL);
01216 #endif
01217 {
01218 int tolua_ret = (int) self->Viewport2MapY(y);
01219 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01220 }
01221 }
01222 return 1;
01223 #ifndef TOLUA_RELEASE
01224 tolua_lerror:
01225 tolua_error(tolua_S,"#ferror in function 'Viewport2MapY'.",&tolua_err);
01226 return 0;
01227 #endif
01228 }
01229 #endif //#ifndef TOLUA_DISABLE
01230
01231
01232 #ifndef TOLUA_DISABLE_tolua_stratagus_CFiller_new00
01233 static int tolua_stratagus_CFiller_new00(lua_State* tolua_S)
01234 {
01235 #ifndef TOLUA_RELEASE
01236 tolua_Error tolua_err;
01237 if (
01238 !tolua_isusertable(tolua_S,1,"CFiller",0,&tolua_err) ||
01239 !tolua_isnoobj(tolua_S,2,&tolua_err)
01240 )
01241 goto tolua_lerror;
01242 else
01243 #endif
01244 {
01245 {
01246 CFiller* tolua_ret = (CFiller*) new CFiller();
01247 tolua_pushusertype(tolua_S,(void*)tolua_ret,"CFiller");
01248 }
01249 }
01250 return 1;
01251 #ifndef TOLUA_RELEASE
01252 tolua_lerror:
01253 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
01254 return 0;
01255 #endif
01256 }
01257 #endif //#ifndef TOLUA_DISABLE
01258
01259
01260 #ifndef TOLUA_DISABLE_tolua_stratagus_CFiller_new00_local
01261 static int tolua_stratagus_CFiller_new00_local(lua_State* tolua_S)
01262 {
01263 #ifndef TOLUA_RELEASE
01264 tolua_Error tolua_err;
01265 if (
01266 !tolua_isusertable(tolua_S,1,"CFiller",0,&tolua_err) ||
01267 !tolua_isnoobj(tolua_S,2,&tolua_err)
01268 )
01269 goto tolua_lerror;
01270 else
01271 #endif
01272 {
01273 {
01274 CFiller* tolua_ret = (CFiller*) new CFiller();
01275 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"CFiller");
01276 }
01277 }
01278 return 1;
01279 #ifndef TOLUA_RELEASE
01280 tolua_lerror:
01281 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
01282 return 0;
01283 #endif
01284 }
01285 #endif //#ifndef TOLUA_DISABLE
01286
01287
01288 #ifndef TOLUA_DISABLE_tolua_get_CFiller_G_ptr
01289 static int tolua_get_CFiller_G_ptr(lua_State* tolua_S)
01290 {
01291 CFiller* self = (CFiller*) tolua_tousertype(tolua_S,1,0);
01292 #ifndef TOLUA_RELEASE
01293 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'G'",NULL);
01294 #endif
01295 tolua_pushusertype(tolua_S,(void*)self->G,"CGraphic");
01296 return 1;
01297 }
01298 #endif //#ifndef TOLUA_DISABLE
01299
01300
01301 #ifndef TOLUA_DISABLE_tolua_set_CFiller_G_ptr
01302 static int tolua_set_CFiller_G_ptr(lua_State* tolua_S)
01303 {
01304 CFiller* self = (CFiller*) tolua_tousertype(tolua_S,1,0);
01305 #ifndef TOLUA_RELEASE
01306 tolua_Error tolua_err;
01307 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'G'",NULL);
01308 if (!tolua_isusertype(tolua_S,2,"CGraphic",0,&tolua_err))
01309 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
01310 #endif
01311 self->G = ((CGraphic*) tolua_tousertype(tolua_S,2,0))
01312 ;
01313 return 0;
01314 }
01315 #endif //#ifndef TOLUA_DISABLE
01316
01317
01318 #ifndef TOLUA_DISABLE_tolua_get_CFiller_X
01319 static int tolua_get_CFiller_X(lua_State* tolua_S)
01320 {
01321 CFiller* self = (CFiller*) tolua_tousertype(tolua_S,1,0);
01322 #ifndef TOLUA_RELEASE
01323 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'X'",NULL);
01324 #endif
01325 tolua_pushnumber(tolua_S,(lua_Number)self->X);
01326 return 1;
01327 }
01328 #endif //#ifndef TOLUA_DISABLE
01329
01330
01331 #ifndef TOLUA_DISABLE_tolua_set_CFiller_X
01332 static int tolua_set_CFiller_X(lua_State* tolua_S)
01333 {
01334 CFiller* self = (CFiller*) tolua_tousertype(tolua_S,1,0);
01335 #ifndef TOLUA_RELEASE
01336 tolua_Error tolua_err;
01337 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'X'",NULL);
01338 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
01339 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
01340 #endif
01341 self->X = ((int) tolua_tonumber(tolua_S,2,0))
01342 ;
01343 return 0;
01344 }
01345 #endif //#ifndef TOLUA_DISABLE
01346
01347
01348 #ifndef TOLUA_DISABLE_tolua_get_CFiller_Y
01349 static int tolua_get_CFiller_Y(lua_State* tolua_S)
01350 {
01351 CFiller* self = (CFiller*) tolua_tousertype(tolua_S,1,0);
01352 #ifndef TOLUA_RELEASE
01353 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Y'",NULL);
01354 #endif
01355 tolua_pushnumber(tolua_S,(lua_Number)self->Y);
01356 return 1;
01357 }
01358 #endif //#ifndef TOLUA_DISABLE
01359
01360
01361 #ifndef TOLUA_DISABLE_tolua_set_CFiller_Y
01362 static int tolua_set_CFiller_Y(lua_State* tolua_S)
01363 {
01364 CFiller* self = (CFiller*) tolua_tousertype(tolua_S,1,0);
01365 #ifndef TOLUA_RELEASE
01366 tolua_Error tolua_err;
01367 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Y'",NULL);
01368 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
01369 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
01370 #endif
01371 self->Y = ((int) tolua_tonumber(tolua_S,2,0))
01372 ;
01373 return 0;
01374 }
01375 #endif //#ifndef TOLUA_DISABLE
01376
01377
01378 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CFiller__new00
01379 static int tolua_stratagus_vector_CFiller__new00(lua_State* tolua_S)
01380 {
01381 #ifndef TOLUA_RELEASE
01382 tolua_Error tolua_err;
01383 if (
01384 !tolua_isusertable(tolua_S,1,"vector<CFiller>",0,&tolua_err) ||
01385 !tolua_isnoobj(tolua_S,2,&tolua_err)
01386 )
01387 goto tolua_lerror;
01388 else
01389 #endif
01390 {
01391 {
01392 vector<CFiller>* tolua_ret = (vector<CFiller>*) new vector<CFiller>();
01393 tolua_pushusertype(tolua_S,(void*)tolua_ret,"vector<CFiller>");
01394 }
01395 }
01396 return 1;
01397 #ifndef TOLUA_RELEASE
01398 tolua_lerror:
01399 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
01400 return 0;
01401 #endif
01402 }
01403 #endif //#ifndef TOLUA_DISABLE
01404
01405
01406 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CFiller__new00_local
01407 static int tolua_stratagus_vector_CFiller__new00_local(lua_State* tolua_S)
01408 {
01409 #ifndef TOLUA_RELEASE
01410 tolua_Error tolua_err;
01411 if (
01412 !tolua_isusertable(tolua_S,1,"vector<CFiller>",0,&tolua_err) ||
01413 !tolua_isnoobj(tolua_S,2,&tolua_err)
01414 )
01415 goto tolua_lerror;
01416 else
01417 #endif
01418 {
01419 {
01420 vector<CFiller>* tolua_ret = (vector<CFiller>*) new vector<CFiller>();
01421 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"vector<CFiller>");
01422 }
01423 }
01424 return 1;
01425 #ifndef TOLUA_RELEASE
01426 tolua_lerror:
01427 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
01428 return 0;
01429 #endif
01430 }
01431 #endif //#ifndef TOLUA_DISABLE
01432
01433
01434 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CFiller__delete00
01435 static int tolua_stratagus_vector_CFiller__delete00(lua_State* tolua_S)
01436 {
01437 #ifndef TOLUA_RELEASE
01438 tolua_Error tolua_err;
01439 if (
01440 !tolua_isusertype(tolua_S,1,"vector<CFiller>",0,&tolua_err) ||
01441 !tolua_isnoobj(tolua_S,2,&tolua_err)
01442 )
01443 goto tolua_lerror;
01444 else
01445 #endif
01446 {
01447 vector<CFiller>* self = (vector<CFiller>*) tolua_tousertype(tolua_S,1,0);
01448 #ifndef TOLUA_RELEASE
01449 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'",NULL);
01450 #endif
01451 delete self;
01452 }
01453 return 0;
01454 #ifndef TOLUA_RELEASE
01455 tolua_lerror:
01456 tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
01457 return 0;
01458 #endif
01459 }
01460 #endif //#ifndef TOLUA_DISABLE
01461
01462
01463 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CFiller___geti00
01464 static int tolua_stratagus_vector_CFiller___geti00(lua_State* tolua_S)
01465 {
01466 #ifndef TOLUA_RELEASE
01467 tolua_Error tolua_err;
01468 if (
01469 !tolua_isusertype(tolua_S,1,"const vector<CFiller>",0,&tolua_err) ||
01470 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
01471 !tolua_isnoobj(tolua_S,3,&tolua_err)
01472 )
01473 goto tolua_lerror;
01474 else
01475 #endif
01476 {
01477 const vector<CFiller>* self = (const vector<CFiller>*) tolua_tousertype(tolua_S,1,0);
01478 int index = ((int) tolua_tonumber(tolua_S,2,0));
01479 #ifndef TOLUA_RELEASE
01480 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator[]'",NULL);
01481 #endif
01482 {
01483 const CFiller tolua_ret = (const CFiller) self->operator[](index);
01484 {
01485 #ifdef __cplusplus
01486 void* tolua_obj = new CFiller(tolua_ret);
01487 tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"const CFiller");
01488 #else
01489 void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(const CFiller));
01490 tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"const CFiller");
01491 #endif
01492 }
01493 }
01494 }
01495 return 1;
01496 #ifndef TOLUA_RELEASE
01497 tolua_lerror:
01498 tolua_error(tolua_S,"#ferror in function '.geti'.",&tolua_err);
01499 return 0;
01500 #endif
01501 }
01502 #endif //#ifndef TOLUA_DISABLE
01503
01504
01505 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CFiller___seti00
01506 static int tolua_stratagus_vector_CFiller___seti00(lua_State* tolua_S)
01507 {
01508 #ifndef TOLUA_RELEASE
01509 tolua_Error tolua_err;
01510 if (
01511 !tolua_isusertype(tolua_S,1,"vector<CFiller>",0,&tolua_err) ||
01512 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
01513 !tolua_isusertype(tolua_S,3,"CFiller",0,&tolua_err) ||
01514 !tolua_isnoobj(tolua_S,4,&tolua_err)
01515 )
01516 goto tolua_lerror;
01517 else
01518 #endif
01519 {
01520 vector<CFiller>* self = (vector<CFiller>*) tolua_tousertype(tolua_S,1,0);
01521 int index = ((int) tolua_tonumber(tolua_S,2,0));
01522 CFiller tolua_value = *((CFiller*) tolua_tousertype(tolua_S,3,0));
01523 #ifndef TOLUA_RELEASE
01524 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator&[]'",NULL);
01525 #endif
01526 self->operator[](index) = tolua_value;
01527 }
01528 return 0;
01529 #ifndef TOLUA_RELEASE
01530 tolua_lerror:
01531 tolua_error(tolua_S,"#ferror in function '.seti'.",&tolua_err);
01532 return 0;
01533 #endif
01534 }
01535 #endif //#ifndef TOLUA_DISABLE
01536
01537
01538 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CFiller___geti01
01539 static int tolua_stratagus_vector_CFiller___geti01(lua_State* tolua_S)
01540 {
01541 tolua_Error tolua_err;
01542 if (
01543 !tolua_isusertype(tolua_S,1,"vector<CFiller>",0,&tolua_err) ||
01544 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
01545 !tolua_isnoobj(tolua_S,3,&tolua_err)
01546 )
01547 goto tolua_lerror;
01548 else
01549 {
01550 vector<CFiller>* self = (vector<CFiller>*) tolua_tousertype(tolua_S,1,0);
01551 int index = ((int) tolua_tonumber(tolua_S,2,0));
01552 #ifndef TOLUA_RELEASE
01553 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator[]'",NULL);
01554 #endif
01555 {
01556 CFiller tolua_ret = (CFiller) self->operator[](index);
01557 {
01558 #ifdef __cplusplus
01559 void* tolua_obj = new CFiller(tolua_ret);
01560 tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"CFiller");
01561 #else
01562 void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CFiller));
01563 tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"CFiller");
01564 #endif
01565 }
01566 }
01567 }
01568 return 1;
01569 tolua_lerror:
01570 return tolua_stratagus_vector_CFiller___geti00(tolua_S);
01571 }
01572 #endif //#ifndef TOLUA_DISABLE
01573
01574
01575 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CFiller__at00
01576 static int tolua_stratagus_vector_CFiller__at00(lua_State* tolua_S)
01577 {
01578 #ifndef TOLUA_RELEASE
01579 tolua_Error tolua_err;
01580 if (
01581 !tolua_isusertype(tolua_S,1,"const vector<CFiller>",0,&tolua_err) ||
01582 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
01583 !tolua_isnoobj(tolua_S,3,&tolua_err)
01584 )
01585 goto tolua_lerror;
01586 else
01587 #endif
01588 {
01589 const vector<CFiller>* self = (const vector<CFiller>*) tolua_tousertype(tolua_S,1,0);
01590 int index = ((int) tolua_tonumber(tolua_S,2,0));
01591 #ifndef TOLUA_RELEASE
01592 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'at'",NULL);
01593 #endif
01594 {
01595 const CFiller& tolua_ret = (const CFiller&) self->at(index);
01596 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const CFiller");
01597 }
01598 }
01599 return 1;
01600 #ifndef TOLUA_RELEASE
01601 tolua_lerror:
01602 tolua_error(tolua_S,"#ferror in function 'at'.",&tolua_err);
01603 return 0;
01604 #endif
01605 }
01606 #endif //#ifndef TOLUA_DISABLE
01607
01608
01609 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CFiller__at01
01610 static int tolua_stratagus_vector_CFiller__at01(lua_State* tolua_S)
01611 {
01612 tolua_Error tolua_err;
01613 if (
01614 !tolua_isusertype(tolua_S,1,"vector<CFiller>",0,&tolua_err) ||
01615 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
01616 !tolua_isnoobj(tolua_S,3,&tolua_err)
01617 )
01618 goto tolua_lerror;
01619 else
01620 {
01621 vector<CFiller>* self = (vector<CFiller>*) tolua_tousertype(tolua_S,1,0);
01622 int index = ((int) tolua_tonumber(tolua_S,2,0));
01623 #ifndef TOLUA_RELEASE
01624 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'at'",NULL);
01625 #endif
01626 {
01627 CFiller& tolua_ret = (CFiller&) self->at(index);
01628 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"CFiller");
01629 }
01630 }
01631 return 1;
01632 tolua_lerror:
01633 return tolua_stratagus_vector_CFiller__at00(tolua_S);
01634 }
01635 #endif //#ifndef TOLUA_DISABLE
01636
01637
01638 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CFiller__front00
01639 static int tolua_stratagus_vector_CFiller__front00(lua_State* tolua_S)
01640 {
01641 #ifndef TOLUA_RELEASE
01642 tolua_Error tolua_err;
01643 if (
01644 !tolua_isusertype(tolua_S,1,"const vector<CFiller>",0,&tolua_err) ||
01645 !tolua_isnoobj(tolua_S,2,&tolua_err)
01646 )
01647 goto tolua_lerror;
01648 else
01649 #endif
01650 {
01651 const vector<CFiller>* self = (const vector<CFiller>*) tolua_tousertype(tolua_S,1,0);
01652 #ifndef TOLUA_RELEASE
01653 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'front'",NULL);
01654 #endif
01655 {
01656 const CFiller& tolua_ret = (const CFiller&) self->front();
01657 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const CFiller");
01658 }
01659 }
01660 return 1;
01661 #ifndef TOLUA_RELEASE
01662 tolua_lerror:
01663 tolua_error(tolua_S,"#ferror in function 'front'.",&tolua_err);
01664 return 0;
01665 #endif
01666 }
01667 #endif //#ifndef TOLUA_DISABLE
01668
01669
01670 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CFiller__front01
01671 static int tolua_stratagus_vector_CFiller__front01(lua_State* tolua_S)
01672 {
01673 tolua_Error tolua_err;
01674 if (
01675 !tolua_isusertype(tolua_S,1,"vector<CFiller>",0,&tolua_err) ||
01676 !tolua_isnoobj(tolua_S,2,&tolua_err)
01677 )
01678 goto tolua_lerror;
01679 else
01680 {
01681 vector<CFiller>* self = (vector<CFiller>*) tolua_tousertype(tolua_S,1,0);
01682 #ifndef TOLUA_RELEASE
01683 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'front'",NULL);
01684 #endif
01685 {
01686 CFiller& tolua_ret = (CFiller&) self->front();
01687 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"CFiller");
01688 }
01689 }
01690 return 1;
01691 tolua_lerror:
01692 return tolua_stratagus_vector_CFiller__front00(tolua_S);
01693 }
01694 #endif //#ifndef TOLUA_DISABLE
01695
01696
01697 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CFiller__back00
01698 static int tolua_stratagus_vector_CFiller__back00(lua_State* tolua_S)
01699 {
01700 #ifndef TOLUA_RELEASE
01701 tolua_Error tolua_err;
01702 if (
01703 !tolua_isusertype(tolua_S,1,"const vector<CFiller>",0,&tolua_err) ||
01704 !tolua_isnoobj(tolua_S,2,&tolua_err)
01705 )
01706 goto tolua_lerror;
01707 else
01708 #endif
01709 {
01710 const vector<CFiller>* self = (const vector<CFiller>*) tolua_tousertype(tolua_S,1,0);
01711 #ifndef TOLUA_RELEASE
01712 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'back'",NULL);
01713 #endif
01714 {
01715 const CFiller& tolua_ret = (const CFiller&) self->back();
01716 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const CFiller");
01717 }
01718 }
01719 return 1;
01720 #ifndef TOLUA_RELEASE
01721 tolua_lerror:
01722 tolua_error(tolua_S,"#ferror in function 'back'.",&tolua_err);
01723 return 0;
01724 #endif
01725 }
01726 #endif //#ifndef TOLUA_DISABLE
01727
01728
01729 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CFiller__back01
01730 static int tolua_stratagus_vector_CFiller__back01(lua_State* tolua_S)
01731 {
01732 tolua_Error tolua_err;
01733 if (
01734 !tolua_isusertype(tolua_S,1,"vector<CFiller>",0,&tolua_err) ||
01735 !tolua_isnoobj(tolua_S,2,&tolua_err)
01736 )
01737 goto tolua_lerror;
01738 else
01739 {
01740 vector<CFiller>* self = (vector<CFiller>*) tolua_tousertype(tolua_S,1,0);
01741 #ifndef TOLUA_RELEASE
01742 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'back'",NULL);
01743 #endif
01744 {
01745 CFiller& tolua_ret = (CFiller&) self->back();
01746 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"CFiller");
01747 }
01748 }
01749 return 1;
01750 tolua_lerror:
01751 return tolua_stratagus_vector_CFiller__back00(tolua_S);
01752 }
01753 #endif //#ifndef TOLUA_DISABLE
01754
01755
01756 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CFiller__push_back00
01757 static int tolua_stratagus_vector_CFiller__push_back00(lua_State* tolua_S)
01758 {
01759 #ifndef TOLUA_RELEASE
01760 tolua_Error tolua_err;
01761 if (
01762 !tolua_isusertype(tolua_S,1,"vector<CFiller>",0,&tolua_err) ||
01763 !tolua_isusertype(tolua_S,2,"CFiller",0,&tolua_err) ||
01764 !tolua_isnoobj(tolua_S,3,&tolua_err)
01765 )
01766 goto tolua_lerror;
01767 else
01768 #endif
01769 {
01770 vector<CFiller>* self = (vector<CFiller>*) tolua_tousertype(tolua_S,1,0);
01771 CFiller val = *((CFiller*) tolua_tousertype(tolua_S,2,0));
01772 #ifndef TOLUA_RELEASE
01773 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'push_back'",NULL);
01774 #endif
01775 {
01776 self->push_back(val);
01777 }
01778 }
01779 return 0;
01780 #ifndef TOLUA_RELEASE
01781 tolua_lerror:
01782 tolua_error(tolua_S,"#ferror in function 'push_back'.",&tolua_err);
01783 return 0;
01784 #endif
01785 }
01786 #endif //#ifndef TOLUA_DISABLE
01787
01788
01789 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CFiller__pop_back00
01790 static int tolua_stratagus_vector_CFiller__pop_back00(lua_State* tolua_S)
01791 {
01792 #ifndef TOLUA_RELEASE
01793 tolua_Error tolua_err;
01794 if (
01795 !tolua_isusertype(tolua_S,1,"vector<CFiller>",0,&tolua_err) ||
01796 !tolua_isnoobj(tolua_S,2,&tolua_err)
01797 )
01798 goto tolua_lerror;
01799 else
01800 #endif
01801 {
01802 vector<CFiller>* self = (vector<CFiller>*) tolua_tousertype(tolua_S,1,0);
01803 #ifndef TOLUA_RELEASE
01804 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'pop_back'",NULL);
01805 #endif
01806 {
01807 self->pop_back();
01808 }
01809 }
01810 return 0;
01811 #ifndef TOLUA_RELEASE
01812 tolua_lerror:
01813 tolua_error(tolua_S,"#ferror in function 'pop_back'.",&tolua_err);
01814 return 0;
01815 #endif
01816 }
01817 #endif //#ifndef TOLUA_DISABLE
01818
01819
01820 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CFiller__assign00
01821 static int tolua_stratagus_vector_CFiller__assign00(lua_State* tolua_S)
01822 {
01823 #ifndef TOLUA_RELEASE
01824 tolua_Error tolua_err;
01825 if (
01826 !tolua_isusertype(tolua_S,1,"vector<CFiller>",0,&tolua_err) ||
01827 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
01828 !tolua_isusertype(tolua_S,3,"const CFiller",0,&tolua_err) ||
01829 !tolua_isnoobj(tolua_S,4,&tolua_err)
01830 )
01831 goto tolua_lerror;
01832 else
01833 #endif
01834 {
01835 vector<CFiller>* self = (vector<CFiller>*) tolua_tousertype(tolua_S,1,0);
01836 int num = ((int) tolua_tonumber(tolua_S,2,0));
01837 const CFiller* val = ((const CFiller*) tolua_tousertype(tolua_S,3,0));
01838 #ifndef TOLUA_RELEASE
01839 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'assign'",NULL);
01840 #endif
01841 {
01842 self->assign(num,*val);
01843 }
01844 }
01845 return 0;
01846 #ifndef TOLUA_RELEASE
01847 tolua_lerror:
01848 tolua_error(tolua_S,"#ferror in function 'assign'.",&tolua_err);
01849 return 0;
01850 #endif
01851 }
01852 #endif //#ifndef TOLUA_DISABLE
01853
01854
01855 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CFiller__clear00
01856 static int tolua_stratagus_vector_CFiller__clear00(lua_State* tolua_S)
01857 {
01858 #ifndef TOLUA_RELEASE
01859 tolua_Error tolua_err;
01860 if (
01861 !tolua_isusertype(tolua_S,1,"vector<CFiller>",0,&tolua_err) ||
01862 !tolua_isnoobj(tolua_S,2,&tolua_err)
01863 )
01864 goto tolua_lerror;
01865 else
01866 #endif
01867 {
01868 vector<CFiller>* self = (vector<CFiller>*) tolua_tousertype(tolua_S,1,0);
01869 #ifndef TOLUA_RELEASE
01870 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'clear'",NULL);
01871 #endif
01872 {
01873 self->clear();
01874 }
01875 }
01876 return 0;
01877 #ifndef TOLUA_RELEASE
01878 tolua_lerror:
01879 tolua_error(tolua_S,"#ferror in function 'clear'.",&tolua_err);
01880 return 0;
01881 #endif
01882 }
01883 #endif //#ifndef TOLUA_DISABLE
01884
01885
01886 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CFiller__empty00
01887 static int tolua_stratagus_vector_CFiller__empty00(lua_State* tolua_S)
01888 {
01889 #ifndef TOLUA_RELEASE
01890 tolua_Error tolua_err;
01891 if (
01892 !tolua_isusertype(tolua_S,1,"const vector<CFiller>",0,&tolua_err) ||
01893 !tolua_isnoobj(tolua_S,2,&tolua_err)
01894 )
01895 goto tolua_lerror;
01896 else
01897 #endif
01898 {
01899 const vector<CFiller>* self = (const vector<CFiller>*) tolua_tousertype(tolua_S,1,0);
01900 #ifndef TOLUA_RELEASE
01901 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'empty'",NULL);
01902 #endif
01903 {
01904 bool tolua_ret = (bool) self->empty();
01905 tolua_pushboolean(tolua_S,(bool)tolua_ret);
01906 }
01907 }
01908 return 1;
01909 #ifndef TOLUA_RELEASE
01910 tolua_lerror:
01911 tolua_error(tolua_S,"#ferror in function 'empty'.",&tolua_err);
01912 return 0;
01913 #endif
01914 }
01915 #endif //#ifndef TOLUA_DISABLE
01916
01917
01918 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CFiller__size00
01919 static int tolua_stratagus_vector_CFiller__size00(lua_State* tolua_S)
01920 {
01921 #ifndef TOLUA_RELEASE
01922 tolua_Error tolua_err;
01923 if (
01924 !tolua_isusertype(tolua_S,1,"const vector<CFiller>",0,&tolua_err) ||
01925 !tolua_isnoobj(tolua_S,2,&tolua_err)
01926 )
01927 goto tolua_lerror;
01928 else
01929 #endif
01930 {
01931 const vector<CFiller>* self = (const vector<CFiller>*) tolua_tousertype(tolua_S,1,0);
01932 #ifndef TOLUA_RELEASE
01933 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'size'",NULL);
01934 #endif
01935 {
01936 int tolua_ret = (int) self->size();
01937 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01938 }
01939 }
01940 return 1;
01941 #ifndef TOLUA_RELEASE
01942 tolua_lerror:
01943 tolua_error(tolua_S,"#ferror in function 'size'.",&tolua_err);
01944 return 0;
01945 #endif
01946 }
01947 #endif //#ifndef TOLUA_DISABLE
01948
01949
01950 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CUIButton__new00
01951 static int tolua_stratagus_vector_CUIButton__new00(lua_State* tolua_S)
01952 {
01953 #ifndef TOLUA_RELEASE
01954 tolua_Error tolua_err;
01955 if (
01956 !tolua_isusertable(tolua_S,1,"vector<CUIButton>",0,&tolua_err) ||
01957 !tolua_isnoobj(tolua_S,2,&tolua_err)
01958 )
01959 goto tolua_lerror;
01960 else
01961 #endif
01962 {
01963 {
01964 vector<CUIButton>* tolua_ret = (vector<CUIButton>*) new vector<CUIButton>();
01965 tolua_pushusertype(tolua_S,(void*)tolua_ret,"vector<CUIButton>");
01966 }
01967 }
01968 return 1;
01969 #ifndef TOLUA_RELEASE
01970 tolua_lerror:
01971 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
01972 return 0;
01973 #endif
01974 }
01975 #endif //#ifndef TOLUA_DISABLE
01976
01977
01978 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CUIButton__new00_local
01979 static int tolua_stratagus_vector_CUIButton__new00_local(lua_State* tolua_S)
01980 {
01981 #ifndef TOLUA_RELEASE
01982 tolua_Error tolua_err;
01983 if (
01984 !tolua_isusertable(tolua_S,1,"vector<CUIButton>",0,&tolua_err) ||
01985 !tolua_isnoobj(tolua_S,2,&tolua_err)
01986 )
01987 goto tolua_lerror;
01988 else
01989 #endif
01990 {
01991 {
01992 vector<CUIButton>* tolua_ret = (vector<CUIButton>*) new vector<CUIButton>();
01993 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"vector<CUIButton>");
01994 }
01995 }
01996 return 1;
01997 #ifndef TOLUA_RELEASE
01998 tolua_lerror:
01999 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
02000 return 0;
02001 #endif
02002 }
02003 #endif //#ifndef TOLUA_DISABLE
02004
02005
02006 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CUIButton__delete00
02007 static int tolua_stratagus_vector_CUIButton__delete00(lua_State* tolua_S)
02008 {
02009 #ifndef TOLUA_RELEASE
02010 tolua_Error tolua_err;
02011 if (
02012 !tolua_isusertype(tolua_S,1,"vector<CUIButton>",0,&tolua_err) ||
02013 !tolua_isnoobj(tolua_S,2,&tolua_err)
02014 )
02015 goto tolua_lerror;
02016 else
02017 #endif
02018 {
02019 vector<CUIButton>* self = (vector<CUIButton>*) tolua_tousertype(tolua_S,1,0);
02020 #ifndef TOLUA_RELEASE
02021 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'",NULL);
02022 #endif
02023 delete self;
02024 }
02025 return 0;
02026 #ifndef TOLUA_RELEASE
02027 tolua_lerror:
02028 tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
02029 return 0;
02030 #endif
02031 }
02032 #endif //#ifndef TOLUA_DISABLE
02033
02034
02035 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CUIButton___geti00
02036 static int tolua_stratagus_vector_CUIButton___geti00(lua_State* tolua_S)
02037 {
02038 #ifndef TOLUA_RELEASE
02039 tolua_Error tolua_err;
02040 if (
02041 !tolua_isusertype(tolua_S,1,"const vector<CUIButton>",0,&tolua_err) ||
02042 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
02043 !tolua_isnoobj(tolua_S,3,&tolua_err)
02044 )
02045 goto tolua_lerror;
02046 else
02047 #endif
02048 {
02049 const vector<CUIButton>* self = (const vector<CUIButton>*) tolua_tousertype(tolua_S,1,0);
02050 int index = ((int) tolua_tonumber(tolua_S,2,0));
02051 #ifndef TOLUA_RELEASE
02052 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator[]'",NULL);
02053 #endif
02054 {
02055 const CUIButton tolua_ret = (const CUIButton) self->operator[](index);
02056 {
02057 #ifdef __cplusplus
02058 void* tolua_obj = new CUIButton(tolua_ret);
02059 tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"const CUIButton");
02060 #else
02061 void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(const CUIButton));
02062 tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"const CUIButton");
02063 #endif
02064 }
02065 }
02066 }
02067 return 1;
02068 #ifndef TOLUA_RELEASE
02069 tolua_lerror:
02070 tolua_error(tolua_S,"#ferror in function '.geti'.",&tolua_err);
02071 return 0;
02072 #endif
02073 }
02074 #endif //#ifndef TOLUA_DISABLE
02075
02076
02077 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CUIButton___seti00
02078 static int tolua_stratagus_vector_CUIButton___seti00(lua_State* tolua_S)
02079 {
02080 #ifndef TOLUA_RELEASE
02081 tolua_Error tolua_err;
02082 if (
02083 !tolua_isusertype(tolua_S,1,"vector<CUIButton>",0,&tolua_err) ||
02084 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
02085 !tolua_isusertype(tolua_S,3,"CUIButton",0,&tolua_err) ||
02086 !tolua_isnoobj(tolua_S,4,&tolua_err)
02087 )
02088 goto tolua_lerror;
02089 else
02090 #endif
02091 {
02092 vector<CUIButton>* self = (vector<CUIButton>*) tolua_tousertype(tolua_S,1,0);
02093 int index = ((int) tolua_tonumber(tolua_S,2,0));
02094 CUIButton tolua_value = *((CUIButton*) tolua_tousertype(tolua_S,3,0));
02095 #ifndef TOLUA_RELEASE
02096 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator&[]'",NULL);
02097 #endif
02098 self->operator[](index) = tolua_value;
02099 }
02100 return 0;
02101 #ifndef TOLUA_RELEASE
02102 tolua_lerror:
02103 tolua_error(tolua_S,"#ferror in function '.seti'.",&tolua_err);
02104 return 0;
02105 #endif
02106 }
02107 #endif //#ifndef TOLUA_DISABLE
02108
02109
02110 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CUIButton___geti01
02111 static int tolua_stratagus_vector_CUIButton___geti01(lua_State* tolua_S)
02112 {
02113 tolua_Error tolua_err;
02114 if (
02115 !tolua_isusertype(tolua_S,1,"vector<CUIButton>",0,&tolua_err) ||
02116 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
02117 !tolua_isnoobj(tolua_S,3,&tolua_err)
02118 )
02119 goto tolua_lerror;
02120 else
02121 {
02122 vector<CUIButton>* self = (vector<CUIButton>*) tolua_tousertype(tolua_S,1,0);
02123 int index = ((int) tolua_tonumber(tolua_S,2,0));
02124 #ifndef TOLUA_RELEASE
02125 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator[]'",NULL);
02126 #endif
02127 {
02128 CUIButton tolua_ret = (CUIButton) self->operator[](index);
02129 {
02130 #ifdef __cplusplus
02131 void* tolua_obj = new CUIButton(tolua_ret);
02132 tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"CUIButton");
02133 #else
02134 void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CUIButton));
02135 tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"CUIButton");
02136 #endif
02137 }
02138 }
02139 }
02140 return 1;
02141 tolua_lerror:
02142 return tolua_stratagus_vector_CUIButton___geti00(tolua_S);
02143 }
02144 #endif //#ifndef TOLUA_DISABLE
02145
02146
02147 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CUIButton__at00
02148 static int tolua_stratagus_vector_CUIButton__at00(lua_State* tolua_S)
02149 {
02150 #ifndef TOLUA_RELEASE
02151 tolua_Error tolua_err;
02152 if (
02153 !tolua_isusertype(tolua_S,1,"const vector<CUIButton>",0,&tolua_err) ||
02154 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
02155 !tolua_isnoobj(tolua_S,3,&tolua_err)
02156 )
02157 goto tolua_lerror;
02158 else
02159 #endif
02160 {
02161 const vector<CUIButton>* self = (const vector<CUIButton>*) tolua_tousertype(tolua_S,1,0);
02162 int index = ((int) tolua_tonumber(tolua_S,2,0));
02163 #ifndef TOLUA_RELEASE
02164 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'at'",NULL);
02165 #endif
02166 {
02167 const CUIButton& tolua_ret = (const CUIButton&) self->at(index);
02168 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const CUIButton");
02169 }
02170 }
02171 return 1;
02172 #ifndef TOLUA_RELEASE
02173 tolua_lerror:
02174 tolua_error(tolua_S,"#ferror in function 'at'.",&tolua_err);
02175 return 0;
02176 #endif
02177 }
02178 #endif //#ifndef TOLUA_DISABLE
02179
02180
02181 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CUIButton__at01
02182 static int tolua_stratagus_vector_CUIButton__at01(lua_State* tolua_S)
02183 {
02184 tolua_Error tolua_err;
02185 if (
02186 !tolua_isusertype(tolua_S,1,"vector<CUIButton>",0,&tolua_err) ||
02187 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
02188 !tolua_isnoobj(tolua_S,3,&tolua_err)
02189 )
02190 goto tolua_lerror;
02191 else
02192 {
02193 vector<CUIButton>* self = (vector<CUIButton>*) tolua_tousertype(tolua_S,1,0);
02194 int index = ((int) tolua_tonumber(tolua_S,2,0));
02195 #ifndef TOLUA_RELEASE
02196 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'at'",NULL);
02197 #endif
02198 {
02199 CUIButton& tolua_ret = (CUIButton&) self->at(index);
02200 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"CUIButton");
02201 }
02202 }
02203 return 1;
02204 tolua_lerror:
02205 return tolua_stratagus_vector_CUIButton__at00(tolua_S);
02206 }
02207 #endif //#ifndef TOLUA_DISABLE
02208
02209
02210 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CUIButton__front00
02211 static int tolua_stratagus_vector_CUIButton__front00(lua_State* tolua_S)
02212 {
02213 #ifndef TOLUA_RELEASE
02214 tolua_Error tolua_err;
02215 if (
02216 !tolua_isusertype(tolua_S,1,"const vector<CUIButton>",0,&tolua_err) ||
02217 !tolua_isnoobj(tolua_S,2,&tolua_err)
02218 )
02219 goto tolua_lerror;
02220 else
02221 #endif
02222 {
02223 const vector<CUIButton>* self = (const vector<CUIButton>*) tolua_tousertype(tolua_S,1,0);
02224 #ifndef TOLUA_RELEASE
02225 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'front'",NULL);
02226 #endif
02227 {
02228 const CUIButton& tolua_ret = (const CUIButton&) self->front();
02229 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const CUIButton");
02230 }
02231 }
02232 return 1;
02233 #ifndef TOLUA_RELEASE
02234 tolua_lerror:
02235 tolua_error(tolua_S,"#ferror in function 'front'.",&tolua_err);
02236 return 0;
02237 #endif
02238 }
02239 #endif //#ifndef TOLUA_DISABLE
02240
02241
02242 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CUIButton__front01
02243 static int tolua_stratagus_vector_CUIButton__front01(lua_State* tolua_S)
02244 {
02245 tolua_Error tolua_err;
02246 if (
02247 !tolua_isusertype(tolua_S,1,"vector<CUIButton>",0,&tolua_err) ||
02248 !tolua_isnoobj(tolua_S,2,&tolua_err)
02249 )
02250 goto tolua_lerror;
02251 else
02252 {
02253 vector<CUIButton>* self = (vector<CUIButton>*) tolua_tousertype(tolua_S,1,0);
02254 #ifndef TOLUA_RELEASE
02255 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'front'",NULL);
02256 #endif
02257 {
02258 CUIButton& tolua_ret = (CUIButton&) self->front();
02259 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"CUIButton");
02260 }
02261 }
02262 return 1;
02263 tolua_lerror:
02264 return tolua_stratagus_vector_CUIButton__front00(tolua_S);
02265 }
02266 #endif //#ifndef TOLUA_DISABLE
02267
02268
02269 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CUIButton__back00
02270 static int tolua_stratagus_vector_CUIButton__back00(lua_State* tolua_S)
02271 {
02272 #ifndef TOLUA_RELEASE
02273 tolua_Error tolua_err;
02274 if (
02275 !tolua_isusertype(tolua_S,1,"const vector<CUIButton>",0,&tolua_err) ||
02276 !tolua_isnoobj(tolua_S,2,&tolua_err)
02277 )
02278 goto tolua_lerror;
02279 else
02280 #endif
02281 {
02282 const vector<CUIButton>* self = (const vector<CUIButton>*) tolua_tousertype(tolua_S,1,0);
02283 #ifndef TOLUA_RELEASE
02284 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'back'",NULL);
02285 #endif
02286 {
02287 const CUIButton& tolua_ret = (const CUIButton&) self->back();
02288 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const CUIButton");
02289 }
02290 }
02291 return 1;
02292 #ifndef TOLUA_RELEASE
02293 tolua_lerror:
02294 tolua_error(tolua_S,"#ferror in function 'back'.",&tolua_err);
02295 return 0;
02296 #endif
02297 }
02298 #endif //#ifndef TOLUA_DISABLE
02299
02300
02301 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CUIButton__back01
02302 static int tolua_stratagus_vector_CUIButton__back01(lua_State* tolua_S)
02303 {
02304 tolua_Error tolua_err;
02305 if (
02306 !tolua_isusertype(tolua_S,1,"vector<CUIButton>",0,&tolua_err) ||
02307 !tolua_isnoobj(tolua_S,2,&tolua_err)
02308 )
02309 goto tolua_lerror;
02310 else
02311 {
02312 vector<CUIButton>* self = (vector<CUIButton>*) tolua_tousertype(tolua_S,1,0);
02313 #ifndef TOLUA_RELEASE
02314 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'back'",NULL);
02315 #endif
02316 {
02317 CUIButton& tolua_ret = (CUIButton&) self->back();
02318 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"CUIButton");
02319 }
02320 }
02321 return 1;
02322 tolua_lerror:
02323 return tolua_stratagus_vector_CUIButton__back00(tolua_S);
02324 }
02325 #endif //#ifndef TOLUA_DISABLE
02326
02327
02328 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CUIButton__push_back00
02329 static int tolua_stratagus_vector_CUIButton__push_back00(lua_State* tolua_S)
02330 {
02331 #ifndef TOLUA_RELEASE
02332 tolua_Error tolua_err;
02333 if (
02334 !tolua_isusertype(tolua_S,1,"vector<CUIButton>",0,&tolua_err) ||
02335 !tolua_isusertype(tolua_S,2,"CUIButton",0,&tolua_err) ||
02336 !tolua_isnoobj(tolua_S,3,&tolua_err)
02337 )
02338 goto tolua_lerror;
02339 else
02340 #endif
02341 {
02342 vector<CUIButton>* self = (vector<CUIButton>*) tolua_tousertype(tolua_S,1,0);
02343 CUIButton val = *((CUIButton*) tolua_tousertype(tolua_S,2,0));
02344 #ifndef TOLUA_RELEASE
02345 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'push_back'",NULL);
02346 #endif
02347 {
02348 self->push_back(val);
02349 }
02350 }
02351 return 0;
02352 #ifndef TOLUA_RELEASE
02353 tolua_lerror:
02354 tolua_error(tolua_S,"#ferror in function 'push_back'.",&tolua_err);
02355 return 0;
02356 #endif
02357 }
02358 #endif //#ifndef TOLUA_DISABLE
02359
02360
02361 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CUIButton__pop_back00
02362 static int tolua_stratagus_vector_CUIButton__pop_back00(lua_State* tolua_S)
02363 {
02364 #ifndef TOLUA_RELEASE
02365 tolua_Error tolua_err;
02366 if (
02367 !tolua_isusertype(tolua_S,1,"vector<CUIButton>",0,&tolua_err) ||
02368 !tolua_isnoobj(tolua_S,2,&tolua_err)
02369 )
02370 goto tolua_lerror;
02371 else
02372 #endif
02373 {
02374 vector<CUIButton>* self = (vector<CUIButton>*) tolua_tousertype(tolua_S,1,0);
02375 #ifndef TOLUA_RELEASE
02376 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'pop_back'",NULL);
02377 #endif
02378 {
02379 self->pop_back();
02380 }
02381 }
02382 return 0;
02383 #ifndef TOLUA_RELEASE
02384 tolua_lerror:
02385 tolua_error(tolua_S,"#ferror in function 'pop_back'.",&tolua_err);
02386 return 0;
02387 #endif
02388 }
02389 #endif //#ifndef TOLUA_DISABLE
02390
02391
02392 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CUIButton__assign00
02393 static int tolua_stratagus_vector_CUIButton__assign00(lua_State* tolua_S)
02394 {
02395 #ifndef TOLUA_RELEASE
02396 tolua_Error tolua_err;
02397 if (
02398 !tolua_isusertype(tolua_S,1,"vector<CUIButton>",0,&tolua_err) ||
02399 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
02400 !tolua_isusertype(tolua_S,3,"const CUIButton",0,&tolua_err) ||
02401 !tolua_isnoobj(tolua_S,4,&tolua_err)
02402 )
02403 goto tolua_lerror;
02404 else
02405 #endif
02406 {
02407 vector<CUIButton>* self = (vector<CUIButton>*) tolua_tousertype(tolua_S,1,0);
02408 int num = ((int) tolua_tonumber(tolua_S,2,0));
02409 const CUIButton* val = ((const CUIButton*) tolua_tousertype(tolua_S,3,0));
02410 #ifndef TOLUA_RELEASE
02411 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'assign'",NULL);
02412 #endif
02413 {
02414 self->assign(num,*val);
02415 }
02416 }
02417 return 0;
02418 #ifndef TOLUA_RELEASE
02419 tolua_lerror:
02420 tolua_error(tolua_S,"#ferror in function 'assign'.",&tolua_err);
02421 return 0;
02422 #endif
02423 }
02424 #endif //#ifndef TOLUA_DISABLE
02425
02426
02427 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CUIButton__clear00
02428 static int tolua_stratagus_vector_CUIButton__clear00(lua_State* tolua_S)
02429 {
02430 #ifndef TOLUA_RELEASE
02431 tolua_Error tolua_err;
02432 if (
02433 !tolua_isusertype(tolua_S,1,"vector<CUIButton>",0,&tolua_err) ||
02434 !tolua_isnoobj(tolua_S,2,&tolua_err)
02435 )
02436 goto tolua_lerror;
02437 else
02438 #endif
02439 {
02440 vector<CUIButton>* self = (vector<CUIButton>*) tolua_tousertype(tolua_S,1,0);
02441 #ifndef TOLUA_RELEASE
02442 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'clear'",NULL);
02443 #endif
02444 {
02445 self->clear();
02446 }
02447 }
02448 return 0;
02449 #ifndef TOLUA_RELEASE
02450 tolua_lerror:
02451 tolua_error(tolua_S,"#ferror in function 'clear'.",&tolua_err);
02452 return 0;
02453 #endif
02454 }
02455 #endif //#ifndef TOLUA_DISABLE
02456
02457
02458 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CUIButton__empty00
02459 static int tolua_stratagus_vector_CUIButton__empty00(lua_State* tolua_S)
02460 {
02461 #ifndef TOLUA_RELEASE
02462 tolua_Error tolua_err;
02463 if (
02464 !tolua_isusertype(tolua_S,1,"const vector<CUIButton>",0,&tolua_err) ||
02465 !tolua_isnoobj(tolua_S,2,&tolua_err)
02466 )
02467 goto tolua_lerror;
02468 else
02469 #endif
02470 {
02471 const vector<CUIButton>* self = (const vector<CUIButton>*) tolua_tousertype(tolua_S,1,0);
02472 #ifndef TOLUA_RELEASE
02473 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'empty'",NULL);
02474 #endif
02475 {
02476 bool tolua_ret = (bool) self->empty();
02477 tolua_pushboolean(tolua_S,(bool)tolua_ret);
02478 }
02479 }
02480 return 1;
02481 #ifndef TOLUA_RELEASE
02482 tolua_lerror:
02483 tolua_error(tolua_S,"#ferror in function 'empty'.",&tolua_err);
02484 return 0;
02485 #endif
02486 }
02487 #endif //#ifndef TOLUA_DISABLE
02488
02489
02490 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_CUIButton__size00
02491 static int tolua_stratagus_vector_CUIButton__size00(lua_State* tolua_S)
02492 {
02493 #ifndef TOLUA_RELEASE
02494 tolua_Error tolua_err;
02495 if (
02496 !tolua_isusertype(tolua_S,1,"const vector<CUIButton>",0,&tolua_err) ||
02497 !tolua_isnoobj(tolua_S,2,&tolua_err)
02498 )
02499 goto tolua_lerror;
02500 else
02501 #endif
02502 {
02503 const vector<CUIButton>* self = (const vector<CUIButton>*) tolua_tousertype(tolua_S,1,0);
02504 #ifndef TOLUA_RELEASE
02505 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'size'",NULL);
02506 #endif
02507 {
02508 int tolua_ret = (int) self->size();
02509 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
02510 }
02511 }
02512 return 1;
02513 #ifndef TOLUA_RELEASE
02514 tolua_lerror:
02515 tolua_error(tolua_S,"#ferror in function 'size'.",&tolua_err);
02516 return 0;
02517 #endif
02518 }
02519 #endif //#ifndef TOLUA_DISABLE
02520
02521
02522 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_string__new00
02523 static int tolua_stratagus_vector_string__new00(lua_State* tolua_S)
02524 {
02525 #ifndef TOLUA_RELEASE
02526 tolua_Error tolua_err;
02527 if (
02528 !tolua_isusertable(tolua_S,1,"vector<string>",0,&tolua_err) ||
02529 !tolua_isnoobj(tolua_S,2,&tolua_err)
02530 )
02531 goto tolua_lerror;
02532 else
02533 #endif
02534 {
02535 {
02536 vector<string>* tolua_ret = (vector<string>*) new vector<string>();
02537 tolua_pushusertype(tolua_S,(void*)tolua_ret,"vector<string>");
02538 }
02539 }
02540 return 1;
02541 #ifndef TOLUA_RELEASE
02542 tolua_lerror:
02543 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
02544 return 0;
02545 #endif
02546 }
02547 #endif //#ifndef TOLUA_DISABLE
02548
02549
02550 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_string__new00_local
02551 static int tolua_stratagus_vector_string__new00_local(lua_State* tolua_S)
02552 {
02553 #ifndef TOLUA_RELEASE
02554 tolua_Error tolua_err;
02555 if (
02556 !tolua_isusertable(tolua_S,1,"vector<string>",0,&tolua_err) ||
02557 !tolua_isnoobj(tolua_S,2,&tolua_err)
02558 )
02559 goto tolua_lerror;
02560 else
02561 #endif
02562 {
02563 {
02564 vector<string>* tolua_ret = (vector<string>*) new vector<string>();
02565 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"vector<string>");
02566 }
02567 }
02568 return 1;
02569 #ifndef TOLUA_RELEASE
02570 tolua_lerror:
02571 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
02572 return 0;
02573 #endif
02574 }
02575 #endif //#ifndef TOLUA_DISABLE
02576
02577
02578 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_string__delete00
02579 static int tolua_stratagus_vector_string__delete00(lua_State* tolua_S)
02580 {
02581 #ifndef TOLUA_RELEASE
02582 tolua_Error tolua_err;
02583 if (
02584 !tolua_isusertype(tolua_S,1,"vector<string>",0,&tolua_err) ||
02585 !tolua_isnoobj(tolua_S,2,&tolua_err)
02586 )
02587 goto tolua_lerror;
02588 else
02589 #endif
02590 {
02591 vector<string>* self = (vector<string>*) tolua_tousertype(tolua_S,1,0);
02592 #ifndef TOLUA_RELEASE
02593 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'",NULL);
02594 #endif
02595 delete self;
02596 }
02597 return 0;
02598 #ifndef TOLUA_RELEASE
02599 tolua_lerror:
02600 tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
02601 return 0;
02602 #endif
02603 }
02604 #endif //#ifndef TOLUA_DISABLE
02605
02606
02607 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_string___geti00
02608 static int tolua_stratagus_vector_string___geti00(lua_State* tolua_S)
02609 {
02610 #ifndef TOLUA_RELEASE
02611 tolua_Error tolua_err;
02612 if (
02613 !tolua_isusertype(tolua_S,1,"const vector<string>",0,&tolua_err) ||
02614 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
02615 !tolua_isnoobj(tolua_S,3,&tolua_err)
02616 )
02617 goto tolua_lerror;
02618 else
02619 #endif
02620 {
02621 const vector<string>* self = (const vector<string>*) tolua_tousertype(tolua_S,1,0);
02622 int index = ((int) tolua_tonumber(tolua_S,2,0));
02623 #ifndef TOLUA_RELEASE
02624 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator[]'",NULL);
02625 #endif
02626 {
02627 const string tolua_ret = (const string) self->operator[](index);
02628 tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
02629 }
02630 }
02631 return 1;
02632 #ifndef TOLUA_RELEASE
02633 tolua_lerror:
02634 tolua_error(tolua_S,"#ferror in function '.geti'.",&tolua_err);
02635 return 0;
02636 #endif
02637 }
02638 #endif //#ifndef TOLUA_DISABLE
02639
02640
02641 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_string___seti00
02642 static int tolua_stratagus_vector_string___seti00(lua_State* tolua_S)
02643 {
02644 #ifndef TOLUA_RELEASE
02645 tolua_Error tolua_err;
02646 if (
02647 !tolua_isusertype(tolua_S,1,"vector<string>",0,&tolua_err) ||
02648 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
02649 !tolua_iscppstring(tolua_S,3,0,&tolua_err) ||
02650 !tolua_isnoobj(tolua_S,4,&tolua_err)
02651 )
02652 goto tolua_lerror;
02653 else
02654 #endif
02655 {
02656 vector<string>* self = (vector<string>*) tolua_tousertype(tolua_S,1,0);
02657 int index = ((int) tolua_tonumber(tolua_S,2,0));
02658 string tolua_value = ((string) tolua_tocppstring(tolua_S,3,0));
02659 #ifndef TOLUA_RELEASE
02660 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator&[]'",NULL);
02661 #endif
02662 self->operator[](index) = tolua_value;
02663 }
02664 return 0;
02665 #ifndef TOLUA_RELEASE
02666 tolua_lerror:
02667 tolua_error(tolua_S,"#ferror in function '.seti'.",&tolua_err);
02668 return 0;
02669 #endif
02670 }
02671 #endif //#ifndef TOLUA_DISABLE
02672
02673
02674 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_string___geti01
02675 static int tolua_stratagus_vector_string___geti01(lua_State* tolua_S)
02676 {
02677 tolua_Error tolua_err;
02678 if (
02679 !tolua_isusertype(tolua_S,1,"vector<string>",0,&tolua_err) ||
02680 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
02681 !tolua_isnoobj(tolua_S,3,&tolua_err)
02682 )
02683 goto tolua_lerror;
02684 else
02685 {
02686 vector<string>* self = (vector<string>*) tolua_tousertype(tolua_S,1,0);
02687 int index = ((int) tolua_tonumber(tolua_S,2,0));
02688 #ifndef TOLUA_RELEASE
02689 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator[]'",NULL);
02690 #endif
02691 {
02692 string tolua_ret = (string) self->operator[](index);
02693 tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
02694 }
02695 }
02696 return 1;
02697 tolua_lerror:
02698 return tolua_stratagus_vector_string___geti00(tolua_S);
02699 }
02700 #endif //#ifndef TOLUA_DISABLE
02701
02702
02703 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_string__at00
02704 static int tolua_stratagus_vector_string__at00(lua_State* tolua_S)
02705 {
02706 #ifndef TOLUA_RELEASE
02707 tolua_Error tolua_err;
02708 if (
02709 !tolua_isusertype(tolua_S,1,"const vector<string>",0,&tolua_err) ||
02710 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
02711 !tolua_isnoobj(tolua_S,3,&tolua_err)
02712 )
02713 goto tolua_lerror;
02714 else
02715 #endif
02716 {
02717 const vector<string>* self = (const vector<string>*) tolua_tousertype(tolua_S,1,0);
02718 int index = ((int) tolua_tonumber(tolua_S,2,0));
02719 #ifndef TOLUA_RELEASE
02720 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'at'",NULL);
02721 #endif
02722 {
02723 const string tolua_ret = (const string) self->at(index);
02724 tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
02725 }
02726 }
02727 return 1;
02728 #ifndef TOLUA_RELEASE
02729 tolua_lerror:
02730 tolua_error(tolua_S,"#ferror in function 'at'.",&tolua_err);
02731 return 0;
02732 #endif
02733 }
02734 #endif //#ifndef TOLUA_DISABLE
02735
02736
02737 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_string__at01
02738 static int tolua_stratagus_vector_string__at01(lua_State* tolua_S)
02739 {
02740 tolua_Error tolua_err;
02741 if (
02742 !tolua_isusertype(tolua_S,1,"vector<string>",0,&tolua_err) ||
02743 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
02744 !tolua_isnoobj(tolua_S,3,&tolua_err)
02745 )
02746 goto tolua_lerror;
02747 else
02748 {
02749 vector<string>* self = (vector<string>*) tolua_tousertype(tolua_S,1,0);
02750 int index = ((int) tolua_tonumber(tolua_S,2,0));
02751 #ifndef TOLUA_RELEASE
02752 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'at'",NULL);
02753 #endif
02754 {
02755 string tolua_ret = (string) self->at(index);
02756 tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
02757 }
02758 }
02759 return 1;
02760 tolua_lerror:
02761 return tolua_stratagus_vector_string__at00(tolua_S);
02762 }
02763 #endif //#ifndef TOLUA_DISABLE
02764
02765
02766 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_string__front00
02767 static int tolua_stratagus_vector_string__front00(lua_State* tolua_S)
02768 {
02769 #ifndef TOLUA_RELEASE
02770 tolua_Error tolua_err;
02771 if (
02772 !tolua_isusertype(tolua_S,1,"const vector<string>",0,&tolua_err) ||
02773 !tolua_isnoobj(tolua_S,2,&tolua_err)
02774 )
02775 goto tolua_lerror;
02776 else
02777 #endif
02778 {
02779 const vector<string>* self = (const vector<string>*) tolua_tousertype(tolua_S,1,0);
02780 #ifndef TOLUA_RELEASE
02781 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'front'",NULL);
02782 #endif
02783 {
02784 const string tolua_ret = (const string) self->front();
02785 tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
02786 }
02787 }
02788 return 1;
02789 #ifndef TOLUA_RELEASE
02790 tolua_lerror:
02791 tolua_error(tolua_S,"#ferror in function 'front'.",&tolua_err);
02792 return 0;
02793 #endif
02794 }
02795 #endif //#ifndef TOLUA_DISABLE
02796
02797
02798 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_string__front01
02799 static int tolua_stratagus_vector_string__front01(lua_State* tolua_S)
02800 {
02801 tolua_Error tolua_err;
02802 if (
02803 !tolua_isusertype(tolua_S,1,"vector<string>",0,&tolua_err) ||
02804 !tolua_isnoobj(tolua_S,2,&tolua_err)
02805 )
02806 goto tolua_lerror;
02807 else
02808 {
02809 vector<string>* self = (vector<string>*) tolua_tousertype(tolua_S,1,0);
02810 #ifndef TOLUA_RELEASE
02811 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'front'",NULL);
02812 #endif
02813 {
02814 string tolua_ret = (string) self->front();
02815 tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
02816 }
02817 }
02818 return 1;
02819 tolua_lerror:
02820 return tolua_stratagus_vector_string__front00(tolua_S);
02821 }
02822 #endif //#ifndef TOLUA_DISABLE
02823
02824
02825 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_string__back00
02826 static int tolua_stratagus_vector_string__back00(lua_State* tolua_S)
02827 {
02828 #ifndef TOLUA_RELEASE
02829 tolua_Error tolua_err;
02830 if (
02831 !tolua_isusertype(tolua_S,1,"const vector<string>",0,&tolua_err) ||
02832 !tolua_isnoobj(tolua_S,2,&tolua_err)
02833 )
02834 goto tolua_lerror;
02835 else
02836 #endif
02837 {
02838 const vector<string>* self = (const vector<string>*) tolua_tousertype(tolua_S,1,0);
02839 #ifndef TOLUA_RELEASE
02840 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'back'",NULL);
02841 #endif
02842 {
02843 const string tolua_ret = (const string) self->back();
02844 tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
02845 }
02846 }
02847 return 1;
02848 #ifndef TOLUA_RELEASE
02849 tolua_lerror:
02850 tolua_error(tolua_S,"#ferror in function 'back'.",&tolua_err);
02851 return 0;
02852 #endif
02853 }
02854 #endif //#ifndef TOLUA_DISABLE
02855
02856
02857 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_string__back01
02858 static int tolua_stratagus_vector_string__back01(lua_State* tolua_S)
02859 {
02860 tolua_Error tolua_err;
02861 if (
02862 !tolua_isusertype(tolua_S,1,"vector<string>",0,&tolua_err) ||
02863 !tolua_isnoobj(tolua_S,2,&tolua_err)
02864 )
02865 goto tolua_lerror;
02866 else
02867 {
02868 vector<string>* self = (vector<string>*) tolua_tousertype(tolua_S,1,0);
02869 #ifndef TOLUA_RELEASE
02870 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'back'",NULL);
02871 #endif
02872 {
02873 string tolua_ret = (string) self->back();
02874 tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
02875 }
02876 }
02877 return 1;
02878 tolua_lerror:
02879 return tolua_stratagus_vector_string__back00(tolua_S);
02880 }
02881 #endif //#ifndef TOLUA_DISABLE
02882
02883
02884 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_string__push_back00
02885 static int tolua_stratagus_vector_string__push_back00(lua_State* tolua_S)
02886 {
02887 #ifndef TOLUA_RELEASE
02888 tolua_Error tolua_err;
02889 if (
02890 !tolua_isusertype(tolua_S,1,"vector<string>",0,&tolua_err) ||
02891 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
02892 !tolua_isnoobj(tolua_S,3,&tolua_err)
02893 )
02894 goto tolua_lerror;
02895 else
02896 #endif
02897 {
02898 vector<string>* self = (vector<string>*) tolua_tousertype(tolua_S,1,0);
02899 string val = ((string) tolua_tocppstring(tolua_S,2,0));
02900 #ifndef TOLUA_RELEASE
02901 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'push_back'",NULL);
02902 #endif
02903 {
02904 self->push_back(val);
02905 }
02906 }
02907 return 0;
02908 #ifndef TOLUA_RELEASE
02909 tolua_lerror:
02910 tolua_error(tolua_S,"#ferror in function 'push_back'.",&tolua_err);
02911 return 0;
02912 #endif
02913 }
02914 #endif //#ifndef TOLUA_DISABLE
02915
02916
02917 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_string__pop_back00
02918 static int tolua_stratagus_vector_string__pop_back00(lua_State* tolua_S)
02919 {
02920 #ifndef TOLUA_RELEASE
02921 tolua_Error tolua_err;
02922 if (
02923 !tolua_isusertype(tolua_S,1,"vector<string>",0,&tolua_err) ||
02924 !tolua_isnoobj(tolua_S,2,&tolua_err)
02925 )
02926 goto tolua_lerror;
02927 else
02928 #endif
02929 {
02930 vector<string>* self = (vector<string>*) tolua_tousertype(tolua_S,1,0);
02931 #ifndef TOLUA_RELEASE
02932 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'pop_back'",NULL);
02933 #endif
02934 {
02935 self->pop_back();
02936 }
02937 }
02938 return 0;
02939 #ifndef TOLUA_RELEASE
02940 tolua_lerror:
02941 tolua_error(tolua_S,"#ferror in function 'pop_back'.",&tolua_err);
02942 return 0;
02943 #endif
02944 }
02945 #endif //#ifndef TOLUA_DISABLE
02946
02947
02948 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_string__assign00
02949 static int tolua_stratagus_vector_string__assign00(lua_State* tolua_S)
02950 {
02951 #ifndef TOLUA_RELEASE
02952 tolua_Error tolua_err;
02953 if (
02954 !tolua_isusertype(tolua_S,1,"vector<string>",0,&tolua_err) ||
02955 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
02956 !tolua_iscppstring(tolua_S,3,0,&tolua_err) ||
02957 !tolua_isnoobj(tolua_S,4,&tolua_err)
02958 )
02959 goto tolua_lerror;
02960 else
02961 #endif
02962 {
02963 vector<string>* self = (vector<string>*) tolua_tousertype(tolua_S,1,0);
02964 int num = ((int) tolua_tonumber(tolua_S,2,0));
02965 const string val = ((const string) tolua_tocppstring(tolua_S,3,0));
02966 #ifndef TOLUA_RELEASE
02967 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'assign'",NULL);
02968 #endif
02969 {
02970 self->assign(num,val);
02971 tolua_pushcppstring(tolua_S,(const char*)val);
02972 }
02973 }
02974 return 1;
02975 #ifndef TOLUA_RELEASE
02976 tolua_lerror:
02977 tolua_error(tolua_S,"#ferror in function 'assign'.",&tolua_err);
02978 return 0;
02979 #endif
02980 }
02981 #endif //#ifndef TOLUA_DISABLE
02982
02983
02984 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_string__clear00
02985 static int tolua_stratagus_vector_string__clear00(lua_State* tolua_S)
02986 {
02987 #ifndef TOLUA_RELEASE
02988 tolua_Error tolua_err;
02989 if (
02990 !tolua_isusertype(tolua_S,1,"vector<string>",0,&tolua_err) ||
02991 !tolua_isnoobj(tolua_S,2,&tolua_err)
02992 )
02993 goto tolua_lerror;
02994 else
02995 #endif
02996 {
02997 vector<string>* self = (vector<string>*) tolua_tousertype(tolua_S,1,0);
02998 #ifndef TOLUA_RELEASE
02999 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'clear'",NULL);
03000 #endif
03001 {
03002 self->clear();
03003 }
03004 }
03005 return 0;
03006 #ifndef TOLUA_RELEASE
03007 tolua_lerror:
03008 tolua_error(tolua_S,"#ferror in function 'clear'.",&tolua_err);
03009 return 0;
03010 #endif
03011 }
03012 #endif //#ifndef TOLUA_DISABLE
03013
03014
03015 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_string__empty00
03016 static int tolua_stratagus_vector_string__empty00(lua_State* tolua_S)
03017 {
03018 #ifndef TOLUA_RELEASE
03019 tolua_Error tolua_err;
03020 if (
03021 !tolua_isusertype(tolua_S,1,"const vector<string>",0,&tolua_err) ||
03022 !tolua_isnoobj(tolua_S,2,&tolua_err)
03023 )
03024 goto tolua_lerror;
03025 else
03026 #endif
03027 {
03028 const vector<string>* self = (const vector<string>*) tolua_tousertype(tolua_S,1,0);
03029 #ifndef TOLUA_RELEASE
03030 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'empty'",NULL);
03031 #endif
03032 {
03033 bool tolua_ret = (bool) self->empty();
03034 tolua_pushboolean(tolua_S,(bool)tolua_ret);
03035 }
03036 }
03037 return 1;
03038 #ifndef TOLUA_RELEASE
03039 tolua_lerror:
03040 tolua_error(tolua_S,"#ferror in function 'empty'.",&tolua_err);
03041 return 0;
03042 #endif
03043 }
03044 #endif //#ifndef TOLUA_DISABLE
03045
03046
03047 #ifndef TOLUA_DISABLE_tolua_stratagus_vector_string__size00
03048 static int tolua_stratagus_vector_string__size00(lua_State* tolua_S)
03049 {
03050 #ifndef TOLUA_RELEASE
03051 tolua_Error tolua_err;
03052 if (
03053 !tolua_isusertype(tolua_S,1,"const vector<string>",0,&tolua_err) ||
03054 !tolua_isnoobj(tolua_S,2,&tolua_err)
03055 )
03056 goto tolua_lerror;
03057 else
03058 #endif
03059 {
03060 const vector<string>* self = (const vector<string>*) tolua_tousertype(tolua_S,1,0);
03061 #ifndef TOLUA_RELEASE
03062 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'size'",NULL);
03063 #endif
03064 {
03065 int tolua_ret = (int) self->size();
03066 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
03067 }
03068 }
03069 return 1;
03070 #ifndef TOLUA_RELEASE
03071 tolua_lerror:
03072 tolua_error(tolua_S,"#ferror in function 'size'.",&tolua_err);
03073 return 0;
03074 #endif
03075 }
03076 #endif //#ifndef TOLUA_DISABLE
03077
03078
03079 #ifndef TOLUA_DISABLE_tolua_get_CButtonPanel_X
03080 static int tolua_get_CButtonPanel_X(lua_State* tolua_S)
03081 {
03082 CButtonPanel* self = (CButtonPanel*) tolua_tousertype(tolua_S,1,0);
03083 #ifndef TOLUA_RELEASE
03084 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'X'",NULL);
03085 #endif
03086 tolua_pushnumber(tolua_S,(lua_Number)self->X);
03087 return 1;
03088 }
03089 #endif //#ifndef TOLUA_DISABLE
03090
03091
03092 #ifndef TOLUA_DISABLE_tolua_set_CButtonPanel_X
03093 static int tolua_set_CButtonPanel_X(lua_State* tolua_S)
03094 {
03095 CButtonPanel* self = (CButtonPanel*) tolua_tousertype(tolua_S,1,0);
03096 #ifndef TOLUA_RELEASE
03097 tolua_Error tolua_err;
03098 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'X'",NULL);
03099 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
03100 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
03101 #endif
03102 self->X = ((int) tolua_tonumber(tolua_S,2,0))
03103 ;
03104 return 0;
03105 }
03106 #endif //#ifndef TOLUA_DISABLE
03107
03108
03109 #ifndef TOLUA_DISABLE_tolua_get_CButtonPanel_Y
03110 static int tolua_get_CButtonPanel_Y(lua_State* tolua_S)
03111 {
03112 CButtonPanel* self = (CButtonPanel*) tolua_tousertype(tolua_S,1,0);
03113 #ifndef TOLUA_RELEASE
03114 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Y'",NULL);
03115 #endif
03116 tolua_pushnumber(tolua_S,(lua_Number)self->Y);
03117 return 1;
03118 }
03119 #endif //#ifndef TOLUA_DISABLE
03120
03121
03122 #ifndef TOLUA_DISABLE_tolua_set_CButtonPanel_Y
03123 static int tolua_set_CButtonPanel_Y(lua_State* tolua_S)
03124 {
03125 CButtonPanel* self = (CButtonPanel*) tolua_tousertype(tolua_S,1,0);
03126 #ifndef TOLUA_RELEASE
03127 tolua_Error tolua_err;
03128 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Y'",NULL);
03129 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
03130 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
03131 #endif
03132 self->Y = ((int) tolua_tonumber(tolua_S,2,0))
03133 ;
03134 return 0;
03135 }
03136 #endif //#ifndef TOLUA_DISABLE
03137
03138
03139 #ifndef TOLUA_DISABLE_tolua_get_CButtonPanel_Buttons
03140 static int tolua_get_CButtonPanel_Buttons(lua_State* tolua_S)
03141 {
03142 CButtonPanel* self = (CButtonPanel*) tolua_tousertype(tolua_S,1,0);
03143 #ifndef TOLUA_RELEASE
03144 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Buttons'",NULL);
03145 #endif
03146 tolua_pushusertype(tolua_S,(void*)&self->Buttons,"vector<CUIButton>");
03147 return 1;
03148 }
03149 #endif //#ifndef TOLUA_DISABLE
03150
03151
03152 #ifndef TOLUA_DISABLE_tolua_set_CButtonPanel_Buttons
03153 static int tolua_set_CButtonPanel_Buttons(lua_State* tolua_S)
03154 {
03155 CButtonPanel* self = (CButtonPanel*) tolua_tousertype(tolua_S,1,0);
03156 #ifndef TOLUA_RELEASE
03157 tolua_Error tolua_err;
03158 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Buttons'",NULL);
03159 if (!tolua_isusertype(tolua_S,2,"vector<CUIButton>",0,&tolua_err))
03160 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
03161 #endif
03162 self->Buttons = *((vector<CUIButton>*) tolua_tousertype(tolua_S,2,0))
03163 ;
03164 return 0;
03165 }
03166 #endif //#ifndef TOLUA_DISABLE
03167
03168
03169 #ifndef TOLUA_DISABLE_tolua_get_CButtonPanel_AutoCastBorderColorRGB
03170 static int tolua_get_CButtonPanel_AutoCastBorderColorRGB(lua_State* tolua_S)
03171 {
03172 CButtonPanel* self = (CButtonPanel*) tolua_tousertype(tolua_S,1,0);
03173 #ifndef TOLUA_RELEASE
03174 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'AutoCastBorderColorRGB'",NULL);
03175 #endif
03176 tolua_pushusertype(tolua_S,(void*)&self->AutoCastBorderColorRGB,"CColor");
03177 return 1;
03178 }
03179 #endif //#ifndef TOLUA_DISABLE
03180
03181
03182 #ifndef TOLUA_DISABLE_tolua_set_CButtonPanel_AutoCastBorderColorRGB
03183 static int tolua_set_CButtonPanel_AutoCastBorderColorRGB(lua_State* tolua_S)
03184 {
03185 CButtonPanel* self = (CButtonPanel*) tolua_tousertype(tolua_S,1,0);
03186 #ifndef TOLUA_RELEASE
03187 tolua_Error tolua_err;
03188 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'AutoCastBorderColorRGB'",NULL);
03189 if (!tolua_isusertype(tolua_S,2,"CColor",0,&tolua_err))
03190 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
03191 #endif
03192 self->AutoCastBorderColorRGB = *((CColor*) tolua_tousertype(tolua_S,2,0))
03193 ;
03194 return 0;
03195 }
03196 #endif //#ifndef TOLUA_DISABLE
03197
03198
03199 #ifndef TOLUA_DISABLE_tolua_get_CButtonPanel_ShowCommandKey
03200 static int tolua_get_CButtonPanel_ShowCommandKey(lua_State* tolua_S)
03201 {
03202 CButtonPanel* self = (CButtonPanel*) tolua_tousertype(tolua_S,1,0);
03203 #ifndef TOLUA_RELEASE
03204 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ShowCommandKey'",NULL);
03205 #endif
03206 tolua_pushboolean(tolua_S,(bool)self->ShowCommandKey);
03207 return 1;
03208 }
03209 #endif //#ifndef TOLUA_DISABLE
03210
03211
03212 #ifndef TOLUA_DISABLE_tolua_set_CButtonPanel_ShowCommandKey
03213 static int tolua_set_CButtonPanel_ShowCommandKey(lua_State* tolua_S)
03214 {
03215 CButtonPanel* self = (CButtonPanel*) tolua_tousertype(tolua_S,1,0);
03216 #ifndef TOLUA_RELEASE
03217 tolua_Error tolua_err;
03218 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ShowCommandKey'",NULL);
03219 if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
03220 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
03221 #endif
03222 self->ShowCommandKey = ((bool) tolua_toboolean(tolua_S,2,0))
03223 ;
03224 return 0;
03225 }
03226 #endif //#ifndef TOLUA_DISABLE
03227
03228
03229 #ifndef TOLUA_DISABLE_tolua_get_CPieMenu_G_ptr
03230 static int tolua_get_CPieMenu_G_ptr(lua_State* tolua_S)
03231 {
03232 CPieMenu* self = (CPieMenu*) tolua_tousertype(tolua_S,1,0);
03233 #ifndef TOLUA_RELEASE
03234 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'G'",NULL);
03235 #endif
03236 tolua_pushusertype(tolua_S,(void*)self->G,"CGraphic");
03237 return 1;
03238 }
03239 #endif //#ifndef TOLUA_DISABLE
03240
03241
03242 #ifndef TOLUA_DISABLE_tolua_set_CPieMenu_G_ptr
03243 static int tolua_set_CPieMenu_G_ptr(lua_State* tolua_S)
03244 {
03245 CPieMenu* self = (CPieMenu*) tolua_tousertype(tolua_S,1,0);
03246 #ifndef TOLUA_RELEASE
03247 tolua_Error tolua_err;
03248 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'G'",NULL);
03249 if (!tolua_isusertype(tolua_S,2,"CGraphic",0,&tolua_err))
03250 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
03251 #endif
03252 self->G = ((CGraphic*) tolua_tousertype(tolua_S,2,0))
03253 ;
03254 return 0;
03255 }
03256 #endif //#ifndef TOLUA_DISABLE
03257
03258
03259 #ifndef TOLUA_DISABLE_tolua_get_CPieMenu_MouseButton
03260 static int tolua_get_CPieMenu_MouseButton(lua_State* tolua_S)
03261 {
03262 CPieMenu* self = (CPieMenu*) tolua_tousertype(tolua_S,1,0);
03263 #ifndef TOLUA_RELEASE
03264 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MouseButton'",NULL);
03265 #endif
03266 tolua_pushnumber(tolua_S,(lua_Number)self->MouseButton);
03267 return 1;
03268 }
03269 #endif //#ifndef TOLUA_DISABLE
03270
03271
03272 #ifndef TOLUA_DISABLE_tolua_set_CPieMenu_MouseButton
03273 static int tolua_set_CPieMenu_MouseButton(lua_State* tolua_S)
03274 {
03275 CPieMenu* self = (CPieMenu*) tolua_tousertype(tolua_S,1,0);
03276 #ifndef TOLUA_RELEASE
03277 tolua_Error tolua_err;
03278 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MouseButton'",NULL);
03279 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
03280 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
03281 #endif
03282 self->MouseButton = ((int) tolua_tonumber(tolua_S,2,0))
03283 ;
03284 return 0;
03285 }
03286 #endif //#ifndef TOLUA_DISABLE
03287
03288
03289 #ifndef TOLUA_DISABLE_tolua_get_stratagus_CPieMenu_X
03290 static int tolua_get_stratagus_CPieMenu_X(lua_State* tolua_S)
03291 {
03292 int tolua_index;
03293 CPieMenu* self;
03294 lua_pushstring(tolua_S,".self");
03295 lua_rawget(tolua_S,1);
03296 self = (CPieMenu*) lua_touserdata(tolua_S,-1);
03297 #ifndef TOLUA_RELEASE
03298 {
03299 tolua_Error tolua_err;
03300 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
03301 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
03302 }
03303 #endif
03304 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
03305 #ifndef TOLUA_RELEASE
03306 if (tolua_index<0 || tolua_index>=8)
03307 tolua_error(tolua_S,"array indexing out of range.",NULL);
03308 #endif
03309 tolua_pushnumber(tolua_S,(lua_Number)self->X[tolua_index]);
03310 return 1;
03311 }
03312 #endif //#ifndef TOLUA_DISABLE
03313
03314
03315 #ifndef TOLUA_DISABLE_tolua_set_stratagus_CPieMenu_X
03316 static int tolua_set_stratagus_CPieMenu_X(lua_State* tolua_S)
03317 {
03318 int tolua_index;
03319 CPieMenu* self;
03320 lua_pushstring(tolua_S,".self");
03321 lua_rawget(tolua_S,1);
03322 self = (CPieMenu*) lua_touserdata(tolua_S,-1);
03323 #ifndef TOLUA_RELEASE
03324 {
03325 tolua_Error tolua_err;
03326 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
03327 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
03328 }
03329 #endif
03330 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
03331 #ifndef TOLUA_RELEASE
03332 if (tolua_index<0 || tolua_index>=8)
03333 tolua_error(tolua_S,"array indexing out of range.",NULL);
03334 #endif
03335 self->X[tolua_index] = ((int) tolua_tonumber(tolua_S,3,0));
03336 return 0;
03337 }
03338 #endif //#ifndef TOLUA_DISABLE
03339
03340
03341 #ifndef TOLUA_DISABLE_tolua_get_stratagus_CPieMenu_Y
03342 static int tolua_get_stratagus_CPieMenu_Y(lua_State* tolua_S)
03343 {
03344 int tolua_index;
03345 CPieMenu* self;
03346 lua_pushstring(tolua_S,".self");
03347 lua_rawget(tolua_S,1);
03348 self = (CPieMenu*) lua_touserdata(tolua_S,-1);
03349 #ifndef TOLUA_RELEASE
03350 {
03351 tolua_Error tolua_err;
03352 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
03353 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
03354 }
03355 #endif
03356 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
03357 #ifndef TOLUA_RELEASE
03358 if (tolua_index<0 || tolua_index>=8)
03359 tolua_error(tolua_S,"array indexing out of range.",NULL);
03360 #endif
03361 tolua_pushnumber(tolua_S,(lua_Number)self->Y[tolua_index]);
03362 return 1;
03363 }
03364 #endif //#ifndef TOLUA_DISABLE
03365
03366
03367 #ifndef TOLUA_DISABLE_tolua_set_stratagus_CPieMenu_Y
03368 static int tolua_set_stratagus_CPieMenu_Y(lua_State* tolua_S)
03369 {
03370 int tolua_index;
03371 CPieMenu* self;
03372 lua_pushstring(tolua_S,".self");
03373 lua_rawget(tolua_S,1);
03374 self = (CPieMenu*) lua_touserdata(tolua_S,-1);
03375 #ifndef TOLUA_RELEASE
03376 {
03377 tolua_Error tolua_err;
03378 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
03379 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
03380 }
03381 #endif
03382 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
03383 #ifndef TOLUA_RELEASE
03384 if (tolua_index<0 || tolua_index>=8)
03385 tolua_error(tolua_S,"array indexing out of range.",NULL);
03386 #endif
03387 self->Y[tolua_index] = ((int) tolua_tonumber(tolua_S,3,0));
03388 return 0;
03389 }
03390 #endif //#ifndef TOLUA_DISABLE
03391
03392
03393 #ifndef TOLUA_DISABLE_tolua_stratagus_CPieMenu_SetRadius00
03394 static int tolua_stratagus_CPieMenu_SetRadius00(lua_State* tolua_S)
03395 {
03396 #ifndef TOLUA_RELEASE
03397 tolua_Error tolua_err;
03398 if (
03399 !tolua_isusertype(tolua_S,1,"CPieMenu",0,&tolua_err) ||
03400 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
03401 !tolua_isnoobj(tolua_S,3,&tolua_err)
03402 )
03403 goto tolua_lerror;
03404 else
03405 #endif
03406 {
03407 CPieMenu* self = (CPieMenu*) tolua_tousertype(tolua_S,1,0);
03408 int radius = ((int) tolua_tonumber(tolua_S,2,0));
03409 #ifndef TOLUA_RELEASE
03410 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRadius'",NULL);
03411 #endif
03412 {
03413 self->SetRadius(radius);
03414 }
03415 }
03416 return 0;
03417 #ifndef TOLUA_RELEASE
03418 tolua_lerror:
03419 tolua_error(tolua_S,"#ferror in function 'SetRadius'.",&tolua_err);
03420 return 0;
03421 #endif
03422 }
03423 #endif //#ifndef TOLUA_DISABLE
03424
03425
03426 #ifndef TOLUA_DISABLE_tolua_get_CResourceInfo_G_ptr
03427 static int tolua_get_CResourceInfo_G_ptr(lua_State* tolua_S)
03428 {
03429 CResourceInfo* self = (CResourceInfo*) tolua_tousertype(tolua_S,1,0);
03430 #ifndef TOLUA_RELEASE
03431 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'G'",NULL);
03432 #endif
03433 tolua_pushusertype(tolua_S,(void*)self->G,"CGraphic");
03434 return 1;
03435 }
03436 #endif //#ifndef TOLUA_DISABLE
03437
03438
03439 #ifndef TOLUA_DISABLE_tolua_set_CResourceInfo_G_ptr
03440 static int tolua_set_CResourceInfo_G_ptr(lua_State* tolua_S)
03441 {
03442 CResourceInfo* self = (CResourceInfo*) tolua_tousertype(tolua_S,1,0);
03443 #ifndef TOLUA_RELEASE
03444 tolua_Error tolua_err;
03445 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'G'",NULL);
03446 if (!tolua_isusertype(tolua_S,2,"CGraphic",0,&tolua_err))
03447 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
03448 #endif
03449 self->G = ((CGraphic*) tolua_tousertype(tolua_S,2,0))
03450 ;
03451 return 0;
03452 }
03453 #endif //#ifndef TOLUA_DISABLE
03454
03455
03456 #ifndef TOLUA_DISABLE_tolua_get_CResourceInfo_IconFrame
03457 static int tolua_get_CResourceInfo_IconFrame(lua_State* tolua_S)
03458 {
03459 CResourceInfo* self = (CResourceInfo*) tolua_tousertype(tolua_S,1,0);
03460 #ifndef TOLUA_RELEASE
03461 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'IconFrame'",NULL);
03462 #endif
03463 tolua_pushnumber(tolua_S,(lua_Number)self->IconFrame);
03464 return 1;
03465 }
03466 #endif //#ifndef TOLUA_DISABLE
03467
03468
03469 #ifndef TOLUA_DISABLE_tolua_set_CResourceInfo_IconFrame
03470 static int tolua_set_CResourceInfo_IconFrame(lua_State* tolua_S)
03471 {
03472 CResourceInfo* self = (CResourceInfo*) tolua_tousertype(tolua_S,1,0);
03473 #ifndef TOLUA_RELEASE
03474 tolua_Error tolua_err;
03475 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'IconFrame'",NULL);
03476 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
03477 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
03478 #endif
03479 self->IconFrame = ((int) tolua_tonumber(tolua_S,2,0))
03480 ;
03481 return 0;
03482 }
03483 #endif //#ifndef TOLUA_DISABLE
03484
03485
03486 #ifndef TOLUA_DISABLE_tolua_get_CResourceInfo_IconX
03487 static int tolua_get_CResourceInfo_IconX(lua_State* tolua_S)
03488 {
03489 CResourceInfo* self = (CResourceInfo*) tolua_tousertype(tolua_S,1,0);
03490 #ifndef TOLUA_RELEASE
03491 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'IconX'",NULL);
03492 #endif
03493 tolua_pushnumber(tolua_S,(lua_Number)self->IconX);
03494 return 1;
03495 }
03496 #endif //#ifndef TOLUA_DISABLE
03497
03498
03499 #ifndef TOLUA_DISABLE_tolua_set_CResourceInfo_IconX
03500 static int tolua_set_CResourceInfo_IconX(lua_State* tolua_S)
03501 {
03502 CResourceInfo* self = (CResourceInfo*) tolua_tousertype(tolua_S,1,0);
03503 #ifndef TOLUA_RELEASE
03504 tolua_Error tolua_err;
03505 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'IconX'",NULL);
03506 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
03507 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
03508 #endif
03509 self->IconX = ((int) tolua_tonumber(tolua_S,2,0))
03510 ;
03511 return 0;
03512 }
03513 #endif //#ifndef TOLUA_DISABLE
03514
03515
03516 #ifndef TOLUA_DISABLE_tolua_get_CResourceInfo_IconY
03517 static int tolua_get_CResourceInfo_IconY(lua_State* tolua_S)
03518 {
03519 CResourceInfo* self = (CResourceInfo*) tolua_tousertype(tolua_S,1,0);
03520 #ifndef TOLUA_RELEASE
03521 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'IconY'",NULL);
03522 #endif
03523 tolua_pushnumber(tolua_S,(lua_Number)self->IconY);
03524 return 1;
03525 }
03526 #endif //#ifndef TOLUA_DISABLE
03527
03528
03529 #ifndef TOLUA_DISABLE_tolua_set_CResourceInfo_IconY
03530 static int tolua_set_CResourceInfo_IconY(lua_State* tolua_S)
03531 {
03532 CResourceInfo* self = (CResourceInfo*) tolua_tousertype(tolua_S,1,0);
03533 #ifndef TOLUA_RELEASE
03534 tolua_Error tolua_err;
03535 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'IconY'",NULL);
03536 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
03537 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
03538 #endif
03539 self->IconY = ((int) tolua_tonumber(tolua_S,2,0))
03540 ;
03541 return 0;
03542 }
03543 #endif //#ifndef TOLUA_DISABLE
03544
03545
03546 #ifndef TOLUA_DISABLE_tolua_get_CResourceInfo_TextX
03547 static int tolua_get_CResourceInfo_TextX(lua_State* tolua_S)
03548 {
03549 CResourceInfo* self = (CResourceInfo*) tolua_tousertype(tolua_S,1,0);
03550 #ifndef TOLUA_RELEASE
03551 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TextX'",NULL);
03552 #endif
03553 tolua_pushnumber(tolua_S,(lua_Number)self->TextX);
03554 return 1;
03555 }
03556 #endif //#ifndef TOLUA_DISABLE
03557
03558
03559 #ifndef TOLUA_DISABLE_tolua_set_CResourceInfo_TextX
03560 static int tolua_set_CResourceInfo_TextX(lua_State* tolua_S)
03561 {
03562 CResourceInfo* self = (CResourceInfo*) tolua_tousertype(tolua_S,1,0);
03563 #ifndef TOLUA_RELEASE
03564 tolua_Error tolua_err;
03565 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TextX'",NULL);
03566 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
03567 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
03568 #endif
03569 self->TextX = ((int) tolua_tonumber(tolua_S,2,0))
03570 ;
03571 return 0;
03572 }
03573 #endif //#ifndef TOLUA_DISABLE
03574
03575
03576 #ifndef TOLUA_DISABLE_tolua_get_CResourceInfo_TextY
03577 static int tolua_get_CResourceInfo_TextY(lua_State* tolua_S)
03578 {
03579 CResourceInfo* self = (CResourceInfo*) tolua_tousertype(tolua_S,1,0);
03580 #ifndef TOLUA_RELEASE
03581 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TextY'",NULL);
03582 #endif
03583 tolua_pushnumber(tolua_S,(lua_Number)self->TextY);
03584 return 1;
03585 }
03586 #endif //#ifndef TOLUA_DISABLE
03587
03588
03589 #ifndef TOLUA_DISABLE_tolua_set_CResourceInfo_TextY
03590 static int tolua_set_CResourceInfo_TextY(lua_State* tolua_S)
03591 {
03592 CResourceInfo* self = (CResourceInfo*) tolua_tousertype(tolua_S,1,0);
03593 #ifndef TOLUA_RELEASE
03594 tolua_Error tolua_err;
03595 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TextY'",NULL);
03596 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
03597 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
03598 #endif
03599 self->TextY = ((int) tolua_tonumber(tolua_S,2,0))
03600 ;
03601 return 0;
03602 }
03603 #endif //#ifndef TOLUA_DISABLE
03604
03605
03606 #ifndef TOLUA_DISABLE_tolua_get_CInfoPanel_X
03607 static int tolua_get_CInfoPanel_X(lua_State* tolua_S)
03608 {
03609 CInfoPanel* self = (CInfoPanel*) tolua_tousertype(tolua_S,1,0);
03610 #ifndef TOLUA_RELEASE
03611 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'X'",NULL);
03612 #endif
03613 tolua_pushnumber(tolua_S,(lua_Number)self->X);
03614 return 1;
03615 }
03616 #endif //#ifndef TOLUA_DISABLE
03617
03618
03619 #ifndef TOLUA_DISABLE_tolua_set_CInfoPanel_X
03620 static int tolua_set_CInfoPanel_X(lua_State* tolua_S)
03621 {
03622 CInfoPanel* self = (CInfoPanel*) tolua_tousertype(tolua_S,1,0);
03623 #ifndef TOLUA_RELEASE
03624 tolua_Error tolua_err;
03625 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'X'",NULL);
03626 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
03627 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
03628 #endif
03629 self->X = ((int) tolua_tonumber(tolua_S,2,0))
03630 ;
03631 return 0;
03632 }
03633 #endif //#ifndef TOLUA_DISABLE
03634
03635
03636 #ifndef TOLUA_DISABLE_tolua_get_CInfoPanel_Y
03637 static int tolua_get_CInfoPanel_Y(lua_State* tolua_S)
03638 {
03639 CInfoPanel* self = (CInfoPanel*) tolua_tousertype(tolua_S,1,0);
03640 #ifndef TOLUA_RELEASE
03641 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Y'",NULL);
03642 #endif
03643 tolua_pushnumber(tolua_S,(lua_Number)self->Y);
03644 return 1;
03645 }
03646 #endif //#ifndef TOLUA_DISABLE
03647
03648
03649 #ifndef TOLUA_DISABLE_tolua_set_CInfoPanel_Y
03650 static int tolua_set_CInfoPanel_Y(lua_State* tolua_S)
03651 {
03652 CInfoPanel* self = (CInfoPanel*) tolua_tousertype(tolua_S,1,0);
03653 #ifndef TOLUA_RELEASE
03654 tolua_Error tolua_err;
03655 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Y'",NULL);
03656 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
03657 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
03658 #endif
03659 self->Y = ((int) tolua_tonumber(tolua_S,2,0))
03660 ;
03661 return 0;
03662 }
03663 #endif //#ifndef TOLUA_DISABLE
03664
03665
03666 #ifndef TOLUA_DISABLE_tolua_stratagus_CStatusLine_Set00
03667 static int tolua_stratagus_CStatusLine_Set00(lua_State* tolua_S)
03668 {
03669 #ifndef TOLUA_RELEASE
03670 tolua_Error tolua_err;
03671 if (
03672 !tolua_isusertype(tolua_S,1,"CStatusLine",0,&tolua_err) ||
03673 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
03674 !tolua_isnoobj(tolua_S,3,&tolua_err)
03675 )
03676 goto tolua_lerror;
03677 else
03678 #endif
03679 {
03680 CStatusLine* self = (CStatusLine*) tolua_tousertype(tolua_S,1,0);
03681 const std::string status = ((const std::string) tolua_tocppstring(tolua_S,2,0));
03682 #ifndef TOLUA_RELEASE
03683 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Set'",NULL);
03684 #endif
03685 {
03686 self->Set(status);
03687 }
03688 }
03689 return 0;
03690 #ifndef TOLUA_RELEASE
03691 tolua_lerror:
03692 tolua_error(tolua_S,"#ferror in function 'Set'.",&tolua_err);
03693 return 0;
03694 #endif
03695 }
03696 #endif //#ifndef TOLUA_DISABLE
03697
03698
03699 #ifndef TOLUA_DISABLE_tolua_stratagus_CStatusLine_Get00
03700 static int tolua_stratagus_CStatusLine_Get00(lua_State* tolua_S)
03701 {
03702 #ifndef TOLUA_RELEASE
03703 tolua_Error tolua_err;
03704 if (
03705 !tolua_isusertype(tolua_S,1,"CStatusLine",0,&tolua_err) ||
03706 !tolua_isnoobj(tolua_S,2,&tolua_err)
03707 )
03708 goto tolua_lerror;
03709 else
03710 #endif
03711 {
03712 CStatusLine* self = (CStatusLine*) tolua_tousertype(tolua_S,1,0);
03713 #ifndef TOLUA_RELEASE
03714 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Get'",NULL);
03715 #endif
03716 {
03717 const std::string tolua_ret = (const std::string) self->Get();
03718 tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
03719 }
03720 }
03721 return 1;
03722 #ifndef TOLUA_RELEASE
03723 tolua_lerror:
03724 tolua_error(tolua_S,"#ferror in function 'Get'.",&tolua_err);
03725 return 0;
03726 #endif
03727 }
03728 #endif //#ifndef TOLUA_DISABLE
03729
03730
03731 #ifndef TOLUA_DISABLE_tolua_stratagus_CStatusLine_Clear00
03732 static int tolua_stratagus_CStatusLine_Clear00(lua_State* tolua_S)
03733 {
03734 #ifndef TOLUA_RELEASE
03735 tolua_Error tolua_err;
03736 if (
03737 !tolua_isusertype(tolua_S,1,"CStatusLine",0,&tolua_err) ||
03738 !tolua_isnoobj(tolua_S,2,&tolua_err)
03739 )
03740 goto tolua_lerror;
03741 else
03742 #endif
03743 {
03744 CStatusLine* self = (CStatusLine*) tolua_tousertype(tolua_S,1,0);
03745 #ifndef TOLUA_RELEASE
03746 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Clear'",NULL);
03747 #endif
03748 {
03749 self->Clear();
03750 }
03751 }
03752 return 0;
03753 #ifndef TOLUA_RELEASE
03754 tolua_lerror:
03755 tolua_error(tolua_S,"#ferror in function 'Clear'.",&tolua_err);
03756 return 0;
03757 #endif
03758 }
03759 #endif //#ifndef TOLUA_DISABLE
03760
03761
03762 #ifndef TOLUA_DISABLE_tolua_get_CStatusLine_Width
03763 static int tolua_get_CStatusLine_Width(lua_State* tolua_S)
03764 {
03765 CStatusLine* self = (CStatusLine*) tolua_tousertype(tolua_S,1,0);
03766 #ifndef TOLUA_RELEASE
03767 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Width'",NULL);
03768 #endif
03769 tolua_pushnumber(tolua_S,(lua_Number)self->Width);
03770 return 1;
03771 }
03772 #endif //#ifndef TOLUA_DISABLE
03773
03774
03775 #ifndef TOLUA_DISABLE_tolua_set_CStatusLine_Width
03776 static int tolua_set_CStatusLine_Width(lua_State* tolua_S)
03777 {
03778 CStatusLine* self = (CStatusLine*) tolua_tousertype(tolua_S,1,0);
03779 #ifndef TOLUA_RELEASE
03780 tolua_Error tolua_err;
03781 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Width'",NULL);
03782 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
03783 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
03784 #endif
03785 self->Width = ((int) tolua_tonumber(tolua_S,2,0))
03786 ;
03787 return 0;
03788 }
03789 #endif //#ifndef TOLUA_DISABLE
03790
03791
03792 #ifndef TOLUA_DISABLE_tolua_get_CStatusLine_TextX
03793 static int tolua_get_CStatusLine_TextX(lua_State* tolua_S)
03794 {
03795 CStatusLine* self = (CStatusLine*) tolua_tousertype(tolua_S,1,0);
03796 #ifndef TOLUA_RELEASE
03797 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TextX'",NULL);
03798 #endif
03799 tolua_pushnumber(tolua_S,(lua_Number)self->TextX);
03800 return 1;
03801 }
03802 #endif //#ifndef TOLUA_DISABLE
03803
03804
03805 #ifndef TOLUA_DISABLE_tolua_set_CStatusLine_TextX
03806 static int tolua_set_CStatusLine_TextX(lua_State* tolua_S)
03807 {
03808 CStatusLine* self = (CStatusLine*) tolua_tousertype(tolua_S,1,0);
03809 #ifndef TOLUA_RELEASE
03810 tolua_Error tolua_err;
03811 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TextX'",NULL);
03812 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
03813 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
03814 #endif
03815 self->TextX = ((int) tolua_tonumber(tolua_S,2,0))
03816 ;
03817 return 0;
03818 }
03819 #endif //#ifndef TOLUA_DISABLE
03820
03821
03822 #ifndef TOLUA_DISABLE_tolua_get_CStatusLine_TextY
03823 static int tolua_get_CStatusLine_TextY(lua_State* tolua_S)
03824 {
03825 CStatusLine* self = (CStatusLine*) tolua_tousertype(tolua_S,1,0);
03826 #ifndef TOLUA_RELEASE
03827 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TextY'",NULL);
03828 #endif
03829 tolua_pushnumber(tolua_S,(lua_Number)self->TextY);
03830 return 1;
03831 }
03832 #endif //#ifndef TOLUA_DISABLE
03833
03834
03835 #ifndef TOLUA_DISABLE_tolua_set_CStatusLine_TextY
03836 static int tolua_set_CStatusLine_TextY(lua_State* tolua_S)
03837 {
03838 CStatusLine* self = (CStatusLine*) tolua_tousertype(tolua_S,1,0);
03839 #ifndef TOLUA_RELEASE
03840 tolua_Error tolua_err;
03841 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TextY'",NULL);
03842 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
03843 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
03844 #endif
03845 self->TextY = ((int) tolua_tonumber(tolua_S,2,0))
03846 ;
03847 return 0;
03848 }
03849 #endif //#ifndef TOLUA_DISABLE
03850
03851
03852 #ifndef TOLUA_DISABLE_tolua_get_CStatusLine_Font_ptr
03853 static int tolua_get_CStatusLine_Font_ptr(lua_State* tolua_S)
03854 {
03855 CStatusLine* self = (CStatusLine*) tolua_tousertype(tolua_S,1,0);
03856 #ifndef TOLUA_RELEASE
03857 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Font'",NULL);
03858 #endif
03859 tolua_pushusertype(tolua_S,(void*)self->Font,"CFont");
03860 return 1;
03861 }
03862 #endif //#ifndef TOLUA_DISABLE
03863
03864
03865 #ifndef TOLUA_DISABLE_tolua_set_CStatusLine_Font_ptr
03866 static int tolua_set_CStatusLine_Font_ptr(lua_State* tolua_S)
03867 {
03868 CStatusLine* self = (CStatusLine*) tolua_tousertype(tolua_S,1,0);
03869 #ifndef TOLUA_RELEASE
03870 tolua_Error tolua_err;
03871 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Font'",NULL);
03872 if (!tolua_isusertype(tolua_S,2,"CFont",0,&tolua_err))
03873 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
03874 #endif
03875 self->Font = ((CFont*) tolua_tousertype(tolua_S,2,0))
03876 ;
03877 return 0;
03878 }
03879 #endif //#ifndef TOLUA_DISABLE
03880
03881
03882 #ifndef TOLUA_DISABLE_tolua_get_CUITimer_X
03883 static int tolua_get_CUITimer_X(lua_State* tolua_S)
03884 {
03885 CUITimer* self = (CUITimer*) tolua_tousertype(tolua_S,1,0);
03886 #ifndef TOLUA_RELEASE
03887 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'X'",NULL);
03888 #endif
03889 tolua_pushnumber(tolua_S,(lua_Number)self->X);
03890 return 1;
03891 }
03892 #endif //#ifndef TOLUA_DISABLE
03893
03894
03895 #ifndef TOLUA_DISABLE_tolua_set_CUITimer_X
03896 static int tolua_set_CUITimer_X(lua_State* tolua_S)
03897 {
03898 CUITimer* self = (CUITimer*) tolua_tousertype(tolua_S,1,0);
03899 #ifndef TOLUA_RELEASE
03900 tolua_Error tolua_err;
03901 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'X'",NULL);
03902 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
03903 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
03904 #endif
03905 self->X = ((int) tolua_tonumber(tolua_S,2,0))
03906 ;
03907 return 0;
03908 }
03909 #endif //#ifndef TOLUA_DISABLE
03910
03911
03912 #ifndef TOLUA_DISABLE_tolua_get_CUITimer_Y
03913 static int tolua_get_CUITimer_Y(lua_State* tolua_S)
03914 {
03915 CUITimer* self = (CUITimer*) tolua_tousertype(tolua_S,1,0);
03916 #ifndef TOLUA_RELEASE
03917 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Y'",NULL);
03918 #endif
03919 tolua_pushnumber(tolua_S,(lua_Number)self->Y);
03920 return 1;
03921 }
03922 #endif //#ifndef TOLUA_DISABLE
03923
03924
03925 #ifndef TOLUA_DISABLE_tolua_set_CUITimer_Y
03926 static int tolua_set_CUITimer_Y(lua_State* tolua_S)
03927 {
03928 CUITimer* self = (CUITimer*) tolua_tousertype(tolua_S,1,0);
03929 #ifndef TOLUA_RELEASE
03930 tolua_Error tolua_err;
03931 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Y'",NULL);
03932 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
03933 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
03934 #endif
03935 self->Y = ((int) tolua_tonumber(tolua_S,2,0))
03936 ;
03937 return 0;
03938 }
03939 #endif //#ifndef TOLUA_DISABLE
03940
03941
03942 #ifndef TOLUA_DISABLE_tolua_get_CUITimer_Font_ptr
03943 static int tolua_get_CUITimer_Font_ptr(lua_State* tolua_S)
03944 {
03945 CUITimer* self = (CUITimer*) tolua_tousertype(tolua_S,1,0);
03946 #ifndef TOLUA_RELEASE
03947 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Font'",NULL);
03948 #endif
03949 tolua_pushusertype(tolua_S,(void*)self->Font,"CFont");
03950 return 1;
03951 }
03952 #endif //#ifndef TOLUA_DISABLE
03953
03954
03955 #ifndef TOLUA_DISABLE_tolua_set_CUITimer_Font_ptr
03956 static int tolua_set_CUITimer_Font_ptr(lua_State* tolua_S)
03957 {
03958 CUITimer* self = (CUITimer*) tolua_tousertype(tolua_S,1,0);
03959 #ifndef TOLUA_RELEASE
03960 tolua_Error tolua_err;
03961 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Font'",NULL);
03962 if (!tolua_isusertype(tolua_S,2,"CFont",0,&tolua_err))
03963 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
03964 #endif
03965 self->Font = ((CFont*) tolua_tousertype(tolua_S,2,0))
03966 ;
03967 return 0;
03968 }
03969 #endif //#ifndef TOLUA_DISABLE
03970
03971
03972 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_NormalFontColor
03973 static int tolua_get_CUserInterface_NormalFontColor(lua_State* tolua_S)
03974 {
03975 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
03976 #ifndef TOLUA_RELEASE
03977 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'NormalFontColor'",NULL);
03978 #endif
03979 tolua_pushcppstring(tolua_S,(const char*)self->NormalFontColor);
03980 return 1;
03981 }
03982 #endif //#ifndef TOLUA_DISABLE
03983
03984
03985 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_NormalFontColor
03986 static int tolua_set_CUserInterface_NormalFontColor(lua_State* tolua_S)
03987 {
03988 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
03989 #ifndef TOLUA_RELEASE
03990 tolua_Error tolua_err;
03991 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'NormalFontColor'",NULL);
03992 if (!tolua_iscppstring(tolua_S,2,0,&tolua_err))
03993 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
03994 #endif
03995 self->NormalFontColor = ((string) tolua_tocppstring(tolua_S,2,0))
03996 ;
03997 return 0;
03998 }
03999 #endif //#ifndef TOLUA_DISABLE
04000
04001
04002 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_ReverseFontColor
04003 static int tolua_get_CUserInterface_ReverseFontColor(lua_State* tolua_S)
04004 {
04005 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04006 #ifndef TOLUA_RELEASE
04007 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ReverseFontColor'",NULL);
04008 #endif
04009 tolua_pushcppstring(tolua_S,(const char*)self->ReverseFontColor);
04010 return 1;
04011 }
04012 #endif //#ifndef TOLUA_DISABLE
04013
04014
04015 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_ReverseFontColor
04016 static int tolua_set_CUserInterface_ReverseFontColor(lua_State* tolua_S)
04017 {
04018 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04019 #ifndef TOLUA_RELEASE
04020 tolua_Error tolua_err;
04021 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ReverseFontColor'",NULL);
04022 if (!tolua_iscppstring(tolua_S,2,0,&tolua_err))
04023 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04024 #endif
04025 self->ReverseFontColor = ((string) tolua_tocppstring(tolua_S,2,0))
04026 ;
04027 return 0;
04028 }
04029 #endif //#ifndef TOLUA_DISABLE
04030
04031
04032 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_Fillers
04033 static int tolua_get_CUserInterface_Fillers(lua_State* tolua_S)
04034 {
04035 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04036 #ifndef TOLUA_RELEASE
04037 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Fillers'",NULL);
04038 #endif
04039 tolua_pushusertype(tolua_S,(void*)&self->Fillers,"vector<CFiller>");
04040 return 1;
04041 }
04042 #endif //#ifndef TOLUA_DISABLE
04043
04044
04045 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_Fillers
04046 static int tolua_set_CUserInterface_Fillers(lua_State* tolua_S)
04047 {
04048 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04049 #ifndef TOLUA_RELEASE
04050 tolua_Error tolua_err;
04051 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Fillers'",NULL);
04052 if (!tolua_isusertype(tolua_S,2,"vector<CFiller>",0,&tolua_err))
04053 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04054 #endif
04055 self->Fillers = *((vector<CFiller>*) tolua_tousertype(tolua_S,2,0))
04056 ;
04057 return 0;
04058 }
04059 #endif //#ifndef TOLUA_DISABLE
04060
04061
04062 #ifndef TOLUA_DISABLE_tolua_get_stratagus_CUserInterface_Resources
04063 static int tolua_get_stratagus_CUserInterface_Resources(lua_State* tolua_S)
04064 {
04065 int tolua_index;
04066 CUserInterface* self;
04067 lua_pushstring(tolua_S,".self");
04068 lua_rawget(tolua_S,1);
04069 self = (CUserInterface*) lua_touserdata(tolua_S,-1);
04070 #ifndef TOLUA_RELEASE
04071 {
04072 tolua_Error tolua_err;
04073 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
04074 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
04075 }
04076 #endif
04077 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
04078 #ifndef TOLUA_RELEASE
04079 if (tolua_index<0 || tolua_index>=MaxCosts)
04080 tolua_error(tolua_S,"array indexing out of range.",NULL);
04081 #endif
04082 tolua_pushusertype(tolua_S,(void*)&self->Resources[tolua_index],"CResourceInfo");
04083 return 1;
04084 }
04085 #endif //#ifndef TOLUA_DISABLE
04086
04087
04088 #ifndef TOLUA_DISABLE_tolua_set_stratagus_CUserInterface_Resources
04089 static int tolua_set_stratagus_CUserInterface_Resources(lua_State* tolua_S)
04090 {
04091 int tolua_index;
04092 CUserInterface* self;
04093 lua_pushstring(tolua_S,".self");
04094 lua_rawget(tolua_S,1);
04095 self = (CUserInterface*) lua_touserdata(tolua_S,-1);
04096 #ifndef TOLUA_RELEASE
04097 {
04098 tolua_Error tolua_err;
04099 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
04100 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
04101 }
04102 #endif
04103 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
04104 #ifndef TOLUA_RELEASE
04105 if (tolua_index<0 || tolua_index>=MaxCosts)
04106 tolua_error(tolua_S,"array indexing out of range.",NULL);
04107 #endif
04108 self->Resources[tolua_index] = *((CResourceInfo*) tolua_tousertype(tolua_S,3,0));
04109 return 0;
04110 }
04111 #endif //#ifndef TOLUA_DISABLE
04112
04113
04114 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_InfoPanel
04115 static int tolua_get_CUserInterface_InfoPanel(lua_State* tolua_S)
04116 {
04117 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04118 #ifndef TOLUA_RELEASE
04119 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'InfoPanel'",NULL);
04120 #endif
04121 tolua_pushusertype(tolua_S,(void*)&self->InfoPanel,"CInfoPanel");
04122 return 1;
04123 }
04124 #endif //#ifndef TOLUA_DISABLE
04125
04126
04127 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_InfoPanel
04128 static int tolua_set_CUserInterface_InfoPanel(lua_State* tolua_S)
04129 {
04130 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04131 #ifndef TOLUA_RELEASE
04132 tolua_Error tolua_err;
04133 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'InfoPanel'",NULL);
04134 if (!tolua_isusertype(tolua_S,2,"CInfoPanel",0,&tolua_err))
04135 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04136 #endif
04137 self->InfoPanel = *((CInfoPanel*) tolua_tousertype(tolua_S,2,0))
04138 ;
04139 return 0;
04140 }
04141 #endif //#ifndef TOLUA_DISABLE
04142
04143
04144 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_SingleSelectedButton_ptr
04145 static int tolua_get_CUserInterface_SingleSelectedButton_ptr(lua_State* tolua_S)
04146 {
04147 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04148 #ifndef TOLUA_RELEASE
04149 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'SingleSelectedButton'",NULL);
04150 #endif
04151 tolua_pushusertype(tolua_S,(void*)self->SingleSelectedButton,"CUIButton");
04152 return 1;
04153 }
04154 #endif //#ifndef TOLUA_DISABLE
04155
04156
04157 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_SingleSelectedButton_ptr
04158 static int tolua_set_CUserInterface_SingleSelectedButton_ptr(lua_State* tolua_S)
04159 {
04160 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04161 #ifndef TOLUA_RELEASE
04162 tolua_Error tolua_err;
04163 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'SingleSelectedButton'",NULL);
04164 if (!tolua_isusertype(tolua_S,2,"CUIButton",0,&tolua_err))
04165 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04166 #endif
04167 self->SingleSelectedButton = ((CUIButton*) tolua_tousertype(tolua_S,2,0))
04168 ;
04169 return 0;
04170 }
04171 #endif //#ifndef TOLUA_DISABLE
04172
04173
04174 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_SelectedButtons
04175 static int tolua_get_CUserInterface_SelectedButtons(lua_State* tolua_S)
04176 {
04177 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04178 #ifndef TOLUA_RELEASE
04179 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'SelectedButtons'",NULL);
04180 #endif
04181 tolua_pushusertype(tolua_S,(void*)&self->SelectedButtons,"vector<CUIButton>");
04182 return 1;
04183 }
04184 #endif //#ifndef TOLUA_DISABLE
04185
04186
04187 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_SelectedButtons
04188 static int tolua_set_CUserInterface_SelectedButtons(lua_State* tolua_S)
04189 {
04190 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04191 #ifndef TOLUA_RELEASE
04192 tolua_Error tolua_err;
04193 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'SelectedButtons'",NULL);
04194 if (!tolua_isusertype(tolua_S,2,"vector<CUIButton>",0,&tolua_err))
04195 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04196 #endif
04197 self->SelectedButtons = *((vector<CUIButton>*) tolua_tousertype(tolua_S,2,0))
04198 ;
04199 return 0;
04200 }
04201 #endif //#ifndef TOLUA_DISABLE
04202
04203
04204 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_MaxSelectedFont_ptr
04205 static int tolua_get_CUserInterface_MaxSelectedFont_ptr(lua_State* tolua_S)
04206 {
04207 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04208 #ifndef TOLUA_RELEASE
04209 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MaxSelectedFont'",NULL);
04210 #endif
04211 tolua_pushusertype(tolua_S,(void*)self->MaxSelectedFont,"CFont");
04212 return 1;
04213 }
04214 #endif //#ifndef TOLUA_DISABLE
04215
04216
04217 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_MaxSelectedFont_ptr
04218 static int tolua_set_CUserInterface_MaxSelectedFont_ptr(lua_State* tolua_S)
04219 {
04220 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04221 #ifndef TOLUA_RELEASE
04222 tolua_Error tolua_err;
04223 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MaxSelectedFont'",NULL);
04224 if (!tolua_isusertype(tolua_S,2,"CFont",0,&tolua_err))
04225 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04226 #endif
04227 self->MaxSelectedFont = ((CFont*) tolua_tousertype(tolua_S,2,0))
04228 ;
04229 return 0;
04230 }
04231 #endif //#ifndef TOLUA_DISABLE
04232
04233
04234 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_MaxSelectedTextX
04235 static int tolua_get_CUserInterface_MaxSelectedTextX(lua_State* tolua_S)
04236 {
04237 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04238 #ifndef TOLUA_RELEASE
04239 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MaxSelectedTextX'",NULL);
04240 #endif
04241 tolua_pushnumber(tolua_S,(lua_Number)self->MaxSelectedTextX);
04242 return 1;
04243 }
04244 #endif //#ifndef TOLUA_DISABLE
04245
04246
04247 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_MaxSelectedTextX
04248 static int tolua_set_CUserInterface_MaxSelectedTextX(lua_State* tolua_S)
04249 {
04250 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04251 #ifndef TOLUA_RELEASE
04252 tolua_Error tolua_err;
04253 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MaxSelectedTextX'",NULL);
04254 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
04255 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04256 #endif
04257 self->MaxSelectedTextX = ((int) tolua_tonumber(tolua_S,2,0))
04258 ;
04259 return 0;
04260 }
04261 #endif //#ifndef TOLUA_DISABLE
04262
04263
04264 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_MaxSelectedTextY
04265 static int tolua_get_CUserInterface_MaxSelectedTextY(lua_State* tolua_S)
04266 {
04267 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04268 #ifndef TOLUA_RELEASE
04269 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MaxSelectedTextY'",NULL);
04270 #endif
04271 tolua_pushnumber(tolua_S,(lua_Number)self->MaxSelectedTextY);
04272 return 1;
04273 }
04274 #endif //#ifndef TOLUA_DISABLE
04275
04276
04277 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_MaxSelectedTextY
04278 static int tolua_set_CUserInterface_MaxSelectedTextY(lua_State* tolua_S)
04279 {
04280 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04281 #ifndef TOLUA_RELEASE
04282 tolua_Error tolua_err;
04283 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MaxSelectedTextY'",NULL);
04284 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
04285 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04286 #endif
04287 self->MaxSelectedTextY = ((int) tolua_tonumber(tolua_S,2,0))
04288 ;
04289 return 0;
04290 }
04291 #endif //#ifndef TOLUA_DISABLE
04292
04293
04294 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_SingleTrainingButton_ptr
04295 static int tolua_get_CUserInterface_SingleTrainingButton_ptr(lua_State* tolua_S)
04296 {
04297 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04298 #ifndef TOLUA_RELEASE
04299 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'SingleTrainingButton'",NULL);
04300 #endif
04301 tolua_pushusertype(tolua_S,(void*)self->SingleTrainingButton,"CUIButton");
04302 return 1;
04303 }
04304 #endif //#ifndef TOLUA_DISABLE
04305
04306
04307 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_SingleTrainingButton_ptr
04308 static int tolua_set_CUserInterface_SingleTrainingButton_ptr(lua_State* tolua_S)
04309 {
04310 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04311 #ifndef TOLUA_RELEASE
04312 tolua_Error tolua_err;
04313 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'SingleTrainingButton'",NULL);
04314 if (!tolua_isusertype(tolua_S,2,"CUIButton",0,&tolua_err))
04315 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04316 #endif
04317 self->SingleTrainingButton = ((CUIButton*) tolua_tousertype(tolua_S,2,0))
04318 ;
04319 return 0;
04320 }
04321 #endif //#ifndef TOLUA_DISABLE
04322
04323
04324 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_TrainingButtons
04325 static int tolua_get_CUserInterface_TrainingButtons(lua_State* tolua_S)
04326 {
04327 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04328 #ifndef TOLUA_RELEASE
04329 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TrainingButtons'",NULL);
04330 #endif
04331 tolua_pushusertype(tolua_S,(void*)&self->TrainingButtons,"vector<CUIButton>");
04332 return 1;
04333 }
04334 #endif //#ifndef TOLUA_DISABLE
04335
04336
04337 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_TrainingButtons
04338 static int tolua_set_CUserInterface_TrainingButtons(lua_State* tolua_S)
04339 {
04340 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04341 #ifndef TOLUA_RELEASE
04342 tolua_Error tolua_err;
04343 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TrainingButtons'",NULL);
04344 if (!tolua_isusertype(tolua_S,2,"vector<CUIButton>",0,&tolua_err))
04345 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04346 #endif
04347 self->TrainingButtons = *((vector<CUIButton>*) tolua_tousertype(tolua_S,2,0))
04348 ;
04349 return 0;
04350 }
04351 #endif //#ifndef TOLUA_DISABLE
04352
04353
04354 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_TransportingButtons
04355 static int tolua_get_CUserInterface_TransportingButtons(lua_State* tolua_S)
04356 {
04357 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04358 #ifndef TOLUA_RELEASE
04359 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TransportingButtons'",NULL);
04360 #endif
04361 tolua_pushusertype(tolua_S,(void*)&self->TransportingButtons,"vector<CUIButton>");
04362 return 1;
04363 }
04364 #endif //#ifndef TOLUA_DISABLE
04365
04366
04367 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_TransportingButtons
04368 static int tolua_set_CUserInterface_TransportingButtons(lua_State* tolua_S)
04369 {
04370 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04371 #ifndef TOLUA_RELEASE
04372 tolua_Error tolua_err;
04373 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TransportingButtons'",NULL);
04374 if (!tolua_isusertype(tolua_S,2,"vector<CUIButton>",0,&tolua_err))
04375 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04376 #endif
04377 self->TransportingButtons = *((vector<CUIButton>*) tolua_tousertype(tolua_S,2,0))
04378 ;
04379 return 0;
04380 }
04381 #endif //#ifndef TOLUA_DISABLE
04382
04383
04384 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_CompletedBarColorRGB
04385 static int tolua_get_CUserInterface_CompletedBarColorRGB(lua_State* tolua_S)
04386 {
04387 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04388 #ifndef TOLUA_RELEASE
04389 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'CompletedBarColorRGB'",NULL);
04390 #endif
04391 tolua_pushusertype(tolua_S,(void*)&self->CompletedBarColorRGB,"CColor");
04392 return 1;
04393 }
04394 #endif //#ifndef TOLUA_DISABLE
04395
04396
04397 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_CompletedBarColorRGB
04398 static int tolua_set_CUserInterface_CompletedBarColorRGB(lua_State* tolua_S)
04399 {
04400 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04401 #ifndef TOLUA_RELEASE
04402 tolua_Error tolua_err;
04403 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'CompletedBarColorRGB'",NULL);
04404 if (!tolua_isusertype(tolua_S,2,"CColor",0,&tolua_err))
04405 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04406 #endif
04407 self->CompletedBarColorRGB = *((CColor*) tolua_tousertype(tolua_S,2,0))
04408 ;
04409 return 0;
04410 }
04411 #endif //#ifndef TOLUA_DISABLE
04412
04413
04414 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_CompletedBarShadow
04415 static int tolua_get_CUserInterface_CompletedBarShadow(lua_State* tolua_S)
04416 {
04417 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04418 #ifndef TOLUA_RELEASE
04419 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'CompletedBarShadow'",NULL);
04420 #endif
04421 tolua_pushboolean(tolua_S,(bool)self->CompletedBarShadow);
04422 return 1;
04423 }
04424 #endif //#ifndef TOLUA_DISABLE
04425
04426
04427 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_CompletedBarShadow
04428 static int tolua_set_CUserInterface_CompletedBarShadow(lua_State* tolua_S)
04429 {
04430 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04431 #ifndef TOLUA_RELEASE
04432 tolua_Error tolua_err;
04433 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'CompletedBarShadow'",NULL);
04434 if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
04435 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04436 #endif
04437 self->CompletedBarShadow = ((bool) tolua_toboolean(tolua_S,2,0))
04438 ;
04439 return 0;
04440 }
04441 #endif //#ifndef TOLUA_DISABLE
04442
04443
04444 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_ButtonPanel
04445 static int tolua_get_CUserInterface_ButtonPanel(lua_State* tolua_S)
04446 {
04447 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04448 #ifndef TOLUA_RELEASE
04449 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ButtonPanel'",NULL);
04450 #endif
04451 tolua_pushusertype(tolua_S,(void*)&self->ButtonPanel,"CButtonPanel");
04452 return 1;
04453 }
04454 #endif //#ifndef TOLUA_DISABLE
04455
04456
04457 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_ButtonPanel
04458 static int tolua_set_CUserInterface_ButtonPanel(lua_State* tolua_S)
04459 {
04460 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04461 #ifndef TOLUA_RELEASE
04462 tolua_Error tolua_err;
04463 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ButtonPanel'",NULL);
04464 if (!tolua_isusertype(tolua_S,2,"CButtonPanel",0,&tolua_err))
04465 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04466 #endif
04467 self->ButtonPanel = *((CButtonPanel*) tolua_tousertype(tolua_S,2,0))
04468 ;
04469 return 0;
04470 }
04471 #endif //#ifndef TOLUA_DISABLE
04472
04473
04474 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_PieMenu
04475 static int tolua_get_CUserInterface_PieMenu(lua_State* tolua_S)
04476 {
04477 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04478 #ifndef TOLUA_RELEASE
04479 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'PieMenu'",NULL);
04480 #endif
04481 tolua_pushusertype(tolua_S,(void*)&self->PieMenu,"CPieMenu");
04482 return 1;
04483 }
04484 #endif //#ifndef TOLUA_DISABLE
04485
04486
04487 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_PieMenu
04488 static int tolua_set_CUserInterface_PieMenu(lua_State* tolua_S)
04489 {
04490 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04491 #ifndef TOLUA_RELEASE
04492 tolua_Error tolua_err;
04493 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'PieMenu'",NULL);
04494 if (!tolua_isusertype(tolua_S,2,"CPieMenu",0,&tolua_err))
04495 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04496 #endif
04497 self->PieMenu = *((CPieMenu*) tolua_tousertype(tolua_S,2,0))
04498 ;
04499 return 0;
04500 }
04501 #endif //#ifndef TOLUA_DISABLE
04502
04503
04504 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_MouseViewport_ptr
04505 static int tolua_get_CUserInterface_MouseViewport_ptr(lua_State* tolua_S)
04506 {
04507 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04508 #ifndef TOLUA_RELEASE
04509 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MouseViewport'",NULL);
04510 #endif
04511 tolua_pushusertype(tolua_S,(void*)self->MouseViewport,"CViewport");
04512 return 1;
04513 }
04514 #endif //#ifndef TOLUA_DISABLE
04515
04516
04517 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_MouseViewport_ptr
04518 static int tolua_set_CUserInterface_MouseViewport_ptr(lua_State* tolua_S)
04519 {
04520 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04521 #ifndef TOLUA_RELEASE
04522 tolua_Error tolua_err;
04523 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MouseViewport'",NULL);
04524 if (!tolua_isusertype(tolua_S,2,"CViewport",0,&tolua_err))
04525 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04526 #endif
04527 self->MouseViewport = ((CViewport*) tolua_tousertype(tolua_S,2,0))
04528 ;
04529 return 0;
04530 }
04531 #endif //#ifndef TOLUA_DISABLE
04532
04533
04534 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_MapArea
04535 static int tolua_get_CUserInterface_MapArea(lua_State* tolua_S)
04536 {
04537 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04538 #ifndef TOLUA_RELEASE
04539 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MapArea'",NULL);
04540 #endif
04541 tolua_pushusertype(tolua_S,(void*)&self->MapArea,"CMapArea");
04542 return 1;
04543 }
04544 #endif //#ifndef TOLUA_DISABLE
04545
04546
04547 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_MapArea
04548 static int tolua_set_CUserInterface_MapArea(lua_State* tolua_S)
04549 {
04550 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04551 #ifndef TOLUA_RELEASE
04552 tolua_Error tolua_err;
04553 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MapArea'",NULL);
04554 if (!tolua_isusertype(tolua_S,2,"CMapArea",0,&tolua_err))
04555 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04556 #endif
04557 self->MapArea = *((CMapArea*) tolua_tousertype(tolua_S,2,0))
04558 ;
04559 return 0;
04560 }
04561 #endif //#ifndef TOLUA_DISABLE
04562
04563
04564 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_MessageFont_ptr
04565 static int tolua_get_CUserInterface_MessageFont_ptr(lua_State* tolua_S)
04566 {
04567 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04568 #ifndef TOLUA_RELEASE
04569 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MessageFont'",NULL);
04570 #endif
04571 tolua_pushusertype(tolua_S,(void*)self->MessageFont,"CFont");
04572 return 1;
04573 }
04574 #endif //#ifndef TOLUA_DISABLE
04575
04576
04577 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_MessageFont_ptr
04578 static int tolua_set_CUserInterface_MessageFont_ptr(lua_State* tolua_S)
04579 {
04580 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04581 #ifndef TOLUA_RELEASE
04582 tolua_Error tolua_err;
04583 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MessageFont'",NULL);
04584 if (!tolua_isusertype(tolua_S,2,"CFont",0,&tolua_err))
04585 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04586 #endif
04587 self->MessageFont = ((CFont*) tolua_tousertype(tolua_S,2,0))
04588 ;
04589 return 0;
04590 }
04591 #endif //#ifndef TOLUA_DISABLE
04592
04593
04594 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_MessageScrollSpeed
04595 static int tolua_get_CUserInterface_MessageScrollSpeed(lua_State* tolua_S)
04596 {
04597 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04598 #ifndef TOLUA_RELEASE
04599 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MessageScrollSpeed'",NULL);
04600 #endif
04601 tolua_pushnumber(tolua_S,(lua_Number)self->MessageScrollSpeed);
04602 return 1;
04603 }
04604 #endif //#ifndef TOLUA_DISABLE
04605
04606
04607 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_MessageScrollSpeed
04608 static int tolua_set_CUserInterface_MessageScrollSpeed(lua_State* tolua_S)
04609 {
04610 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04611 #ifndef TOLUA_RELEASE
04612 tolua_Error tolua_err;
04613 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MessageScrollSpeed'",NULL);
04614 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
04615 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04616 #endif
04617 self->MessageScrollSpeed = ((int) tolua_tonumber(tolua_S,2,0))
04618 ;
04619 return 0;
04620 }
04621 #endif //#ifndef TOLUA_DISABLE
04622
04623
04624 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_MenuButton
04625 static int tolua_get_CUserInterface_MenuButton(lua_State* tolua_S)
04626 {
04627 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04628 #ifndef TOLUA_RELEASE
04629 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MenuButton'",NULL);
04630 #endif
04631 tolua_pushusertype(tolua_S,(void*)&self->MenuButton,"CUIButton");
04632 return 1;
04633 }
04634 #endif //#ifndef TOLUA_DISABLE
04635
04636
04637 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_MenuButton
04638 static int tolua_set_CUserInterface_MenuButton(lua_State* tolua_S)
04639 {
04640 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04641 #ifndef TOLUA_RELEASE
04642 tolua_Error tolua_err;
04643 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MenuButton'",NULL);
04644 if (!tolua_isusertype(tolua_S,2,"CUIButton",0,&tolua_err))
04645 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04646 #endif
04647 self->MenuButton = *((CUIButton*) tolua_tousertype(tolua_S,2,0))
04648 ;
04649 return 0;
04650 }
04651 #endif //#ifndef TOLUA_DISABLE
04652
04653
04654 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_NetworkMenuButton
04655 static int tolua_get_CUserInterface_NetworkMenuButton(lua_State* tolua_S)
04656 {
04657 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04658 #ifndef TOLUA_RELEASE
04659 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'NetworkMenuButton'",NULL);
04660 #endif
04661 tolua_pushusertype(tolua_S,(void*)&self->NetworkMenuButton,"CUIButton");
04662 return 1;
04663 }
04664 #endif //#ifndef TOLUA_DISABLE
04665
04666
04667 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_NetworkMenuButton
04668 static int tolua_set_CUserInterface_NetworkMenuButton(lua_State* tolua_S)
04669 {
04670 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04671 #ifndef TOLUA_RELEASE
04672 tolua_Error tolua_err;
04673 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'NetworkMenuButton'",NULL);
04674 if (!tolua_isusertype(tolua_S,2,"CUIButton",0,&tolua_err))
04675 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04676 #endif
04677 self->NetworkMenuButton = *((CUIButton*) tolua_tousertype(tolua_S,2,0))
04678 ;
04679 return 0;
04680 }
04681 #endif //#ifndef TOLUA_DISABLE
04682
04683
04684 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_NetworkDiplomacyButton
04685 static int tolua_get_CUserInterface_NetworkDiplomacyButton(lua_State* tolua_S)
04686 {
04687 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04688 #ifndef TOLUA_RELEASE
04689 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'NetworkDiplomacyButton'",NULL);
04690 #endif
04691 tolua_pushusertype(tolua_S,(void*)&self->NetworkDiplomacyButton,"CUIButton");
04692 return 1;
04693 }
04694 #endif //#ifndef TOLUA_DISABLE
04695
04696
04697 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_NetworkDiplomacyButton
04698 static int tolua_set_CUserInterface_NetworkDiplomacyButton(lua_State* tolua_S)
04699 {
04700 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04701 #ifndef TOLUA_RELEASE
04702 tolua_Error tolua_err;
04703 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'NetworkDiplomacyButton'",NULL);
04704 if (!tolua_isusertype(tolua_S,2,"CUIButton",0,&tolua_err))
04705 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04706 #endif
04707 self->NetworkDiplomacyButton = *((CUIButton*) tolua_tousertype(tolua_S,2,0))
04708 ;
04709 return 0;
04710 }
04711 #endif //#ifndef TOLUA_DISABLE
04712
04713
04714 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_Minimap
04715 static int tolua_get_CUserInterface_Minimap(lua_State* tolua_S)
04716 {
04717 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04718 #ifndef TOLUA_RELEASE
04719 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Minimap'",NULL);
04720 #endif
04721 tolua_pushusertype(tolua_S,(void*)&self->Minimap,"CMinimap");
04722 return 1;
04723 }
04724 #endif //#ifndef TOLUA_DISABLE
04725
04726
04727 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_Minimap
04728 static int tolua_set_CUserInterface_Minimap(lua_State* tolua_S)
04729 {
04730 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04731 #ifndef TOLUA_RELEASE
04732 tolua_Error tolua_err;
04733 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Minimap'",NULL);
04734 if (!tolua_isusertype(tolua_S,2,"CMinimap",0,&tolua_err))
04735 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04736 #endif
04737 self->Minimap = *((CMinimap*) tolua_tousertype(tolua_S,2,0))
04738 ;
04739 return 0;
04740 }
04741 #endif //#ifndef TOLUA_DISABLE
04742
04743
04744 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_StatusLine
04745 static int tolua_get_CUserInterface_StatusLine(lua_State* tolua_S)
04746 {
04747 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04748 #ifndef TOLUA_RELEASE
04749 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'StatusLine'",NULL);
04750 #endif
04751 tolua_pushusertype(tolua_S,(void*)&self->StatusLine,"CStatusLine");
04752 return 1;
04753 }
04754 #endif //#ifndef TOLUA_DISABLE
04755
04756
04757 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_StatusLine
04758 static int tolua_set_CUserInterface_StatusLine(lua_State* tolua_S)
04759 {
04760 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04761 #ifndef TOLUA_RELEASE
04762 tolua_Error tolua_err;
04763 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'StatusLine'",NULL);
04764 if (!tolua_isusertype(tolua_S,2,"CStatusLine",0,&tolua_err))
04765 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04766 #endif
04767 self->StatusLine = *((CStatusLine*) tolua_tousertype(tolua_S,2,0))
04768 ;
04769 return 0;
04770 }
04771 #endif //#ifndef TOLUA_DISABLE
04772
04773
04774 #ifndef TOLUA_DISABLE_tolua_get_CUserInterface_Timer
04775 static int tolua_get_CUserInterface_Timer(lua_State* tolua_S)
04776 {
04777 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04778 #ifndef TOLUA_RELEASE
04779 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Timer'",NULL);
04780 #endif
04781 tolua_pushusertype(tolua_S,(void*)&self->Timer,"CUITimer");
04782 return 1;
04783 }
04784 #endif //#ifndef TOLUA_DISABLE
04785
04786
04787 #ifndef TOLUA_DISABLE_tolua_set_CUserInterface_Timer
04788 static int tolua_set_CUserInterface_Timer(lua_State* tolua_S)
04789 {
04790 CUserInterface* self = (CUserInterface*) tolua_tousertype(tolua_S,1,0);
04791 #ifndef TOLUA_RELEASE
04792 tolua_Error tolua_err;
04793 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Timer'",NULL);
04794 if (!tolua_isusertype(tolua_S,2,"CUITimer",0,&tolua_err))
04795 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04796 #endif
04797 self->Timer = *((CUITimer*) tolua_tousertype(tolua_S,2,0))
04798 ;
04799 return 0;
04800 }
04801 #endif //#ifndef TOLUA_DISABLE
04802
04803
04804 #ifndef TOLUA_DISABLE_tolua_get_UI
04805 static int tolua_get_UI(lua_State* tolua_S)
04806 {
04807 tolua_pushusertype(tolua_S,(void*)&UI,"CUserInterface");
04808 return 1;
04809 }
04810 #endif //#ifndef TOLUA_DISABLE
04811
04812
04813 #ifndef TOLUA_DISABLE_tolua_set_UI
04814 static int tolua_set_UI(lua_State* tolua_S)
04815 {
04816 #ifndef TOLUA_RELEASE
04817 tolua_Error tolua_err;
04818 if (!tolua_isusertype(tolua_S,2,"CUserInterface",0,&tolua_err))
04819 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04820 #endif
04821 UI = *((CUserInterface*) tolua_tousertype(tolua_S,2,0))
04822 ;
04823 return 0;
04824 }
04825 #endif //#ifndef TOLUA_DISABLE
04826
04827
04828 #ifndef TOLUA_DISABLE_tolua_stratagus_CIcon_New00
04829 static int tolua_stratagus_CIcon_New00(lua_State* tolua_S)
04830 {
04831 #ifndef TOLUA_RELEASE
04832 tolua_Error tolua_err;
04833 if (
04834 !tolua_isusertable(tolua_S,1,"CIcon",0,&tolua_err) ||
04835 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
04836 !tolua_isnoobj(tolua_S,3,&tolua_err)
04837 )
04838 goto tolua_lerror;
04839 else
04840 #endif
04841 {
04842 const std::string ident = ((const std::string) tolua_tocppstring(tolua_S,2,0));
04843 {
04844 CIcon* tolua_ret = (CIcon*) CIcon::New(ident);
04845 tolua_pushusertype(tolua_S,(void*)tolua_ret,"CIcon");
04846 }
04847 }
04848 return 1;
04849 #ifndef TOLUA_RELEASE
04850 tolua_lerror:
04851 tolua_error(tolua_S,"#ferror in function 'New'.",&tolua_err);
04852 return 0;
04853 #endif
04854 }
04855 #endif //#ifndef TOLUA_DISABLE
04856
04857
04858 #ifndef TOLUA_DISABLE_tolua_stratagus_CIcon_Get00
04859 static int tolua_stratagus_CIcon_Get00(lua_State* tolua_S)
04860 {
04861 #ifndef TOLUA_RELEASE
04862 tolua_Error tolua_err;
04863 if (
04864 !tolua_isusertable(tolua_S,1,"CIcon",0,&tolua_err) ||
04865 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
04866 !tolua_isnoobj(tolua_S,3,&tolua_err)
04867 )
04868 goto tolua_lerror;
04869 else
04870 #endif
04871 {
04872 const std::string ident = ((const std::string) tolua_tocppstring(tolua_S,2,0));
04873 {
04874 CIcon* tolua_ret = (CIcon*) CIcon::Get(ident);
04875 tolua_pushusertype(tolua_S,(void*)tolua_ret,"CIcon");
04876 }
04877 }
04878 return 1;
04879 #ifndef TOLUA_RELEASE
04880 tolua_lerror:
04881 tolua_error(tolua_S,"#ferror in function 'Get'.",&tolua_err);
04882 return 0;
04883 #endif
04884 }
04885 #endif //#ifndef TOLUA_DISABLE
04886
04887
04888 #ifndef TOLUA_DISABLE_tolua_get_CIcon_Ident
04889 static int tolua_get_CIcon_Ident(lua_State* tolua_S)
04890 {
04891 CIcon* self = (CIcon*) tolua_tousertype(tolua_S,1,0);
04892 #ifndef TOLUA_RELEASE
04893 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Ident'",NULL);
04894 #endif
04895 tolua_pushcppstring(tolua_S,(const char*)self->GetIdent());
04896 return 1;
04897 }
04898 #endif //#ifndef TOLUA_DISABLE
04899
04900
04901 #ifndef TOLUA_DISABLE_tolua_get_CIcon_G_ptr
04902 static int tolua_get_CIcon_G_ptr(lua_State* tolua_S)
04903 {
04904 CIcon* self = (CIcon*) tolua_tousertype(tolua_S,1,0);
04905 #ifndef TOLUA_RELEASE
04906 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'G'",NULL);
04907 #endif
04908 tolua_pushusertype(tolua_S,(void*)self->G,"CGraphic");
04909 return 1;
04910 }
04911 #endif //#ifndef TOLUA_DISABLE
04912
04913
04914 #ifndef TOLUA_DISABLE_tolua_set_CIcon_G_ptr
04915 static int tolua_set_CIcon_G_ptr(lua_State* tolua_S)
04916 {
04917 CIcon* self = (CIcon*) tolua_tousertype(tolua_S,1,0);
04918 #ifndef TOLUA_RELEASE
04919 tolua_Error tolua_err;
04920 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'G'",NULL);
04921 if (!tolua_isusertype(tolua_S,2,"CGraphic",0,&tolua_err))
04922 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04923 #endif
04924 self->G = ((CGraphic*) tolua_tousertype(tolua_S,2,0))
04925 ;
04926 return 0;
04927 }
04928 #endif //#ifndef TOLUA_DISABLE
04929
04930
04931 #ifndef TOLUA_DISABLE_tolua_get_CIcon_Frame
04932 static int tolua_get_CIcon_Frame(lua_State* tolua_S)
04933 {
04934 CIcon* self = (CIcon*) tolua_tousertype(tolua_S,1,0);
04935 #ifndef TOLUA_RELEASE
04936 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Frame'",NULL);
04937 #endif
04938 tolua_pushnumber(tolua_S,(lua_Number)self->Frame);
04939 return 1;
04940 }
04941 #endif //#ifndef TOLUA_DISABLE
04942
04943
04944 #ifndef TOLUA_DISABLE_tolua_set_CIcon_Frame
04945 static int tolua_set_CIcon_Frame(lua_State* tolua_S)
04946 {
04947 CIcon* self = (CIcon*) tolua_tousertype(tolua_S,1,0);
04948 #ifndef TOLUA_RELEASE
04949 tolua_Error tolua_err;
04950 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Frame'",NULL);
04951 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
04952 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
04953 #endif
04954 self->Frame = ((int) tolua_tonumber(tolua_S,2,0))
04955 ;
04956 return 0;
04957 }
04958 #endif //#ifndef TOLUA_DISABLE
04959
04960
04961 #ifndef TOLUA_DISABLE_tolua_stratagus_FindButtonStyle00
04962 static int tolua_stratagus_FindButtonStyle00(lua_State* tolua_S)
04963 {
04964 #ifndef TOLUA_RELEASE
04965 tolua_Error tolua_err;
04966 if (
04967 !tolua_iscppstring(tolua_S,1,0,&tolua_err) ||
04968 !tolua_isnoobj(tolua_S,2,&tolua_err)
04969 )
04970 goto tolua_lerror;
04971 else
04972 #endif
04973 {
04974 const std::string style = ((const std::string) tolua_tocppstring(tolua_S,1,0));
04975 {
04976 ButtonStyle* tolua_ret = (ButtonStyle*) FindButtonStyle(style);
04977 tolua_pushusertype(tolua_S,(void*)tolua_ret,"ButtonStyle");
04978 }
04979 }
04980 return 1;
04981 #ifndef TOLUA_RELEASE
04982 tolua_lerror:
04983 tolua_error(tolua_S,"#ferror in function 'FindButtonStyle'.",&tolua_err);
04984 return 0;
04985 #endif
04986 }
04987 #endif //#ifndef TOLUA_DISABLE
04988
04989
04990 #ifndef TOLUA_DISABLE_tolua_stratagus_GetMouseScroll00
04991 static int tolua_stratagus_GetMouseScroll00(lua_State* tolua_S)
04992 {
04993 #ifndef TOLUA_RELEASE
04994 tolua_Error tolua_err;
04995 if (
04996 !tolua_isnoobj(tolua_S,1,&tolua_err)
04997 )
04998 goto tolua_lerror;
04999 else
05000 #endif
05001 {
05002 {
05003 bool tolua_ret = (bool) GetMouseScroll();
05004 tolua_pushboolean(tolua_S,(bool)tolua_ret);
05005 }
05006 }
05007 return 1;
05008 #ifndef TOLUA_RELEASE
05009 tolua_lerror:
05010 tolua_error(tolua_S,"#ferror in function 'GetMouseScroll'.",&tolua_err);
05011 return 0;
05012 #endif
05013 }
05014 #endif //#ifndef TOLUA_DISABLE
05015
05016
05017 #ifndef TOLUA_DISABLE_tolua_stratagus_SetMouseScroll00
05018 static int tolua_stratagus_SetMouseScroll00(lua_State* tolua_S)
05019 {
05020 #ifndef TOLUA_RELEASE
05021 tolua_Error tolua_err;
05022 if (
05023 !tolua_isboolean(tolua_S,1,0,&tolua_err) ||
05024 !tolua_isnoobj(tolua_S,2,&tolua_err)
05025 )
05026 goto tolua_lerror;
05027 else
05028 #endif
05029 {
05030 bool enabled = ((bool) tolua_toboolean(tolua_S,1,0));
05031 {
05032 SetMouseScroll(enabled);
05033 }
05034 }
05035 return 0;
05036 #ifndef TOLUA_RELEASE
05037 tolua_lerror:
05038 tolua_error(tolua_S,"#ferror in function 'SetMouseScroll'.",&tolua_err);
05039 return 0;
05040 #endif
05041 }
05042 #endif //#ifndef TOLUA_DISABLE
05043
05044
05045 #ifndef TOLUA_DISABLE_tolua_stratagus_GetKeyScroll00
05046 static int tolua_stratagus_GetKeyScroll00(lua_State* tolua_S)
05047 {
05048 #ifndef TOLUA_RELEASE
05049 tolua_Error tolua_err;
05050 if (
05051 !tolua_isnoobj(tolua_S,1,&tolua_err)
05052 )
05053 goto tolua_lerror;
05054 else
05055 #endif
05056 {
05057 {
05058 bool tolua_ret = (bool) GetKeyScroll();
05059 tolua_pushboolean(tolua_S,(bool)tolua_ret);
05060 }
05061 }
05062 return 1;
05063 #ifndef TOLUA_RELEASE
05064 tolua_lerror:
05065 tolua_error(tolua_S,"#ferror in function 'GetKeyScroll'.",&tolua_err);
05066 return 0;
05067 #endif
05068 }
05069 #endif //#ifndef TOLUA_DISABLE
05070
05071
05072 #ifndef TOLUA_DISABLE_tolua_stratagus_SetKeyScroll00
05073 static int tolua_stratagus_SetKeyScroll00(lua_State* tolua_S)
05074 {
05075 #ifndef TOLUA_RELEASE
05076 tolua_Error tolua_err;
05077 if (
05078 !tolua_isboolean(tolua_S,1,0,&tolua_err) ||
05079 !tolua_isnoobj(tolua_S,2,&tolua_err)
05080 )
05081 goto tolua_lerror;
05082 else
05083 #endif
05084 {
05085 bool enabled = ((bool) tolua_toboolean(tolua_S,1,0));
05086 {
05087 SetKeyScroll(enabled);
05088 }
05089 }
05090 return 0;
05091 #ifndef TOLUA_RELEASE
05092 tolua_lerror:
05093 tolua_error(tolua_S,"#ferror in function 'SetKeyScroll'.",&tolua_err);
05094 return 0;
05095 #endif
05096 }
05097 #endif //#ifndef TOLUA_DISABLE
05098
05099
05100 #ifndef TOLUA_DISABLE_tolua_stratagus_GetGrabMouse00
05101 static int tolua_stratagus_GetGrabMouse00(lua_State* tolua_S)
05102 {
05103 #ifndef TOLUA_RELEASE
05104 tolua_Error tolua_err;
05105 if (
05106 !tolua_isnoobj(tolua_S,1,&tolua_err)
05107 )
05108 goto tolua_lerror;
05109 else
05110 #endif
05111 {
05112 {
05113 bool tolua_ret = (bool) GetGrabMouse();
05114 tolua_pushboolean(tolua_S,(bool)tolua_ret);
05115 }
05116 }
05117 return 1;
05118 #ifndef TOLUA_RELEASE
05119 tolua_lerror:
05120 tolua_error(tolua_S,"#ferror in function 'GetGrabMouse'.",&tolua_err);
05121 return 0;
05122 #endif
05123 }
05124 #endif //#ifndef TOLUA_DISABLE
05125
05126
05127 #ifndef TOLUA_DISABLE_tolua_stratagus_SetGrabMouse00
05128 static int tolua_stratagus_SetGrabMouse00(lua_State* tolua_S)
05129 {
05130 #ifndef TOLUA_RELEASE
05131 tolua_Error tolua_err;
05132 if (
05133 !tolua_isboolean(tolua_S,1,0,&tolua_err) ||
05134 !tolua_isnoobj(tolua_S,2,&tolua_err)
05135 )
05136 goto tolua_lerror;
05137 else
05138 #endif
05139 {
05140 bool enabled = ((bool) tolua_toboolean(tolua_S,1,0));
05141 {
05142 SetGrabMouse(enabled);
05143 }
05144 }
05145 return 0;
05146 #ifndef TOLUA_RELEASE
05147 tolua_lerror:
05148 tolua_error(tolua_S,"#ferror in function 'SetGrabMouse'.",&tolua_err);
05149 return 0;
05150 #endif
05151 }
05152 #endif //#ifndef TOLUA_DISABLE
05153
05154
05155 #ifndef TOLUA_DISABLE_tolua_stratagus_GetLeaveStops00
05156 static int tolua_stratagus_GetLeaveStops00(lua_State* tolua_S)
05157 {
05158 #ifndef TOLUA_RELEASE
05159 tolua_Error tolua_err;
05160 if (
05161 !tolua_isnoobj(tolua_S,1,&tolua_err)
05162 )
05163 goto tolua_lerror;
05164 else
05165 #endif
05166 {
05167 {
05168 bool tolua_ret = (bool) GetLeaveStops();
05169 tolua_pushboolean(tolua_S,(bool)tolua_ret);
05170 }
05171 }
05172 return 1;
05173 #ifndef TOLUA_RELEASE
05174 tolua_lerror:
05175 tolua_error(tolua_S,"#ferror in function 'GetLeaveStops'.",&tolua_err);
05176 return 0;
05177 #endif
05178 }
05179 #endif //#ifndef TOLUA_DISABLE
05180
05181
05182 #ifndef TOLUA_DISABLE_tolua_stratagus_SetLeaveStops00
05183 static int tolua_stratagus_SetLeaveStops00(lua_State* tolua_S)
05184 {
05185 #ifndef TOLUA_RELEASE
05186 tolua_Error tolua_err;
05187 if (
05188 !tolua_isboolean(tolua_S,1,0,&tolua_err) ||
05189 !tolua_isnoobj(tolua_S,2,&tolua_err)
05190 )
05191 goto tolua_lerror;
05192 else
05193 #endif
05194 {
05195 bool enabled = ((bool) tolua_toboolean(tolua_S,1,0));
05196 {
05197 SetLeaveStops(enabled);
05198 }
05199 }
05200 return 0;
05201 #ifndef TOLUA_RELEASE
05202 tolua_lerror:
05203 tolua_error(tolua_S,"#ferror in function 'SetLeaveStops'.",&tolua_err);
05204 return 0;
05205 #endif
05206 }
05207 #endif //#ifndef TOLUA_DISABLE
05208
05209
05210 #ifndef TOLUA_DISABLE_tolua_stratagus_GetDoubleClickDelay00
05211 static int tolua_stratagus_GetDoubleClickDelay00(lua_State* tolua_S)
05212 {
05213 #ifndef TOLUA_RELEASE
05214 tolua_Error tolua_err;
05215 if (
05216 !tolua_isnoobj(tolua_S,1,&tolua_err)
05217 )
05218 goto tolua_lerror;
05219 else
05220 #endif
05221 {
05222 {
05223 int tolua_ret = (int) GetDoubleClickDelay();
05224 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
05225 }
05226 }
05227 return 1;
05228 #ifndef TOLUA_RELEASE
05229 tolua_lerror:
05230 tolua_error(tolua_S,"#ferror in function 'GetDoubleClickDelay'.",&tolua_err);
05231 return 0;
05232 #endif
05233 }
05234 #endif //#ifndef TOLUA_DISABLE
05235
05236
05237 #ifndef TOLUA_DISABLE_tolua_stratagus_SetDoubleClickDelay00
05238 static int tolua_stratagus_SetDoubleClickDelay00(lua_State* tolua_S)
05239 {
05240 #ifndef TOLUA_RELEASE
05241 tolua_Error tolua_err;
05242 if (
05243 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
05244 !tolua_isnoobj(tolua_S,2,&tolua_err)
05245 )
05246 goto tolua_lerror;
05247 else
05248 #endif
05249 {
05250 int delay = ((int) tolua_tonumber(tolua_S,1,0));
05251 {
05252 SetDoubleClickDelay(delay);
05253 }
05254 }
05255 return 0;
05256 #ifndef TOLUA_RELEASE
05257 tolua_lerror:
05258 tolua_error(tolua_S,"#ferror in function 'SetDoubleClickDelay'.",&tolua_err);
05259 return 0;
05260 #endif
05261 }
05262 #endif //#ifndef TOLUA_DISABLE
05263
05264
05265 #ifndef TOLUA_DISABLE_tolua_stratagus_GetHoldClickDelay00
05266 static int tolua_stratagus_GetHoldClickDelay00(lua_State* tolua_S)
05267 {
05268 #ifndef TOLUA_RELEASE
05269 tolua_Error tolua_err;
05270 if (
05271 !tolua_isnoobj(tolua_S,1,&tolua_err)
05272 )
05273 goto tolua_lerror;
05274 else
05275 #endif
05276 {
05277 {
05278 int tolua_ret = (int) GetHoldClickDelay();
05279 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
05280 }
05281 }
05282 return 1;
05283 #ifndef TOLUA_RELEASE
05284 tolua_lerror:
05285 tolua_error(tolua_S,"#ferror in function 'GetHoldClickDelay'.",&tolua_err);
05286 return 0;
05287 #endif
05288 }
05289 #endif //#ifndef TOLUA_DISABLE
05290
05291
05292 #ifndef TOLUA_DISABLE_tolua_stratagus_SetHoldClickDelay00
05293 static int tolua_stratagus_SetHoldClickDelay00(lua_State* tolua_S)
05294 {
05295 #ifndef TOLUA_RELEASE
05296 tolua_Error tolua_err;
05297 if (
05298 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
05299 !tolua_isnoobj(tolua_S,2,&tolua_err)
05300 )
05301 goto tolua_lerror;
05302 else
05303 #endif
05304 {
05305 int delay = ((int) tolua_tonumber(tolua_S,1,0));
05306 {
05307 SetHoldClickDelay(delay);
05308 }
05309 }
05310 return 0;
05311 #ifndef TOLUA_RELEASE
05312 tolua_lerror:
05313 tolua_error(tolua_S,"#ferror in function 'SetHoldClickDelay'.",&tolua_err);
05314 return 0;
05315 #endif
05316 }
05317 #endif //#ifndef TOLUA_DISABLE
05318
05319
05320 #ifndef TOLUA_DISABLE_tolua_get_CursorX
05321 static int tolua_get_CursorX(lua_State* tolua_S)
05322 {
05323 tolua_pushnumber(tolua_S,(lua_Number)CursorX);
05324 return 1;
05325 }
05326 #endif //#ifndef TOLUA_DISABLE
05327
05328
05329 #ifndef TOLUA_DISABLE_tolua_set_CursorX
05330 static int tolua_set_CursorX(lua_State* tolua_S)
05331 {
05332 #ifndef TOLUA_RELEASE
05333 tolua_Error tolua_err;
05334 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
05335 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
05336 #endif
05337 CursorX = ((int) tolua_tonumber(tolua_S,2,0))
05338 ;
05339 return 0;
05340 }
05341 #endif //#ifndef TOLUA_DISABLE
05342
05343
05344 #ifndef TOLUA_DISABLE_tolua_get_CursorY
05345 static int tolua_get_CursorY(lua_State* tolua_S)
05346 {
05347 tolua_pushnumber(tolua_S,(lua_Number)CursorY);
05348 return 1;
05349 }
05350 #endif //#ifndef TOLUA_DISABLE
05351
05352
05353 #ifndef TOLUA_DISABLE_tolua_set_CursorY
05354 static int tolua_set_CursorY(lua_State* tolua_S)
05355 {
05356 #ifndef TOLUA_RELEASE
05357 tolua_Error tolua_err;
05358 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
05359 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
05360 #endif
05361 CursorY = ((int) tolua_tonumber(tolua_S,2,0))
05362 ;
05363 return 0;
05364 }
05365 #endif //#ifndef TOLUA_DISABLE
05366
05367
05368 #ifndef TOLUA_DISABLE_tolua_stratagus_Color_new00
05369 static int tolua_stratagus_Color_new00(lua_State* tolua_S)
05370 {
05371 #ifndef TOLUA_RELEASE
05372 tolua_Error tolua_err;
05373 if (
05374 !tolua_isusertable(tolua_S,1,"Color",0,&tolua_err) ||
05375 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
05376 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
05377 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
05378 !tolua_isnumber(tolua_S,5,1,&tolua_err) ||
05379 !tolua_isnoobj(tolua_S,6,&tolua_err)
05380 )
05381 goto tolua_lerror;
05382 else
05383 #endif
05384 {
05385 int r = ((int) tolua_tonumber(tolua_S,2,0));
05386 int g = ((int) tolua_tonumber(tolua_S,3,0));
05387 int b = ((int) tolua_tonumber(tolua_S,4,0));
05388 int a = ((int) tolua_tonumber(tolua_S,5,255));
05389 {
05390 Color* tolua_ret = (Color*) new Color(r,g,b,a);
05391 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Color");
05392 }
05393 }
05394 return 1;
05395 #ifndef TOLUA_RELEASE
05396 tolua_lerror:
05397 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
05398 return 0;
05399 #endif
05400 }
05401 #endif //#ifndef TOLUA_DISABLE
05402
05403
05404 #ifndef TOLUA_DISABLE_tolua_stratagus_Color_new00_local
05405 static int tolua_stratagus_Color_new00_local(lua_State* tolua_S)
05406 {
05407 #ifndef TOLUA_RELEASE
05408 tolua_Error tolua_err;
05409 if (
05410 !tolua_isusertable(tolua_S,1,"Color",0,&tolua_err) ||
05411 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
05412 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
05413 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
05414 !tolua_isnumber(tolua_S,5,1,&tolua_err) ||
05415 !tolua_isnoobj(tolua_S,6,&tolua_err)
05416 )
05417 goto tolua_lerror;
05418 else
05419 #endif
05420 {
05421 int r = ((int) tolua_tonumber(tolua_S,2,0));
05422 int g = ((int) tolua_tonumber(tolua_S,3,0));
05423 int b = ((int) tolua_tonumber(tolua_S,4,0));
05424 int a = ((int) tolua_tonumber(tolua_S,5,255));
05425 {
05426 Color* tolua_ret = (Color*) new Color(r,g,b,a);
05427 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"Color");
05428 }
05429 }
05430 return 1;
05431 #ifndef TOLUA_RELEASE
05432 tolua_lerror:
05433 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
05434 return 0;
05435 #endif
05436 }
05437 #endif //#ifndef TOLUA_DISABLE
05438
05439
05440 #ifndef TOLUA_DISABLE_tolua_get_Color_r
05441 static int tolua_get_Color_r(lua_State* tolua_S)
05442 {
05443 Color* self = (Color*) tolua_tousertype(tolua_S,1,0);
05444 #ifndef TOLUA_RELEASE
05445 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'r'",NULL);
05446 #endif
05447 tolua_pushnumber(tolua_S,(lua_Number)self->r);
05448 return 1;
05449 }
05450 #endif //#ifndef TOLUA_DISABLE
05451
05452
05453 #ifndef TOLUA_DISABLE_tolua_set_Color_r
05454 static int tolua_set_Color_r(lua_State* tolua_S)
05455 {
05456 Color* self = (Color*) tolua_tousertype(tolua_S,1,0);
05457 #ifndef TOLUA_RELEASE
05458 tolua_Error tolua_err;
05459 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'r'",NULL);
05460 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
05461 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
05462 #endif
05463 self->r = ((int) tolua_tonumber(tolua_S,2,0))
05464 ;
05465 return 0;
05466 }
05467 #endif //#ifndef TOLUA_DISABLE
05468
05469
05470 #ifndef TOLUA_DISABLE_tolua_get_Color_g
05471 static int tolua_get_Color_g(lua_State* tolua_S)
05472 {
05473 Color* self = (Color*) tolua_tousertype(tolua_S,1,0);
05474 #ifndef TOLUA_RELEASE
05475 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'g'",NULL);
05476 #endif
05477 tolua_pushnumber(tolua_S,(lua_Number)self->g);
05478 return 1;
05479 }
05480 #endif //#ifndef TOLUA_DISABLE
05481
05482
05483 #ifndef TOLUA_DISABLE_tolua_set_Color_g
05484 static int tolua_set_Color_g(lua_State* tolua_S)
05485 {
05486 Color* self = (Color*) tolua_tousertype(tolua_S,1,0);
05487 #ifndef TOLUA_RELEASE
05488 tolua_Error tolua_err;
05489 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'g'",NULL);
05490 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
05491 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
05492 #endif
05493 self->g = ((int) tolua_tonumber(tolua_S,2,0))
05494 ;
05495 return 0;
05496 }
05497 #endif //#ifndef TOLUA_DISABLE
05498
05499
05500 #ifndef TOLUA_DISABLE_tolua_get_Color_b
05501 static int tolua_get_Color_b(lua_State* tolua_S)
05502 {
05503 Color* self = (Color*) tolua_tousertype(tolua_S,1,0);
05504 #ifndef TOLUA_RELEASE
05505 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'b'",NULL);
05506 #endif
05507 tolua_pushnumber(tolua_S,(lua_Number)self->b);
05508 return 1;
05509 }
05510 #endif //#ifndef TOLUA_DISABLE
05511
05512
05513 #ifndef TOLUA_DISABLE_tolua_set_Color_b
05514 static int tolua_set_Color_b(lua_State* tolua_S)
05515 {
05516 Color* self = (Color*) tolua_tousertype(tolua_S,1,0);
05517 #ifndef TOLUA_RELEASE
05518 tolua_Error tolua_err;
05519 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'b'",NULL);
05520 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
05521 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
05522 #endif
05523 self->b = ((int) tolua_tonumber(tolua_S,2,0))
05524 ;
05525 return 0;
05526 }
05527 #endif //#ifndef TOLUA_DISABLE
05528
05529
05530 #ifndef TOLUA_DISABLE_tolua_get_Color_a
05531 static int tolua_get_Color_a(lua_State* tolua_S)
05532 {
05533 Color* self = (Color*) tolua_tousertype(tolua_S,1,0);
05534 #ifndef TOLUA_RELEASE
05535 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'a'",NULL);
05536 #endif
05537 tolua_pushnumber(tolua_S,(lua_Number)self->a);
05538 return 1;
05539 }
05540 #endif //#ifndef TOLUA_DISABLE
05541
05542
05543 #ifndef TOLUA_DISABLE_tolua_set_Color_a
05544 static int tolua_set_Color_a(lua_State* tolua_S)
05545 {
05546 Color* self = (Color*) tolua_tousertype(tolua_S,1,0);
05547 #ifndef TOLUA_RELEASE
05548 tolua_Error tolua_err;
05549 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'a'",NULL);
05550 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
05551 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
05552 #endif
05553 self->a = ((int) tolua_tonumber(tolua_S,2,0))
05554 ;
05555 return 0;
05556 }
05557 #endif //#ifndef TOLUA_DISABLE
05558
05559
05560 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_setWidth00
05561 static int tolua_stratagus_Widget_setWidth00(lua_State* tolua_S)
05562 {
05563 #ifndef TOLUA_RELEASE
05564 tolua_Error tolua_err;
05565 if (
05566 !tolua_isusertype(tolua_S,1,"Widget",0,&tolua_err) ||
05567 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
05568 !tolua_isnoobj(tolua_S,3,&tolua_err)
05569 )
05570 goto tolua_lerror;
05571 else
05572 #endif
05573 {
05574 Widget* self = (Widget*) tolua_tousertype(tolua_S,1,0);
05575 int width = ((int) tolua_tonumber(tolua_S,2,0));
05576 #ifndef TOLUA_RELEASE
05577 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setWidth'",NULL);
05578 #endif
05579 {
05580 self->setWidth(width);
05581 }
05582 }
05583 return 0;
05584 #ifndef TOLUA_RELEASE
05585 tolua_lerror:
05586 tolua_error(tolua_S,"#ferror in function 'setWidth'.",&tolua_err);
05587 return 0;
05588 #endif
05589 }
05590 #endif //#ifndef TOLUA_DISABLE
05591
05592
05593 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_getWidth00
05594 static int tolua_stratagus_Widget_getWidth00(lua_State* tolua_S)
05595 {
05596 #ifndef TOLUA_RELEASE
05597 tolua_Error tolua_err;
05598 if (
05599 !tolua_isusertype(tolua_S,1,"const Widget",0,&tolua_err) ||
05600 !tolua_isnoobj(tolua_S,2,&tolua_err)
05601 )
05602 goto tolua_lerror;
05603 else
05604 #endif
05605 {
05606 const Widget* self = (const Widget*) tolua_tousertype(tolua_S,1,0);
05607 #ifndef TOLUA_RELEASE
05608 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getWidth'",NULL);
05609 #endif
05610 {
05611 int tolua_ret = (int) self->getWidth();
05612 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
05613 }
05614 }
05615 return 1;
05616 #ifndef TOLUA_RELEASE
05617 tolua_lerror:
05618 tolua_error(tolua_S,"#ferror in function 'getWidth'.",&tolua_err);
05619 return 0;
05620 #endif
05621 }
05622 #endif //#ifndef TOLUA_DISABLE
05623
05624
05625 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_setHeight00
05626 static int tolua_stratagus_Widget_setHeight00(lua_State* tolua_S)
05627 {
05628 #ifndef TOLUA_RELEASE
05629 tolua_Error tolua_err;
05630 if (
05631 !tolua_isusertype(tolua_S,1,"Widget",0,&tolua_err) ||
05632 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
05633 !tolua_isnoobj(tolua_S,3,&tolua_err)
05634 )
05635 goto tolua_lerror;
05636 else
05637 #endif
05638 {
05639 Widget* self = (Widget*) tolua_tousertype(tolua_S,1,0);
05640 int height = ((int) tolua_tonumber(tolua_S,2,0));
05641 #ifndef TOLUA_RELEASE
05642 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setHeight'",NULL);
05643 #endif
05644 {
05645 self->setHeight(height);
05646 }
05647 }
05648 return 0;
05649 #ifndef TOLUA_RELEASE
05650 tolua_lerror:
05651 tolua_error(tolua_S,"#ferror in function 'setHeight'.",&tolua_err);
05652 return 0;
05653 #endif
05654 }
05655 #endif //#ifndef TOLUA_DISABLE
05656
05657
05658 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_getHeight00
05659 static int tolua_stratagus_Widget_getHeight00(lua_State* tolua_S)
05660 {
05661 #ifndef TOLUA_RELEASE
05662 tolua_Error tolua_err;
05663 if (
05664 !tolua_isusertype(tolua_S,1,"const Widget",0,&tolua_err) ||
05665 !tolua_isnoobj(tolua_S,2,&tolua_err)
05666 )
05667 goto tolua_lerror;
05668 else
05669 #endif
05670 {
05671 const Widget* self = (const Widget*) tolua_tousertype(tolua_S,1,0);
05672 #ifndef TOLUA_RELEASE
05673 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getHeight'",NULL);
05674 #endif
05675 {
05676 int tolua_ret = (int) self->getHeight();
05677 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
05678 }
05679 }
05680 return 1;
05681 #ifndef TOLUA_RELEASE
05682 tolua_lerror:
05683 tolua_error(tolua_S,"#ferror in function 'getHeight'.",&tolua_err);
05684 return 0;
05685 #endif
05686 }
05687 #endif //#ifndef TOLUA_DISABLE
05688
05689
05690 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_setSize00
05691 static int tolua_stratagus_Widget_setSize00(lua_State* tolua_S)
05692 {
05693 #ifndef TOLUA_RELEASE
05694 tolua_Error tolua_err;
05695 if (
05696 !tolua_isusertype(tolua_S,1,"Widget",0,&tolua_err) ||
05697 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
05698 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
05699 !tolua_isnoobj(tolua_S,4,&tolua_err)
05700 )
05701 goto tolua_lerror;
05702 else
05703 #endif
05704 {
05705 Widget* self = (Widget*) tolua_tousertype(tolua_S,1,0);
05706 int width = ((int) tolua_tonumber(tolua_S,2,0));
05707 int height = ((int) tolua_tonumber(tolua_S,3,0));
05708 #ifndef TOLUA_RELEASE
05709 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setSize'",NULL);
05710 #endif
05711 {
05712 self->setSize(width,height);
05713 }
05714 }
05715 return 0;
05716 #ifndef TOLUA_RELEASE
05717 tolua_lerror:
05718 tolua_error(tolua_S,"#ferror in function 'setSize'.",&tolua_err);
05719 return 0;
05720 #endif
05721 }
05722 #endif //#ifndef TOLUA_DISABLE
05723
05724
05725 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_setX00
05726 static int tolua_stratagus_Widget_setX00(lua_State* tolua_S)
05727 {
05728 #ifndef TOLUA_RELEASE
05729 tolua_Error tolua_err;
05730 if (
05731 !tolua_isusertype(tolua_S,1,"Widget",0,&tolua_err) ||
05732 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
05733 !tolua_isnoobj(tolua_S,3,&tolua_err)
05734 )
05735 goto tolua_lerror;
05736 else
05737 #endif
05738 {
05739 Widget* self = (Widget*) tolua_tousertype(tolua_S,1,0);
05740 int x = ((int) tolua_tonumber(tolua_S,2,0));
05741 #ifndef TOLUA_RELEASE
05742 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setX'",NULL);
05743 #endif
05744 {
05745 self->setX(x);
05746 }
05747 }
05748 return 0;
05749 #ifndef TOLUA_RELEASE
05750 tolua_lerror:
05751 tolua_error(tolua_S,"#ferror in function 'setX'.",&tolua_err);
05752 return 0;
05753 #endif
05754 }
05755 #endif //#ifndef TOLUA_DISABLE
05756
05757
05758 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_getX00
05759 static int tolua_stratagus_Widget_getX00(lua_State* tolua_S)
05760 {
05761 #ifndef TOLUA_RELEASE
05762 tolua_Error tolua_err;
05763 if (
05764 !tolua_isusertype(tolua_S,1,"const Widget",0,&tolua_err) ||
05765 !tolua_isnoobj(tolua_S,2,&tolua_err)
05766 )
05767 goto tolua_lerror;
05768 else
05769 #endif
05770 {
05771 const Widget* self = (const Widget*) tolua_tousertype(tolua_S,1,0);
05772 #ifndef TOLUA_RELEASE
05773 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getX'",NULL);
05774 #endif
05775 {
05776 int tolua_ret = (int) self->getX();
05777 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
05778 }
05779 }
05780 return 1;
05781 #ifndef TOLUA_RELEASE
05782 tolua_lerror:
05783 tolua_error(tolua_S,"#ferror in function 'getX'.",&tolua_err);
05784 return 0;
05785 #endif
05786 }
05787 #endif //#ifndef TOLUA_DISABLE
05788
05789
05790 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_setY00
05791 static int tolua_stratagus_Widget_setY00(lua_State* tolua_S)
05792 {
05793 #ifndef TOLUA_RELEASE
05794 tolua_Error tolua_err;
05795 if (
05796 !tolua_isusertype(tolua_S,1,"Widget",0,&tolua_err) ||
05797 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
05798 !tolua_isnoobj(tolua_S,3,&tolua_err)
05799 )
05800 goto tolua_lerror;
05801 else
05802 #endif
05803 {
05804 Widget* self = (Widget*) tolua_tousertype(tolua_S,1,0);
05805 int y = ((int) tolua_tonumber(tolua_S,2,0));
05806 #ifndef TOLUA_RELEASE
05807 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setY'",NULL);
05808 #endif
05809 {
05810 self->setY(y);
05811 }
05812 }
05813 return 0;
05814 #ifndef TOLUA_RELEASE
05815 tolua_lerror:
05816 tolua_error(tolua_S,"#ferror in function 'setY'.",&tolua_err);
05817 return 0;
05818 #endif
05819 }
05820 #endif //#ifndef TOLUA_DISABLE
05821
05822
05823 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_getY00
05824 static int tolua_stratagus_Widget_getY00(lua_State* tolua_S)
05825 {
05826 #ifndef TOLUA_RELEASE
05827 tolua_Error tolua_err;
05828 if (
05829 !tolua_isusertype(tolua_S,1,"const Widget",0,&tolua_err) ||
05830 !tolua_isnoobj(tolua_S,2,&tolua_err)
05831 )
05832 goto tolua_lerror;
05833 else
05834 #endif
05835 {
05836 const Widget* self = (const Widget*) tolua_tousertype(tolua_S,1,0);
05837 #ifndef TOLUA_RELEASE
05838 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getY'",NULL);
05839 #endif
05840 {
05841 int tolua_ret = (int) self->getY();
05842 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
05843 }
05844 }
05845 return 1;
05846 #ifndef TOLUA_RELEASE
05847 tolua_lerror:
05848 tolua_error(tolua_S,"#ferror in function 'getY'.",&tolua_err);
05849 return 0;
05850 #endif
05851 }
05852 #endif //#ifndef TOLUA_DISABLE
05853
05854
05855 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_setPosition00
05856 static int tolua_stratagus_Widget_setPosition00(lua_State* tolua_S)
05857 {
05858 #ifndef TOLUA_RELEASE
05859 tolua_Error tolua_err;
05860 if (
05861 !tolua_isusertype(tolua_S,1,"Widget",0,&tolua_err) ||
05862 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
05863 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
05864 !tolua_isnoobj(tolua_S,4,&tolua_err)
05865 )
05866 goto tolua_lerror;
05867 else
05868 #endif
05869 {
05870 Widget* self = (Widget*) tolua_tousertype(tolua_S,1,0);
05871 int x = ((int) tolua_tonumber(tolua_S,2,0));
05872 int y = ((int) tolua_tonumber(tolua_S,3,0));
05873 #ifndef TOLUA_RELEASE
05874 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setPosition'",NULL);
05875 #endif
05876 {
05877 self->setPosition(x,y);
05878 }
05879 }
05880 return 0;
05881 #ifndef TOLUA_RELEASE
05882 tolua_lerror:
05883 tolua_error(tolua_S,"#ferror in function 'setPosition'.",&tolua_err);
05884 return 0;
05885 #endif
05886 }
05887 #endif //#ifndef TOLUA_DISABLE
05888
05889
05890 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_setBorderSize00
05891 static int tolua_stratagus_Widget_setBorderSize00(lua_State* tolua_S)
05892 {
05893 #ifndef TOLUA_RELEASE
05894 tolua_Error tolua_err;
05895 if (
05896 !tolua_isusertype(tolua_S,1,"Widget",0,&tolua_err) ||
05897 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
05898 !tolua_isnoobj(tolua_S,3,&tolua_err)
05899 )
05900 goto tolua_lerror;
05901 else
05902 #endif
05903 {
05904 Widget* self = (Widget*) tolua_tousertype(tolua_S,1,0);
05905 int width = ((int) tolua_tonumber(tolua_S,2,0));
05906 #ifndef TOLUA_RELEASE
05907 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setBorderSize'",NULL);
05908 #endif
05909 {
05910 self->setBorderSize(width);
05911 }
05912 }
05913 return 0;
05914 #ifndef TOLUA_RELEASE
05915 tolua_lerror:
05916 tolua_error(tolua_S,"#ferror in function 'setBorderSize'.",&tolua_err);
05917 return 0;
05918 #endif
05919 }
05920 #endif //#ifndef TOLUA_DISABLE
05921
05922
05923 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_getBorderSize00
05924 static int tolua_stratagus_Widget_getBorderSize00(lua_State* tolua_S)
05925 {
05926 #ifndef TOLUA_RELEASE
05927 tolua_Error tolua_err;
05928 if (
05929 !tolua_isusertype(tolua_S,1,"const Widget",0,&tolua_err) ||
05930 !tolua_isnoobj(tolua_S,2,&tolua_err)
05931 )
05932 goto tolua_lerror;
05933 else
05934 #endif
05935 {
05936 const Widget* self = (const Widget*) tolua_tousertype(tolua_S,1,0);
05937 #ifndef TOLUA_RELEASE
05938 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getBorderSize'",NULL);
05939 #endif
05940 {
05941 unsigned int tolua_ret = (unsigned int) self->getBorderSize();
05942 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
05943 }
05944 }
05945 return 1;
05946 #ifndef TOLUA_RELEASE
05947 tolua_lerror:
05948 tolua_error(tolua_S,"#ferror in function 'getBorderSize'.",&tolua_err);
05949 return 0;
05950 #endif
05951 }
05952 #endif //#ifndef TOLUA_DISABLE
05953
05954
05955 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_setEnabled00
05956 static int tolua_stratagus_Widget_setEnabled00(lua_State* tolua_S)
05957 {
05958 #ifndef TOLUA_RELEASE
05959 tolua_Error tolua_err;
05960 if (
05961 !tolua_isusertype(tolua_S,1,"Widget",0,&tolua_err) ||
05962 !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
05963 !tolua_isnoobj(tolua_S,3,&tolua_err)
05964 )
05965 goto tolua_lerror;
05966 else
05967 #endif
05968 {
05969 Widget* self = (Widget*) tolua_tousertype(tolua_S,1,0);
05970 bool enabled = ((bool) tolua_toboolean(tolua_S,2,0));
05971 #ifndef TOLUA_RELEASE
05972 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setEnabled'",NULL);
05973 #endif
05974 {
05975 self->setEnabled(enabled);
05976 }
05977 }
05978 return 0;
05979 #ifndef TOLUA_RELEASE
05980 tolua_lerror:
05981 tolua_error(tolua_S,"#ferror in function 'setEnabled'.",&tolua_err);
05982 return 0;
05983 #endif
05984 }
05985 #endif //#ifndef TOLUA_DISABLE
05986
05987
05988 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_isEnabled00
05989 static int tolua_stratagus_Widget_isEnabled00(lua_State* tolua_S)
05990 {
05991 #ifndef TOLUA_RELEASE
05992 tolua_Error tolua_err;
05993 if (
05994 !tolua_isusertype(tolua_S,1,"const Widget",0,&tolua_err) ||
05995 !tolua_isnoobj(tolua_S,2,&tolua_err)
05996 )
05997 goto tolua_lerror;
05998 else
05999 #endif
06000 {
06001 const Widget* self = (const Widget*) tolua_tousertype(tolua_S,1,0);
06002 #ifndef TOLUA_RELEASE
06003 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'isEnabled'",NULL);
06004 #endif
06005 {
06006 bool tolua_ret = (bool) self->isEnabled();
06007 tolua_pushboolean(tolua_S,(bool)tolua_ret);
06008 }
06009 }
06010 return 1;
06011 #ifndef TOLUA_RELEASE
06012 tolua_lerror:
06013 tolua_error(tolua_S,"#ferror in function 'isEnabled'.",&tolua_err);
06014 return 0;
06015 #endif
06016 }
06017 #endif //#ifndef TOLUA_DISABLE
06018
06019
06020 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_setVisible00
06021 static int tolua_stratagus_Widget_setVisible00(lua_State* tolua_S)
06022 {
06023 #ifndef TOLUA_RELEASE
06024 tolua_Error tolua_err;
06025 if (
06026 !tolua_isusertype(tolua_S,1,"Widget",0,&tolua_err) ||
06027 !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
06028 !tolua_isnoobj(tolua_S,3,&tolua_err)
06029 )
06030 goto tolua_lerror;
06031 else
06032 #endif
06033 {
06034 Widget* self = (Widget*) tolua_tousertype(tolua_S,1,0);
06035 bool visible = ((bool) tolua_toboolean(tolua_S,2,0));
06036 #ifndef TOLUA_RELEASE
06037 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setVisible'",NULL);
06038 #endif
06039 {
06040 self->setVisible(visible);
06041 }
06042 }
06043 return 0;
06044 #ifndef TOLUA_RELEASE
06045 tolua_lerror:
06046 tolua_error(tolua_S,"#ferror in function 'setVisible'.",&tolua_err);
06047 return 0;
06048 #endif
06049 }
06050 #endif //#ifndef TOLUA_DISABLE
06051
06052
06053 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_isVisible00
06054 static int tolua_stratagus_Widget_isVisible00(lua_State* tolua_S)
06055 {
06056 #ifndef TOLUA_RELEASE
06057 tolua_Error tolua_err;
06058 if (
06059 !tolua_isusertype(tolua_S,1,"const Widget",0,&tolua_err) ||
06060 !tolua_isnoobj(tolua_S,2,&tolua_err)
06061 )
06062 goto tolua_lerror;
06063 else
06064 #endif
06065 {
06066 const Widget* self = (const Widget*) tolua_tousertype(tolua_S,1,0);
06067 #ifndef TOLUA_RELEASE
06068 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'isVisible'",NULL);
06069 #endif
06070 {
06071 bool tolua_ret = (bool) self->isVisible();
06072 tolua_pushboolean(tolua_S,(bool)tolua_ret);
06073 }
06074 }
06075 return 1;
06076 #ifndef TOLUA_RELEASE
06077 tolua_lerror:
06078 tolua_error(tolua_S,"#ferror in function 'isVisible'.",&tolua_err);
06079 return 0;
06080 #endif
06081 }
06082 #endif //#ifndef TOLUA_DISABLE
06083
06084
06085 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_setBaseColor00
06086 static int tolua_stratagus_Widget_setBaseColor00(lua_State* tolua_S)
06087 {
06088 #ifndef TOLUA_RELEASE
06089 tolua_Error tolua_err;
06090 if (
06091 !tolua_isusertype(tolua_S,1,"Widget",0,&tolua_err) ||
06092 !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err) ||
06093 !tolua_isnoobj(tolua_S,3,&tolua_err)
06094 )
06095 goto tolua_lerror;
06096 else
06097 #endif
06098 {
06099 Widget* self = (Widget*) tolua_tousertype(tolua_S,1,0);
06100 const Color color = *((const Color*) tolua_tousertype(tolua_S,2,0));
06101 #ifndef TOLUA_RELEASE
06102 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setBaseColor'",NULL);
06103 #endif
06104 {
06105 self->setBaseColor(color);
06106 }
06107 }
06108 return 0;
06109 #ifndef TOLUA_RELEASE
06110 tolua_lerror:
06111 tolua_error(tolua_S,"#ferror in function 'setBaseColor'.",&tolua_err);
06112 return 0;
06113 #endif
06114 }
06115 #endif //#ifndef TOLUA_DISABLE
06116
06117
06118 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_getBaseColor00
06119 static int tolua_stratagus_Widget_getBaseColor00(lua_State* tolua_S)
06120 {
06121 #ifndef TOLUA_RELEASE
06122 tolua_Error tolua_err;
06123 if (
06124 !tolua_isusertype(tolua_S,1,"const Widget",0,&tolua_err) ||
06125 !tolua_isnoobj(tolua_S,2,&tolua_err)
06126 )
06127 goto tolua_lerror;
06128 else
06129 #endif
06130 {
06131 const Widget* self = (const Widget*) tolua_tousertype(tolua_S,1,0);
06132 #ifndef TOLUA_RELEASE
06133 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getBaseColor'",NULL);
06134 #endif
06135 {
06136 const Color& tolua_ret = (const Color&) self->getBaseColor();
06137 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
06138 }
06139 }
06140 return 1;
06141 #ifndef TOLUA_RELEASE
06142 tolua_lerror:
06143 tolua_error(tolua_S,"#ferror in function 'getBaseColor'.",&tolua_err);
06144 return 0;
06145 #endif
06146 }
06147 #endif //#ifndef TOLUA_DISABLE
06148
06149
06150 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_setForegroundColor00
06151 static int tolua_stratagus_Widget_setForegroundColor00(lua_State* tolua_S)
06152 {
06153 #ifndef TOLUA_RELEASE
06154 tolua_Error tolua_err;
06155 if (
06156 !tolua_isusertype(tolua_S,1,"Widget",0,&tolua_err) ||
06157 !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err) ||
06158 !tolua_isnoobj(tolua_S,3,&tolua_err)
06159 )
06160 goto tolua_lerror;
06161 else
06162 #endif
06163 {
06164 Widget* self = (Widget*) tolua_tousertype(tolua_S,1,0);
06165 const Color color = *((const Color*) tolua_tousertype(tolua_S,2,0));
06166 #ifndef TOLUA_RELEASE
06167 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setForegroundColor'",NULL);
06168 #endif
06169 {
06170 self->setForegroundColor(color);
06171 }
06172 }
06173 return 0;
06174 #ifndef TOLUA_RELEASE
06175 tolua_lerror:
06176 tolua_error(tolua_S,"#ferror in function 'setForegroundColor'.",&tolua_err);
06177 return 0;
06178 #endif
06179 }
06180 #endif //#ifndef TOLUA_DISABLE
06181
06182
06183 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_getForegroundColor00
06184 static int tolua_stratagus_Widget_getForegroundColor00(lua_State* tolua_S)
06185 {
06186 #ifndef TOLUA_RELEASE
06187 tolua_Error tolua_err;
06188 if (
06189 !tolua_isusertype(tolua_S,1,"const Widget",0,&tolua_err) ||
06190 !tolua_isnoobj(tolua_S,2,&tolua_err)
06191 )
06192 goto tolua_lerror;
06193 else
06194 #endif
06195 {
06196 const Widget* self = (const Widget*) tolua_tousertype(tolua_S,1,0);
06197 #ifndef TOLUA_RELEASE
06198 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getForegroundColor'",NULL);
06199 #endif
06200 {
06201 const Color& tolua_ret = (const Color&) self->getForegroundColor();
06202 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
06203 }
06204 }
06205 return 1;
06206 #ifndef TOLUA_RELEASE
06207 tolua_lerror:
06208 tolua_error(tolua_S,"#ferror in function 'getForegroundColor'.",&tolua_err);
06209 return 0;
06210 #endif
06211 }
06212 #endif //#ifndef TOLUA_DISABLE
06213
06214
06215 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_setBackgroundColor00
06216 static int tolua_stratagus_Widget_setBackgroundColor00(lua_State* tolua_S)
06217 {
06218 #ifndef TOLUA_RELEASE
06219 tolua_Error tolua_err;
06220 if (
06221 !tolua_isusertype(tolua_S,1,"Widget",0,&tolua_err) ||
06222 !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err) ||
06223 !tolua_isnoobj(tolua_S,3,&tolua_err)
06224 )
06225 goto tolua_lerror;
06226 else
06227 #endif
06228 {
06229 Widget* self = (Widget*) tolua_tousertype(tolua_S,1,0);
06230 const Color color = *((const Color*) tolua_tousertype(tolua_S,2,0));
06231 #ifndef TOLUA_RELEASE
06232 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setBackgroundColor'",NULL);
06233 #endif
06234 {
06235 self->setBackgroundColor(color);
06236 }
06237 }
06238 return 0;
06239 #ifndef TOLUA_RELEASE
06240 tolua_lerror:
06241 tolua_error(tolua_S,"#ferror in function 'setBackgroundColor'.",&tolua_err);
06242 return 0;
06243 #endif
06244 }
06245 #endif //#ifndef TOLUA_DISABLE
06246
06247
06248 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_getBackgroundColor00
06249 static int tolua_stratagus_Widget_getBackgroundColor00(lua_State* tolua_S)
06250 {
06251 #ifndef TOLUA_RELEASE
06252 tolua_Error tolua_err;
06253 if (
06254 !tolua_isusertype(tolua_S,1,"const Widget",0,&tolua_err) ||
06255 !tolua_isnoobj(tolua_S,2,&tolua_err)
06256 )
06257 goto tolua_lerror;
06258 else
06259 #endif
06260 {
06261 const Widget* self = (const Widget*) tolua_tousertype(tolua_S,1,0);
06262 #ifndef TOLUA_RELEASE
06263 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getBackgroundColor'",NULL);
06264 #endif
06265 {
06266 const Color& tolua_ret = (const Color&) self->getBackgroundColor();
06267 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
06268 }
06269 }
06270 return 1;
06271 #ifndef TOLUA_RELEASE
06272 tolua_lerror:
06273 tolua_error(tolua_S,"#ferror in function 'getBackgroundColor'.",&tolua_err);
06274 return 0;
06275 #endif
06276 }
06277 #endif //#ifndef TOLUA_DISABLE
06278
06279
06280 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_setDisabledColor00
06281 static int tolua_stratagus_Widget_setDisabledColor00(lua_State* tolua_S)
06282 {
06283 #ifndef TOLUA_RELEASE
06284 tolua_Error tolua_err;
06285 if (
06286 !tolua_isusertype(tolua_S,1,"Widget",0,&tolua_err) ||
06287 !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err) ||
06288 !tolua_isnoobj(tolua_S,3,&tolua_err)
06289 )
06290 goto tolua_lerror;
06291 else
06292 #endif
06293 {
06294 Widget* self = (Widget*) tolua_tousertype(tolua_S,1,0);
06295 const Color color = *((const Color*) tolua_tousertype(tolua_S,2,0));
06296 #ifndef TOLUA_RELEASE
06297 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setDisabledColor'",NULL);
06298 #endif
06299 {
06300 self->setDisabledColor(color);
06301 }
06302 }
06303 return 0;
06304 #ifndef TOLUA_RELEASE
06305 tolua_lerror:
06306 tolua_error(tolua_S,"#ferror in function 'setDisabledColor'.",&tolua_err);
06307 return 0;
06308 #endif
06309 }
06310 #endif //#ifndef TOLUA_DISABLE
06311
06312
06313 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_getDisabledColor00
06314 static int tolua_stratagus_Widget_getDisabledColor00(lua_State* tolua_S)
06315 {
06316 #ifndef TOLUA_RELEASE
06317 tolua_Error tolua_err;
06318 if (
06319 !tolua_isusertype(tolua_S,1,"const Widget",0,&tolua_err) ||
06320 !tolua_isnoobj(tolua_S,2,&tolua_err)
06321 )
06322 goto tolua_lerror;
06323 else
06324 #endif
06325 {
06326 const Widget* self = (const Widget*) tolua_tousertype(tolua_S,1,0);
06327 #ifndef TOLUA_RELEASE
06328 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getDisabledColor'",NULL);
06329 #endif
06330 {
06331 const Color& tolua_ret = (const Color&) self->getDisabledColor();
06332 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
06333 }
06334 }
06335 return 1;
06336 #ifndef TOLUA_RELEASE
06337 tolua_lerror:
06338 tolua_error(tolua_S,"#ferror in function 'getDisabledColor'.",&tolua_err);
06339 return 0;
06340 #endif
06341 }
06342 #endif //#ifndef TOLUA_DISABLE
06343
06344
06345 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_setGlobalFont00
06346 static int tolua_stratagus_Widget_setGlobalFont00(lua_State* tolua_S)
06347 {
06348 #ifndef TOLUA_RELEASE
06349 tolua_Error tolua_err;
06350 if (
06351 !tolua_isusertable(tolua_S,1,"Widget",0,&tolua_err) ||
06352 !tolua_isusertype(tolua_S,2,"CFont",0,&tolua_err) ||
06353 !tolua_isnoobj(tolua_S,3,&tolua_err)
06354 )
06355 goto tolua_lerror;
06356 else
06357 #endif
06358 {
06359 CFont* font = ((CFont*) tolua_tousertype(tolua_S,2,0));
06360 {
06361 Widget::setGlobalFont(font);
06362 }
06363 }
06364 return 0;
06365 #ifndef TOLUA_RELEASE
06366 tolua_lerror:
06367 tolua_error(tolua_S,"#ferror in function 'setGlobalFont'.",&tolua_err);
06368 return 0;
06369 #endif
06370 }
06371 #endif //#ifndef TOLUA_DISABLE
06372
06373
06374 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_setFont00
06375 static int tolua_stratagus_Widget_setFont00(lua_State* tolua_S)
06376 {
06377 #ifndef TOLUA_RELEASE
06378 tolua_Error tolua_err;
06379 if (
06380 !tolua_isusertype(tolua_S,1,"Widget",0,&tolua_err) ||
06381 !tolua_isusertype(tolua_S,2,"CFont",0,&tolua_err) ||
06382 !tolua_isnoobj(tolua_S,3,&tolua_err)
06383 )
06384 goto tolua_lerror;
06385 else
06386 #endif
06387 {
06388 Widget* self = (Widget*) tolua_tousertype(tolua_S,1,0);
06389 CFont* font = ((CFont*) tolua_tousertype(tolua_S,2,0));
06390 #ifndef TOLUA_RELEASE
06391 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setFont'",NULL);
06392 #endif
06393 {
06394 self->setFont(font);
06395 }
06396 }
06397 return 0;
06398 #ifndef TOLUA_RELEASE
06399 tolua_lerror:
06400 tolua_error(tolua_S,"#ferror in function 'setFont'.",&tolua_err);
06401 return 0;
06402 #endif
06403 }
06404 #endif //#ifndef TOLUA_DISABLE
06405
06406
06407 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_getHotKey00
06408 static int tolua_stratagus_Widget_getHotKey00(lua_State* tolua_S)
06409 {
06410 #ifndef TOLUA_RELEASE
06411 tolua_Error tolua_err;
06412 if (
06413 !tolua_isusertype(tolua_S,1,"const Widget",0,&tolua_err) ||
06414 !tolua_isnoobj(tolua_S,2,&tolua_err)
06415 )
06416 goto tolua_lerror;
06417 else
06418 #endif
06419 {
06420 const Widget* self = (const Widget*) tolua_tousertype(tolua_S,1,0);
06421 #ifndef TOLUA_RELEASE
06422 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getHotKey'",NULL);
06423 #endif
06424 {
06425 int tolua_ret = (int) self->getHotKey();
06426 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
06427 }
06428 }
06429 return 1;
06430 #ifndef TOLUA_RELEASE
06431 tolua_lerror:
06432 tolua_error(tolua_S,"#ferror in function 'getHotKey'.",&tolua_err);
06433 return 0;
06434 #endif
06435 }
06436 #endif //#ifndef TOLUA_DISABLE
06437
06438
06439 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_setHotKey00
06440 static int tolua_stratagus_Widget_setHotKey00(lua_State* tolua_S)
06441 {
06442 #ifndef TOLUA_RELEASE
06443 tolua_Error tolua_err;
06444 if (
06445 !tolua_isusertype(tolua_S,1,"Widget",0,&tolua_err) ||
06446 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
06447 !tolua_isnoobj(tolua_S,3,&tolua_err)
06448 )
06449 goto tolua_lerror;
06450 else
06451 #endif
06452 {
06453 Widget* self = (Widget*) tolua_tousertype(tolua_S,1,0);
06454 const int key = ((const int) tolua_tonumber(tolua_S,2,0));
06455 #ifndef TOLUA_RELEASE
06456 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setHotKey'",NULL);
06457 #endif
06458 {
06459 self->setHotKey(key);
06460 }
06461 }
06462 return 0;
06463 #ifndef TOLUA_RELEASE
06464 tolua_lerror:
06465 tolua_error(tolua_S,"#ferror in function 'setHotKey'.",&tolua_err);
06466 return 0;
06467 #endif
06468 }
06469 #endif //#ifndef TOLUA_DISABLE
06470
06471
06472 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_setHotKey01
06473 static int tolua_stratagus_Widget_setHotKey01(lua_State* tolua_S)
06474 {
06475 tolua_Error tolua_err;
06476 if (
06477 !tolua_isusertype(tolua_S,1,"Widget",0,&tolua_err) ||
06478 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
06479 !tolua_isnoobj(tolua_S,3,&tolua_err)
06480 )
06481 goto tolua_lerror;
06482 else
06483 {
06484 Widget* self = (Widget*) tolua_tousertype(tolua_S,1,0);
06485 const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
06486 #ifndef TOLUA_RELEASE
06487 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setHotKey'",NULL);
06488 #endif
06489 {
06490 self->setHotKey(key);
06491 }
06492 }
06493 return 0;
06494 tolua_lerror:
06495 return tolua_stratagus_Widget_setHotKey00(tolua_S);
06496 }
06497 #endif //#ifndef TOLUA_DISABLE
06498
06499
06500 #ifndef TOLUA_DISABLE_tolua_stratagus_Widget_addActionListener00
06501 static int tolua_stratagus_Widget_addActionListener00(lua_State* tolua_S)
06502 {
06503 #ifndef TOLUA_RELEASE
06504 tolua_Error tolua_err;
06505 if (
06506 !tolua_isusertype(tolua_S,1,"Widget",0,&tolua_err) ||
06507 !tolua_isusertype(tolua_S,2,"LuaActionListener",0,&tolua_err) ||
06508 !tolua_isnoobj(tolua_S,3,&tolua_err)
06509 )
06510 goto tolua_lerror;
06511 else
06512 #endif
06513 {
06514 Widget* self = (Widget*) tolua_tousertype(tolua_S,1,0);
06515 LuaActionListener* actionListener = ((LuaActionListener*) tolua_tousertype(tolua_S,2,0));
06516 #ifndef TOLUA_RELEASE
06517 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addActionListener'",NULL);
06518 #endif
06519 {
06520 self->addActionListener(actionListener);
06521 }
06522 }
06523 return 0;
06524 #ifndef TOLUA_RELEASE
06525 tolua_lerror:
06526 tolua_error(tolua_S,"#ferror in function 'addActionListener'.",&tolua_err);
06527 return 0;
06528 #endif
06529 }
06530 #endif //#ifndef TOLUA_DISABLE
06531
06532
06533 #ifndef TOLUA_DISABLE_tolua_stratagus_ScrollArea_new00
06534 static int tolua_stratagus_ScrollArea_new00(lua_State* tolua_S)
06535 {
06536 #ifndef TOLUA_RELEASE
06537 tolua_Error tolua_err;
06538 if (
06539 !tolua_isusertable(tolua_S,1,"ScrollArea",0,&tolua_err) ||
06540 !tolua_isnoobj(tolua_S,2,&tolua_err)
06541 )
06542 goto tolua_lerror;
06543 else
06544 #endif
06545 {
06546 {
06547 ScrollArea* tolua_ret = (ScrollArea*) new ScrollArea();
06548 tolua_pushusertype(tolua_S,(void*)tolua_ret,"ScrollArea");
06549 }
06550 }
06551 return 1;
06552 #ifndef TOLUA_RELEASE
06553 tolua_lerror:
06554 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
06555 return 0;
06556 #endif
06557 }
06558 #endif //#ifndef TOLUA_DISABLE
06559
06560
06561 #ifndef TOLUA_DISABLE_tolua_stratagus_ScrollArea_new00_local
06562 static int tolua_stratagus_ScrollArea_new00_local(lua_State* tolua_S)
06563 {
06564 #ifndef TOLUA_RELEASE
06565 tolua_Error tolua_err;
06566 if (
06567 !tolua_isusertable(tolua_S,1,"ScrollArea",0,&tolua_err) ||
06568 !tolua_isnoobj(tolua_S,2,&tolua_err)
06569 )
06570 goto tolua_lerror;
06571 else
06572 #endif
06573 {
06574 {
06575 ScrollArea* tolua_ret = (ScrollArea*) new ScrollArea();
06576 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"ScrollArea");
06577 }
06578 }
06579 return 1;
06580 #ifndef TOLUA_RELEASE
06581 tolua_lerror:
06582 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
06583 return 0;
06584 #endif
06585 }
06586 #endif //#ifndef TOLUA_DISABLE
06587
06588
06589 #ifndef TOLUA_DISABLE_tolua_stratagus_ScrollArea_setContent00
06590 static int tolua_stratagus_ScrollArea_setContent00(lua_State* tolua_S)
06591 {
06592 #ifndef TOLUA_RELEASE
06593 tolua_Error tolua_err;
06594 if (
06595 !tolua_isusertype(tolua_S,1,"ScrollArea",0,&tolua_err) ||
06596 !tolua_isusertype(tolua_S,2,"Widget",0,&tolua_err) ||
06597 !tolua_isnoobj(tolua_S,3,&tolua_err)
06598 )
06599 goto tolua_lerror;
06600 else
06601 #endif
06602 {
06603 ScrollArea* self = (ScrollArea*) tolua_tousertype(tolua_S,1,0);
06604 Widget* widget = ((Widget*) tolua_tousertype(tolua_S,2,0));
06605 #ifndef TOLUA_RELEASE
06606 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setContent'",NULL);
06607 #endif
06608 {
06609 self->setContent(widget);
06610 }
06611 }
06612 return 0;
06613 #ifndef TOLUA_RELEASE
06614 tolua_lerror:
06615 tolua_error(tolua_S,"#ferror in function 'setContent'.",&tolua_err);
06616 return 0;
06617 #endif
06618 }
06619 #endif //#ifndef TOLUA_DISABLE
06620
06621
06622 #ifndef TOLUA_DISABLE_tolua_stratagus_ScrollArea_getContent00
06623 static int tolua_stratagus_ScrollArea_getContent00(lua_State* tolua_S)
06624 {
06625 #ifndef TOLUA_RELEASE
06626 tolua_Error tolua_err;
06627 if (
06628 !tolua_isusertype(tolua_S,1,"ScrollArea",0,&tolua_err) ||
06629 !tolua_isnoobj(tolua_S,2,&tolua_err)
06630 )
06631 goto tolua_lerror;
06632 else
06633 #endif
06634 {
06635 ScrollArea* self = (ScrollArea*) tolua_tousertype(tolua_S,1,0);
06636 #ifndef TOLUA_RELEASE
06637 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getContent'",NULL);
06638 #endif
06639 {
06640 Widget* tolua_ret = (Widget*) self->getContent();
06641 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Widget");
06642 }
06643 }
06644 return 1;
06645 #ifndef TOLUA_RELEASE
06646 tolua_lerror:
06647 tolua_error(tolua_S,"#ferror in function 'getContent'.",&tolua_err);
06648 return 0;
06649 #endif
06650 }
06651 #endif //#ifndef TOLUA_DISABLE
06652
06653
06654 #ifndef TOLUA_DISABLE_tolua_stratagus_ScrollArea_setScrollbarWidth00
06655 static int tolua_stratagus_ScrollArea_setScrollbarWidth00(lua_State* tolua_S)
06656 {
06657 #ifndef TOLUA_RELEASE
06658 tolua_Error tolua_err;
06659 if (
06660 !tolua_isusertype(tolua_S,1,"ScrollArea",0,&tolua_err) ||
06661 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
06662 !tolua_isnoobj(tolua_S,3,&tolua_err)
06663 )
06664 goto tolua_lerror;
06665 else
06666 #endif
06667 {
06668 ScrollArea* self = (ScrollArea*) tolua_tousertype(tolua_S,1,0);
06669 int width = ((int) tolua_tonumber(tolua_S,2,0));
06670 #ifndef TOLUA_RELEASE
06671 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setScrollbarWidth'",NULL);
06672 #endif
06673 {
06674 self->setScrollbarWidth(width);
06675 }
06676 }
06677 return 0;
06678 #ifndef TOLUA_RELEASE
06679 tolua_lerror:
06680 tolua_error(tolua_S,"#ferror in function 'setScrollbarWidth'.",&tolua_err);
06681 return 0;
06682 #endif
06683 }
06684 #endif //#ifndef TOLUA_DISABLE
06685
06686
06687 #ifndef TOLUA_DISABLE_tolua_stratagus_ScrollArea_getScrollbarWidth00
06688 static int tolua_stratagus_ScrollArea_getScrollbarWidth00(lua_State* tolua_S)
06689 {
06690 #ifndef TOLUA_RELEASE
06691 tolua_Error tolua_err;
06692 if (
06693 !tolua_isusertype(tolua_S,1,"ScrollArea",0,&tolua_err) ||
06694 !tolua_isnoobj(tolua_S,2,&tolua_err)
06695 )
06696 goto tolua_lerror;
06697 else
06698 #endif
06699 {
06700 ScrollArea* self = (ScrollArea*) tolua_tousertype(tolua_S,1,0);
06701 #ifndef TOLUA_RELEASE
06702 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getScrollbarWidth'",NULL);
06703 #endif
06704 {
06705 int tolua_ret = (int) self->getScrollbarWidth();
06706 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
06707 }
06708 }
06709 return 1;
06710 #ifndef TOLUA_RELEASE
06711 tolua_lerror:
06712 tolua_error(tolua_S,"#ferror in function 'getScrollbarWidth'.",&tolua_err);
06713 return 0;
06714 #endif
06715 }
06716 #endif //#ifndef TOLUA_DISABLE
06717
06718
06719 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageWidget_new00
06720 static int tolua_stratagus_ImageWidget_new00(lua_State* tolua_S)
06721 {
06722 #ifndef TOLUA_RELEASE
06723 tolua_Error tolua_err;
06724 if (
06725 !tolua_isusertable(tolua_S,1,"ImageWidget",0,&tolua_err) ||
06726 !tolua_isusertype(tolua_S,2,"CGraphic",0,&tolua_err) ||
06727 !tolua_isnoobj(tolua_S,3,&tolua_err)
06728 )
06729 goto tolua_lerror;
06730 else
06731 #endif
06732 {
06733 CGraphic* image = ((CGraphic*) tolua_tousertype(tolua_S,2,0));
06734 {
06735 ImageWidget* tolua_ret = (ImageWidget*) new ImageWidget(image);
06736 tolua_pushusertype(tolua_S,(void*)tolua_ret,"ImageWidget");
06737 }
06738 }
06739 return 1;
06740 #ifndef TOLUA_RELEASE
06741 tolua_lerror:
06742 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
06743 return 0;
06744 #endif
06745 }
06746 #endif //#ifndef TOLUA_DISABLE
06747
06748
06749 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageWidget_new00_local
06750 static int tolua_stratagus_ImageWidget_new00_local(lua_State* tolua_S)
06751 {
06752 #ifndef TOLUA_RELEASE
06753 tolua_Error tolua_err;
06754 if (
06755 !tolua_isusertable(tolua_S,1,"ImageWidget",0,&tolua_err) ||
06756 !tolua_isusertype(tolua_S,2,"CGraphic",0,&tolua_err) ||
06757 !tolua_isnoobj(tolua_S,3,&tolua_err)
06758 )
06759 goto tolua_lerror;
06760 else
06761 #endif
06762 {
06763 CGraphic* image = ((CGraphic*) tolua_tousertype(tolua_S,2,0));
06764 {
06765 ImageWidget* tolua_ret = (ImageWidget*) new ImageWidget(image);
06766 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"ImageWidget");
06767 }
06768 }
06769 return 1;
06770 #ifndef TOLUA_RELEASE
06771 tolua_lerror:
06772 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
06773 return 0;
06774 #endif
06775 }
06776 #endif //#ifndef TOLUA_DISABLE
06777
06778
06779 #ifndef TOLUA_DISABLE_tolua_stratagus_ButtonWidget_new00
06780 static int tolua_stratagus_ButtonWidget_new00(lua_State* tolua_S)
06781 {
06782 #ifndef TOLUA_RELEASE
06783 tolua_Error tolua_err;
06784 if (
06785 !tolua_isusertable(tolua_S,1,"ButtonWidget",0,&tolua_err) ||
06786 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
06787 !tolua_isnoobj(tolua_S,3,&tolua_err)
06788 )
06789 goto tolua_lerror;
06790 else
06791 #endif
06792 {
06793 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,2,0));
06794 {
06795 ButtonWidget* tolua_ret = (ButtonWidget*) new ButtonWidget(caption);
06796 tolua_pushusertype(tolua_S,(void*)tolua_ret,"ButtonWidget");
06797 }
06798 }
06799 return 1;
06800 #ifndef TOLUA_RELEASE
06801 tolua_lerror:
06802 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
06803 return 0;
06804 #endif
06805 }
06806 #endif //#ifndef TOLUA_DISABLE
06807
06808
06809 #ifndef TOLUA_DISABLE_tolua_stratagus_ButtonWidget_new00_local
06810 static int tolua_stratagus_ButtonWidget_new00_local(lua_State* tolua_S)
06811 {
06812 #ifndef TOLUA_RELEASE
06813 tolua_Error tolua_err;
06814 if (
06815 !tolua_isusertable(tolua_S,1,"ButtonWidget",0,&tolua_err) ||
06816 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
06817 !tolua_isnoobj(tolua_S,3,&tolua_err)
06818 )
06819 goto tolua_lerror;
06820 else
06821 #endif
06822 {
06823 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,2,0));
06824 {
06825 ButtonWidget* tolua_ret = (ButtonWidget*) new ButtonWidget(caption);
06826 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"ButtonWidget");
06827 }
06828 }
06829 return 1;
06830 #ifndef TOLUA_RELEASE
06831 tolua_lerror:
06832 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
06833 return 0;
06834 #endif
06835 }
06836 #endif //#ifndef TOLUA_DISABLE
06837
06838
06839 #ifndef TOLUA_DISABLE_tolua_stratagus_ButtonWidget_setCaption00
06840 static int tolua_stratagus_ButtonWidget_setCaption00(lua_State* tolua_S)
06841 {
06842 #ifndef TOLUA_RELEASE
06843 tolua_Error tolua_err;
06844 if (
06845 !tolua_isusertype(tolua_S,1,"ButtonWidget",0,&tolua_err) ||
06846 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
06847 !tolua_isnoobj(tolua_S,3,&tolua_err)
06848 )
06849 goto tolua_lerror;
06850 else
06851 #endif
06852 {
06853 ButtonWidget* self = (ButtonWidget*) tolua_tousertype(tolua_S,1,0);
06854 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,2,0));
06855 #ifndef TOLUA_RELEASE
06856 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setCaption'",NULL);
06857 #endif
06858 {
06859 self->setCaption(caption);
06860 }
06861 }
06862 return 0;
06863 #ifndef TOLUA_RELEASE
06864 tolua_lerror:
06865 tolua_error(tolua_S,"#ferror in function 'setCaption'.",&tolua_err);
06866 return 0;
06867 #endif
06868 }
06869 #endif //#ifndef TOLUA_DISABLE
06870
06871
06872 #ifndef TOLUA_DISABLE_tolua_stratagus_ButtonWidget_getCaption00
06873 static int tolua_stratagus_ButtonWidget_getCaption00(lua_State* tolua_S)
06874 {
06875 #ifndef TOLUA_RELEASE
06876 tolua_Error tolua_err;
06877 if (
06878 !tolua_isusertype(tolua_S,1,"const ButtonWidget",0,&tolua_err) ||
06879 !tolua_isnoobj(tolua_S,2,&tolua_err)
06880 )
06881 goto tolua_lerror;
06882 else
06883 #endif
06884 {
06885 const ButtonWidget* self = (const ButtonWidget*) tolua_tousertype(tolua_S,1,0);
06886 #ifndef TOLUA_RELEASE
06887 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getCaption'",NULL);
06888 #endif
06889 {
06890 const std::string tolua_ret = (const std::string) self->getCaption();
06891 tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
06892 }
06893 }
06894 return 1;
06895 #ifndef TOLUA_RELEASE
06896 tolua_lerror:
06897 tolua_error(tolua_S,"#ferror in function 'getCaption'.",&tolua_err);
06898 return 0;
06899 #endif
06900 }
06901 #endif //#ifndef TOLUA_DISABLE
06902
06903
06904 #ifndef TOLUA_DISABLE_tolua_stratagus_ButtonWidget_adjustSize00
06905 static int tolua_stratagus_ButtonWidget_adjustSize00(lua_State* tolua_S)
06906 {
06907 #ifndef TOLUA_RELEASE
06908 tolua_Error tolua_err;
06909 if (
06910 !tolua_isusertype(tolua_S,1,"ButtonWidget",0,&tolua_err) ||
06911 !tolua_isnoobj(tolua_S,2,&tolua_err)
06912 )
06913 goto tolua_lerror;
06914 else
06915 #endif
06916 {
06917 ButtonWidget* self = (ButtonWidget*) tolua_tousertype(tolua_S,1,0);
06918 #ifndef TOLUA_RELEASE
06919 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'adjustSize'",NULL);
06920 #endif
06921 {
06922 self->adjustSize();
06923 }
06924 }
06925 return 0;
06926 #ifndef TOLUA_RELEASE
06927 tolua_lerror:
06928 tolua_error(tolua_S,"#ferror in function 'adjustSize'.",&tolua_err);
06929 return 0;
06930 #endif
06931 }
06932 #endif //#ifndef TOLUA_DISABLE
06933
06934
06935 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageButton_new00
06936 static int tolua_stratagus_ImageButton_new00(lua_State* tolua_S)
06937 {
06938 #ifndef TOLUA_RELEASE
06939 tolua_Error tolua_err;
06940 if (
06941 !tolua_isusertable(tolua_S,1,"ImageButton",0,&tolua_err) ||
06942 !tolua_isnoobj(tolua_S,2,&tolua_err)
06943 )
06944 goto tolua_lerror;
06945 else
06946 #endif
06947 {
06948 {
06949 ImageButton* tolua_ret = (ImageButton*) new ImageButton();
06950 tolua_pushusertype(tolua_S,(void*)tolua_ret,"ImageButton");
06951 }
06952 }
06953 return 1;
06954 #ifndef TOLUA_RELEASE
06955 tolua_lerror:
06956 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
06957 return 0;
06958 #endif
06959 }
06960 #endif //#ifndef TOLUA_DISABLE
06961
06962
06963 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageButton_new00_local
06964 static int tolua_stratagus_ImageButton_new00_local(lua_State* tolua_S)
06965 {
06966 #ifndef TOLUA_RELEASE
06967 tolua_Error tolua_err;
06968 if (
06969 !tolua_isusertable(tolua_S,1,"ImageButton",0,&tolua_err) ||
06970 !tolua_isnoobj(tolua_S,2,&tolua_err)
06971 )
06972 goto tolua_lerror;
06973 else
06974 #endif
06975 {
06976 {
06977 ImageButton* tolua_ret = (ImageButton*) new ImageButton();
06978 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"ImageButton");
06979 }
06980 }
06981 return 1;
06982 #ifndef TOLUA_RELEASE
06983 tolua_lerror:
06984 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
06985 return 0;
06986 #endif
06987 }
06988 #endif //#ifndef TOLUA_DISABLE
06989
06990
06991 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageButton_new01
06992 static int tolua_stratagus_ImageButton_new01(lua_State* tolua_S)
06993 {
06994 tolua_Error tolua_err;
06995 if (
06996 !tolua_isusertable(tolua_S,1,"ImageButton",0,&tolua_err) ||
06997 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
06998 !tolua_isnoobj(tolua_S,3,&tolua_err)
06999 )
07000 goto tolua_lerror;
07001 else
07002 {
07003 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,2,0));
07004 {
07005 ImageButton* tolua_ret = (ImageButton*) new ImageButton(caption);
07006 tolua_pushusertype(tolua_S,(void*)tolua_ret,"ImageButton");
07007 }
07008 }
07009 return 1;
07010 tolua_lerror:
07011 return tolua_stratagus_ImageButton_new00(tolua_S);
07012 }
07013 #endif //#ifndef TOLUA_DISABLE
07014
07015
07016 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageButton_new01_local
07017 static int tolua_stratagus_ImageButton_new01_local(lua_State* tolua_S)
07018 {
07019 tolua_Error tolua_err;
07020 if (
07021 !tolua_isusertable(tolua_S,1,"ImageButton",0,&tolua_err) ||
07022 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
07023 !tolua_isnoobj(tolua_S,3,&tolua_err)
07024 )
07025 goto tolua_lerror;
07026 else
07027 {
07028 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,2,0));
07029 {
07030 ImageButton* tolua_ret = (ImageButton*) new ImageButton(caption);
07031 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"ImageButton");
07032 }
07033 }
07034 return 1;
07035 tolua_lerror:
07036 return tolua_stratagus_ImageButton_new00_local(tolua_S);
07037 }
07038 #endif //#ifndef TOLUA_DISABLE
07039
07040
07041 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageButton_setNormalImage00
07042 static int tolua_stratagus_ImageButton_setNormalImage00(lua_State* tolua_S)
07043 {
07044 #ifndef TOLUA_RELEASE
07045 tolua_Error tolua_err;
07046 if (
07047 !tolua_isusertype(tolua_S,1,"ImageButton",0,&tolua_err) ||
07048 !tolua_isusertype(tolua_S,2,"CGraphic",0,&tolua_err) ||
07049 !tolua_isnoobj(tolua_S,3,&tolua_err)
07050 )
07051 goto tolua_lerror;
07052 else
07053 #endif
07054 {
07055 ImageButton* self = (ImageButton*) tolua_tousertype(tolua_S,1,0);
07056 CGraphic* image = ((CGraphic*) tolua_tousertype(tolua_S,2,0));
07057 #ifndef TOLUA_RELEASE
07058 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setNormalImage'",NULL);
07059 #endif
07060 {
07061 self->setNormalImage(image);
07062 }
07063 }
07064 return 0;
07065 #ifndef TOLUA_RELEASE
07066 tolua_lerror:
07067 tolua_error(tolua_S,"#ferror in function 'setNormalImage'.",&tolua_err);
07068 return 0;
07069 #endif
07070 }
07071 #endif //#ifndef TOLUA_DISABLE
07072
07073
07074 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageButton_setPressedImage00
07075 static int tolua_stratagus_ImageButton_setPressedImage00(lua_State* tolua_S)
07076 {
07077 #ifndef TOLUA_RELEASE
07078 tolua_Error tolua_err;
07079 if (
07080 !tolua_isusertype(tolua_S,1,"ImageButton",0,&tolua_err) ||
07081 !tolua_isusertype(tolua_S,2,"CGraphic",0,&tolua_err) ||
07082 !tolua_isnoobj(tolua_S,3,&tolua_err)
07083 )
07084 goto tolua_lerror;
07085 else
07086 #endif
07087 {
07088 ImageButton* self = (ImageButton*) tolua_tousertype(tolua_S,1,0);
07089 CGraphic* image = ((CGraphic*) tolua_tousertype(tolua_S,2,0));
07090 #ifndef TOLUA_RELEASE
07091 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setPressedImage'",NULL);
07092 #endif
07093 {
07094 self->setPressedImage(image);
07095 }
07096 }
07097 return 0;
07098 #ifndef TOLUA_RELEASE
07099 tolua_lerror:
07100 tolua_error(tolua_S,"#ferror in function 'setPressedImage'.",&tolua_err);
07101 return 0;
07102 #endif
07103 }
07104 #endif //#ifndef TOLUA_DISABLE
07105
07106
07107 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageButton_setDisabledImage00
07108 static int tolua_stratagus_ImageButton_setDisabledImage00(lua_State* tolua_S)
07109 {
07110 #ifndef TOLUA_RELEASE
07111 tolua_Error tolua_err;
07112 if (
07113 !tolua_isusertype(tolua_S,1,"ImageButton",0,&tolua_err) ||
07114 !tolua_isusertype(tolua_S,2,"CGraphic",0,&tolua_err) ||
07115 !tolua_isnoobj(tolua_S,3,&tolua_err)
07116 )
07117 goto tolua_lerror;
07118 else
07119 #endif
07120 {
07121 ImageButton* self = (ImageButton*) tolua_tousertype(tolua_S,1,0);
07122 CGraphic* image = ((CGraphic*) tolua_tousertype(tolua_S,2,0));
07123 #ifndef TOLUA_RELEASE
07124 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setDisabledImage'",NULL);
07125 #endif
07126 {
07127 self->setDisabledImage(image);
07128 }
07129 }
07130 return 0;
07131 #ifndef TOLUA_RELEASE
07132 tolua_lerror:
07133 tolua_error(tolua_S,"#ferror in function 'setDisabledImage'.",&tolua_err);
07134 return 0;
07135 #endif
07136 }
07137 #endif //#ifndef TOLUA_DISABLE
07138
07139
07140 #ifndef TOLUA_DISABLE_tolua_stratagus_RadioButton_new00
07141 static int tolua_stratagus_RadioButton_new00(lua_State* tolua_S)
07142 {
07143 #ifndef TOLUA_RELEASE
07144 tolua_Error tolua_err;
07145 if (
07146 !tolua_isusertable(tolua_S,1,"RadioButton",0,&tolua_err) ||
07147 !tolua_isnoobj(tolua_S,2,&tolua_err)
07148 )
07149 goto tolua_lerror;
07150 else
07151 #endif
07152 {
07153 {
07154 RadioButton* tolua_ret = (RadioButton*) new RadioButton();
07155 tolua_pushusertype(tolua_S,(void*)tolua_ret,"RadioButton");
07156 }
07157 }
07158 return 1;
07159 #ifndef TOLUA_RELEASE
07160 tolua_lerror:
07161 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
07162 return 0;
07163 #endif
07164 }
07165 #endif //#ifndef TOLUA_DISABLE
07166
07167
07168 #ifndef TOLUA_DISABLE_tolua_stratagus_RadioButton_new00_local
07169 static int tolua_stratagus_RadioButton_new00_local(lua_State* tolua_S)
07170 {
07171 #ifndef TOLUA_RELEASE
07172 tolua_Error tolua_err;
07173 if (
07174 !tolua_isusertable(tolua_S,1,"RadioButton",0,&tolua_err) ||
07175 !tolua_isnoobj(tolua_S,2,&tolua_err)
07176 )
07177 goto tolua_lerror;
07178 else
07179 #endif
07180 {
07181 {
07182 RadioButton* tolua_ret = (RadioButton*) new RadioButton();
07183 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"RadioButton");
07184 }
07185 }
07186 return 1;
07187 #ifndef TOLUA_RELEASE
07188 tolua_lerror:
07189 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
07190 return 0;
07191 #endif
07192 }
07193 #endif //#ifndef TOLUA_DISABLE
07194
07195
07196 #ifndef TOLUA_DISABLE_tolua_stratagus_RadioButton_new01
07197 static int tolua_stratagus_RadioButton_new01(lua_State* tolua_S)
07198 {
07199 tolua_Error tolua_err;
07200 if (
07201 !tolua_isusertable(tolua_S,1,"RadioButton",0,&tolua_err) ||
07202 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
07203 !tolua_iscppstring(tolua_S,3,0,&tolua_err) ||
07204 !tolua_isboolean(tolua_S,4,1,&tolua_err) ||
07205 !tolua_isnoobj(tolua_S,5,&tolua_err)
07206 )
07207 goto tolua_lerror;
07208 else
07209 {
07210 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,2,0));
07211 const std::string group = ((const std::string) tolua_tocppstring(tolua_S,3,0));
07212 bool marked = ((bool) tolua_toboolean(tolua_S,4,false));
07213 {
07214 RadioButton* tolua_ret = (RadioButton*) new RadioButton(caption,group,marked);
07215 tolua_pushusertype(tolua_S,(void*)tolua_ret,"RadioButton");
07216 }
07217 }
07218 return 1;
07219 tolua_lerror:
07220 return tolua_stratagus_RadioButton_new00(tolua_S);
07221 }
07222 #endif //#ifndef TOLUA_DISABLE
07223
07224
07225 #ifndef TOLUA_DISABLE_tolua_stratagus_RadioButton_new01_local
07226 static int tolua_stratagus_RadioButton_new01_local(lua_State* tolua_S)
07227 {
07228 tolua_Error tolua_err;
07229 if (
07230 !tolua_isusertable(tolua_S,1,"RadioButton",0,&tolua_err) ||
07231 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
07232 !tolua_iscppstring(tolua_S,3,0,&tolua_err) ||
07233 !tolua_isboolean(tolua_S,4,1,&tolua_err) ||
07234 !tolua_isnoobj(tolua_S,5,&tolua_err)
07235 )
07236 goto tolua_lerror;
07237 else
07238 {
07239 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,2,0));
07240 const std::string group = ((const std::string) tolua_tocppstring(tolua_S,3,0));
07241 bool marked = ((bool) tolua_toboolean(tolua_S,4,false));
07242 {
07243 RadioButton* tolua_ret = (RadioButton*) new RadioButton(caption,group,marked);
07244 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"RadioButton");
07245 }
07246 }
07247 return 1;
07248 tolua_lerror:
07249 return tolua_stratagus_RadioButton_new00_local(tolua_S);
07250 }
07251 #endif //#ifndef TOLUA_DISABLE
07252
07253
07254 #ifndef TOLUA_DISABLE_tolua_stratagus_RadioButton_isMarked00
07255 static int tolua_stratagus_RadioButton_isMarked00(lua_State* tolua_S)
07256 {
07257 #ifndef TOLUA_RELEASE
07258 tolua_Error tolua_err;
07259 if (
07260 !tolua_isusertype(tolua_S,1,"RadioButton",0,&tolua_err) ||
07261 !tolua_isnoobj(tolua_S,2,&tolua_err)
07262 )
07263 goto tolua_lerror;
07264 else
07265 #endif
07266 {
07267 RadioButton* self = (RadioButton*) tolua_tousertype(tolua_S,1,0);
07268 #ifndef TOLUA_RELEASE
07269 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'isMarked'",NULL);
07270 #endif
07271 {
07272 bool tolua_ret = (bool) self->isMarked();
07273 tolua_pushboolean(tolua_S,(bool)tolua_ret);
07274 }
07275 }
07276 return 1;
07277 #ifndef TOLUA_RELEASE
07278 tolua_lerror:
07279 tolua_error(tolua_S,"#ferror in function 'isMarked'.",&tolua_err);
07280 return 0;
07281 #endif
07282 }
07283 #endif //#ifndef TOLUA_DISABLE
07284
07285
07286 #ifndef TOLUA_DISABLE_tolua_stratagus_RadioButton_setMarked00
07287 static int tolua_stratagus_RadioButton_setMarked00(lua_State* tolua_S)
07288 {
07289 #ifndef TOLUA_RELEASE
07290 tolua_Error tolua_err;
07291 if (
07292 !tolua_isusertype(tolua_S,1,"RadioButton",0,&tolua_err) ||
07293 !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
07294 !tolua_isnoobj(tolua_S,3,&tolua_err)
07295 )
07296 goto tolua_lerror;
07297 else
07298 #endif
07299 {
07300 RadioButton* self = (RadioButton*) tolua_tousertype(tolua_S,1,0);
07301 bool marked = ((bool) tolua_toboolean(tolua_S,2,0));
07302 #ifndef TOLUA_RELEASE
07303 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setMarked'",NULL);
07304 #endif
07305 {
07306 self->setMarked(marked);
07307 }
07308 }
07309 return 0;
07310 #ifndef TOLUA_RELEASE
07311 tolua_lerror:
07312 tolua_error(tolua_S,"#ferror in function 'setMarked'.",&tolua_err);
07313 return 0;
07314 #endif
07315 }
07316 #endif //#ifndef TOLUA_DISABLE
07317
07318
07319 #ifndef TOLUA_DISABLE_tolua_stratagus_RadioButton_getCaption00
07320 static int tolua_stratagus_RadioButton_getCaption00(lua_State* tolua_S)
07321 {
07322 #ifndef TOLUA_RELEASE
07323 tolua_Error tolua_err;
07324 if (
07325 !tolua_isusertype(tolua_S,1,"const RadioButton",0,&tolua_err) ||
07326 !tolua_isnoobj(tolua_S,2,&tolua_err)
07327 )
07328 goto tolua_lerror;
07329 else
07330 #endif
07331 {
07332 const RadioButton* self = (const RadioButton*) tolua_tousertype(tolua_S,1,0);
07333 #ifndef TOLUA_RELEASE
07334 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getCaption'",NULL);
07335 #endif
07336 {
07337 const std::string tolua_ret = (const std::string) self->getCaption();
07338 tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
07339 }
07340 }
07341 return 1;
07342 #ifndef TOLUA_RELEASE
07343 tolua_lerror:
07344 tolua_error(tolua_S,"#ferror in function 'getCaption'.",&tolua_err);
07345 return 0;
07346 #endif
07347 }
07348 #endif //#ifndef TOLUA_DISABLE
07349
07350
07351 #ifndef TOLUA_DISABLE_tolua_stratagus_RadioButton_setCaption00
07352 static int tolua_stratagus_RadioButton_setCaption00(lua_State* tolua_S)
07353 {
07354 #ifndef TOLUA_RELEASE
07355 tolua_Error tolua_err;
07356 if (
07357 !tolua_isusertype(tolua_S,1,"RadioButton",0,&tolua_err) ||
07358 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
07359 !tolua_isnoobj(tolua_S,3,&tolua_err)
07360 )
07361 goto tolua_lerror;
07362 else
07363 #endif
07364 {
07365 RadioButton* self = (RadioButton*) tolua_tousertype(tolua_S,1,0);
07366 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,2,0));
07367 #ifndef TOLUA_RELEASE
07368 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setCaption'",NULL);
07369 #endif
07370 {
07371 self->setCaption(caption);
07372 }
07373 }
07374 return 0;
07375 #ifndef TOLUA_RELEASE
07376 tolua_lerror:
07377 tolua_error(tolua_S,"#ferror in function 'setCaption'.",&tolua_err);
07378 return 0;
07379 #endif
07380 }
07381 #endif //#ifndef TOLUA_DISABLE
07382
07383
07384 #ifndef TOLUA_DISABLE_tolua_stratagus_RadioButton_setGroup00
07385 static int tolua_stratagus_RadioButton_setGroup00(lua_State* tolua_S)
07386 {
07387 #ifndef TOLUA_RELEASE
07388 tolua_Error tolua_err;
07389 if (
07390 !tolua_isusertype(tolua_S,1,"RadioButton",0,&tolua_err) ||
07391 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
07392 !tolua_isnoobj(tolua_S,3,&tolua_err)
07393 )
07394 goto tolua_lerror;
07395 else
07396 #endif
07397 {
07398 RadioButton* self = (RadioButton*) tolua_tousertype(tolua_S,1,0);
07399 const std::string group = ((const std::string) tolua_tocppstring(tolua_S,2,0));
07400 #ifndef TOLUA_RELEASE
07401 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setGroup'",NULL);
07402 #endif
07403 {
07404 self->setGroup(group);
07405 }
07406 }
07407 return 0;
07408 #ifndef TOLUA_RELEASE
07409 tolua_lerror:
07410 tolua_error(tolua_S,"#ferror in function 'setGroup'.",&tolua_err);
07411 return 0;
07412 #endif
07413 }
07414 #endif //#ifndef TOLUA_DISABLE
07415
07416
07417 #ifndef TOLUA_DISABLE_tolua_stratagus_RadioButton_getGroup00
07418 static int tolua_stratagus_RadioButton_getGroup00(lua_State* tolua_S)
07419 {
07420 #ifndef TOLUA_RELEASE
07421 tolua_Error tolua_err;
07422 if (
07423 !tolua_isusertype(tolua_S,1,"const RadioButton",0,&tolua_err) ||
07424 !tolua_isnoobj(tolua_S,2,&tolua_err)
07425 )
07426 goto tolua_lerror;
07427 else
07428 #endif
07429 {
07430 const RadioButton* self = (const RadioButton*) tolua_tousertype(tolua_S,1,0);
07431 #ifndef TOLUA_RELEASE
07432 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getGroup'",NULL);
07433 #endif
07434 {
07435 const std::string tolua_ret = (const std::string) self->getGroup();
07436 tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
07437 }
07438 }
07439 return 1;
07440 #ifndef TOLUA_RELEASE
07441 tolua_lerror:
07442 tolua_error(tolua_S,"#ferror in function 'getGroup'.",&tolua_err);
07443 return 0;
07444 #endif
07445 }
07446 #endif //#ifndef TOLUA_DISABLE
07447
07448
07449 #ifndef TOLUA_DISABLE_tolua_stratagus_RadioButton_adjustSize00
07450 static int tolua_stratagus_RadioButton_adjustSize00(lua_State* tolua_S)
07451 {
07452 #ifndef TOLUA_RELEASE
07453 tolua_Error tolua_err;
07454 if (
07455 !tolua_isusertype(tolua_S,1,"RadioButton",0,&tolua_err) ||
07456 !tolua_isnoobj(tolua_S,2,&tolua_err)
07457 )
07458 goto tolua_lerror;
07459 else
07460 #endif
07461 {
07462 RadioButton* self = (RadioButton*) tolua_tousertype(tolua_S,1,0);
07463 #ifndef TOLUA_RELEASE
07464 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'adjustSize'",NULL);
07465 #endif
07466 {
07467 self->adjustSize();
07468 }
07469 }
07470 return 0;
07471 #ifndef TOLUA_RELEASE
07472 tolua_lerror:
07473 tolua_error(tolua_S,"#ferror in function 'adjustSize'.",&tolua_err);
07474 return 0;
07475 #endif
07476 }
07477 #endif //#ifndef TOLUA_DISABLE
07478
07479
07480 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageRadioButton_new00
07481 static int tolua_stratagus_ImageRadioButton_new00(lua_State* tolua_S)
07482 {
07483 #ifndef TOLUA_RELEASE
07484 tolua_Error tolua_err;
07485 if (
07486 !tolua_isusertable(tolua_S,1,"ImageRadioButton",0,&tolua_err) ||
07487 !tolua_isnoobj(tolua_S,2,&tolua_err)
07488 )
07489 goto tolua_lerror;
07490 else
07491 #endif
07492 {
07493 {
07494 ImageRadioButton* tolua_ret = (ImageRadioButton*) new ImageRadioButton();
07495 tolua_pushusertype(tolua_S,(void*)tolua_ret,"ImageRadioButton");
07496 }
07497 }
07498 return 1;
07499 #ifndef TOLUA_RELEASE
07500 tolua_lerror:
07501 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
07502 return 0;
07503 #endif
07504 }
07505 #endif //#ifndef TOLUA_DISABLE
07506
07507
07508 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageRadioButton_new00_local
07509 static int tolua_stratagus_ImageRadioButton_new00_local(lua_State* tolua_S)
07510 {
07511 #ifndef TOLUA_RELEASE
07512 tolua_Error tolua_err;
07513 if (
07514 !tolua_isusertable(tolua_S,1,"ImageRadioButton",0,&tolua_err) ||
07515 !tolua_isnoobj(tolua_S,2,&tolua_err)
07516 )
07517 goto tolua_lerror;
07518 else
07519 #endif
07520 {
07521 {
07522 ImageRadioButton* tolua_ret = (ImageRadioButton*) new ImageRadioButton();
07523 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"ImageRadioButton");
07524 }
07525 }
07526 return 1;
07527 #ifndef TOLUA_RELEASE
07528 tolua_lerror:
07529 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
07530 return 0;
07531 #endif
07532 }
07533 #endif //#ifndef TOLUA_DISABLE
07534
07535
07536 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageRadioButton_new01
07537 static int tolua_stratagus_ImageRadioButton_new01(lua_State* tolua_S)
07538 {
07539 tolua_Error tolua_err;
07540 if (
07541 !tolua_isusertable(tolua_S,1,"ImageRadioButton",0,&tolua_err) ||
07542 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
07543 !tolua_iscppstring(tolua_S,3,0,&tolua_err) ||
07544 !tolua_isboolean(tolua_S,4,1,&tolua_err) ||
07545 !tolua_isnoobj(tolua_S,5,&tolua_err)
07546 )
07547 goto tolua_lerror;
07548 else
07549 {
07550 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,2,0));
07551 const std::string group = ((const std::string) tolua_tocppstring(tolua_S,3,0));
07552 bool marked = ((bool) tolua_toboolean(tolua_S,4,false));
07553 {
07554 ImageRadioButton* tolua_ret = (ImageRadioButton*) new ImageRadioButton(caption,group,marked);
07555 tolua_pushusertype(tolua_S,(void*)tolua_ret,"ImageRadioButton");
07556 }
07557 }
07558 return 1;
07559 tolua_lerror:
07560 return tolua_stratagus_ImageRadioButton_new00(tolua_S);
07561 }
07562 #endif //#ifndef TOLUA_DISABLE
07563
07564
07565 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageRadioButton_new01_local
07566 static int tolua_stratagus_ImageRadioButton_new01_local(lua_State* tolua_S)
07567 {
07568 tolua_Error tolua_err;
07569 if (
07570 !tolua_isusertable(tolua_S,1,"ImageRadioButton",0,&tolua_err) ||
07571 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
07572 !tolua_iscppstring(tolua_S,3,0,&tolua_err) ||
07573 !tolua_isboolean(tolua_S,4,1,&tolua_err) ||
07574 !tolua_isnoobj(tolua_S,5,&tolua_err)
07575 )
07576 goto tolua_lerror;
07577 else
07578 {
07579 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,2,0));
07580 const std::string group = ((const std::string) tolua_tocppstring(tolua_S,3,0));
07581 bool marked = ((bool) tolua_toboolean(tolua_S,4,false));
07582 {
07583 ImageRadioButton* tolua_ret = (ImageRadioButton*) new ImageRadioButton(caption,group,marked);
07584 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"ImageRadioButton");
07585 }
07586 }
07587 return 1;
07588 tolua_lerror:
07589 return tolua_stratagus_ImageRadioButton_new00_local(tolua_S);
07590 }
07591 #endif //#ifndef TOLUA_DISABLE
07592
07593
07594 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageRadioButton_setUncheckedNormalImage00
07595 static int tolua_stratagus_ImageRadioButton_setUncheckedNormalImage00(lua_State* tolua_S)
07596 {
07597 #ifndef TOLUA_RELEASE
07598 tolua_Error tolua_err;
07599 if (
07600 !tolua_isusertype(tolua_S,1,"ImageRadioButton",0,&tolua_err) ||
07601 !tolua_isusertype(tolua_S,2,"CGraphic",0,&tolua_err) ||
07602 !tolua_isnoobj(tolua_S,3,&tolua_err)
07603 )
07604 goto tolua_lerror;
07605 else
07606 #endif
07607 {
07608 ImageRadioButton* self = (ImageRadioButton*) tolua_tousertype(tolua_S,1,0);
07609 CGraphic* image = ((CGraphic*) tolua_tousertype(tolua_S,2,0));
07610 #ifndef TOLUA_RELEASE
07611 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setUncheckedNormalImage'",NULL);
07612 #endif
07613 {
07614 self->setUncheckedNormalImage(image);
07615 }
07616 }
07617 return 0;
07618 #ifndef TOLUA_RELEASE
07619 tolua_lerror:
07620 tolua_error(tolua_S,"#ferror in function 'setUncheckedNormalImage'.",&tolua_err);
07621 return 0;
07622 #endif
07623 }
07624 #endif //#ifndef TOLUA_DISABLE
07625
07626
07627 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageRadioButton_setUncheckedPressedImage00
07628 static int tolua_stratagus_ImageRadioButton_setUncheckedPressedImage00(lua_State* tolua_S)
07629 {
07630 #ifndef TOLUA_RELEASE
07631 tolua_Error tolua_err;
07632 if (
07633 !tolua_isusertype(tolua_S,1,"ImageRadioButton",0,&tolua_err) ||
07634 !tolua_isusertype(tolua_S,2,"CGraphic",0,&tolua_err) ||
07635 !tolua_isnoobj(tolua_S,3,&tolua_err)
07636 )
07637 goto tolua_lerror;
07638 else
07639 #endif
07640 {
07641 ImageRadioButton* self = (ImageRadioButton*) tolua_tousertype(tolua_S,1,0);
07642 CGraphic* image = ((CGraphic*) tolua_tousertype(tolua_S,2,0));
07643 #ifndef TOLUA_RELEASE
07644 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setUncheckedPressedImage'",NULL);
07645 #endif
07646 {
07647 self->setUncheckedPressedImage(image);
07648 }
07649 }
07650 return 0;
07651 #ifndef TOLUA_RELEASE
07652 tolua_lerror:
07653 tolua_error(tolua_S,"#ferror in function 'setUncheckedPressedImage'.",&tolua_err);
07654 return 0;
07655 #endif
07656 }
07657 #endif //#ifndef TOLUA_DISABLE
07658
07659
07660 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageRadioButton_setCheckedNormalImage00
07661 static int tolua_stratagus_ImageRadioButton_setCheckedNormalImage00(lua_State* tolua_S)
07662 {
07663 #ifndef TOLUA_RELEASE
07664 tolua_Error tolua_err;
07665 if (
07666 !tolua_isusertype(tolua_S,1,"ImageRadioButton",0,&tolua_err) ||
07667 !tolua_isusertype(tolua_S,2,"CGraphic",0,&tolua_err) ||
07668 !tolua_isnoobj(tolua_S,3,&tolua_err)
07669 )
07670 goto tolua_lerror;
07671 else
07672 #endif
07673 {
07674 ImageRadioButton* self = (ImageRadioButton*) tolua_tousertype(tolua_S,1,0);
07675 CGraphic* image = ((CGraphic*) tolua_tousertype(tolua_S,2,0));
07676 #ifndef TOLUA_RELEASE
07677 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setCheckedNormalImage'",NULL);
07678 #endif
07679 {
07680 self->setCheckedNormalImage(image);
07681 }
07682 }
07683 return 0;
07684 #ifndef TOLUA_RELEASE
07685 tolua_lerror:
07686 tolua_error(tolua_S,"#ferror in function 'setCheckedNormalImage'.",&tolua_err);
07687 return 0;
07688 #endif
07689 }
07690 #endif //#ifndef TOLUA_DISABLE
07691
07692
07693 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageRadioButton_setCheckedPressedImage00
07694 static int tolua_stratagus_ImageRadioButton_setCheckedPressedImage00(lua_State* tolua_S)
07695 {
07696 #ifndef TOLUA_RELEASE
07697 tolua_Error tolua_err;
07698 if (
07699 !tolua_isusertype(tolua_S,1,"ImageRadioButton",0,&tolua_err) ||
07700 !tolua_isusertype(tolua_S,2,"CGraphic",0,&tolua_err) ||
07701 !tolua_isnoobj(tolua_S,3,&tolua_err)
07702 )
07703 goto tolua_lerror;
07704 else
07705 #endif
07706 {
07707 ImageRadioButton* self = (ImageRadioButton*) tolua_tousertype(tolua_S,1,0);
07708 CGraphic* image = ((CGraphic*) tolua_tousertype(tolua_S,2,0));
07709 #ifndef TOLUA_RELEASE
07710 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setCheckedPressedImage'",NULL);
07711 #endif
07712 {
07713 self->setCheckedPressedImage(image);
07714 }
07715 }
07716 return 0;
07717 #ifndef TOLUA_RELEASE
07718 tolua_lerror:
07719 tolua_error(tolua_S,"#ferror in function 'setCheckedPressedImage'.",&tolua_err);
07720 return 0;
07721 #endif
07722 }
07723 #endif //#ifndef TOLUA_DISABLE
07724
07725
07726 #ifndef TOLUA_DISABLE_tolua_stratagus_CheckBox_new00
07727 static int tolua_stratagus_CheckBox_new00(lua_State* tolua_S)
07728 {
07729 #ifndef TOLUA_RELEASE
07730 tolua_Error tolua_err;
07731 if (
07732 !tolua_isusertable(tolua_S,1,"CheckBox",0,&tolua_err) ||
07733 !tolua_isnoobj(tolua_S,2,&tolua_err)
07734 )
07735 goto tolua_lerror;
07736 else
07737 #endif
07738 {
07739 {
07740 CheckBox* tolua_ret = (CheckBox*) new CheckBox();
07741 tolua_pushusertype(tolua_S,(void*)tolua_ret,"CheckBox");
07742 }
07743 }
07744 return 1;
07745 #ifndef TOLUA_RELEASE
07746 tolua_lerror:
07747 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
07748 return 0;
07749 #endif
07750 }
07751 #endif //#ifndef TOLUA_DISABLE
07752
07753
07754 #ifndef TOLUA_DISABLE_tolua_stratagus_CheckBox_new00_local
07755 static int tolua_stratagus_CheckBox_new00_local(lua_State* tolua_S)
07756 {
07757 #ifndef TOLUA_RELEASE
07758 tolua_Error tolua_err;
07759 if (
07760 !tolua_isusertable(tolua_S,1,"CheckBox",0,&tolua_err) ||
07761 !tolua_isnoobj(tolua_S,2,&tolua_err)
07762 )
07763 goto tolua_lerror;
07764 else
07765 #endif
07766 {
07767 {
07768 CheckBox* tolua_ret = (CheckBox*) new CheckBox();
07769 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"CheckBox");
07770 }
07771 }
07772 return 1;
07773 #ifndef TOLUA_RELEASE
07774 tolua_lerror:
07775 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
07776 return 0;
07777 #endif
07778 }
07779 #endif //#ifndef TOLUA_DISABLE
07780
07781
07782 #ifndef TOLUA_DISABLE_tolua_stratagus_CheckBox_new01
07783 static int tolua_stratagus_CheckBox_new01(lua_State* tolua_S)
07784 {
07785 tolua_Error tolua_err;
07786 if (
07787 !tolua_isusertable(tolua_S,1,"CheckBox",0,&tolua_err) ||
07788 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
07789 !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
07790 !tolua_isnoobj(tolua_S,4,&tolua_err)
07791 )
07792 goto tolua_lerror;
07793 else
07794 {
07795 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,2,0));
07796 bool marked = ((bool) tolua_toboolean(tolua_S,3,false));
07797 {
07798 CheckBox* tolua_ret = (CheckBox*) new CheckBox(caption,marked);
07799 tolua_pushusertype(tolua_S,(void*)tolua_ret,"CheckBox");
07800 }
07801 }
07802 return 1;
07803 tolua_lerror:
07804 return tolua_stratagus_CheckBox_new00(tolua_S);
07805 }
07806 #endif //#ifndef TOLUA_DISABLE
07807
07808
07809 #ifndef TOLUA_DISABLE_tolua_stratagus_CheckBox_new01_local
07810 static int tolua_stratagus_CheckBox_new01_local(lua_State* tolua_S)
07811 {
07812 tolua_Error tolua_err;
07813 if (
07814 !tolua_isusertable(tolua_S,1,"CheckBox",0,&tolua_err) ||
07815 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
07816 !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
07817 !tolua_isnoobj(tolua_S,4,&tolua_err)
07818 )
07819 goto tolua_lerror;
07820 else
07821 {
07822 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,2,0));
07823 bool marked = ((bool) tolua_toboolean(tolua_S,3,false));
07824 {
07825 CheckBox* tolua_ret = (CheckBox*) new CheckBox(caption,marked);
07826 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"CheckBox");
07827 }
07828 }
07829 return 1;
07830 tolua_lerror:
07831 return tolua_stratagus_CheckBox_new00_local(tolua_S);
07832 }
07833 #endif //#ifndef TOLUA_DISABLE
07834
07835
07836 #ifndef TOLUA_DISABLE_tolua_stratagus_CheckBox_isMarked00
07837 static int tolua_stratagus_CheckBox_isMarked00(lua_State* tolua_S)
07838 {
07839 #ifndef TOLUA_RELEASE
07840 tolua_Error tolua_err;
07841 if (
07842 !tolua_isusertype(tolua_S,1,"const CheckBox",0,&tolua_err) ||
07843 !tolua_isnoobj(tolua_S,2,&tolua_err)
07844 )
07845 goto tolua_lerror;
07846 else
07847 #endif
07848 {
07849 const CheckBox* self = (const CheckBox*) tolua_tousertype(tolua_S,1,0);
07850 #ifndef TOLUA_RELEASE
07851 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'isMarked'",NULL);
07852 #endif
07853 {
07854 bool tolua_ret = (bool) self->isMarked();
07855 tolua_pushboolean(tolua_S,(bool)tolua_ret);
07856 }
07857 }
07858 return 1;
07859 #ifndef TOLUA_RELEASE
07860 tolua_lerror:
07861 tolua_error(tolua_S,"#ferror in function 'isMarked'.",&tolua_err);
07862 return 0;
07863 #endif
07864 }
07865 #endif //#ifndef TOLUA_DISABLE
07866
07867
07868 #ifndef TOLUA_DISABLE_tolua_stratagus_CheckBox_setMarked00
07869 static int tolua_stratagus_CheckBox_setMarked00(lua_State* tolua_S)
07870 {
07871 #ifndef TOLUA_RELEASE
07872 tolua_Error tolua_err;
07873 if (
07874 !tolua_isusertype(tolua_S,1,"CheckBox",0,&tolua_err) ||
07875 !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
07876 !tolua_isnoobj(tolua_S,3,&tolua_err)
07877 )
07878 goto tolua_lerror;
07879 else
07880 #endif
07881 {
07882 CheckBox* self = (CheckBox*) tolua_tousertype(tolua_S,1,0);
07883 bool marked = ((bool) tolua_toboolean(tolua_S,2,0));
07884 #ifndef TOLUA_RELEASE
07885 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setMarked'",NULL);
07886 #endif
07887 {
07888 self->setMarked(marked);
07889 }
07890 }
07891 return 0;
07892 #ifndef TOLUA_RELEASE
07893 tolua_lerror:
07894 tolua_error(tolua_S,"#ferror in function 'setMarked'.",&tolua_err);
07895 return 0;
07896 #endif
07897 }
07898 #endif //#ifndef TOLUA_DISABLE
07899
07900
07901 #ifndef TOLUA_DISABLE_tolua_stratagus_CheckBox_getCaption00
07902 static int tolua_stratagus_CheckBox_getCaption00(lua_State* tolua_S)
07903 {
07904 #ifndef TOLUA_RELEASE
07905 tolua_Error tolua_err;
07906 if (
07907 !tolua_isusertype(tolua_S,1,"const CheckBox",0,&tolua_err) ||
07908 !tolua_isnoobj(tolua_S,2,&tolua_err)
07909 )
07910 goto tolua_lerror;
07911 else
07912 #endif
07913 {
07914 const CheckBox* self = (const CheckBox*) tolua_tousertype(tolua_S,1,0);
07915 #ifndef TOLUA_RELEASE
07916 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getCaption'",NULL);
07917 #endif
07918 {
07919 const std::string tolua_ret = (const std::string) self->getCaption();
07920 tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
07921 }
07922 }
07923 return 1;
07924 #ifndef TOLUA_RELEASE
07925 tolua_lerror:
07926 tolua_error(tolua_S,"#ferror in function 'getCaption'.",&tolua_err);
07927 return 0;
07928 #endif
07929 }
07930 #endif //#ifndef TOLUA_DISABLE
07931
07932
07933 #ifndef TOLUA_DISABLE_tolua_stratagus_CheckBox_setCaption00
07934 static int tolua_stratagus_CheckBox_setCaption00(lua_State* tolua_S)
07935 {
07936 #ifndef TOLUA_RELEASE
07937 tolua_Error tolua_err;
07938 if (
07939 !tolua_isusertype(tolua_S,1,"CheckBox",0,&tolua_err) ||
07940 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
07941 !tolua_isnoobj(tolua_S,3,&tolua_err)
07942 )
07943 goto tolua_lerror;
07944 else
07945 #endif
07946 {
07947 CheckBox* self = (CheckBox*) tolua_tousertype(tolua_S,1,0);
07948 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,2,0));
07949 #ifndef TOLUA_RELEASE
07950 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setCaption'",NULL);
07951 #endif
07952 {
07953 self->setCaption(caption);
07954 }
07955 }
07956 return 0;
07957 #ifndef TOLUA_RELEASE
07958 tolua_lerror:
07959 tolua_error(tolua_S,"#ferror in function 'setCaption'.",&tolua_err);
07960 return 0;
07961 #endif
07962 }
07963 #endif //#ifndef TOLUA_DISABLE
07964
07965
07966 #ifndef TOLUA_DISABLE_tolua_stratagus_CheckBox_adjustSize00
07967 static int tolua_stratagus_CheckBox_adjustSize00(lua_State* tolua_S)
07968 {
07969 #ifndef TOLUA_RELEASE
07970 tolua_Error tolua_err;
07971 if (
07972 !tolua_isusertype(tolua_S,1,"CheckBox",0,&tolua_err) ||
07973 !tolua_isnoobj(tolua_S,2,&tolua_err)
07974 )
07975 goto tolua_lerror;
07976 else
07977 #endif
07978 {
07979 CheckBox* self = (CheckBox*) tolua_tousertype(tolua_S,1,0);
07980 #ifndef TOLUA_RELEASE
07981 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'adjustSize'",NULL);
07982 #endif
07983 {
07984 self->adjustSize();
07985 }
07986 }
07987 return 0;
07988 #ifndef TOLUA_RELEASE
07989 tolua_lerror:
07990 tolua_error(tolua_S,"#ferror in function 'adjustSize'.",&tolua_err);
07991 return 0;
07992 #endif
07993 }
07994 #endif //#ifndef TOLUA_DISABLE
07995
07996
07997 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageCheckBox_new00
07998 static int tolua_stratagus_ImageCheckBox_new00(lua_State* tolua_S)
07999 {
08000 #ifndef TOLUA_RELEASE
08001 tolua_Error tolua_err;
08002 if (
08003 !tolua_isusertable(tolua_S,1,"ImageCheckBox",0,&tolua_err) ||
08004 !tolua_isnoobj(tolua_S,2,&tolua_err)
08005 )
08006 goto tolua_lerror;
08007 else
08008 #endif
08009 {
08010 {
08011 ImageCheckBox* tolua_ret = (ImageCheckBox*) new ImageCheckBox();
08012 tolua_pushusertype(tolua_S,(void*)tolua_ret,"ImageCheckBox");
08013 }
08014 }
08015 return 1;
08016 #ifndef TOLUA_RELEASE
08017 tolua_lerror:
08018 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
08019 return 0;
08020 #endif
08021 }
08022 #endif //#ifndef TOLUA_DISABLE
08023
08024
08025 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageCheckBox_new00_local
08026 static int tolua_stratagus_ImageCheckBox_new00_local(lua_State* tolua_S)
08027 {
08028 #ifndef TOLUA_RELEASE
08029 tolua_Error tolua_err;
08030 if (
08031 !tolua_isusertable(tolua_S,1,"ImageCheckBox",0,&tolua_err) ||
08032 !tolua_isnoobj(tolua_S,2,&tolua_err)
08033 )
08034 goto tolua_lerror;
08035 else
08036 #endif
08037 {
08038 {
08039 ImageCheckBox* tolua_ret = (ImageCheckBox*) new ImageCheckBox();
08040 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"ImageCheckBox");
08041 }
08042 }
08043 return 1;
08044 #ifndef TOLUA_RELEASE
08045 tolua_lerror:
08046 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
08047 return 0;
08048 #endif
08049 }
08050 #endif //#ifndef TOLUA_DISABLE
08051
08052
08053 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageCheckBox_new01
08054 static int tolua_stratagus_ImageCheckBox_new01(lua_State* tolua_S)
08055 {
08056 tolua_Error tolua_err;
08057 if (
08058 !tolua_isusertable(tolua_S,1,"ImageCheckBox",0,&tolua_err) ||
08059 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
08060 !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
08061 !tolua_isnoobj(tolua_S,4,&tolua_err)
08062 )
08063 goto tolua_lerror;
08064 else
08065 {
08066 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,2,0));
08067 bool marked = ((bool) tolua_toboolean(tolua_S,3,false));
08068 {
08069 ImageCheckBox* tolua_ret = (ImageCheckBox*) new ImageCheckBox(caption,marked);
08070 tolua_pushusertype(tolua_S,(void*)tolua_ret,"ImageCheckBox");
08071 }
08072 }
08073 return 1;
08074 tolua_lerror:
08075 return tolua_stratagus_ImageCheckBox_new00(tolua_S);
08076 }
08077 #endif //#ifndef TOLUA_DISABLE
08078
08079
08080 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageCheckBox_new01_local
08081 static int tolua_stratagus_ImageCheckBox_new01_local(lua_State* tolua_S)
08082 {
08083 tolua_Error tolua_err;
08084 if (
08085 !tolua_isusertable(tolua_S,1,"ImageCheckBox",0,&tolua_err) ||
08086 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
08087 !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
08088 !tolua_isnoobj(tolua_S,4,&tolua_err)
08089 )
08090 goto tolua_lerror;
08091 else
08092 {
08093 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,2,0));
08094 bool marked = ((bool) tolua_toboolean(tolua_S,3,false));
08095 {
08096 ImageCheckBox* tolua_ret = (ImageCheckBox*) new ImageCheckBox(caption,marked);
08097 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"ImageCheckBox");
08098 }
08099 }
08100 return 1;
08101 tolua_lerror:
08102 return tolua_stratagus_ImageCheckBox_new00_local(tolua_S);
08103 }
08104 #endif //#ifndef TOLUA_DISABLE
08105
08106
08107 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageCheckBox_setUncheckedNormalImage00
08108 static int tolua_stratagus_ImageCheckBox_setUncheckedNormalImage00(lua_State* tolua_S)
08109 {
08110 #ifndef TOLUA_RELEASE
08111 tolua_Error tolua_err;
08112 if (
08113 !tolua_isusertype(tolua_S,1,"ImageCheckBox",0,&tolua_err) ||
08114 !tolua_isusertype(tolua_S,2,"CGraphic",0,&tolua_err) ||
08115 !tolua_isnoobj(tolua_S,3,&tolua_err)
08116 )
08117 goto tolua_lerror;
08118 else
08119 #endif
08120 {
08121 ImageCheckBox* self = (ImageCheckBox*) tolua_tousertype(tolua_S,1,0);
08122 CGraphic* image = ((CGraphic*) tolua_tousertype(tolua_S,2,0));
08123 #ifndef TOLUA_RELEASE
08124 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setUncheckedNormalImage'",NULL);
08125 #endif
08126 {
08127 self->setUncheckedNormalImage(image);
08128 }
08129 }
08130 return 0;
08131 #ifndef TOLUA_RELEASE
08132 tolua_lerror:
08133 tolua_error(tolua_S,"#ferror in function 'setUncheckedNormalImage'.",&tolua_err);
08134 return 0;
08135 #endif
08136 }
08137 #endif //#ifndef TOLUA_DISABLE
08138
08139
08140 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageCheckBox_setUncheckedPressedImage00
08141 static int tolua_stratagus_ImageCheckBox_setUncheckedPressedImage00(lua_State* tolua_S)
08142 {
08143 #ifndef TOLUA_RELEASE
08144 tolua_Error tolua_err;
08145 if (
08146 !tolua_isusertype(tolua_S,1,"ImageCheckBox",0,&tolua_err) ||
08147 !tolua_isusertype(tolua_S,2,"CGraphic",0,&tolua_err) ||
08148 !tolua_isnoobj(tolua_S,3,&tolua_err)
08149 )
08150 goto tolua_lerror;
08151 else
08152 #endif
08153 {
08154 ImageCheckBox* self = (ImageCheckBox*) tolua_tousertype(tolua_S,1,0);
08155 CGraphic* image = ((CGraphic*) tolua_tousertype(tolua_S,2,0));
08156 #ifndef TOLUA_RELEASE
08157 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setUncheckedPressedImage'",NULL);
08158 #endif
08159 {
08160 self->setUncheckedPressedImage(image);
08161 }
08162 }
08163 return 0;
08164 #ifndef TOLUA_RELEASE
08165 tolua_lerror:
08166 tolua_error(tolua_S,"#ferror in function 'setUncheckedPressedImage'.",&tolua_err);
08167 return 0;
08168 #endif
08169 }
08170 #endif //#ifndef TOLUA_DISABLE
08171
08172
08173 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageCheckBox_setCheckedNormalImage00
08174 static int tolua_stratagus_ImageCheckBox_setCheckedNormalImage00(lua_State* tolua_S)
08175 {
08176 #ifndef TOLUA_RELEASE
08177 tolua_Error tolua_err;
08178 if (
08179 !tolua_isusertype(tolua_S,1,"ImageCheckBox",0,&tolua_err) ||
08180 !tolua_isusertype(tolua_S,2,"CGraphic",0,&tolua_err) ||
08181 !tolua_isnoobj(tolua_S,3,&tolua_err)
08182 )
08183 goto tolua_lerror;
08184 else
08185 #endif
08186 {
08187 ImageCheckBox* self = (ImageCheckBox*) tolua_tousertype(tolua_S,1,0);
08188 CGraphic* image = ((CGraphic*) tolua_tousertype(tolua_S,2,0));
08189 #ifndef TOLUA_RELEASE
08190 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setCheckedNormalImage'",NULL);
08191 #endif
08192 {
08193 self->setCheckedNormalImage(image);
08194 }
08195 }
08196 return 0;
08197 #ifndef TOLUA_RELEASE
08198 tolua_lerror:
08199 tolua_error(tolua_S,"#ferror in function 'setCheckedNormalImage'.",&tolua_err);
08200 return 0;
08201 #endif
08202 }
08203 #endif //#ifndef TOLUA_DISABLE
08204
08205
08206 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageCheckBox_setCheckedPressedImage00
08207 static int tolua_stratagus_ImageCheckBox_setCheckedPressedImage00(lua_State* tolua_S)
08208 {
08209 #ifndef TOLUA_RELEASE
08210 tolua_Error tolua_err;
08211 if (
08212 !tolua_isusertype(tolua_S,1,"ImageCheckBox",0,&tolua_err) ||
08213 !tolua_isusertype(tolua_S,2,"CGraphic",0,&tolua_err) ||
08214 !tolua_isnoobj(tolua_S,3,&tolua_err)
08215 )
08216 goto tolua_lerror;
08217 else
08218 #endif
08219 {
08220 ImageCheckBox* self = (ImageCheckBox*) tolua_tousertype(tolua_S,1,0);
08221 CGraphic* image = ((CGraphic*) tolua_tousertype(tolua_S,2,0));
08222 #ifndef TOLUA_RELEASE
08223 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setCheckedPressedImage'",NULL);
08224 #endif
08225 {
08226 self->setCheckedPressedImage(image);
08227 }
08228 }
08229 return 0;
08230 #ifndef TOLUA_RELEASE
08231 tolua_lerror:
08232 tolua_error(tolua_S,"#ferror in function 'setCheckedPressedImage'.",&tolua_err);
08233 return 0;
08234 #endif
08235 }
08236 #endif //#ifndef TOLUA_DISABLE
08237
08238
08239 #ifndef TOLUA_DISABLE_tolua_stratagus_Slider_new00
08240 static int tolua_stratagus_Slider_new00(lua_State* tolua_S)
08241 {
08242 #ifndef TOLUA_RELEASE
08243 tolua_Error tolua_err;
08244 if (
08245 !tolua_isusertable(tolua_S,1,"Slider",0,&tolua_err) ||
08246 !tolua_isnumber(tolua_S,2,1,&tolua_err) ||
08247 !tolua_isnoobj(tolua_S,3,&tolua_err)
08248 )
08249 goto tolua_lerror;
08250 else
08251 #endif
08252 {
08253 double scaleEnd = ((double) tolua_tonumber(tolua_S,2,1.0));
08254 {
08255 Slider* tolua_ret = (Slider*) new Slider(scaleEnd);
08256 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Slider");
08257 }
08258 }
08259 return 1;
08260 #ifndef TOLUA_RELEASE
08261 tolua_lerror:
08262 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
08263 return 0;
08264 #endif
08265 }
08266 #endif //#ifndef TOLUA_DISABLE
08267
08268
08269 #ifndef TOLUA_DISABLE_tolua_stratagus_Slider_new00_local
08270 static int tolua_stratagus_Slider_new00_local(lua_State* tolua_S)
08271 {
08272 #ifndef TOLUA_RELEASE
08273 tolua_Error tolua_err;
08274 if (
08275 !tolua_isusertable(tolua_S,1,"Slider",0,&tolua_err) ||
08276 !tolua_isnumber(tolua_S,2,1,&tolua_err) ||
08277 !tolua_isnoobj(tolua_S,3,&tolua_err)
08278 )
08279 goto tolua_lerror;
08280 else
08281 #endif
08282 {
08283 double scaleEnd = ((double) tolua_tonumber(tolua_S,2,1.0));
08284 {
08285 Slider* tolua_ret = (Slider*) new Slider(scaleEnd);
08286 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"Slider");
08287 }
08288 }
08289 return 1;
08290 #ifndef TOLUA_RELEASE
08291 tolua_lerror:
08292 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
08293 return 0;
08294 #endif
08295 }
08296 #endif //#ifndef TOLUA_DISABLE
08297
08298
08299 #ifndef TOLUA_DISABLE_tolua_stratagus_Slider_new01
08300 static int tolua_stratagus_Slider_new01(lua_State* tolua_S)
08301 {
08302 tolua_Error tolua_err;
08303 if (
08304 !tolua_isusertable(tolua_S,1,"Slider",0,&tolua_err) ||
08305 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
08306 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
08307 !tolua_isnoobj(tolua_S,4,&tolua_err)
08308 )
08309 goto tolua_lerror;
08310 else
08311 {
08312 double scaleStart = ((double) tolua_tonumber(tolua_S,2,0));
08313 double scaleEnd = ((double) tolua_tonumber(tolua_S,3,0));
08314 {
08315 Slider* tolua_ret = (Slider*) new Slider(scaleStart,scaleEnd);
08316 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Slider");
08317 }
08318 }
08319 return 1;
08320 tolua_lerror:
08321 return tolua_stratagus_Slider_new00(tolua_S);
08322 }
08323 #endif //#ifndef TOLUA_DISABLE
08324
08325
08326 #ifndef TOLUA_DISABLE_tolua_stratagus_Slider_new01_local
08327 static int tolua_stratagus_Slider_new01_local(lua_State* tolua_S)
08328 {
08329 tolua_Error tolua_err;
08330 if (
08331 !tolua_isusertable(tolua_S,1,"Slider",0,&tolua_err) ||
08332 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
08333 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
08334 !tolua_isnoobj(tolua_S,4,&tolua_err)
08335 )
08336 goto tolua_lerror;
08337 else
08338 {
08339 double scaleStart = ((double) tolua_tonumber(tolua_S,2,0));
08340 double scaleEnd = ((double) tolua_tonumber(tolua_S,3,0));
08341 {
08342 Slider* tolua_ret = (Slider*) new Slider(scaleStart,scaleEnd);
08343 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"Slider");
08344 }
08345 }
08346 return 1;
08347 tolua_lerror:
08348 return tolua_stratagus_Slider_new00_local(tolua_S);
08349 }
08350 #endif //#ifndef TOLUA_DISABLE
08351
08352
08353 #ifndef TOLUA_DISABLE_tolua_stratagus_Slider_setScale00
08354 static int tolua_stratagus_Slider_setScale00(lua_State* tolua_S)
08355 {
08356 #ifndef TOLUA_RELEASE
08357 tolua_Error tolua_err;
08358 if (
08359 !tolua_isusertype(tolua_S,1,"Slider",0,&tolua_err) ||
08360 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
08361 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
08362 !tolua_isnoobj(tolua_S,4,&tolua_err)
08363 )
08364 goto tolua_lerror;
08365 else
08366 #endif
08367 {
08368 Slider* self = (Slider*) tolua_tousertype(tolua_S,1,0);
08369 double scaleStart = ((double) tolua_tonumber(tolua_S,2,0));
08370 double scaleEnd = ((double) tolua_tonumber(tolua_S,3,0));
08371 #ifndef TOLUA_RELEASE
08372 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setScale'",NULL);
08373 #endif
08374 {
08375 self->setScale(scaleStart,scaleEnd);
08376 }
08377 }
08378 return 0;
08379 #ifndef TOLUA_RELEASE
08380 tolua_lerror:
08381 tolua_error(tolua_S,"#ferror in function 'setScale'.",&tolua_err);
08382 return 0;
08383 #endif
08384 }
08385 #endif //#ifndef TOLUA_DISABLE
08386
08387
08388 #ifndef TOLUA_DISABLE_tolua_stratagus_Slider_getScaleStart00
08389 static int tolua_stratagus_Slider_getScaleStart00(lua_State* tolua_S)
08390 {
08391 #ifndef TOLUA_RELEASE
08392 tolua_Error tolua_err;
08393 if (
08394 !tolua_isusertype(tolua_S,1,"const Slider",0,&tolua_err) ||
08395 !tolua_isnoobj(tolua_S,2,&tolua_err)
08396 )
08397 goto tolua_lerror;
08398 else
08399 #endif
08400 {
08401 const Slider* self = (const Slider*) tolua_tousertype(tolua_S,1,0);
08402 #ifndef TOLUA_RELEASE
08403 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getScaleStart'",NULL);
08404 #endif
08405 {
08406 double tolua_ret = (double) self->getScaleStart();
08407 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
08408 }
08409 }
08410 return 1;
08411 #ifndef TOLUA_RELEASE
08412 tolua_lerror:
08413 tolua_error(tolua_S,"#ferror in function 'getScaleStart'.",&tolua_err);
08414 return 0;
08415 #endif
08416 }
08417 #endif //#ifndef TOLUA_DISABLE
08418
08419
08420 #ifndef TOLUA_DISABLE_tolua_stratagus_Slider_setScaleStart00
08421 static int tolua_stratagus_Slider_setScaleStart00(lua_State* tolua_S)
08422 {
08423 #ifndef TOLUA_RELEASE
08424 tolua_Error tolua_err;
08425 if (
08426 !tolua_isusertype(tolua_S,1,"Slider",0,&tolua_err) ||
08427 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
08428 !tolua_isnoobj(tolua_S,3,&tolua_err)
08429 )
08430 goto tolua_lerror;
08431 else
08432 #endif
08433 {
08434 Slider* self = (Slider*) tolua_tousertype(tolua_S,1,0);
08435 double scaleStart = ((double) tolua_tonumber(tolua_S,2,0));
08436 #ifndef TOLUA_RELEASE
08437 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setScaleStart'",NULL);
08438 #endif
08439 {
08440 self->setScaleStart(scaleStart);
08441 }
08442 }
08443 return 0;
08444 #ifndef TOLUA_RELEASE
08445 tolua_lerror:
08446 tolua_error(tolua_S,"#ferror in function 'setScaleStart'.",&tolua_err);
08447 return 0;
08448 #endif
08449 }
08450 #endif //#ifndef TOLUA_DISABLE
08451
08452
08453 #ifndef TOLUA_DISABLE_tolua_stratagus_Slider_getScaleEnd00
08454 static int tolua_stratagus_Slider_getScaleEnd00(lua_State* tolua_S)
08455 {
08456 #ifndef TOLUA_RELEASE
08457 tolua_Error tolua_err;
08458 if (
08459 !tolua_isusertype(tolua_S,1,"const Slider",0,&tolua_err) ||
08460 !tolua_isnoobj(tolua_S,2,&tolua_err)
08461 )
08462 goto tolua_lerror;
08463 else
08464 #endif
08465 {
08466 const Slider* self = (const Slider*) tolua_tousertype(tolua_S,1,0);
08467 #ifndef TOLUA_RELEASE
08468 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getScaleEnd'",NULL);
08469 #endif
08470 {
08471 double tolua_ret = (double) self->getScaleEnd();
08472 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
08473 }
08474 }
08475 return 1;
08476 #ifndef TOLUA_RELEASE
08477 tolua_lerror:
08478 tolua_error(tolua_S,"#ferror in function 'getScaleEnd'.",&tolua_err);
08479 return 0;
08480 #endif
08481 }
08482 #endif //#ifndef TOLUA_DISABLE
08483
08484
08485 #ifndef TOLUA_DISABLE_tolua_stratagus_Slider_setScaleEnd00
08486 static int tolua_stratagus_Slider_setScaleEnd00(lua_State* tolua_S)
08487 {
08488 #ifndef TOLUA_RELEASE
08489 tolua_Error tolua_err;
08490 if (
08491 !tolua_isusertype(tolua_S,1,"Slider",0,&tolua_err) ||
08492 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
08493 !tolua_isnoobj(tolua_S,3,&tolua_err)
08494 )
08495 goto tolua_lerror;
08496 else
08497 #endif
08498 {
08499 Slider* self = (Slider*) tolua_tousertype(tolua_S,1,0);
08500 double scaleEnd = ((double) tolua_tonumber(tolua_S,2,0));
08501 #ifndef TOLUA_RELEASE
08502 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setScaleEnd'",NULL);
08503 #endif
08504 {
08505 self->setScaleEnd(scaleEnd);
08506 }
08507 }
08508 return 0;
08509 #ifndef TOLUA_RELEASE
08510 tolua_lerror:
08511 tolua_error(tolua_S,"#ferror in function 'setScaleEnd'.",&tolua_err);
08512 return 0;
08513 #endif
08514 }
08515 #endif //#ifndef TOLUA_DISABLE
08516
08517
08518 #ifndef TOLUA_DISABLE_tolua_stratagus_Slider_getValue00
08519 static int tolua_stratagus_Slider_getValue00(lua_State* tolua_S)
08520 {
08521 #ifndef TOLUA_RELEASE
08522 tolua_Error tolua_err;
08523 if (
08524 !tolua_isusertype(tolua_S,1,"Slider",0,&tolua_err) ||
08525 !tolua_isnoobj(tolua_S,2,&tolua_err)
08526 )
08527 goto tolua_lerror;
08528 else
08529 #endif
08530 {
08531 Slider* self = (Slider*) tolua_tousertype(tolua_S,1,0);
08532 #ifndef TOLUA_RELEASE
08533 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getValue'",NULL);
08534 #endif
08535 {
08536 double tolua_ret = (double) self->getValue();
08537 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
08538 }
08539 }
08540 return 1;
08541 #ifndef TOLUA_RELEASE
08542 tolua_lerror:
08543 tolua_error(tolua_S,"#ferror in function 'getValue'.",&tolua_err);
08544 return 0;
08545 #endif
08546 }
08547 #endif //#ifndef TOLUA_DISABLE
08548
08549
08550 #ifndef TOLUA_DISABLE_tolua_stratagus_Slider_setValue00
08551 static int tolua_stratagus_Slider_setValue00(lua_State* tolua_S)
08552 {
08553 #ifndef TOLUA_RELEASE
08554 tolua_Error tolua_err;
08555 if (
08556 !tolua_isusertype(tolua_S,1,"Slider",0,&tolua_err) ||
08557 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
08558 !tolua_isnoobj(tolua_S,3,&tolua_err)
08559 )
08560 goto tolua_lerror;
08561 else
08562 #endif
08563 {
08564 Slider* self = (Slider*) tolua_tousertype(tolua_S,1,0);
08565 double value = ((double) tolua_tonumber(tolua_S,2,0));
08566 #ifndef TOLUA_RELEASE
08567 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setValue'",NULL);
08568 #endif
08569 {
08570 self->setValue(value);
08571 }
08572 }
08573 return 0;
08574 #ifndef TOLUA_RELEASE
08575 tolua_lerror:
08576 tolua_error(tolua_S,"#ferror in function 'setValue'.",&tolua_err);
08577 return 0;
08578 #endif
08579 }
08580 #endif //#ifndef TOLUA_DISABLE
08581
08582
08583 #ifndef TOLUA_DISABLE_tolua_stratagus_Slider_setMarkerLength00
08584 static int tolua_stratagus_Slider_setMarkerLength00(lua_State* tolua_S)
08585 {
08586 #ifndef TOLUA_RELEASE
08587 tolua_Error tolua_err;
08588 if (
08589 !tolua_isusertype(tolua_S,1,"Slider",0,&tolua_err) ||
08590 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
08591 !tolua_isnoobj(tolua_S,3,&tolua_err)
08592 )
08593 goto tolua_lerror;
08594 else
08595 #endif
08596 {
08597 Slider* self = (Slider*) tolua_tousertype(tolua_S,1,0);
08598 int length = ((int) tolua_tonumber(tolua_S,2,0));
08599 #ifndef TOLUA_RELEASE
08600 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setMarkerLength'",NULL);
08601 #endif
08602 {
08603 self->setMarkerLength(length);
08604 }
08605 }
08606 return 0;
08607 #ifndef TOLUA_RELEASE
08608 tolua_lerror:
08609 tolua_error(tolua_S,"#ferror in function 'setMarkerLength'.",&tolua_err);
08610 return 0;
08611 #endif
08612 }
08613 #endif //#ifndef TOLUA_DISABLE
08614
08615
08616 #ifndef TOLUA_DISABLE_tolua_stratagus_Slider_getMarkerLength00
08617 static int tolua_stratagus_Slider_getMarkerLength00(lua_State* tolua_S)
08618 {
08619 #ifndef TOLUA_RELEASE
08620 tolua_Error tolua_err;
08621 if (
08622 !tolua_isusertype(tolua_S,1,"const Slider",0,&tolua_err) ||
08623 !tolua_isnoobj(tolua_S,2,&tolua_err)
08624 )
08625 goto tolua_lerror;
08626 else
08627 #endif
08628 {
08629 const Slider* self = (const Slider*) tolua_tousertype(tolua_S,1,0);
08630 #ifndef TOLUA_RELEASE
08631 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getMarkerLength'",NULL);
08632 #endif
08633 {
08634 int tolua_ret = (int) self->getMarkerLength();
08635 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
08636 }
08637 }
08638 return 1;
08639 #ifndef TOLUA_RELEASE
08640 tolua_lerror:
08641 tolua_error(tolua_S,"#ferror in function 'getMarkerLength'.",&tolua_err);
08642 return 0;
08643 #endif
08644 }
08645 #endif //#ifndef TOLUA_DISABLE
08646
08647
08648 #ifndef TOLUA_DISABLE_tolua_stratagus_Slider_setOrientation00
08649 static int tolua_stratagus_Slider_setOrientation00(lua_State* tolua_S)
08650 {
08651 #ifndef TOLUA_RELEASE
08652 tolua_Error tolua_err;
08653 if (
08654 !tolua_isusertype(tolua_S,1,"Slider",0,&tolua_err) ||
08655 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
08656 !tolua_isnoobj(tolua_S,3,&tolua_err)
08657 )
08658 goto tolua_lerror;
08659 else
08660 #endif
08661 {
08662 Slider* self = (Slider*) tolua_tousertype(tolua_S,1,0);
08663 unsigned int orientation = ((unsigned int) tolua_tonumber(tolua_S,2,0));
08664 #ifndef TOLUA_RELEASE
08665 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setOrientation'",NULL);
08666 #endif
08667 {
08668 self->setOrientation(orientation);
08669 }
08670 }
08671 return 0;
08672 #ifndef TOLUA_RELEASE
08673 tolua_lerror:
08674 tolua_error(tolua_S,"#ferror in function 'setOrientation'.",&tolua_err);
08675 return 0;
08676 #endif
08677 }
08678 #endif //#ifndef TOLUA_DISABLE
08679
08680
08681 #ifndef TOLUA_DISABLE_tolua_stratagus_Slider_getOrientation00
08682 static int tolua_stratagus_Slider_getOrientation00(lua_State* tolua_S)
08683 {
08684 #ifndef TOLUA_RELEASE
08685 tolua_Error tolua_err;
08686 if (
08687 !tolua_isusertype(tolua_S,1,"const Slider",0,&tolua_err) ||
08688 !tolua_isnoobj(tolua_S,2,&tolua_err)
08689 )
08690 goto tolua_lerror;
08691 else
08692 #endif
08693 {
08694 const Slider* self = (const Slider*) tolua_tousertype(tolua_S,1,0);
08695 #ifndef TOLUA_RELEASE
08696 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getOrientation'",NULL);
08697 #endif
08698 {
08699 unsigned int tolua_ret = (unsigned int) self->getOrientation();
08700 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
08701 }
08702 }
08703 return 1;
08704 #ifndef TOLUA_RELEASE
08705 tolua_lerror:
08706 tolua_error(tolua_S,"#ferror in function 'getOrientation'.",&tolua_err);
08707 return 0;
08708 #endif
08709 }
08710 #endif //#ifndef TOLUA_DISABLE
08711
08712
08713 #ifndef TOLUA_DISABLE_tolua_stratagus_Slider_setStepLength00
08714 static int tolua_stratagus_Slider_setStepLength00(lua_State* tolua_S)
08715 {
08716 #ifndef TOLUA_RELEASE
08717 tolua_Error tolua_err;
08718 if (
08719 !tolua_isusertype(tolua_S,1,"Slider",0,&tolua_err) ||
08720 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
08721 !tolua_isnoobj(tolua_S,3,&tolua_err)
08722 )
08723 goto tolua_lerror;
08724 else
08725 #endif
08726 {
08727 Slider* self = (Slider*) tolua_tousertype(tolua_S,1,0);
08728 double length = ((double) tolua_tonumber(tolua_S,2,0));
08729 #ifndef TOLUA_RELEASE
08730 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setStepLength'",NULL);
08731 #endif
08732 {
08733 self->setStepLength(length);
08734 }
08735 }
08736 return 0;
08737 #ifndef TOLUA_RELEASE
08738 tolua_lerror:
08739 tolua_error(tolua_S,"#ferror in function 'setStepLength'.",&tolua_err);
08740 return 0;
08741 #endif
08742 }
08743 #endif //#ifndef TOLUA_DISABLE
08744
08745
08746 #ifndef TOLUA_DISABLE_tolua_stratagus_Slider_getStepLength00
08747 static int tolua_stratagus_Slider_getStepLength00(lua_State* tolua_S)
08748 {
08749 #ifndef TOLUA_RELEASE
08750 tolua_Error tolua_err;
08751 if (
08752 !tolua_isusertype(tolua_S,1,"const Slider",0,&tolua_err) ||
08753 !tolua_isnoobj(tolua_S,2,&tolua_err)
08754 )
08755 goto tolua_lerror;
08756 else
08757 #endif
08758 {
08759 const Slider* self = (const Slider*) tolua_tousertype(tolua_S,1,0);
08760 #ifndef TOLUA_RELEASE
08761 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getStepLength'",NULL);
08762 #endif
08763 {
08764 double tolua_ret = (double) self->getStepLength();
08765 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
08766 }
08767 }
08768 return 1;
08769 #ifndef TOLUA_RELEASE
08770 tolua_lerror:
08771 tolua_error(tolua_S,"#ferror in function 'getStepLength'.",&tolua_err);
08772 return 0;
08773 #endif
08774 }
08775 #endif //#ifndef TOLUA_DISABLE
08776
08777
08778 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageSlider_new00
08779 static int tolua_stratagus_ImageSlider_new00(lua_State* tolua_S)
08780 {
08781 #ifndef TOLUA_RELEASE
08782 tolua_Error tolua_err;
08783 if (
08784 !tolua_isusertable(tolua_S,1,"ImageSlider",0,&tolua_err) ||
08785 !tolua_isnumber(tolua_S,2,1,&tolua_err) ||
08786 !tolua_isnoobj(tolua_S,3,&tolua_err)
08787 )
08788 goto tolua_lerror;
08789 else
08790 #endif
08791 {
08792 double scaleEnd = ((double) tolua_tonumber(tolua_S,2,1.0));
08793 {
08794 ImageSlider* tolua_ret = (ImageSlider*) new ImageSlider(scaleEnd);
08795 tolua_pushusertype(tolua_S,(void*)tolua_ret,"ImageSlider");
08796 }
08797 }
08798 return 1;
08799 #ifndef TOLUA_RELEASE
08800 tolua_lerror:
08801 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
08802 return 0;
08803 #endif
08804 }
08805 #endif //#ifndef TOLUA_DISABLE
08806
08807
08808 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageSlider_new00_local
08809 static int tolua_stratagus_ImageSlider_new00_local(lua_State* tolua_S)
08810 {
08811 #ifndef TOLUA_RELEASE
08812 tolua_Error tolua_err;
08813 if (
08814 !tolua_isusertable(tolua_S,1,"ImageSlider",0,&tolua_err) ||
08815 !tolua_isnumber(tolua_S,2,1,&tolua_err) ||
08816 !tolua_isnoobj(tolua_S,3,&tolua_err)
08817 )
08818 goto tolua_lerror;
08819 else
08820 #endif
08821 {
08822 double scaleEnd = ((double) tolua_tonumber(tolua_S,2,1.0));
08823 {
08824 ImageSlider* tolua_ret = (ImageSlider*) new ImageSlider(scaleEnd);
08825 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"ImageSlider");
08826 }
08827 }
08828 return 1;
08829 #ifndef TOLUA_RELEASE
08830 tolua_lerror:
08831 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
08832 return 0;
08833 #endif
08834 }
08835 #endif //#ifndef TOLUA_DISABLE
08836
08837
08838 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageSlider_new01
08839 static int tolua_stratagus_ImageSlider_new01(lua_State* tolua_S)
08840 {
08841 tolua_Error tolua_err;
08842 if (
08843 !tolua_isusertable(tolua_S,1,"ImageSlider",0,&tolua_err) ||
08844 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
08845 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
08846 !tolua_isnoobj(tolua_S,4,&tolua_err)
08847 )
08848 goto tolua_lerror;
08849 else
08850 {
08851 double scaleStart = ((double) tolua_tonumber(tolua_S,2,0));
08852 double scaleEnd = ((double) tolua_tonumber(tolua_S,3,0));
08853 {
08854 ImageSlider* tolua_ret = (ImageSlider*) new ImageSlider(scaleStart,scaleEnd);
08855 tolua_pushusertype(tolua_S,(void*)tolua_ret,"ImageSlider");
08856 }
08857 }
08858 return 1;
08859 tolua_lerror:
08860 return tolua_stratagus_ImageSlider_new00(tolua_S);
08861 }
08862 #endif //#ifndef TOLUA_DISABLE
08863
08864
08865 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageSlider_new01_local
08866 static int tolua_stratagus_ImageSlider_new01_local(lua_State* tolua_S)
08867 {
08868 tolua_Error tolua_err;
08869 if (
08870 !tolua_isusertable(tolua_S,1,"ImageSlider",0,&tolua_err) ||
08871 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
08872 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
08873 !tolua_isnoobj(tolua_S,4,&tolua_err)
08874 )
08875 goto tolua_lerror;
08876 else
08877 {
08878 double scaleStart = ((double) tolua_tonumber(tolua_S,2,0));
08879 double scaleEnd = ((double) tolua_tonumber(tolua_S,3,0));
08880 {
08881 ImageSlider* tolua_ret = (ImageSlider*) new ImageSlider(scaleStart,scaleEnd);
08882 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"ImageSlider");
08883 }
08884 }
08885 return 1;
08886 tolua_lerror:
08887 return tolua_stratagus_ImageSlider_new00_local(tolua_S);
08888 }
08889 #endif //#ifndef TOLUA_DISABLE
08890
08891
08892 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageSlider_setMarkerImage00
08893 static int tolua_stratagus_ImageSlider_setMarkerImage00(lua_State* tolua_S)
08894 {
08895 #ifndef TOLUA_RELEASE
08896 tolua_Error tolua_err;
08897 if (
08898 !tolua_isusertype(tolua_S,1,"ImageSlider",0,&tolua_err) ||
08899 !tolua_isusertype(tolua_S,2,"CGraphic",0,&tolua_err) ||
08900 !tolua_isnoobj(tolua_S,3,&tolua_err)
08901 )
08902 goto tolua_lerror;
08903 else
08904 #endif
08905 {
08906 ImageSlider* self = (ImageSlider*) tolua_tousertype(tolua_S,1,0);
08907 CGraphic* image = ((CGraphic*) tolua_tousertype(tolua_S,2,0));
08908 #ifndef TOLUA_RELEASE
08909 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setMarkerImage'",NULL);
08910 #endif
08911 {
08912 self->setMarkerImage(image);
08913 }
08914 }
08915 return 0;
08916 #ifndef TOLUA_RELEASE
08917 tolua_lerror:
08918 tolua_error(tolua_S,"#ferror in function 'setMarkerImage'.",&tolua_err);
08919 return 0;
08920 #endif
08921 }
08922 #endif //#ifndef TOLUA_DISABLE
08923
08924
08925 #ifndef TOLUA_DISABLE_tolua_stratagus_ImageSlider_setBackgroundImage00
08926 static int tolua_stratagus_ImageSlider_setBackgroundImage00(lua_State* tolua_S)
08927 {
08928 #ifndef TOLUA_RELEASE
08929 tolua_Error tolua_err;
08930 if (
08931 !tolua_isusertype(tolua_S,1,"ImageSlider",0,&tolua_err) ||
08932 !tolua_isusertype(tolua_S,2,"CGraphic",0,&tolua_err) ||
08933 !tolua_isnoobj(tolua_S,3,&tolua_err)
08934 )
08935 goto tolua_lerror;
08936 else
08937 #endif
08938 {
08939 ImageSlider* self = (ImageSlider*) tolua_tousertype(tolua_S,1,0);
08940 CGraphic* image = ((CGraphic*) tolua_tousertype(tolua_S,2,0));
08941 #ifndef TOLUA_RELEASE
08942 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setBackgroundImage'",NULL);
08943 #endif
08944 {
08945 self->setBackgroundImage(image);
08946 }
08947 }
08948 return 0;
08949 #ifndef TOLUA_RELEASE
08950 tolua_lerror:
08951 tolua_error(tolua_S,"#ferror in function 'setBackgroundImage'.",&tolua_err);
08952 return 0;
08953 #endif
08954 }
08955 #endif //#ifndef TOLUA_DISABLE
08956
08957
08958 #ifndef TOLUA_DISABLE_tolua_stratagus_Label_new00
08959 static int tolua_stratagus_Label_new00(lua_State* tolua_S)
08960 {
08961 #ifndef TOLUA_RELEASE
08962 tolua_Error tolua_err;
08963 if (
08964 !tolua_isusertable(tolua_S,1,"Label",0,&tolua_err) ||
08965 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
08966 !tolua_isnoobj(tolua_S,3,&tolua_err)
08967 )
08968 goto tolua_lerror;
08969 else
08970 #endif
08971 {
08972 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,2,0));
08973 {
08974 Label* tolua_ret = (Label*) new Label(caption);
08975 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Label");
08976 }
08977 }
08978 return 1;
08979 #ifndef TOLUA_RELEASE
08980 tolua_lerror:
08981 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
08982 return 0;
08983 #endif
08984 }
08985 #endif //#ifndef TOLUA_DISABLE
08986
08987
08988 #ifndef TOLUA_DISABLE_tolua_stratagus_Label_new00_local
08989 static int tolua_stratagus_Label_new00_local(lua_State* tolua_S)
08990 {
08991 #ifndef TOLUA_RELEASE
08992 tolua_Error tolua_err;
08993 if (
08994 !tolua_isusertable(tolua_S,1,"Label",0,&tolua_err) ||
08995 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
08996 !tolua_isnoobj(tolua_S,3,&tolua_err)
08997 )
08998 goto tolua_lerror;
08999 else
09000 #endif
09001 {
09002 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,2,0));
09003 {
09004 Label* tolua_ret = (Label*) new Label(caption);
09005 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"Label");
09006 }
09007 }
09008 return 1;
09009 #ifndef TOLUA_RELEASE
09010 tolua_lerror:
09011 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
09012 return 0;
09013 #endif
09014 }
09015 #endif //#ifndef TOLUA_DISABLE
09016
09017
09018 #ifndef TOLUA_DISABLE_tolua_stratagus_Label_getCaption00
09019 static int tolua_stratagus_Label_getCaption00(lua_State* tolua_S)
09020 {
09021 #ifndef TOLUA_RELEASE
09022 tolua_Error tolua_err;
09023 if (
09024 !tolua_isusertype(tolua_S,1,"const Label",0,&tolua_err) ||
09025 !tolua_isnoobj(tolua_S,2,&tolua_err)
09026 )
09027 goto tolua_lerror;
09028 else
09029 #endif
09030 {
09031 const Label* self = (const Label*) tolua_tousertype(tolua_S,1,0);
09032 #ifndef TOLUA_RELEASE
09033 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getCaption'",NULL);
09034 #endif
09035 {
09036 const std::string tolua_ret = (const std::string) self->getCaption();
09037 tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
09038 }
09039 }
09040 return 1;
09041 #ifndef TOLUA_RELEASE
09042 tolua_lerror:
09043 tolua_error(tolua_S,"#ferror in function 'getCaption'.",&tolua_err);
09044 return 0;
09045 #endif
09046 }
09047 #endif //#ifndef TOLUA_DISABLE
09048
09049
09050 #ifndef TOLUA_DISABLE_tolua_stratagus_Label_setCaption00
09051 static int tolua_stratagus_Label_setCaption00(lua_State* tolua_S)
09052 {
09053 #ifndef TOLUA_RELEASE
09054 tolua_Error tolua_err;
09055 if (
09056 !tolua_isusertype(tolua_S,1,"Label",0,&tolua_err) ||
09057 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
09058 !tolua_isnoobj(tolua_S,3,&tolua_err)
09059 )
09060 goto tolua_lerror;
09061 else
09062 #endif
09063 {
09064 Label* self = (Label*) tolua_tousertype(tolua_S,1,0);
09065 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,2,0));
09066 #ifndef TOLUA_RELEASE
09067 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setCaption'",NULL);
09068 #endif
09069 {
09070 self->setCaption(caption);
09071 }
09072 }
09073 return 0;
09074 #ifndef TOLUA_RELEASE
09075 tolua_lerror:
09076 tolua_error(tolua_S,"#ferror in function 'setCaption'.",&tolua_err);
09077 return 0;
09078 #endif
09079 }
09080 #endif //#ifndef TOLUA_DISABLE
09081
09082
09083 #ifndef TOLUA_DISABLE_tolua_stratagus_Label_setAlignment00
09084 static int tolua_stratagus_Label_setAlignment00(lua_State* tolua_S)
09085 {
09086 #ifndef TOLUA_RELEASE
09087 tolua_Error tolua_err;
09088 if (
09089 !tolua_isusertype(tolua_S,1,"Label",0,&tolua_err) ||
09090 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
09091 !tolua_isnoobj(tolua_S,3,&tolua_err)
09092 )
09093 goto tolua_lerror;
09094 else
09095 #endif
09096 {
09097 Label* self = (Label*) tolua_tousertype(tolua_S,1,0);
09098 unsigned int alignment = ((unsigned int) tolua_tonumber(tolua_S,2,0));
09099 #ifndef TOLUA_RELEASE
09100 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setAlignment'",NULL);
09101 #endif
09102 {
09103 self->setAlignment(alignment);
09104 }
09105 }
09106 return 0;
09107 #ifndef TOLUA_RELEASE
09108 tolua_lerror:
09109 tolua_error(tolua_S,"#ferror in function 'setAlignment'.",&tolua_err);
09110 return 0;
09111 #endif
09112 }
09113 #endif //#ifndef TOLUA_DISABLE
09114
09115
09116 #ifndef TOLUA_DISABLE_tolua_stratagus_Label_getAlignment00
09117 static int tolua_stratagus_Label_getAlignment00(lua_State* tolua_S)
09118 {
09119 #ifndef TOLUA_RELEASE
09120 tolua_Error tolua_err;
09121 if (
09122 !tolua_isusertype(tolua_S,1,"Label",0,&tolua_err) ||
09123 !tolua_isnoobj(tolua_S,2,&tolua_err)
09124 )
09125 goto tolua_lerror;
09126 else
09127 #endif
09128 {
09129 Label* self = (Label*) tolua_tousertype(tolua_S,1,0);
09130 #ifndef TOLUA_RELEASE
09131 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getAlignment'",NULL);
09132 #endif
09133 {
09134 unsigned int tolua_ret = (unsigned int) self->getAlignment();
09135 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
09136 }
09137 }
09138 return 1;
09139 #ifndef TOLUA_RELEASE
09140 tolua_lerror:
09141 tolua_error(tolua_S,"#ferror in function 'getAlignment'.",&tolua_err);
09142 return 0;
09143 #endif
09144 }
09145 #endif //#ifndef TOLUA_DISABLE
09146
09147
09148 #ifndef TOLUA_DISABLE_tolua_stratagus_Label_adjustSize00
09149 static int tolua_stratagus_Label_adjustSize00(lua_State* tolua_S)
09150 {
09151 #ifndef TOLUA_RELEASE
09152 tolua_Error tolua_err;
09153 if (
09154 !tolua_isusertype(tolua_S,1,"Label",0,&tolua_err) ||
09155 !tolua_isnoobj(tolua_S,2,&tolua_err)
09156 )
09157 goto tolua_lerror;
09158 else
09159 #endif
09160 {
09161 Label* self = (Label*) tolua_tousertype(tolua_S,1,0);
09162 #ifndef TOLUA_RELEASE
09163 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'adjustSize'",NULL);
09164 #endif
09165 {
09166 self->adjustSize();
09167 }
09168 }
09169 return 0;
09170 #ifndef TOLUA_RELEASE
09171 tolua_lerror:
09172 tolua_error(tolua_S,"#ferror in function 'adjustSize'.",&tolua_err);
09173 return 0;
09174 #endif
09175 }
09176 #endif //#ifndef TOLUA_DISABLE
09177
09178
09179 #ifndef TOLUA_DISABLE_tolua_stratagus_MultiLineLabel_new00
09180 static int tolua_stratagus_MultiLineLabel_new00(lua_State* tolua_S)
09181 {
09182 #ifndef TOLUA_RELEASE
09183 tolua_Error tolua_err;
09184 if (
09185 !tolua_isusertable(tolua_S,1,"MultiLineLabel",0,&tolua_err) ||
09186 !tolua_isnoobj(tolua_S,2,&tolua_err)
09187 )
09188 goto tolua_lerror;
09189 else
09190 #endif
09191 {
09192 {
09193 MultiLineLabel* tolua_ret = (MultiLineLabel*) new MultiLineLabel();
09194 tolua_pushusertype(tolua_S,(void*)tolua_ret,"MultiLineLabel");
09195 }
09196 }
09197 return 1;
09198 #ifndef TOLUA_RELEASE
09199 tolua_lerror:
09200 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
09201 return 0;
09202 #endif
09203 }
09204 #endif //#ifndef TOLUA_DISABLE
09205
09206
09207 #ifndef TOLUA_DISABLE_tolua_stratagus_MultiLineLabel_new00_local
09208 static int tolua_stratagus_MultiLineLabel_new00_local(lua_State* tolua_S)
09209 {
09210 #ifndef TOLUA_RELEASE
09211 tolua_Error tolua_err;
09212 if (
09213 !tolua_isusertable(tolua_S,1,"MultiLineLabel",0,&tolua_err) ||
09214 !tolua_isnoobj(tolua_S,2,&tolua_err)
09215 )
09216 goto tolua_lerror;
09217 else
09218 #endif
09219 {
09220 {
09221 MultiLineLabel* tolua_ret = (MultiLineLabel*) new MultiLineLabel();
09222 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"MultiLineLabel");
09223 }
09224 }
09225 return 1;
09226 #ifndef TOLUA_RELEASE
09227 tolua_lerror:
09228 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
09229 return 0;
09230 #endif
09231 }
09232 #endif //#ifndef TOLUA_DISABLE
09233
09234
09235 #ifndef TOLUA_DISABLE_tolua_stratagus_MultiLineLabel_new01
09236 static int tolua_stratagus_MultiLineLabel_new01(lua_State* tolua_S)
09237 {
09238 tolua_Error tolua_err;
09239 if (
09240 !tolua_isusertable(tolua_S,1,"MultiLineLabel",0,&tolua_err) ||
09241 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
09242 !tolua_isnoobj(tolua_S,3,&tolua_err)
09243 )
09244 goto tolua_lerror;
09245 else
09246 {
09247 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,2,0));
09248 {
09249 MultiLineLabel* tolua_ret = (MultiLineLabel*) new MultiLineLabel(caption);
09250 tolua_pushusertype(tolua_S,(void*)tolua_ret,"MultiLineLabel");
09251 }
09252 }
09253 return 1;
09254 tolua_lerror:
09255 return tolua_stratagus_MultiLineLabel_new00(tolua_S);
09256 }
09257 #endif //#ifndef TOLUA_DISABLE
09258
09259
09260 #ifndef TOLUA_DISABLE_tolua_stratagus_MultiLineLabel_new01_local
09261 static int tolua_stratagus_MultiLineLabel_new01_local(lua_State* tolua_S)
09262 {
09263 tolua_Error tolua_err;
09264 if (
09265 !tolua_isusertable(tolua_S,1,"MultiLineLabel",0,&tolua_err) ||
09266 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
09267 !tolua_isnoobj(tolua_S,3,&tolua_err)
09268 )
09269 goto tolua_lerror;
09270 else
09271 {
09272 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,2,0));
09273 {
09274 MultiLineLabel* tolua_ret = (MultiLineLabel*) new MultiLineLabel(caption);
09275 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"MultiLineLabel");
09276 }
09277 }
09278 return 1;
09279 tolua_lerror:
09280 return tolua_stratagus_MultiLineLabel_new00_local(tolua_S);
09281 }
09282 #endif //#ifndef TOLUA_DISABLE
09283
09284
09285 #ifndef TOLUA_DISABLE_tolua_stratagus_MultiLineLabel_setCaption00
09286 static int tolua_stratagus_MultiLineLabel_setCaption00(lua_State* tolua_S)
09287 {
09288 #ifndef TOLUA_RELEASE
09289 tolua_Error tolua_err;
09290 if (
09291 !tolua_isusertype(tolua_S,1,"MultiLineLabel",0,&tolua_err) ||
09292 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
09293 !tolua_isnoobj(tolua_S,3,&tolua_err)
09294 )
09295 goto tolua_lerror;
09296 else
09297 #endif
09298 {
09299 MultiLineLabel* self = (MultiLineLabel*) tolua_tousertype(tolua_S,1,0);
09300 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,2,0));
09301 #ifndef TOLUA_RELEASE
09302 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setCaption'",NULL);
09303 #endif
09304 {
09305 self->setCaption(caption);
09306 }
09307 }
09308 return 0;
09309 #ifndef TOLUA_RELEASE
09310 tolua_lerror:
09311 tolua_error(tolua_S,"#ferror in function 'setCaption'.",&tolua_err);
09312 return 0;
09313 #endif
09314 }
09315 #endif //#ifndef TOLUA_DISABLE
09316
09317
09318 #ifndef TOLUA_DISABLE_tolua_stratagus_MultiLineLabel_getCaption00
09319 static int tolua_stratagus_MultiLineLabel_getCaption00(lua_State* tolua_S)
09320 {
09321 #ifndef TOLUA_RELEASE
09322 tolua_Error tolua_err;
09323 if (
09324 !tolua_isusertype(tolua_S,1,"const MultiLineLabel",0,&tolua_err) ||
09325 !tolua_isnoobj(tolua_S,2,&tolua_err)
09326 )
09327 goto tolua_lerror;
09328 else
09329 #endif
09330 {
09331 const MultiLineLabel* self = (const MultiLineLabel*) tolua_tousertype(tolua_S,1,0);
09332 #ifndef TOLUA_RELEASE
09333 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getCaption'",NULL);
09334 #endif
09335 {
09336 const std::string tolua_ret = (const std::string) self->getCaption();
09337 tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
09338 }
09339 }
09340 return 1;
09341 #ifndef TOLUA_RELEASE
09342 tolua_lerror:
09343 tolua_error(tolua_S,"#ferror in function 'getCaption'.",&tolua_err);
09344 return 0;
09345 #endif
09346 }
09347 #endif //#ifndef TOLUA_DISABLE
09348
09349
09350 #ifndef TOLUA_DISABLE_tolua_stratagus_MultiLineLabel_setAlignment00
09351 static int tolua_stratagus_MultiLineLabel_setAlignment00(lua_State* tolua_S)
09352 {
09353 #ifndef TOLUA_RELEASE
09354 tolua_Error tolua_err;
09355 if (
09356 !tolua_isusertype(tolua_S,1,"MultiLineLabel",0,&tolua_err) ||
09357 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
09358 !tolua_isnoobj(tolua_S,3,&tolua_err)
09359 )
09360 goto tolua_lerror;
09361 else
09362 #endif
09363 {
09364 MultiLineLabel* self = (MultiLineLabel*) tolua_tousertype(tolua_S,1,0);
09365 unsigned int alignment = ((unsigned int) tolua_tonumber(tolua_S,2,0));
09366 #ifndef TOLUA_RELEASE
09367 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setAlignment'",NULL);
09368 #endif
09369 {
09370 self->setAlignment(alignment);
09371 }
09372 }
09373 return 0;
09374 #ifndef TOLUA_RELEASE
09375 tolua_lerror:
09376 tolua_error(tolua_S,"#ferror in function 'setAlignment'.",&tolua_err);
09377 return 0;
09378 #endif
09379 }
09380 #endif //#ifndef TOLUA_DISABLE
09381
09382
09383 #ifndef TOLUA_DISABLE_tolua_stratagus_MultiLineLabel_getAlignment00
09384 static int tolua_stratagus_MultiLineLabel_getAlignment00(lua_State* tolua_S)
09385 {
09386 #ifndef TOLUA_RELEASE
09387 tolua_Error tolua_err;
09388 if (
09389 !tolua_isusertype(tolua_S,1,"MultiLineLabel",0,&tolua_err) ||
09390 !tolua_isnoobj(tolua_S,2,&tolua_err)
09391 )
09392 goto tolua_lerror;
09393 else
09394 #endif
09395 {
09396 MultiLineLabel* self = (MultiLineLabel*) tolua_tousertype(tolua_S,1,0);
09397 #ifndef TOLUA_RELEASE
09398 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getAlignment'",NULL);
09399 #endif
09400 {
09401 unsigned int tolua_ret = (unsigned int) self->getAlignment();
09402 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
09403 }
09404 }
09405 return 1;
09406 #ifndef TOLUA_RELEASE
09407 tolua_lerror:
09408 tolua_error(tolua_S,"#ferror in function 'getAlignment'.",&tolua_err);
09409 return 0;
09410 #endif
09411 }
09412 #endif //#ifndef TOLUA_DISABLE
09413
09414
09415 #ifndef TOLUA_DISABLE_tolua_stratagus_MultiLineLabel_setVerticalAlignment00
09416 static int tolua_stratagus_MultiLineLabel_setVerticalAlignment00(lua_State* tolua_S)
09417 {
09418 #ifndef TOLUA_RELEASE
09419 tolua_Error tolua_err;
09420 if (
09421 !tolua_isusertype(tolua_S,1,"MultiLineLabel",0,&tolua_err) ||
09422 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
09423 !tolua_isnoobj(tolua_S,3,&tolua_err)
09424 )
09425 goto tolua_lerror;
09426 else
09427 #endif
09428 {
09429 MultiLineLabel* self = (MultiLineLabel*) tolua_tousertype(tolua_S,1,0);
09430 unsigned int alignment = ((unsigned int) tolua_tonumber(tolua_S,2,0));
09431 #ifndef TOLUA_RELEASE
09432 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setVerticalAlignment'",NULL);
09433 #endif
09434 {
09435 self->setVerticalAlignment(alignment);
09436 }
09437 }
09438 return 0;
09439 #ifndef TOLUA_RELEASE
09440 tolua_lerror:
09441 tolua_error(tolua_S,"#ferror in function 'setVerticalAlignment'.",&tolua_err);
09442 return 0;
09443 #endif
09444 }
09445 #endif //#ifndef TOLUA_DISABLE
09446
09447
09448 #ifndef TOLUA_DISABLE_tolua_stratagus_MultiLineLabel_getVerticalAlignment00
09449 static int tolua_stratagus_MultiLineLabel_getVerticalAlignment00(lua_State* tolua_S)
09450 {
09451 #ifndef TOLUA_RELEASE
09452 tolua_Error tolua_err;
09453 if (
09454 !tolua_isusertype(tolua_S,1,"MultiLineLabel",0,&tolua_err) ||
09455 !tolua_isnoobj(tolua_S,2,&tolua_err)
09456 )
09457 goto tolua_lerror;
09458 else
09459 #endif
09460 {
09461 MultiLineLabel* self = (MultiLineLabel*) tolua_tousertype(tolua_S,1,0);
09462 #ifndef TOLUA_RELEASE
09463 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getVerticalAlignment'",NULL);
09464 #endif
09465 {
09466 unsigned int tolua_ret = (unsigned int) self->getVerticalAlignment();
09467 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
09468 }
09469 }
09470 return 1;
09471 #ifndef TOLUA_RELEASE
09472 tolua_lerror:
09473 tolua_error(tolua_S,"#ferror in function 'getVerticalAlignment'.",&tolua_err);
09474 return 0;
09475 #endif
09476 }
09477 #endif //#ifndef TOLUA_DISABLE
09478
09479
09480 #ifndef TOLUA_DISABLE_tolua_stratagus_MultiLineLabel_setLineWidth00
09481 static int tolua_stratagus_MultiLineLabel_setLineWidth00(lua_State* tolua_S)
09482 {
09483 #ifndef TOLUA_RELEASE
09484 tolua_Error tolua_err;
09485 if (
09486 !tolua_isusertype(tolua_S,1,"MultiLineLabel",0,&tolua_err) ||
09487 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
09488 !tolua_isnoobj(tolua_S,3,&tolua_err)
09489 )
09490 goto tolua_lerror;
09491 else
09492 #endif
09493 {
09494 MultiLineLabel* self = (MultiLineLabel*) tolua_tousertype(tolua_S,1,0);
09495 int width = ((int) tolua_tonumber(tolua_S,2,0));
09496 #ifndef TOLUA_RELEASE
09497 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setLineWidth'",NULL);
09498 #endif
09499 {
09500 self->setLineWidth(width);
09501 }
09502 }
09503 return 0;
09504 #ifndef TOLUA_RELEASE
09505 tolua_lerror:
09506 tolua_error(tolua_S,"#ferror in function 'setLineWidth'.",&tolua_err);
09507 return 0;
09508 #endif
09509 }
09510 #endif //#ifndef TOLUA_DISABLE
09511
09512
09513 #ifndef TOLUA_DISABLE_tolua_stratagus_MultiLineLabel_getLineWidth00
09514 static int tolua_stratagus_MultiLineLabel_getLineWidth00(lua_State* tolua_S)
09515 {
09516 #ifndef TOLUA_RELEASE
09517 tolua_Error tolua_err;
09518 if (
09519 !tolua_isusertype(tolua_S,1,"MultiLineLabel",0,&tolua_err) ||
09520 !tolua_isnoobj(tolua_S,2,&tolua_err)
09521 )
09522 goto tolua_lerror;
09523 else
09524 #endif
09525 {
09526 MultiLineLabel* self = (MultiLineLabel*) tolua_tousertype(tolua_S,1,0);
09527 #ifndef TOLUA_RELEASE
09528 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getLineWidth'",NULL);
09529 #endif
09530 {
09531 int tolua_ret = (int) self->getLineWidth();
09532 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
09533 }
09534 }
09535 return 1;
09536 #ifndef TOLUA_RELEASE
09537 tolua_lerror:
09538 tolua_error(tolua_S,"#ferror in function 'getLineWidth'.",&tolua_err);
09539 return 0;
09540 #endif
09541 }
09542 #endif //#ifndef TOLUA_DISABLE
09543
09544
09545 #ifndef TOLUA_DISABLE_tolua_stratagus_MultiLineLabel_adjustSize00
09546 static int tolua_stratagus_MultiLineLabel_adjustSize00(lua_State* tolua_S)
09547 {
09548 #ifndef TOLUA_RELEASE
09549 tolua_Error tolua_err;
09550 if (
09551 !tolua_isusertype(tolua_S,1,"MultiLineLabel",0,&tolua_err) ||
09552 !tolua_isnoobj(tolua_S,2,&tolua_err)
09553 )
09554 goto tolua_lerror;
09555 else
09556 #endif
09557 {
09558 MultiLineLabel* self = (MultiLineLabel*) tolua_tousertype(tolua_S,1,0);
09559 #ifndef TOLUA_RELEASE
09560 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'adjustSize'",NULL);
09561 #endif
09562 {
09563 self->adjustSize();
09564 }
09565 }
09566 return 0;
09567 #ifndef TOLUA_RELEASE
09568 tolua_lerror:
09569 tolua_error(tolua_S,"#ferror in function 'adjustSize'.",&tolua_err);
09570 return 0;
09571 #endif
09572 }
09573 #endif //#ifndef TOLUA_DISABLE
09574
09575
09576 #ifndef TOLUA_DISABLE_tolua_stratagus_MultiLineLabel_draw00
09577 static int tolua_stratagus_MultiLineLabel_draw00(lua_State* tolua_S)
09578 {
09579 #ifndef TOLUA_RELEASE
09580 tolua_Error tolua_err;
09581 if (
09582 !tolua_isusertype(tolua_S,1,"MultiLineLabel",0,&tolua_err) ||
09583 !tolua_isusertype(tolua_S,2,"gcn::Graphics",0,&tolua_err) ||
09584 !tolua_isnoobj(tolua_S,3,&tolua_err)
09585 )
09586 goto tolua_lerror;
09587 else
09588 #endif
09589 {
09590 MultiLineLabel* self = (MultiLineLabel*) tolua_tousertype(tolua_S,1,0);
09591 gcn::Graphics* graphics = ((gcn::Graphics*) tolua_tousertype(tolua_S,2,0));
09592 #ifndef TOLUA_RELEASE
09593 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'draw'",NULL);
09594 #endif
09595 {
09596 self->draw(graphics);
09597 }
09598 }
09599 return 0;
09600 #ifndef TOLUA_RELEASE
09601 tolua_lerror:
09602 tolua_error(tolua_S,"#ferror in function 'draw'.",&tolua_err);
09603 return 0;
09604 #endif
09605 }
09606 #endif //#ifndef TOLUA_DISABLE
09607
09608
09609 #ifndef TOLUA_DISABLE_tolua_stratagus_TextField_new00
09610 static int tolua_stratagus_TextField_new00(lua_State* tolua_S)
09611 {
09612 #ifndef TOLUA_RELEASE
09613 tolua_Error tolua_err;
09614 if (
09615 !tolua_isusertable(tolua_S,1,"TextField",0,&tolua_err) ||
09616 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
09617 !tolua_isnoobj(tolua_S,3,&tolua_err)
09618 )
09619 goto tolua_lerror;
09620 else
09621 #endif
09622 {
09623 const std::string text = ((const std::string) tolua_tocppstring(tolua_S,2,0));
09624 {
09625 TextField* tolua_ret = (TextField*) new TextField(text);
09626 tolua_pushusertype(tolua_S,(void*)tolua_ret,"TextField");
09627 }
09628 }
09629 return 1;
09630 #ifndef TOLUA_RELEASE
09631 tolua_lerror:
09632 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
09633 return 0;
09634 #endif
09635 }
09636 #endif //#ifndef TOLUA_DISABLE
09637
09638
09639 #ifndef TOLUA_DISABLE_tolua_stratagus_TextField_new00_local
09640 static int tolua_stratagus_TextField_new00_local(lua_State* tolua_S)
09641 {
09642 #ifndef TOLUA_RELEASE
09643 tolua_Error tolua_err;
09644 if (
09645 !tolua_isusertable(tolua_S,1,"TextField",0,&tolua_err) ||
09646 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
09647 !tolua_isnoobj(tolua_S,3,&tolua_err)
09648 )
09649 goto tolua_lerror;
09650 else
09651 #endif
09652 {
09653 const std::string text = ((const std::string) tolua_tocppstring(tolua_S,2,0));
09654 {
09655 TextField* tolua_ret = (TextField*) new TextField(text);
09656 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"TextField");
09657 }
09658 }
09659 return 1;
09660 #ifndef TOLUA_RELEASE
09661 tolua_lerror:
09662 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
09663 return 0;
09664 #endif
09665 }
09666 #endif //#ifndef TOLUA_DISABLE
09667
09668
09669 #ifndef TOLUA_DISABLE_tolua_stratagus_TextField_setText00
09670 static int tolua_stratagus_TextField_setText00(lua_State* tolua_S)
09671 {
09672 #ifndef TOLUA_RELEASE
09673 tolua_Error tolua_err;
09674 if (
09675 !tolua_isusertype(tolua_S,1,"TextField",0,&tolua_err) ||
09676 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
09677 !tolua_isnoobj(tolua_S,3,&tolua_err)
09678 )
09679 goto tolua_lerror;
09680 else
09681 #endif
09682 {
09683 TextField* self = (TextField*) tolua_tousertype(tolua_S,1,0);
09684 const std::string text = ((const std::string) tolua_tocppstring(tolua_S,2,0));
09685 #ifndef TOLUA_RELEASE
09686 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setText'",NULL);
09687 #endif
09688 {
09689 self->setText(text);
09690 }
09691 }
09692 return 0;
09693 #ifndef TOLUA_RELEASE
09694 tolua_lerror:
09695 tolua_error(tolua_S,"#ferror in function 'setText'.",&tolua_err);
09696 return 0;
09697 #endif
09698 }
09699 #endif //#ifndef TOLUA_DISABLE
09700
09701
09702 #ifndef TOLUA_DISABLE_tolua_stratagus_TextField_getText00
09703 static int tolua_stratagus_TextField_getText00(lua_State* tolua_S)
09704 {
09705 #ifndef TOLUA_RELEASE
09706 tolua_Error tolua_err;
09707 if (
09708 !tolua_isusertype(tolua_S,1,"TextField",0,&tolua_err) ||
09709 !tolua_isnoobj(tolua_S,2,&tolua_err)
09710 )
09711 goto tolua_lerror;
09712 else
09713 #endif
09714 {
09715 TextField* self = (TextField*) tolua_tousertype(tolua_S,1,0);
09716 #ifndef TOLUA_RELEASE
09717 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getText'",NULL);
09718 #endif
09719 {
09720 std::string tolua_ret = (std::string) self->getText();
09721 tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
09722 }
09723 }
09724 return 1;
09725 #ifndef TOLUA_RELEASE
09726 tolua_lerror:
09727 tolua_error(tolua_S,"#ferror in function 'getText'.",&tolua_err);
09728 return 0;
09729 #endif
09730 }
09731 #endif //#ifndef TOLUA_DISABLE
09732
09733
09734 #ifndef TOLUA_DISABLE_tolua_stratagus_ListBoxWidget_new00
09735 static int tolua_stratagus_ListBoxWidget_new00(lua_State* tolua_S)
09736 {
09737 #ifndef TOLUA_RELEASE
09738 tolua_Error tolua_err;
09739 if (
09740 !tolua_isusertable(tolua_S,1,"ListBoxWidget",0,&tolua_err) ||
09741 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
09742 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
09743 !tolua_isnoobj(tolua_S,4,&tolua_err)
09744 )
09745 goto tolua_lerror;
09746 else
09747 #endif
09748 {
09749 unsigned int width = ((unsigned int) tolua_tonumber(tolua_S,2,0));
09750 unsigned int height = ((unsigned int) tolua_tonumber(tolua_S,3,0));
09751 {
09752 ListBoxWidget* tolua_ret = (ListBoxWidget*) new ListBoxWidget(width,height);
09753 tolua_pushusertype(tolua_S,(void*)tolua_ret,"ListBoxWidget");
09754 }
09755 }
09756 return 1;
09757 #ifndef TOLUA_RELEASE
09758 tolua_lerror:
09759 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
09760 return 0;
09761 #endif
09762 }
09763 #endif //#ifndef TOLUA_DISABLE
09764
09765
09766 #ifndef TOLUA_DISABLE_tolua_stratagus_ListBoxWidget_new00_local
09767 static int tolua_stratagus_ListBoxWidget_new00_local(lua_State* tolua_S)
09768 {
09769 #ifndef TOLUA_RELEASE
09770 tolua_Error tolua_err;
09771 if (
09772 !tolua_isusertable(tolua_S,1,"ListBoxWidget",0,&tolua_err) ||
09773 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
09774 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
09775 !tolua_isnoobj(tolua_S,4,&tolua_err)
09776 )
09777 goto tolua_lerror;
09778 else
09779 #endif
09780 {
09781 unsigned int width = ((unsigned int) tolua_tonumber(tolua_S,2,0));
09782 unsigned int height = ((unsigned int) tolua_tonumber(tolua_S,3,0));
09783 {
09784 ListBoxWidget* tolua_ret = (ListBoxWidget*) new ListBoxWidget(width,height);
09785 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"ListBoxWidget");
09786 }
09787 }
09788 return 1;
09789 #ifndef TOLUA_RELEASE
09790 tolua_lerror:
09791 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
09792 return 0;
09793 #endif
09794 }
09795 #endif //#ifndef TOLUA_DISABLE
09796
09797
09798 #ifndef TOLUA_DISABLE_tolua_stratagus_ListBoxWidget_setList00
09799 static int tolua_stratagus_ListBoxWidget_setList00(lua_State* tolua_S)
09800 {
09801 #ifndef TOLUA_RELEASE
09802 tolua_Error tolua_err;
09803 if (
09804 !tolua_isusertype(tolua_S,1,"ListBoxWidget",0,&tolua_err) ||
09805 !tolua_isnoobj(tolua_S,3,&tolua_err)
09806 )
09807 goto tolua_lerror;
09808 else
09809 #endif
09810 {
09811 ListBoxWidget* self = (ListBoxWidget*) tolua_tousertype(tolua_S,1,0);
09812 lua_State* lua = tolua_S;
09813 lua_Object lo = ((lua_Object) tolua_tovalue(tolua_S,2,0));
09814 #ifndef TOLUA_RELEASE
09815 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setList'",NULL);
09816 #endif
09817 {
09818 self->setList(lua,&lo);
09819 tolua_pushvalue(tolua_S,(int)lo);
09820 }
09821 }
09822 return 1;
09823 #ifndef TOLUA_RELEASE
09824 tolua_lerror:
09825 tolua_error(tolua_S,"#ferror in function 'setList'.",&tolua_err);
09826 return 0;
09827 #endif
09828 }
09829 #endif //#ifndef TOLUA_DISABLE
09830
09831
09832 #ifndef TOLUA_DISABLE_tolua_stratagus_ListBoxWidget_setSelected00
09833 static int tolua_stratagus_ListBoxWidget_setSelected00(lua_State* tolua_S)
09834 {
09835 #ifndef TOLUA_RELEASE
09836 tolua_Error tolua_err;
09837 if (
09838 !tolua_isusertype(tolua_S,1,"ListBoxWidget",0,&tolua_err) ||
09839 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
09840 !tolua_isnoobj(tolua_S,3,&tolua_err)
09841 )
09842 goto tolua_lerror;
09843 else
09844 #endif
09845 {
09846 ListBoxWidget* self = (ListBoxWidget*) tolua_tousertype(tolua_S,1,0);
09847 int selected = ((int) tolua_tonumber(tolua_S,2,0));
09848 #ifndef TOLUA_RELEASE
09849 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setSelected'",NULL);
09850 #endif
09851 {
09852 self->setSelected(selected);
09853 }
09854 }
09855 return 0;
09856 #ifndef TOLUA_RELEASE
09857 tolua_lerror:
09858 tolua_error(tolua_S,"#ferror in function 'setSelected'.",&tolua_err);
09859 return 0;
09860 #endif
09861 }
09862 #endif //#ifndef TOLUA_DISABLE
09863
09864
09865 #ifndef TOLUA_DISABLE_tolua_stratagus_ListBoxWidget_getSelected00
09866 static int tolua_stratagus_ListBoxWidget_getSelected00(lua_State* tolua_S)
09867 {
09868 #ifndef TOLUA_RELEASE
09869 tolua_Error tolua_err;
09870 if (
09871 !tolua_isusertype(tolua_S,1,"ListBoxWidget",0,&tolua_err) ||
09872 !tolua_isnoobj(tolua_S,2,&tolua_err)
09873 )
09874 goto tolua_lerror;
09875 else
09876 #endif
09877 {
09878 ListBoxWidget* self = (ListBoxWidget*) tolua_tousertype(tolua_S,1,0);
09879 #ifndef TOLUA_RELEASE
09880 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getSelected'",NULL);
09881 #endif
09882 {
09883 int tolua_ret = (int) self->getSelected();
09884 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
09885 }
09886 }
09887 return 1;
09888 #ifndef TOLUA_RELEASE
09889 tolua_lerror:
09890 tolua_error(tolua_S,"#ferror in function 'getSelected'.",&tolua_err);
09891 return 0;
09892 #endif
09893 }
09894 #endif //#ifndef TOLUA_DISABLE
09895
09896
09897 #ifndef TOLUA_DISABLE_tolua_stratagus_Window_new00
09898 static int tolua_stratagus_Window_new00(lua_State* tolua_S)
09899 {
09900 #ifndef TOLUA_RELEASE
09901 tolua_Error tolua_err;
09902 if (
09903 !tolua_isusertable(tolua_S,1,"Window",0,&tolua_err) ||
09904 !tolua_isnoobj(tolua_S,2,&tolua_err)
09905 )
09906 goto tolua_lerror;
09907 else
09908 #endif
09909 {
09910 {
09911 Window* tolua_ret = (Window*) new Window();
09912 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Window");
09913 }
09914 }
09915 return 1;
09916 #ifndef TOLUA_RELEASE
09917 tolua_lerror:
09918 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
09919 return 0;
09920 #endif
09921 }
09922 #endif //#ifndef TOLUA_DISABLE
09923
09924
09925 #ifndef TOLUA_DISABLE_tolua_stratagus_Window_new00_local
09926 static int tolua_stratagus_Window_new00_local(lua_State* tolua_S)
09927 {
09928 #ifndef TOLUA_RELEASE
09929 tolua_Error tolua_err;
09930 if (
09931 !tolua_isusertable(tolua_S,1,"Window",0,&tolua_err) ||
09932 !tolua_isnoobj(tolua_S,2,&tolua_err)
09933 )
09934 goto tolua_lerror;
09935 else
09936 #endif
09937 {
09938 {
09939 Window* tolua_ret = (Window*) new Window();
09940 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"Window");
09941 }
09942 }
09943 return 1;
09944 #ifndef TOLUA_RELEASE
09945 tolua_lerror:
09946 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
09947 return 0;
09948 #endif
09949 }
09950 #endif //#ifndef TOLUA_DISABLE
09951
09952
09953 #ifndef TOLUA_DISABLE_tolua_stratagus_Window_new01
09954 static int tolua_stratagus_Window_new01(lua_State* tolua_S)
09955 {
09956 tolua_Error tolua_err;
09957 if (
09958 !tolua_isusertable(tolua_S,1,"Window",0,&tolua_err) ||
09959 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
09960 !tolua_isnoobj(tolua_S,3,&tolua_err)
09961 )
09962 goto tolua_lerror;
09963 else
09964 {
09965 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,2,0));
09966 {
09967 Window* tolua_ret = (Window*) new Window(caption);
09968 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Window");
09969 }
09970 }
09971 return 1;
09972 tolua_lerror:
09973 return tolua_stratagus_Window_new00(tolua_S);
09974 }
09975 #endif //#ifndef TOLUA_DISABLE
09976
09977
09978 #ifndef TOLUA_DISABLE_tolua_stratagus_Window_new01_local
09979 static int tolua_stratagus_Window_new01_local(lua_State* tolua_S)
09980 {
09981 tolua_Error tolua_err;
09982 if (
09983 !tolua_isusertable(tolua_S,1,"Window",0,&tolua_err) ||
09984 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
09985 !tolua_isnoobj(tolua_S,3,&tolua_err)
09986 )
09987 goto tolua_lerror;
09988 else
09989 {
09990 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,2,0));
09991 {
09992 Window* tolua_ret = (Window*) new Window(caption);
09993 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"Window");
09994 }
09995 }
09996 return 1;
09997 tolua_lerror:
09998 return tolua_stratagus_Window_new00_local(tolua_S);
09999 }
10000 #endif //#ifndef TOLUA_DISABLE
10001
10002
10003 #ifndef TOLUA_DISABLE_tolua_stratagus_Window_new02
10004 static int tolua_stratagus_Window_new02(lua_State* tolua_S)
10005 {
10006 tolua_Error tolua_err;
10007 if (
10008 !tolua_isusertable(tolua_S,1,"Window",0,&tolua_err) ||
10009 !tolua_isusertype(tolua_S,2,"Widget",0,&tolua_err) ||
10010 !tolua_iscppstring(tolua_S,3,1,&tolua_err) ||
10011 !tolua_isnoobj(tolua_S,4,&tolua_err)
10012 )
10013 goto tolua_lerror;
10014 else
10015 {
10016 Widget* content = ((Widget*) tolua_tousertype(tolua_S,2,0));
10017 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,3,""));
10018 {
10019 Window* tolua_ret = (Window*) new Window(content,caption);
10020 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Window");
10021 }
10022 }
10023 return 1;
10024 tolua_lerror:
10025 return tolua_stratagus_Window_new01(tolua_S);
10026 }
10027 #endif //#ifndef TOLUA_DISABLE
10028
10029
10030 #ifndef TOLUA_DISABLE_tolua_stratagus_Window_new02_local
10031 static int tolua_stratagus_Window_new02_local(lua_State* tolua_S)
10032 {
10033 tolua_Error tolua_err;
10034 if (
10035 !tolua_isusertable(tolua_S,1,"Window",0,&tolua_err) ||
10036 !tolua_isusertype(tolua_S,2,"Widget",0,&tolua_err) ||
10037 !tolua_iscppstring(tolua_S,3,1,&tolua_err) ||
10038 !tolua_isnoobj(tolua_S,4,&tolua_err)
10039 )
10040 goto tolua_lerror;
10041 else
10042 {
10043 Widget* content = ((Widget*) tolua_tousertype(tolua_S,2,0));
10044 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,3,""));
10045 {
10046 Window* tolua_ret = (Window*) new Window(content,caption);
10047 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"Window");
10048 }
10049 }
10050 return 1;
10051 tolua_lerror:
10052 return tolua_stratagus_Window_new01_local(tolua_S);
10053 }
10054 #endif //#ifndef TOLUA_DISABLE
10055
10056
10057 #ifndef TOLUA_DISABLE_tolua_stratagus_Window_setCaption00
10058 static int tolua_stratagus_Window_setCaption00(lua_State* tolua_S)
10059 {
10060 #ifndef TOLUA_RELEASE
10061 tolua_Error tolua_err;
10062 if (
10063 !tolua_isusertype(tolua_S,1,"Window",0,&tolua_err) ||
10064 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
10065 !tolua_isnoobj(tolua_S,3,&tolua_err)
10066 )
10067 goto tolua_lerror;
10068 else
10069 #endif
10070 {
10071 Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
10072 const std::string caption = ((const std::string) tolua_tocppstring(tolua_S,2,0));
10073 #ifndef TOLUA_RELEASE
10074 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setCaption'",NULL);
10075 #endif
10076 {
10077 self->setCaption(caption);
10078 }
10079 }
10080 return 0;
10081 #ifndef TOLUA_RELEASE
10082 tolua_lerror:
10083 tolua_error(tolua_S,"#ferror in function 'setCaption'.",&tolua_err);
10084 return 0;
10085 #endif
10086 }
10087 #endif //#ifndef TOLUA_DISABLE
10088
10089
10090 #ifndef TOLUA_DISABLE_tolua_stratagus_Window_getCaption00
10091 static int tolua_stratagus_Window_getCaption00(lua_State* tolua_S)
10092 {
10093 #ifndef TOLUA_RELEASE
10094 tolua_Error tolua_err;
10095 if (
10096 !tolua_isusertype(tolua_S,1,"const Window",0,&tolua_err) ||
10097 !tolua_isnoobj(tolua_S,2,&tolua_err)
10098 )
10099 goto tolua_lerror;
10100 else
10101 #endif
10102 {
10103 const Window* self = (const Window*) tolua_tousertype(tolua_S,1,0);
10104 #ifndef TOLUA_RELEASE
10105 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getCaption'",NULL);
10106 #endif
10107 {
10108 const std::string tolua_ret = (const std::string) self->getCaption();
10109 tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
10110 }
10111 }
10112 return 1;
10113 #ifndef TOLUA_RELEASE
10114 tolua_lerror:
10115 tolua_error(tolua_S,"#ferror in function 'getCaption'.",&tolua_err);
10116 return 0;
10117 #endif
10118 }
10119 #endif //#ifndef TOLUA_DISABLE
10120
10121
10122 #ifndef TOLUA_DISABLE_tolua_stratagus_Window_setAlignment00
10123 static int tolua_stratagus_Window_setAlignment00(lua_State* tolua_S)
10124 {
10125 #ifndef TOLUA_RELEASE
10126 tolua_Error tolua_err;
10127 if (
10128 !tolua_isusertype(tolua_S,1,"Window",0,&tolua_err) ||
10129 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
10130 !tolua_isnoobj(tolua_S,3,&tolua_err)
10131 )
10132 goto tolua_lerror;
10133 else
10134 #endif
10135 {
10136 Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
10137 unsigned int alignment = ((unsigned int) tolua_tonumber(tolua_S,2,0));
10138 #ifndef TOLUA_RELEASE
10139 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setAlignment'",NULL);
10140 #endif
10141 {
10142 self->setAlignment(alignment);
10143 }
10144 }
10145 return 0;
10146 #ifndef TOLUA_RELEASE
10147 tolua_lerror:
10148 tolua_error(tolua_S,"#ferror in function 'setAlignment'.",&tolua_err);
10149 return 0;
10150 #endif
10151 }
10152 #endif //#ifndef TOLUA_DISABLE
10153
10154
10155 #ifndef TOLUA_DISABLE_tolua_stratagus_Window_getAlignment00
10156 static int tolua_stratagus_Window_getAlignment00(lua_State* tolua_S)
10157 {
10158 #ifndef TOLUA_RELEASE
10159 tolua_Error tolua_err;
10160 if (
10161 !tolua_isusertype(tolua_S,1,"const Window",0,&tolua_err) ||
10162 !tolua_isnoobj(tolua_S,2,&tolua_err)
10163 )
10164 goto tolua_lerror;
10165 else
10166 #endif
10167 {
10168 const Window* self = (const Window*) tolua_tousertype(tolua_S,1,0);
10169 #ifndef TOLUA_RELEASE
10170 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getAlignment'",NULL);
10171 #endif
10172 {
10173 unsigned int tolua_ret = (unsigned int) self->getAlignment();
10174 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
10175 }
10176 }
10177 return 1;
10178 #ifndef TOLUA_RELEASE
10179 tolua_lerror:
10180 tolua_error(tolua_S,"#ferror in function 'getAlignment'.",&tolua_err);
10181 return 0;
10182 #endif
10183 }
10184 #endif //#ifndef TOLUA_DISABLE
10185
10186
10187 #ifndef TOLUA_DISABLE_tolua_stratagus_Window_setContent00
10188 static int tolua_stratagus_Window_setContent00(lua_State* tolua_S)
10189 {
10190 #ifndef TOLUA_RELEASE
10191 tolua_Error tolua_err;
10192 if (
10193 !tolua_isusertype(tolua_S,1,"Window",0,&tolua_err) ||
10194 !tolua_isusertype(tolua_S,2,"Widget",0,&tolua_err) ||
10195 !tolua_isnoobj(tolua_S,3,&tolua_err)
10196 )
10197 goto tolua_lerror;
10198 else
10199 #endif
10200 {
10201 Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
10202 Widget* widget = ((Widget*) tolua_tousertype(tolua_S,2,0));
10203 #ifndef TOLUA_RELEASE
10204 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setContent'",NULL);
10205 #endif
10206 {
10207 self->setContent(widget);
10208 }
10209 }
10210 return 0;
10211 #ifndef TOLUA_RELEASE
10212 tolua_lerror:
10213 tolua_error(tolua_S,"#ferror in function 'setContent'.",&tolua_err);
10214 return 0;
10215 #endif
10216 }
10217 #endif //#ifndef TOLUA_DISABLE
10218
10219
10220 #ifndef TOLUA_DISABLE_tolua_stratagus_Window_getContent00
10221 static int tolua_stratagus_Window_getContent00(lua_State* tolua_S)
10222 {
10223 #ifndef TOLUA_RELEASE
10224 tolua_Error tolua_err;
10225 if (
10226 !tolua_isusertype(tolua_S,1,"const Window",0,&tolua_err) ||
10227 !tolua_isnoobj(tolua_S,2,&tolua_err)
10228 )
10229 goto tolua_lerror;
10230 else
10231 #endif
10232 {
10233 const Window* self = (const Window*) tolua_tousertype(tolua_S,1,0);
10234 #ifndef TOLUA_RELEASE
10235 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getContent'",NULL);
10236 #endif
10237 {
10238 Widget* tolua_ret = (Widget*) self->getContent();
10239 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Widget");
10240 }
10241 }
10242 return 1;
10243 #ifndef TOLUA_RELEASE
10244 tolua_lerror:
10245 tolua_error(tolua_S,"#ferror in function 'getContent'.",&tolua_err);
10246 return 0;
10247 #endif
10248 }
10249 #endif //#ifndef TOLUA_DISABLE
10250
10251
10252 #ifndef TOLUA_DISABLE_tolua_stratagus_Window_setPadding00
10253 static int tolua_stratagus_Window_setPadding00(lua_State* tolua_S)
10254 {
10255 #ifndef TOLUA_RELEASE
10256 tolua_Error tolua_err;
10257 if (
10258 !tolua_isusertype(tolua_S,1,"Window",0,&tolua_err) ||
10259 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
10260 !tolua_isnoobj(tolua_S,3,&tolua_err)
10261 )
10262 goto tolua_lerror;
10263 else
10264 #endif
10265 {
10266 Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
10267 unsigned int padding = ((unsigned int) tolua_tonumber(tolua_S,2,0));
10268 #ifndef TOLUA_RELEASE
10269 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setPadding'",NULL);
10270 #endif
10271 {
10272 self->setPadding(padding);
10273 }
10274 }
10275 return 0;
10276 #ifndef TOLUA_RELEASE
10277 tolua_lerror:
10278 tolua_error(tolua_S,"#ferror in function 'setPadding'.",&tolua_err);
10279 return 0;
10280 #endif
10281 }
10282 #endif //#ifndef TOLUA_DISABLE
10283
10284
10285 #ifndef TOLUA_DISABLE_tolua_stratagus_Window_getPadding00
10286 static int tolua_stratagus_Window_getPadding00(lua_State* tolua_S)
10287 {
10288 #ifndef TOLUA_RELEASE
10289 tolua_Error tolua_err;
10290 if (
10291 !tolua_isusertype(tolua_S,1,"const Window",0,&tolua_err) ||
10292 !tolua_isnoobj(tolua_S,2,&tolua_err)
10293 )
10294 goto tolua_lerror;
10295 else
10296 #endif
10297 {
10298 const Window* self = (const Window*) tolua_tousertype(tolua_S,1,0);
10299 #ifndef TOLUA_RELEASE
10300 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getPadding'",NULL);
10301 #endif
10302 {
10303 unsigned int tolua_ret = (unsigned int) self->getPadding();
10304 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
10305 }
10306 }
10307 return 1;
10308 #ifndef TOLUA_RELEASE
10309 tolua_lerror:
10310 tolua_error(tolua_S,"#ferror in function 'getPadding'.",&tolua_err);
10311 return 0;
10312 #endif
10313 }
10314 #endif //#ifndef TOLUA_DISABLE
10315
10316
10317 #ifndef TOLUA_DISABLE_tolua_stratagus_Window_setTitleBarHeight00
10318 static int tolua_stratagus_Window_setTitleBarHeight00(lua_State* tolua_S)
10319 {
10320 #ifndef TOLUA_RELEASE
10321 tolua_Error tolua_err;
10322 if (
10323 !tolua_isusertype(tolua_S,1,"Window",0,&tolua_err) ||
10324 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
10325 !tolua_isnoobj(tolua_S,3,&tolua_err)
10326 )
10327 goto tolua_lerror;
10328 else
10329 #endif
10330 {
10331 Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
10332 unsigned int height = ((unsigned int) tolua_tonumber(tolua_S,2,0));
10333 #ifndef TOLUA_RELEASE
10334 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setTitleBarHeight'",NULL);
10335 #endif
10336 {
10337 self->setTitleBarHeight(height);
10338 }
10339 }
10340 return 0;
10341 #ifndef TOLUA_RELEASE
10342 tolua_lerror:
10343 tolua_error(tolua_S,"#ferror in function 'setTitleBarHeight'.",&tolua_err);
10344 return 0;
10345 #endif
10346 }
10347 #endif //#ifndef TOLUA_DISABLE
10348
10349
10350 #ifndef TOLUA_DISABLE_tolua_stratagus_Window_getTitleBarHeight00
10351 static int tolua_stratagus_Window_getTitleBarHeight00(lua_State* tolua_S)
10352 {
10353 #ifndef TOLUA_RELEASE
10354 tolua_Error tolua_err;
10355 if (
10356 !tolua_isusertype(tolua_S,1,"Window",0,&tolua_err) ||
10357 !tolua_isnoobj(tolua_S,2,&tolua_err)
10358 )
10359 goto tolua_lerror;
10360 else
10361 #endif
10362 {
10363 Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
10364 #ifndef TOLUA_RELEASE
10365 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getTitleBarHeight'",NULL);
10366 #endif
10367 {
10368 unsigned int tolua_ret = (unsigned int) self->getTitleBarHeight();
10369 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
10370 }
10371 }
10372 return 1;
10373 #ifndef TOLUA_RELEASE
10374 tolua_lerror:
10375 tolua_error(tolua_S,"#ferror in function 'getTitleBarHeight'.",&tolua_err);
10376 return 0;
10377 #endif
10378 }
10379 #endif //#ifndef TOLUA_DISABLE
10380
10381
10382 #ifndef TOLUA_DISABLE_tolua_stratagus_Window_setMovable00
10383 static int tolua_stratagus_Window_setMovable00(lua_State* tolua_S)
10384 {
10385 #ifndef TOLUA_RELEASE
10386 tolua_Error tolua_err;
10387 if (
10388 !tolua_isusertype(tolua_S,1,"Window",0,&tolua_err) ||
10389 !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
10390 !tolua_isnoobj(tolua_S,3,&tolua_err)
10391 )
10392 goto tolua_lerror;
10393 else
10394 #endif
10395 {
10396 Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
10397 bool movable = ((bool) tolua_toboolean(tolua_S,2,0));
10398 #ifndef TOLUA_RELEASE
10399 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setMovable'",NULL);
10400 #endif
10401 {
10402 self->setMovable(movable);
10403 }
10404 }
10405 return 0;
10406 #ifndef TOLUA_RELEASE
10407 tolua_lerror:
10408 tolua_error(tolua_S,"#ferror in function 'setMovable'.",&tolua_err);
10409 return 0;
10410 #endif
10411 }
10412 #endif //#ifndef TOLUA_DISABLE
10413
10414
10415 #ifndef TOLUA_DISABLE_tolua_stratagus_Window_isMovable00
10416 static int tolua_stratagus_Window_isMovable00(lua_State* tolua_S)
10417 {
10418 #ifndef TOLUA_RELEASE
10419 tolua_Error tolua_err;
10420 if (
10421 !tolua_isusertype(tolua_S,1,"const Window",0,&tolua_err) ||
10422 !tolua_isnoobj(tolua_S,2,&tolua_err)
10423 )
10424 goto tolua_lerror;
10425 else
10426 #endif
10427 {
10428 const Window* self = (const Window*) tolua_tousertype(tolua_S,1,0);
10429 #ifndef TOLUA_RELEASE
10430 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'isMovable'",NULL);
10431 #endif
10432 {
10433 bool tolua_ret = (bool) self->isMovable();
10434 tolua_pushboolean(tolua_S,(bool)tolua_ret);
10435 }
10436 }
10437 return 1;
10438 #ifndef TOLUA_RELEASE
10439 tolua_lerror:
10440 tolua_error(tolua_S,"#ferror in function 'isMovable'.",&tolua_err);
10441 return 0;
10442 #endif
10443 }
10444 #endif //#ifndef TOLUA_DISABLE
10445
10446
10447 #ifndef TOLUA_DISABLE_tolua_stratagus_Window_resizeToContent00
10448 static int tolua_stratagus_Window_resizeToContent00(lua_State* tolua_S)
10449 {
10450 #ifndef TOLUA_RELEASE
10451 tolua_Error tolua_err;
10452 if (
10453 !tolua_isusertype(tolua_S,1,"Window",0,&tolua_err) ||
10454 !tolua_isnoobj(tolua_S,2,&tolua_err)
10455 )
10456 goto tolua_lerror;
10457 else
10458 #endif
10459 {
10460 Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
10461 #ifndef TOLUA_RELEASE
10462 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'resizeToContent'",NULL);
10463 #endif
10464 {
10465 self->resizeToContent();
10466 }
10467 }
10468 return 0;
10469 #ifndef TOLUA_RELEASE
10470 tolua_lerror:
10471 tolua_error(tolua_S,"#ferror in function 'resizeToContent'.",&tolua_err);
10472 return 0;
10473 #endif
10474 }
10475 #endif //#ifndef TOLUA_DISABLE
10476
10477
10478 #ifndef TOLUA_DISABLE_tolua_stratagus_Window_setOpaque00
10479 static int tolua_stratagus_Window_setOpaque00(lua_State* tolua_S)
10480 {
10481 #ifndef TOLUA_RELEASE
10482 tolua_Error tolua_err;
10483 if (
10484 !tolua_isusertype(tolua_S,1,"Window",0,&tolua_err) ||
10485 !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
10486 !tolua_isnoobj(tolua_S,3,&tolua_err)
10487 )
10488 goto tolua_lerror;
10489 else
10490 #endif
10491 {
10492 Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
10493 bool opaque = ((bool) tolua_toboolean(tolua_S,2,0));
10494 #ifndef TOLUA_RELEASE
10495 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setOpaque'",NULL);
10496 #endif
10497 {
10498 self->setOpaque(opaque);
10499 }
10500 }
10501 return 0;
10502 #ifndef TOLUA_RELEASE
10503 tolua_lerror:
10504 tolua_error(tolua_S,"#ferror in function 'setOpaque'.",&tolua_err);
10505 return 0;
10506 #endif
10507 }
10508 #endif //#ifndef TOLUA_DISABLE
10509
10510
10511 #ifndef TOLUA_DISABLE_tolua_stratagus_Window_isOpaque00
10512 static int tolua_stratagus_Window_isOpaque00(lua_State* tolua_S)
10513 {
10514 #ifndef TOLUA_RELEASE
10515 tolua_Error tolua_err;
10516 if (
10517 !tolua_isusertype(tolua_S,1,"Window",0,&tolua_err) ||
10518 !tolua_isnoobj(tolua_S,2,&tolua_err)
10519 )
10520 goto tolua_lerror;
10521 else
10522 #endif
10523 {
10524 Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
10525 #ifndef TOLUA_RELEASE
10526 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'isOpaque'",NULL);
10527 #endif
10528 {
10529 bool tolua_ret = (bool) self->isOpaque();
10530 tolua_pushboolean(tolua_S,(bool)tolua_ret);
10531 }
10532 }
10533 return 1;
10534 #ifndef TOLUA_RELEASE
10535 tolua_lerror:
10536 tolua_error(tolua_S,"#ferror in function 'isOpaque'.",&tolua_err);
10537 return 0;
10538 #endif
10539 }
10540 #endif //#ifndef TOLUA_DISABLE
10541
10542
10543 #ifndef TOLUA_DISABLE_tolua_stratagus_Windows_new00
10544 static int tolua_stratagus_Windows_new00(lua_State* tolua_S)
10545 {
10546 #ifndef TOLUA_RELEASE
10547 tolua_Error tolua_err;
10548 if (
10549 !tolua_isusertable(tolua_S,1,"Windows",0,&tolua_err) ||
10550 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
10551 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
10552 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
10553 !tolua_isnoobj(tolua_S,5,&tolua_err)
10554 )
10555 goto tolua_lerror;
10556 else
10557 #endif
10558 {
10559 const std::string text = ((const std::string) tolua_tocppstring(tolua_S,2,0));
10560 int width = ((int) tolua_tonumber(tolua_S,3,0));
10561 int height = ((int) tolua_tonumber(tolua_S,4,0));
10562 {
10563 Windows* tolua_ret = (Windows*) new Windows(text,width,height);
10564 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Windows");
10565 }
10566 }
10567 return 1;
10568 #ifndef TOLUA_RELEASE
10569 tolua_lerror:
10570 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
10571 return 0;
10572 #endif
10573 }
10574 #endif //#ifndef TOLUA_DISABLE
10575
10576
10577 #ifndef TOLUA_DISABLE_tolua_stratagus_Windows_new00_local
10578 static int tolua_stratagus_Windows_new00_local(lua_State* tolua_S)
10579 {
10580 #ifndef TOLUA_RELEASE
10581 tolua_Error tolua_err;
10582 if (
10583 !tolua_isusertable(tolua_S,1,"Windows",0,&tolua_err) ||
10584 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
10585 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
10586 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
10587 !tolua_isnoobj(tolua_S,5,&tolua_err)
10588 )
10589 goto tolua_lerror;
10590 else
10591 #endif
10592 {
10593 const std::string text = ((const std::string) tolua_tocppstring(tolua_S,2,0));
10594 int width = ((int) tolua_tonumber(tolua_S,3,0));
10595 int height = ((int) tolua_tonumber(tolua_S,4,0));
10596 {
10597 Windows* tolua_ret = (Windows*) new Windows(text,width,height);
10598 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"Windows");
10599 }
10600 }
10601 return 1;
10602 #ifndef TOLUA_RELEASE
10603 tolua_lerror:
10604 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
10605 return 0;
10606 #endif
10607 }
10608 #endif //#ifndef TOLUA_DISABLE
10609
10610
10611 #ifndef TOLUA_DISABLE_tolua_stratagus_Windows_add00
10612 static int tolua_stratagus_Windows_add00(lua_State* tolua_S)
10613 {
10614 #ifndef TOLUA_RELEASE
10615 tolua_Error tolua_err;
10616 if (
10617 !tolua_isusertype(tolua_S,1,"Windows",0,&tolua_err) ||
10618 !tolua_isusertype(tolua_S,2,"Widget",0,&tolua_err) ||
10619 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
10620 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
10621 !tolua_isnoobj(tolua_S,5,&tolua_err)
10622 )
10623 goto tolua_lerror;
10624 else
10625 #endif
10626 {
10627 Windows* self = (Windows*) tolua_tousertype(tolua_S,1,0);
10628 Widget* widget = ((Widget*) tolua_tousertype(tolua_S,2,0));
10629 int x = ((int) tolua_tonumber(tolua_S,3,0));
10630 int y = ((int) tolua_tonumber(tolua_S,4,0));
10631 #ifndef TOLUA_RELEASE
10632 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'add'",NULL);
10633 #endif
10634 {
10635 self->add(widget,x,y);
10636 }
10637 }
10638 return 0;
10639 #ifndef TOLUA_RELEASE
10640 tolua_lerror:
10641 tolua_error(tolua_S,"#ferror in function 'add'.",&tolua_err);
10642 return 0;
10643 #endif
10644 }
10645 #endif //#ifndef TOLUA_DISABLE
10646
10647
10648 #ifndef TOLUA_DISABLE_tolua_stratagus_ScrollingWidget_new00
10649 static int tolua_stratagus_ScrollingWidget_new00(lua_State* tolua_S)
10650 {
10651 #ifndef TOLUA_RELEASE
10652 tolua_Error tolua_err;
10653 if (
10654 !tolua_isusertable(tolua_S,1,"ScrollingWidget",0,&tolua_err) ||
10655 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
10656 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
10657 !tolua_isnoobj(tolua_S,4,&tolua_err)
10658 )
10659 goto tolua_lerror;
10660 else
10661 #endif
10662 {
10663 int width = ((int) tolua_tonumber(tolua_S,2,0));
10664 int height = ((int) tolua_tonumber(tolua_S,3,0));
10665 {
10666 ScrollingWidget* tolua_ret = (ScrollingWidget*) new ScrollingWidget(width,height);
10667 tolua_pushusertype(tolua_S,(void*)tolua_ret,"ScrollingWidget");
10668 }
10669 }
10670 return 1;
10671 #ifndef TOLUA_RELEASE
10672 tolua_lerror:
10673 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
10674 return 0;
10675 #endif
10676 }
10677 #endif //#ifndef TOLUA_DISABLE
10678
10679
10680 #ifndef TOLUA_DISABLE_tolua_stratagus_ScrollingWidget_new00_local
10681 static int tolua_stratagus_ScrollingWidget_new00_local(lua_State* tolua_S)
10682 {
10683 #ifndef TOLUA_RELEASE
10684 tolua_Error tolua_err;
10685 if (
10686 !tolua_isusertable(tolua_S,1,"ScrollingWidget",0,&tolua_err) ||
10687 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
10688 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
10689 !tolua_isnoobj(tolua_S,4,&tolua_err)
10690 )
10691 goto tolua_lerror;
10692 else
10693 #endif
10694 {
10695 int width = ((int) tolua_tonumber(tolua_S,2,0));
10696 int height = ((int) tolua_tonumber(tolua_S,3,0));
10697 {
10698 ScrollingWidget* tolua_ret = (ScrollingWidget*) new ScrollingWidget(width,height);
10699 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"ScrollingWidget");
10700 }
10701 }
10702 return 1;
10703 #ifndef TOLUA_RELEASE
10704 tolua_lerror:
10705 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
10706 return 0;
10707 #endif
10708 }
10709 #endif //#ifndef TOLUA_DISABLE
10710
10711
10712 #ifndef TOLUA_DISABLE_tolua_stratagus_ScrollingWidget_add00
10713 static int tolua_stratagus_ScrollingWidget_add00(lua_State* tolua_S)
10714 {
10715 #ifndef TOLUA_RELEASE
10716 tolua_Error tolua_err;
10717 if (
10718 !tolua_isusertype(tolua_S,1,"ScrollingWidget",0,&tolua_err) ||
10719 !tolua_isusertype(tolua_S,2,"Widget",0,&tolua_err) ||
10720 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
10721 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
10722 !tolua_isnoobj(tolua_S,5,&tolua_err)
10723 )
10724 goto tolua_lerror;
10725 else
10726 #endif
10727 {
10728 ScrollingWidget* self = (ScrollingWidget*) tolua_tousertype(tolua_S,1,0);
10729 Widget* widget = ((Widget*) tolua_tousertype(tolua_S,2,0));
10730 int x = ((int) tolua_tonumber(tolua_S,3,0));
10731 int y = ((int) tolua_tonumber(tolua_S,4,0));
10732 #ifndef TOLUA_RELEASE
10733 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'add'",NULL);
10734 #endif
10735 {
10736 self->add(widget,x,y);
10737 }
10738 }
10739 return 0;
10740 #ifndef TOLUA_RELEASE
10741 tolua_lerror:
10742 tolua_error(tolua_S,"#ferror in function 'add'.",&tolua_err);
10743 return 0;
10744 #endif
10745 }
10746 #endif //#ifndef TOLUA_DISABLE
10747
10748
10749 #ifndef TOLUA_DISABLE_tolua_stratagus_ScrollingWidget_restart00
10750 static int tolua_stratagus_ScrollingWidget_restart00(lua_State* tolua_S)
10751 {
10752 #ifndef TOLUA_RELEASE
10753 tolua_Error tolua_err;
10754 if (
10755 !tolua_isusertype(tolua_S,1,"ScrollingWidget",0,&tolua_err) ||
10756 !tolua_isnoobj(tolua_S,2,&tolua_err)
10757 )
10758 goto tolua_lerror;
10759 else
10760 #endif
10761 {
10762 ScrollingWidget* self = (ScrollingWidget*) tolua_tousertype(tolua_S,1,0);
10763 #ifndef TOLUA_RELEASE
10764 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'restart'",NULL);
10765 #endif
10766 {
10767 self->restart();
10768 }
10769 }
10770 return 0;
10771 #ifndef TOLUA_RELEASE
10772 tolua_lerror:
10773 tolua_error(tolua_S,"#ferror in function 'restart'.",&tolua_err);
10774 return 0;
10775 #endif
10776 }
10777 #endif //#ifndef TOLUA_DISABLE
10778
10779
10780 #ifndef TOLUA_DISABLE_tolua_stratagus_ScrollingWidget_setSpeed00
10781 static int tolua_stratagus_ScrollingWidget_setSpeed00(lua_State* tolua_S)
10782 {
10783 #ifndef TOLUA_RELEASE
10784 tolua_Error tolua_err;
10785 if (
10786 !tolua_isusertype(tolua_S,1,"ScrollingWidget",0,&tolua_err) ||
10787 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
10788 !tolua_isnoobj(tolua_S,3,&tolua_err)
10789 )
10790 goto tolua_lerror;
10791 else
10792 #endif
10793 {
10794 ScrollingWidget* self = (ScrollingWidget*) tolua_tousertype(tolua_S,1,0);
10795 float speed = ((float) tolua_tonumber(tolua_S,2,0));
10796 #ifndef TOLUA_RELEASE
10797 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setSpeed'",NULL);
10798 #endif
10799 {
10800 self->setSpeed(speed);
10801 }
10802 }
10803 return 0;
10804 #ifndef TOLUA_RELEASE
10805 tolua_lerror:
10806 tolua_error(tolua_S,"#ferror in function 'setSpeed'.",&tolua_err);
10807 return 0;
10808 #endif
10809 }
10810 #endif //#ifndef TOLUA_DISABLE
10811
10812
10813 #ifndef TOLUA_DISABLE_tolua_stratagus_ScrollingWidget_getSpeed00
10814 static int tolua_stratagus_ScrollingWidget_getSpeed00(lua_State* tolua_S)
10815 {
10816 #ifndef TOLUA_RELEASE
10817 tolua_Error tolua_err;
10818 if (
10819 !tolua_isusertype(tolua_S,1,"ScrollingWidget",0,&tolua_err) ||
10820 !tolua_isnoobj(tolua_S,2,&tolua_err)
10821 )
10822 goto tolua_lerror;
10823 else
10824 #endif
10825 {
10826 ScrollingWidget* self = (ScrollingWidget*) tolua_tousertype(tolua_S,1,0);
10827 #ifndef TOLUA_RELEASE
10828 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getSpeed'",NULL);
10829 #endif
10830 {
10831 float tolua_ret = (float) self->getSpeed();
10832 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
10833 }
10834 }
10835 return 1;
10836 #ifndef TOLUA_RELEASE
10837 tolua_lerror:
10838 tolua_error(tolua_S,"#ferror in function 'getSpeed'.",&tolua_err);
10839 return 0;
10840 #endif
10841 }
10842 #endif //#ifndef TOLUA_DISABLE
10843
10844
10845 #ifndef TOLUA_DISABLE_tolua_stratagus_DropDown_getSelected00
10846 static int tolua_stratagus_DropDown_getSelected00(lua_State* tolua_S)
10847 {
10848 #ifndef TOLUA_RELEASE
10849 tolua_Error tolua_err;
10850 if (
10851 !tolua_isusertype(tolua_S,1,"DropDown",0,&tolua_err) ||
10852 !tolua_isnoobj(tolua_S,2,&tolua_err)
10853 )
10854 goto tolua_lerror;
10855 else
10856 #endif
10857 {
10858 DropDown* self = (DropDown*) tolua_tousertype(tolua_S,1,0);
10859 #ifndef TOLUA_RELEASE
10860 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getSelected'",NULL);
10861 #endif
10862 {
10863 int tolua_ret = (int) self->getSelected();
10864 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
10865 }
10866 }
10867 return 1;
10868 #ifndef TOLUA_RELEASE
10869 tolua_lerror:
10870 tolua_error(tolua_S,"#ferror in function 'getSelected'.",&tolua_err);
10871 return 0;
10872 #endif
10873 }
10874 #endif //#ifndef TOLUA_DISABLE
10875
10876
10877 #ifndef TOLUA_DISABLE_tolua_stratagus_DropDown_setSelected00
10878 static int tolua_stratagus_DropDown_setSelected00(lua_State* tolua_S)
10879 {
10880 #ifndef TOLUA_RELEASE
10881 tolua_Error tolua_err;
10882 if (
10883 !tolua_isusertype(tolua_S,1,"DropDown",0,&tolua_err) ||
10884 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
10885 !tolua_isnoobj(tolua_S,3,&tolua_err)
10886 )
10887 goto tolua_lerror;
10888 else
10889 #endif
10890 {
10891 DropDown* self = (DropDown*) tolua_tousertype(tolua_S,1,0);
10892 int selected = ((int) tolua_tonumber(tolua_S,2,0));
10893 #ifndef TOLUA_RELEASE
10894 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setSelected'",NULL);
10895 #endif
10896 {
10897 self->setSelected(selected);
10898 }
10899 }
10900 return 0;
10901 #ifndef TOLUA_RELEASE
10902 tolua_lerror:
10903 tolua_error(tolua_S,"#ferror in function 'setSelected'.",&tolua_err);
10904 return 0;
10905 #endif
10906 }
10907 #endif //#ifndef TOLUA_DISABLE
10908
10909
10910 #ifndef TOLUA_DISABLE_tolua_stratagus_DropDown_setScrollArea00
10911 static int tolua_stratagus_DropDown_setScrollArea00(lua_State* tolua_S)
10912 {
10913 #ifndef TOLUA_RELEASE
10914 tolua_Error tolua_err;
10915 if (
10916 !tolua_isusertype(tolua_S,1,"DropDown",0,&tolua_err) ||
10917 !tolua_isusertype(tolua_S,2,"ScrollArea",0,&tolua_err) ||
10918 !tolua_isnoobj(tolua_S,3,&tolua_err)
10919 )
10920 goto tolua_lerror;
10921 else
10922 #endif
10923 {
10924 DropDown* self = (DropDown*) tolua_tousertype(tolua_S,1,0);
10925 ScrollArea* scrollArea = ((ScrollArea*) tolua_tousertype(tolua_S,2,0));
10926 #ifndef TOLUA_RELEASE
10927 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setScrollArea'",NULL);
10928 #endif
10929 {
10930 self->setScrollArea(scrollArea);
10931 }
10932 }
10933 return 0;
10934 #ifndef TOLUA_RELEASE
10935 tolua_lerror:
10936 tolua_error(tolua_S,"#ferror in function 'setScrollArea'.",&tolua_err);
10937 return 0;
10938 #endif
10939 }
10940 #endif //#ifndef TOLUA_DISABLE
10941
10942
10943 #ifndef TOLUA_DISABLE_tolua_stratagus_DropDown_getScrollArea00
10944 static int tolua_stratagus_DropDown_getScrollArea00(lua_State* tolua_S)
10945 {
10946 #ifndef TOLUA_RELEASE
10947 tolua_Error tolua_err;
10948 if (
10949 !tolua_isusertype(tolua_S,1,"DropDown",0,&tolua_err) ||
10950 !tolua_isnoobj(tolua_S,2,&tolua_err)
10951 )
10952 goto tolua_lerror;
10953 else
10954 #endif
10955 {
10956 DropDown* self = (DropDown*) tolua_tousertype(tolua_S,1,0);
10957 #ifndef TOLUA_RELEASE
10958 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getScrollArea'",NULL);
10959 #endif
10960 {
10961 ScrollArea* tolua_ret = (ScrollArea*) self->getScrollArea();
10962 tolua_pushusertype(tolua_S,(void*)tolua_ret,"ScrollArea");
10963 }
10964 }
10965 return 1;
10966 #ifndef TOLUA_RELEASE
10967 tolua_lerror:
10968 tolua_error(tolua_S,"#ferror in function 'getScrollArea'.",&tolua_err);
10969 return 0;
10970 #endif
10971 }
10972 #endif //#ifndef TOLUA_DISABLE
10973
10974
10975 #ifndef TOLUA_DISABLE_tolua_stratagus_DropDown_setListBox00
10976 static int tolua_stratagus_DropDown_setListBox00(lua_State* tolua_S)
10977 {
10978 #ifndef TOLUA_RELEASE
10979 tolua_Error tolua_err;
10980 if (
10981 !tolua_isusertype(tolua_S,1,"DropDown",0,&tolua_err) ||
10982 !tolua_isusertype(tolua_S,2,"ListBox",0,&tolua_err) ||
10983 !tolua_isnoobj(tolua_S,3,&tolua_err)
10984 )
10985 goto tolua_lerror;
10986 else
10987 #endif
10988 {
10989 DropDown* self = (DropDown*) tolua_tousertype(tolua_S,1,0);
10990 ListBox* listBox = ((ListBox*) tolua_tousertype(tolua_S,2,0));
10991 #ifndef TOLUA_RELEASE
10992 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setListBox'",NULL);
10993 #endif
10994 {
10995 self->setListBox(listBox);
10996 }
10997 }
10998 return 0;
10999 #ifndef TOLUA_RELEASE
11000 tolua_lerror:
11001 tolua_error(tolua_S,"#ferror in function 'setListBox'.",&tolua_err);
11002 return 0;
11003 #endif
11004 }
11005 #endif //#ifndef TOLUA_DISABLE
11006
11007
11008 #ifndef TOLUA_DISABLE_tolua_stratagus_DropDown_getListBox00
11009 static int tolua_stratagus_DropDown_getListBox00(lua_State* tolua_S)
11010 {
11011 #ifndef TOLUA_RELEASE
11012 tolua_Error tolua_err;
11013 if (
11014 !tolua_isusertype(tolua_S,1,"DropDown",0,&tolua_err) ||
11015 !tolua_isnoobj(tolua_S,2,&tolua_err)
11016 )
11017 goto tolua_lerror;
11018 else
11019 #endif
11020 {
11021 DropDown* self = (DropDown*) tolua_tousertype(tolua_S,1,0);
11022 #ifndef TOLUA_RELEASE
11023 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getListBox'",NULL);
11024 #endif
11025 {
11026 ListBox* tolua_ret = (ListBox*) self->getListBox();
11027 tolua_pushusertype(tolua_S,(void*)tolua_ret,"ListBox");
11028 }
11029 }
11030 return 1;
11031 #ifndef TOLUA_RELEASE
11032 tolua_lerror:
11033 tolua_error(tolua_S,"#ferror in function 'getListBox'.",&tolua_err);
11034 return 0;
11035 #endif
11036 }
11037 #endif //#ifndef TOLUA_DISABLE
11038
11039
11040 #ifndef TOLUA_DISABLE_tolua_stratagus_DropDownWidget_new00
11041 static int tolua_stratagus_DropDownWidget_new00(lua_State* tolua_S)
11042 {
11043 #ifndef TOLUA_RELEASE
11044 tolua_Error tolua_err;
11045 if (
11046 !tolua_isusertable(tolua_S,1,"DropDownWidget",0,&tolua_err) ||
11047 !tolua_isnoobj(tolua_S,2,&tolua_err)
11048 )
11049 goto tolua_lerror;
11050 else
11051 #endif
11052 {
11053 {
11054 DropDownWidget* tolua_ret = (DropDownWidget*) new DropDownWidget();
11055 tolua_pushusertype(tolua_S,(void*)tolua_ret,"DropDownWidget");
11056 }
11057 }
11058 return 1;
11059 #ifndef TOLUA_RELEASE
11060 tolua_lerror:
11061 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
11062 return 0;
11063 #endif
11064 }
11065 #endif //#ifndef TOLUA_DISABLE
11066
11067
11068 #ifndef TOLUA_DISABLE_tolua_stratagus_DropDownWidget_new00_local
11069 static int tolua_stratagus_DropDownWidget_new00_local(lua_State* tolua_S)
11070 {
11071 #ifndef TOLUA_RELEASE
11072 tolua_Error tolua_err;
11073 if (
11074 !tolua_isusertable(tolua_S,1,"DropDownWidget",0,&tolua_err) ||
11075 !tolua_isnoobj(tolua_S,2,&tolua_err)
11076 )
11077 goto tolua_lerror;
11078 else
11079 #endif
11080 {
11081 {
11082 DropDownWidget* tolua_ret = (DropDownWidget*) new DropDownWidget();
11083 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"DropDownWidget");
11084 }
11085 }
11086 return 1;
11087 #ifndef TOLUA_RELEASE
11088 tolua_lerror:
11089 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
11090 return 0;
11091 #endif
11092 }
11093 #endif //#ifndef TOLUA_DISABLE
11094
11095
11096 #ifndef TOLUA_DISABLE_tolua_stratagus_DropDownWidget_setList00
11097 static int tolua_stratagus_DropDownWidget_setList00(lua_State* tolua_S)
11098 {
11099 #ifndef TOLUA_RELEASE
11100 tolua_Error tolua_err;
11101 if (
11102 !tolua_isusertype(tolua_S,1,"DropDownWidget",0,&tolua_err) ||
11103 !tolua_isnoobj(tolua_S,3,&tolua_err)
11104 )
11105 goto tolua_lerror;
11106 else
11107 #endif
11108 {
11109 DropDownWidget* self = (DropDownWidget*) tolua_tousertype(tolua_S,1,0);
11110 lua_State* lua = tolua_S;
11111 lua_Object lo = ((lua_Object) tolua_tovalue(tolua_S,2,0));
11112 #ifndef TOLUA_RELEASE
11113 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setList'",NULL);
11114 #endif
11115 {
11116 self->setList(lua,&lo);
11117 tolua_pushvalue(tolua_S,(int)lo);
11118 }
11119 }
11120 return 1;
11121 #ifndef TOLUA_RELEASE
11122 tolua_lerror:
11123 tolua_error(tolua_S,"#ferror in function 'setList'.",&tolua_err);
11124 return 0;
11125 #endif
11126 }
11127 #endif //#ifndef TOLUA_DISABLE
11128
11129
11130 #ifndef TOLUA_DISABLE_tolua_stratagus_DropDownWidget_getListBox00
11131 static int tolua_stratagus_DropDownWidget_getListBox00(lua_State* tolua_S)
11132 {
11133 #ifndef TOLUA_RELEASE
11134 tolua_Error tolua_err;
11135 if (
11136 !tolua_isusertype(tolua_S,1,"DropDownWidget",0,&tolua_err) ||
11137 !tolua_isnoobj(tolua_S,2,&tolua_err)
11138 )
11139 goto tolua_lerror;
11140 else
11141 #endif
11142 {
11143 DropDownWidget* self = (DropDownWidget*) tolua_tousertype(tolua_S,1,0);
11144 #ifndef TOLUA_RELEASE
11145 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getListBox'",NULL);
11146 #endif
11147 {
11148 ListBox* tolua_ret = (ListBox*) self->getListBox();
11149 tolua_pushusertype(tolua_S,(void*)tolua_ret,"ListBox");
11150 }
11151 }
11152 return 1;
11153 #ifndef TOLUA_RELEASE
11154 tolua_lerror:
11155 tolua_error(tolua_S,"#ferror in function 'getListBox'.",&tolua_err);
11156 return 0;
11157 #endif
11158 }
11159 #endif //#ifndef TOLUA_DISABLE
11160
11161
11162 #ifndef TOLUA_DISABLE_tolua_stratagus_DropDownWidget_setSize00
11163 static int tolua_stratagus_DropDownWidget_setSize00(lua_State* tolua_S)
11164 {
11165 #ifndef TOLUA_RELEASE
11166 tolua_Error tolua_err;
11167 if (
11168 !tolua_isusertype(tolua_S,1,"DropDownWidget",0,&tolua_err) ||
11169 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
11170 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
11171 !tolua_isnoobj(tolua_S,4,&tolua_err)
11172 )
11173 goto tolua_lerror;
11174 else
11175 #endif
11176 {
11177 DropDownWidget* self = (DropDownWidget*) tolua_tousertype(tolua_S,1,0);
11178 int width = ((int) tolua_tonumber(tolua_S,2,0));
11179 int height = ((int) tolua_tonumber(tolua_S,3,0));
11180 #ifndef TOLUA_RELEASE
11181 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setSize'",NULL);
11182 #endif
11183 {
11184 self->setSize(width,height);
11185 }
11186 }
11187 return 0;
11188 #ifndef TOLUA_RELEASE
11189 tolua_lerror:
11190 tolua_error(tolua_S,"#ferror in function 'setSize'.",&tolua_err);
11191 return 0;
11192 #endif
11193 }
11194 #endif //#ifndef TOLUA_DISABLE
11195
11196
11197 #ifndef TOLUA_DISABLE_tolua_stratagus_StatBoxWidget_new00
11198 static int tolua_stratagus_StatBoxWidget_new00(lua_State* tolua_S)
11199 {
11200 #ifndef TOLUA_RELEASE
11201 tolua_Error tolua_err;
11202 if (
11203 !tolua_isusertable(tolua_S,1,"StatBoxWidget",0,&tolua_err) ||
11204 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
11205 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
11206 !tolua_isnoobj(tolua_S,4,&tolua_err)
11207 )
11208 goto tolua_lerror;
11209 else
11210 #endif
11211 {
11212 int width = ((int) tolua_tonumber(tolua_S,2,0));
11213 int height = ((int) tolua_tonumber(tolua_S,3,0));
11214 {
11215 StatBoxWidget* tolua_ret = (StatBoxWidget*) new StatBoxWidget(width,height);
11216 tolua_pushusertype(tolua_S,(void*)tolua_ret,"StatBoxWidget");
11217 }
11218 }
11219 return 1;
11220 #ifndef TOLUA_RELEASE
11221 tolua_lerror:
11222 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
11223 return 0;
11224 #endif
11225 }
11226 #endif //#ifndef TOLUA_DISABLE
11227
11228
11229 #ifndef TOLUA_DISABLE_tolua_stratagus_StatBoxWidget_new00_local
11230 static int tolua_stratagus_StatBoxWidget_new00_local(lua_State* tolua_S)
11231 {
11232 #ifndef TOLUA_RELEASE
11233 tolua_Error tolua_err;
11234 if (
11235 !tolua_isusertable(tolua_S,1,"StatBoxWidget",0,&tolua_err) ||
11236 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
11237 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
11238 !tolua_isnoobj(tolua_S,4,&tolua_err)
11239 )
11240 goto tolua_lerror;
11241 else
11242 #endif
11243 {
11244 int width = ((int) tolua_tonumber(tolua_S,2,0));
11245 int height = ((int) tolua_tonumber(tolua_S,3,0));
11246 {
11247 StatBoxWidget* tolua_ret = (StatBoxWidget*) new StatBoxWidget(width,height);
11248 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"StatBoxWidget");
11249 }
11250 }
11251 return 1;
11252 #ifndef TOLUA_RELEASE
11253 tolua_lerror:
11254 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
11255 return 0;
11256 #endif
11257 }
11258 #endif //#ifndef TOLUA_DISABLE
11259
11260
11261 #ifndef TOLUA_DISABLE_tolua_stratagus_StatBoxWidget_setCaption00
11262 static int tolua_stratagus_StatBoxWidget_setCaption00(lua_State* tolua_S)
11263 {
11264 #ifndef TOLUA_RELEASE
11265 tolua_Error tolua_err;
11266 if (
11267 !tolua_isusertype(tolua_S,1,"StatBoxWidget",0,&tolua_err) ||
11268 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
11269 !tolua_isnoobj(tolua_S,3,&tolua_err)
11270 )
11271 goto tolua_lerror;
11272 else
11273 #endif
11274 {
11275 StatBoxWidget* self = (StatBoxWidget*) tolua_tousertype(tolua_S,1,0);
11276 const std::string s = ((const std::string) tolua_tocppstring(tolua_S,2,0));
11277 #ifndef TOLUA_RELEASE
11278 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setCaption'",NULL);
11279 #endif
11280 {
11281 self->setCaption(s);
11282 }
11283 }
11284 return 0;
11285 #ifndef TOLUA_RELEASE
11286 tolua_lerror:
11287 tolua_error(tolua_S,"#ferror in function 'setCaption'.",&tolua_err);
11288 return 0;
11289 #endif
11290 }
11291 #endif //#ifndef TOLUA_DISABLE
11292
11293
11294 #ifndef TOLUA_DISABLE_tolua_stratagus_StatBoxWidget_getCaption00
11295 static int tolua_stratagus_StatBoxWidget_getCaption00(lua_State* tolua_S)
11296 {
11297 #ifndef TOLUA_RELEASE
11298 tolua_Error tolua_err;
11299 if (
11300 !tolua_isusertype(tolua_S,1,"const StatBoxWidget",0,&tolua_err) ||
11301 !tolua_isnoobj(tolua_S,2,&tolua_err)
11302 )
11303 goto tolua_lerror;
11304 else
11305 #endif
11306 {
11307 const StatBoxWidget* self = (const StatBoxWidget*) tolua_tousertype(tolua_S,1,0);
11308 #ifndef TOLUA_RELEASE
11309 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getCaption'",NULL);
11310 #endif
11311 {
11312 const std::string tolua_ret = (const std::string) self->getCaption();
11313 tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
11314 }
11315 }
11316 return 1;
11317 #ifndef TOLUA_RELEASE
11318 tolua_lerror:
11319 tolua_error(tolua_S,"#ferror in function 'getCaption'.",&tolua_err);
11320 return 0;
11321 #endif
11322 }
11323 #endif //#ifndef TOLUA_DISABLE
11324
11325
11326 #ifndef TOLUA_DISABLE_tolua_stratagus_StatBoxWidget_setPercent00
11327 static int tolua_stratagus_StatBoxWidget_setPercent00(lua_State* tolua_S)
11328 {
11329 #ifndef TOLUA_RELEASE
11330 tolua_Error tolua_err;
11331 if (
11332 !tolua_isusertype(tolua_S,1,"StatBoxWidget",0,&tolua_err) ||
11333 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
11334 !tolua_isnoobj(tolua_S,3,&tolua_err)
11335 )
11336 goto tolua_lerror;
11337 else
11338 #endif
11339 {
11340 StatBoxWidget* self = (StatBoxWidget*) tolua_tousertype(tolua_S,1,0);
11341 const int percent = ((const int) tolua_tonumber(tolua_S,2,0));
11342 #ifndef TOLUA_RELEASE
11343 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setPercent'",NULL);
11344 #endif
11345 {
11346 self->setPercent(percent);
11347 }
11348 }
11349 return 0;
11350 #ifndef TOLUA_RELEASE
11351 tolua_lerror:
11352 tolua_error(tolua_S,"#ferror in function 'setPercent'.",&tolua_err);
11353 return 0;
11354 #endif
11355 }
11356 #endif //#ifndef TOLUA_DISABLE
11357
11358
11359 #ifndef TOLUA_DISABLE_tolua_stratagus_StatBoxWidget_getPercent00
11360 static int tolua_stratagus_StatBoxWidget_getPercent00(lua_State* tolua_S)
11361 {
11362 #ifndef TOLUA_RELEASE
11363 tolua_Error tolua_err;
11364 if (
11365 !tolua_isusertype(tolua_S,1,"const StatBoxWidget",0,&tolua_err) ||
11366 !tolua_isnoobj(tolua_S,2,&tolua_err)
11367 )
11368 goto tolua_lerror;
11369 else
11370 #endif
11371 {
11372 const StatBoxWidget* self = (const StatBoxWidget*) tolua_tousertype(tolua_S,1,0);
11373 #ifndef TOLUA_RELEASE
11374 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getPercent'",NULL);
11375 #endif
11376 {
11377 int tolua_ret = (int) self->getPercent();
11378 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
11379 }
11380 }
11381 return 1;
11382 #ifndef TOLUA_RELEASE
11383 tolua_lerror:
11384 tolua_error(tolua_S,"#ferror in function 'getPercent'.",&tolua_err);
11385 return 0;
11386 #endif
11387 }
11388 #endif //#ifndef TOLUA_DISABLE
11389
11390
11391 #ifndef TOLUA_DISABLE_tolua_stratagus_Container_new00
11392 static int tolua_stratagus_Container_new00(lua_State* tolua_S)
11393 {
11394 #ifndef TOLUA_RELEASE
11395 tolua_Error tolua_err;
11396 if (
11397 !tolua_isusertable(tolua_S,1,"Container",0,&tolua_err) ||
11398 !tolua_isnoobj(tolua_S,2,&tolua_err)
11399 )
11400 goto tolua_lerror;
11401 else
11402 #endif
11403 {
11404 {
11405 Container* tolua_ret = (Container*) new Container();
11406 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Container");
11407 }
11408 }
11409 return 1;
11410 #ifndef TOLUA_RELEASE
11411 tolua_lerror:
11412 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
11413 return 0;
11414 #endif
11415 }
11416 #endif //#ifndef TOLUA_DISABLE
11417
11418
11419 #ifndef TOLUA_DISABLE_tolua_stratagus_Container_new00_local
11420 static int tolua_stratagus_Container_new00_local(lua_State* tolua_S)
11421 {
11422 #ifndef TOLUA_RELEASE
11423 tolua_Error tolua_err;
11424 if (
11425 !tolua_isusertable(tolua_S,1,"Container",0,&tolua_err) ||
11426 !tolua_isnoobj(tolua_S,2,&tolua_err)
11427 )
11428 goto tolua_lerror;
11429 else
11430 #endif
11431 {
11432 {
11433 Container* tolua_ret = (Container*) new Container();
11434 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"Container");
11435 }
11436 }
11437 return 1;
11438 #ifndef TOLUA_RELEASE
11439 tolua_lerror:
11440 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
11441 return 0;
11442 #endif
11443 }
11444 #endif //#ifndef TOLUA_DISABLE
11445
11446
11447 #ifndef TOLUA_DISABLE_tolua_stratagus_Container_setOpaque00
11448 static int tolua_stratagus_Container_setOpaque00(lua_State* tolua_S)
11449 {
11450 #ifndef TOLUA_RELEASE
11451 tolua_Error tolua_err;
11452 if (
11453 !tolua_isusertype(tolua_S,1,"Container",0,&tolua_err) ||
11454 !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
11455 !tolua_isnoobj(tolua_S,3,&tolua_err)
11456 )
11457 goto tolua_lerror;
11458 else
11459 #endif
11460 {
11461 Container* self = (Container*) tolua_tousertype(tolua_S,1,0);
11462 bool opaque = ((bool) tolua_toboolean(tolua_S,2,0));
11463 #ifndef TOLUA_RELEASE
11464 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setOpaque'",NULL);
11465 #endif
11466 {
11467 self->setOpaque(opaque);
11468 }
11469 }
11470 return 0;
11471 #ifndef TOLUA_RELEASE
11472 tolua_lerror:
11473 tolua_error(tolua_S,"#ferror in function 'setOpaque'.",&tolua_err);
11474 return 0;
11475 #endif
11476 }
11477 #endif //#ifndef TOLUA_DISABLE
11478
11479
11480 #ifndef TOLUA_DISABLE_tolua_stratagus_Container_isOpaque00
11481 static int tolua_stratagus_Container_isOpaque00(lua_State* tolua_S)
11482 {
11483 #ifndef TOLUA_RELEASE
11484 tolua_Error tolua_err;
11485 if (
11486 !tolua_isusertype(tolua_S,1,"const Container",0,&tolua_err) ||
11487 !tolua_isnoobj(tolua_S,2,&tolua_err)
11488 )
11489 goto tolua_lerror;
11490 else
11491 #endif
11492 {
11493 const Container* self = (const Container*) tolua_tousertype(tolua_S,1,0);
11494 #ifndef TOLUA_RELEASE
11495 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'isOpaque'",NULL);
11496 #endif
11497 {
11498 bool tolua_ret = (bool) self->isOpaque();
11499 tolua_pushboolean(tolua_S,(bool)tolua_ret);
11500 }
11501 }
11502 return 1;
11503 #ifndef TOLUA_RELEASE
11504 tolua_lerror:
11505 tolua_error(tolua_S,"#ferror in function 'isOpaque'.",&tolua_err);
11506 return 0;
11507 #endif
11508 }
11509 #endif //#ifndef TOLUA_DISABLE
11510
11511
11512 #ifndef TOLUA_DISABLE_tolua_stratagus_Container_add00
11513 static int tolua_stratagus_Container_add00(lua_State* tolua_S)
11514 {
11515 #ifndef TOLUA_RELEASE
11516 tolua_Error tolua_err;
11517 if (
11518 !tolua_isusertype(tolua_S,1,"Container",0,&tolua_err) ||
11519 !tolua_isusertype(tolua_S,2,"Widget",0,&tolua_err) ||
11520 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
11521 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
11522 !tolua_isnoobj(tolua_S,5,&tolua_err)
11523 )
11524 goto tolua_lerror;
11525 else
11526 #endif
11527 {
11528 Container* self = (Container*) tolua_tousertype(tolua_S,1,0);
11529 Widget* widget = ((Widget*) tolua_tousertype(tolua_S,2,0));
11530 int x = ((int) tolua_tonumber(tolua_S,3,0));
11531 int y = ((int) tolua_tonumber(tolua_S,4,0));
11532 #ifndef TOLUA_RELEASE
11533 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'add'",NULL);
11534 #endif
11535 {
11536 self->add(widget,x,y);
11537 }
11538 }
11539 return 0;
11540 #ifndef TOLUA_RELEASE
11541 tolua_lerror:
11542 tolua_error(tolua_S,"#ferror in function 'add'.",&tolua_err);
11543 return 0;
11544 #endif
11545 }
11546 #endif //#ifndef TOLUA_DISABLE
11547
11548
11549 #ifndef TOLUA_DISABLE_tolua_stratagus_Container_remove00
11550 static int tolua_stratagus_Container_remove00(lua_State* tolua_S)
11551 {
11552 #ifndef TOLUA_RELEASE
11553 tolua_Error tolua_err;
11554 if (
11555 !tolua_isusertype(tolua_S,1,"Container",0,&tolua_err) ||
11556 !tolua_isusertype(tolua_S,2,"Widget",0,&tolua_err) ||
11557 !tolua_isnoobj(tolua_S,3,&tolua_err)
11558 )
11559 goto tolua_lerror;
11560 else
11561 #endif
11562 {
11563 Container* self = (Container*) tolua_tousertype(tolua_S,1,0);
11564 Widget* widget = ((Widget*) tolua_tousertype(tolua_S,2,0));
11565 #ifndef TOLUA_RELEASE
11566 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'remove'",NULL);
11567 #endif
11568 {
11569 self->remove(widget);
11570 }
11571 }
11572 return 0;
11573 #ifndef TOLUA_RELEASE
11574 tolua_lerror:
11575 tolua_error(tolua_S,"#ferror in function 'remove'.",&tolua_err);
11576 return 0;
11577 #endif
11578 }
11579 #endif //#ifndef TOLUA_DISABLE
11580
11581
11582 #ifndef TOLUA_DISABLE_tolua_stratagus_Container_clear00
11583 static int tolua_stratagus_Container_clear00(lua_State* tolua_S)
11584 {
11585 #ifndef TOLUA_RELEASE
11586 tolua_Error tolua_err;
11587 if (
11588 !tolua_isusertype(tolua_S,1,"Container",0,&tolua_err) ||
11589 !tolua_isnoobj(tolua_S,2,&tolua_err)
11590 )
11591 goto tolua_lerror;
11592 else
11593 #endif
11594 {
11595 Container* self = (Container*) tolua_tousertype(tolua_S,1,0);
11596 #ifndef TOLUA_RELEASE
11597 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'clear'",NULL);
11598 #endif
11599 {
11600 self->clear();
11601 }
11602 }
11603 return 0;
11604 #ifndef TOLUA_RELEASE
11605 tolua_lerror:
11606 tolua_error(tolua_S,"#ferror in function 'clear'.",&tolua_err);
11607 return 0;
11608 #endif
11609 }
11610 #endif //#ifndef TOLUA_DISABLE
11611
11612
11613 #ifndef TOLUA_DISABLE_tolua_stratagus_CMenuScreen_new00
11614 static int tolua_stratagus_CMenuScreen_new00(lua_State* tolua_S)
11615 {
11616 #ifndef TOLUA_RELEASE
11617 tolua_Error tolua_err;
11618 if (
11619 !tolua_isusertable(tolua_S,1,"MenuScreen",0,&tolua_err) ||
11620 !tolua_isnoobj(tolua_S,2,&tolua_err)
11621 )
11622 goto tolua_lerror;
11623 else
11624 #endif
11625 {
11626 {
11627 MenuScreen* tolua_ret = (MenuScreen*) new MenuScreen();
11628 tolua_pushusertype(tolua_S,(void*)tolua_ret,"MenuScreen");
11629 }
11630 }
11631 return 1;
11632 #ifndef TOLUA_RELEASE
11633 tolua_lerror:
11634 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
11635 return 0;
11636 #endif
11637 }
11638 #endif //#ifndef TOLUA_DISABLE
11639
11640
11641 #ifndef TOLUA_DISABLE_tolua_stratagus_CMenuScreen_new00_local
11642 static int tolua_stratagus_CMenuScreen_new00_local(lua_State* tolua_S)
11643 {
11644 #ifndef TOLUA_RELEASE
11645 tolua_Error tolua_err;
11646 if (
11647 !tolua_isusertable(tolua_S,1,"MenuScreen",0,&tolua_err) ||
11648 !tolua_isnoobj(tolua_S,2,&tolua_err)
11649 )
11650 goto tolua_lerror;
11651 else
11652 #endif
11653 {
11654 {
11655 MenuScreen* tolua_ret = (MenuScreen*) new MenuScreen();
11656 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"MenuScreen");
11657 }
11658 }
11659 return 1;
11660 #ifndef TOLUA_RELEASE
11661 tolua_lerror:
11662 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
11663 return 0;
11664 #endif
11665 }
11666 #endif //#ifndef TOLUA_DISABLE
11667
11668
11669 #ifndef TOLUA_DISABLE_tolua_stratagus_CMenuScreen_run00
11670 static int tolua_stratagus_CMenuScreen_run00(lua_State* tolua_S)
11671 {
11672 #ifndef TOLUA_RELEASE
11673 tolua_Error tolua_err;
11674 if (
11675 !tolua_isusertype(tolua_S,1,"MenuScreen",0,&tolua_err) ||
11676 !tolua_isboolean(tolua_S,2,1,&tolua_err) ||
11677 !tolua_isnoobj(tolua_S,3,&tolua_err)
11678 )
11679 goto tolua_lerror;
11680 else
11681 #endif
11682 {
11683 MenuScreen* self = (MenuScreen*) tolua_tousertype(tolua_S,1,0);
11684 bool loop = ((bool) tolua_toboolean(tolua_S,2,true));
11685 #ifndef TOLUA_RELEASE
11686 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'run'",NULL);
11687 #endif
11688 {
11689 int tolua_ret = (int) self->run(loop);
11690 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
11691 }
11692 }
11693 return 1;
11694 #ifndef TOLUA_RELEASE
11695 tolua_lerror:
11696 tolua_error(tolua_S,"#ferror in function 'run'.",&tolua_err);
11697 return 0;
11698 #endif
11699 }
11700 #endif //#ifndef TOLUA_DISABLE
11701
11702
11703 #ifndef TOLUA_DISABLE_tolua_stratagus_CMenuScreen_stop00
11704 static int tolua_stratagus_CMenuScreen_stop00(lua_State* tolua_S)
11705 {
11706 #ifndef TOLUA_RELEASE
11707 tolua_Error tolua_err;
11708 if (
11709 !tolua_isusertype(tolua_S,1,"MenuScreen",0,&tolua_err) ||
11710 !tolua_isnumber(tolua_S,2,1,&tolua_err) ||
11711 !tolua_isnoobj(tolua_S,3,&tolua_err)
11712 )
11713 goto tolua_lerror;
11714 else
11715 #endif
11716 {
11717 MenuScreen* self = (MenuScreen*) tolua_tousertype(tolua_S,1,0);
11718 int result = ((int) tolua_tonumber(tolua_S,2,0));
11719 #ifndef TOLUA_RELEASE
11720 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'stop'",NULL);
11721 #endif
11722 {
11723 self->stop(result);
11724 }
11725 }
11726 return 0;
11727 #ifndef TOLUA_RELEASE
11728 tolua_lerror:
11729 tolua_error(tolua_S,"#ferror in function 'stop'.",&tolua_err);
11730 return 0;
11731 #endif
11732 }
11733 #endif //#ifndef TOLUA_DISABLE
11734
11735
11736 #ifndef TOLUA_DISABLE_tolua_stratagus_CMenuScreen_stopAll00
11737 static int tolua_stratagus_CMenuScreen_stopAll00(lua_State* tolua_S)
11738 {
11739 #ifndef TOLUA_RELEASE
11740 tolua_Error tolua_err;
11741 if (
11742 !tolua_isusertype(tolua_S,1,"MenuScreen",0,&tolua_err) ||
11743 !tolua_isnumber(tolua_S,2,1,&tolua_err) ||
11744 !tolua_isnoobj(tolua_S,3,&tolua_err)
11745 )
11746 goto tolua_lerror;
11747 else
11748 #endif
11749 {
11750 MenuScreen* self = (MenuScreen*) tolua_tousertype(tolua_S,1,0);
11751 int result = ((int) tolua_tonumber(tolua_S,2,0));
11752 #ifndef TOLUA_RELEASE
11753 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'stopAll'",NULL);
11754 #endif
11755 {
11756 self->stopAll(result);
11757 }
11758 }
11759 return 0;
11760 #ifndef TOLUA_RELEASE
11761 tolua_lerror:
11762 tolua_error(tolua_S,"#ferror in function 'stopAll'.",&tolua_err);
11763 return 0;
11764 #endif
11765 }
11766 #endif //#ifndef TOLUA_DISABLE
11767
11768
11769 #ifndef TOLUA_DISABLE_tolua_stratagus_CMenuScreen_addLogicCallback00
11770 static int tolua_stratagus_CMenuScreen_addLogicCallback00(lua_State* tolua_S)
11771 {
11772 #ifndef TOLUA_RELEASE
11773 tolua_Error tolua_err;
11774 if (
11775 !tolua_isusertype(tolua_S,1,"MenuScreen",0,&tolua_err) ||
11776 !tolua_isusertype(tolua_S,2,"LuaActionListener",0,&tolua_err) ||
11777 !tolua_isnoobj(tolua_S,3,&tolua_err)
11778 )
11779 goto tolua_lerror;
11780 else
11781 #endif
11782 {
11783 MenuScreen* self = (MenuScreen*) tolua_tousertype(tolua_S,1,0);
11784 LuaActionListener* actionListener = ((LuaActionListener*) tolua_tousertype(tolua_S,2,0));
11785 #ifndef TOLUA_RELEASE
11786 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addLogicCallback'",NULL);
11787 #endif
11788 {
11789 self->addLogicCallback(actionListener);
11790 }
11791 }
11792 return 0;
11793 #ifndef TOLUA_RELEASE
11794 tolua_lerror:
11795 tolua_error(tolua_S,"#ferror in function 'addLogicCallback'.",&tolua_err);
11796 return 0;
11797 #endif
11798 }
11799 #endif //#ifndef TOLUA_DISABLE
11800
11801
11802 #ifndef TOLUA_DISABLE_tolua_stratagus_CMenuScreen_setDrawMenusUnder00
11803 static int tolua_stratagus_CMenuScreen_setDrawMenusUnder00(lua_State* tolua_S)
11804 {
11805 #ifndef TOLUA_RELEASE
11806 tolua_Error tolua_err;
11807 if (
11808 !tolua_isusertype(tolua_S,1,"MenuScreen",0,&tolua_err) ||
11809 !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
11810 !tolua_isnoobj(tolua_S,3,&tolua_err)
11811 )
11812 goto tolua_lerror;
11813 else
11814 #endif
11815 {
11816 MenuScreen* self = (MenuScreen*) tolua_tousertype(tolua_S,1,0);
11817 bool drawunder = ((bool) tolua_toboolean(tolua_S,2,0));
11818 #ifndef TOLUA_RELEASE
11819 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setDrawMenusUnder'",NULL);
11820 #endif
11821 {
11822 self->setDrawMenusUnder(drawunder);
11823 }
11824 }
11825 return 0;
11826 #ifndef TOLUA_RELEASE
11827 tolua_lerror:
11828 tolua_error(tolua_S,"#ferror in function 'setDrawMenusUnder'.",&tolua_err);
11829 return 0;
11830 #endif
11831 }
11832 #endif //#ifndef TOLUA_DISABLE
11833
11834
11835 #ifndef TOLUA_DISABLE_tolua_stratagus_CMenuScreen_getDrawMenusUnder00
11836 static int tolua_stratagus_CMenuScreen_getDrawMenusUnder00(lua_State* tolua_S)
11837 {
11838 #ifndef TOLUA_RELEASE
11839 tolua_Error tolua_err;
11840 if (
11841 !tolua_isusertype(tolua_S,1,"MenuScreen",0,&tolua_err) ||
11842 !tolua_isnoobj(tolua_S,2,&tolua_err)
11843 )
11844 goto tolua_lerror;
11845 else
11846 #endif
11847 {
11848 MenuScreen* self = (MenuScreen*) tolua_tousertype(tolua_S,1,0);
11849 #ifndef TOLUA_RELEASE
11850 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getDrawMenusUnder'",NULL);
11851 #endif
11852 {
11853 bool tolua_ret = (bool) self->getDrawMenusUnder();
11854 tolua_pushboolean(tolua_S,(bool)tolua_ret);
11855 }
11856 }
11857 return 1;
11858 #ifndef TOLUA_RELEASE
11859 tolua_lerror:
11860 tolua_error(tolua_S,"#ferror in function 'getDrawMenusUnder'.",&tolua_err);
11861 return 0;
11862 #endif
11863 }
11864 #endif //#ifndef TOLUA_DISABLE
11865
11866
11867 #ifndef TOLUA_DISABLE_tolua_stratagus_InitNetwork100
11868 static int tolua_stratagus_InitNetwork100(lua_State* tolua_S)
11869 {
11870 #ifndef TOLUA_RELEASE
11871 tolua_Error tolua_err;
11872 if (
11873 !tolua_isnoobj(tolua_S,1,&tolua_err)
11874 )
11875 goto tolua_lerror;
11876 else
11877 #endif
11878 {
11879 {
11880 InitNetwork1();
11881 }
11882 }
11883 return 0;
11884 #ifndef TOLUA_RELEASE
11885 tolua_lerror:
11886 tolua_error(tolua_S,"#ferror in function 'InitNetwork1'.",&tolua_err);
11887 return 0;
11888 #endif
11889 }
11890 #endif //#ifndef TOLUA_DISABLE
11891
11892
11893 #ifndef TOLUA_DISABLE_tolua_stratagus_ExitNetwork100
11894 static int tolua_stratagus_ExitNetwork100(lua_State* tolua_S)
11895 {
11896 #ifndef TOLUA_RELEASE
11897 tolua_Error tolua_err;
11898 if (
11899 !tolua_isnoobj(tolua_S,1,&tolua_err)
11900 )
11901 goto tolua_lerror;
11902 else
11903 #endif
11904 {
11905 {
11906 ExitNetwork1();
11907 }
11908 }
11909 return 0;
11910 #ifndef TOLUA_RELEASE
11911 tolua_lerror:
11912 tolua_error(tolua_S,"#ferror in function 'ExitNetwork1'.",&tolua_err);
11913 return 0;
11914 #endif
11915 }
11916 #endif //#ifndef TOLUA_DISABLE
11917
11918
11919 #ifndef TOLUA_DISABLE_tolua_stratagus_IsNetworkGame00
11920 static int tolua_stratagus_IsNetworkGame00(lua_State* tolua_S)
11921 {
11922 #ifndef TOLUA_RELEASE
11923 tolua_Error tolua_err;
11924 if (
11925 !tolua_isnoobj(tolua_S,1,&tolua_err)
11926 )
11927 goto tolua_lerror;
11928 else
11929 #endif
11930 {
11931 {
11932 bool tolua_ret = (bool) IsNetworkGame();
11933 tolua_pushboolean(tolua_S,(bool)tolua_ret);
11934 }
11935 }
11936 return 1;
11937 #ifndef TOLUA_RELEASE
11938 tolua_lerror:
11939 tolua_error(tolua_S,"#ferror in function 'IsNetworkGame'.",&tolua_err);
11940 return 0;
11941 #endif
11942 }
11943 #endif //#ifndef TOLUA_DISABLE
11944
11945
11946 #ifndef TOLUA_DISABLE_tolua_stratagus_NetworkSetupServerAddress00
11947 static int tolua_stratagus_NetworkSetupServerAddress00(lua_State* tolua_S)
11948 {
11949 #ifndef TOLUA_RELEASE
11950 tolua_Error tolua_err;
11951 if (
11952 !tolua_iscppstring(tolua_S,1,0,&tolua_err) ||
11953 !tolua_isnoobj(tolua_S,2,&tolua_err)
11954 )
11955 goto tolua_lerror;
11956 else
11957 #endif
11958 {
11959 const std::string serveraddr = ((const std::string) tolua_tocppstring(tolua_S,1,0));
11960 {
11961 int tolua_ret = (int) NetworkSetupServerAddress(serveraddr);
11962 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
11963 }
11964 }
11965 return 1;
11966 #ifndef TOLUA_RELEASE
11967 tolua_lerror:
11968 tolua_error(tolua_S,"#ferror in function 'NetworkSetupServerAddress'.",&tolua_err);
11969 return 0;
11970 #endif
11971 }
11972 #endif //#ifndef TOLUA_DISABLE
11973
11974
11975 #ifndef TOLUA_DISABLE_tolua_stratagus_NetworkInitClientConnect00
11976 static int tolua_stratagus_NetworkInitClientConnect00(lua_State* tolua_S)
11977 {
11978 #ifndef TOLUA_RELEASE
11979 tolua_Error tolua_err;
11980 if (
11981 !tolua_isnoobj(tolua_S,1,&tolua_err)
11982 )
11983 goto tolua_lerror;
11984 else
11985 #endif
11986 {
11987 {
11988 NetworkInitClientConnect();
11989 }
11990 }
11991 return 0;
11992 #ifndef TOLUA_RELEASE
11993 tolua_lerror:
11994 tolua_error(tolua_S,"#ferror in function 'NetworkInitClientConnect'.",&tolua_err);
11995 return 0;
11996 #endif
11997 }
11998 #endif //#ifndef TOLUA_DISABLE
11999
12000
12001 #ifndef TOLUA_DISABLE_tolua_stratagus_NetworkInitServerConnect00
12002 static int tolua_stratagus_NetworkInitServerConnect00(lua_State* tolua_S)
12003 {
12004 #ifndef TOLUA_RELEASE
12005 tolua_Error tolua_err;
12006 if (
12007 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
12008 !tolua_isnoobj(tolua_S,2,&tolua_err)
12009 )
12010 goto tolua_lerror;
12011 else
12012 #endif
12013 {
12014 int openslots = ((int) tolua_tonumber(tolua_S,1,0));
12015 {
12016 NetworkInitServerConnect(openslots);
12017 }
12018 }
12019 return 0;
12020 #ifndef TOLUA_RELEASE
12021 tolua_lerror:
12022 tolua_error(tolua_S,"#ferror in function 'NetworkInitServerConnect'.",&tolua_err);
12023 return 0;
12024 #endif
12025 }
12026 #endif //#ifndef TOLUA_DISABLE
12027
12028
12029 #ifndef TOLUA_DISABLE_tolua_stratagus_NetworkServerStartGame00
12030 static int tolua_stratagus_NetworkServerStartGame00(lua_State* tolua_S)
12031 {
12032 #ifndef TOLUA_RELEASE
12033 tolua_Error tolua_err;
12034 if (
12035 !tolua_isnoobj(tolua_S,1,&tolua_err)
12036 )
12037 goto tolua_lerror;
12038 else
12039 #endif
12040 {
12041 {
12042 NetworkServerStartGame();
12043 }
12044 }
12045 return 0;
12046 #ifndef TOLUA_RELEASE
12047 tolua_lerror:
12048 tolua_error(tolua_S,"#ferror in function 'NetworkServerStartGame'.",&tolua_err);
12049 return 0;
12050 #endif
12051 }
12052 #endif //#ifndef TOLUA_DISABLE
12053
12054
12055 #ifndef TOLUA_DISABLE_tolua_stratagus_NetworkProcessClientRequest00
12056 static int tolua_stratagus_NetworkProcessClientRequest00(lua_State* tolua_S)
12057 {
12058 #ifndef TOLUA_RELEASE
12059 tolua_Error tolua_err;
12060 if (
12061 !tolua_isnoobj(tolua_S,1,&tolua_err)
12062 )
12063 goto tolua_lerror;
12064 else
12065 #endif
12066 {
12067 {
12068 NetworkProcessClientRequest();
12069 }
12070 }
12071 return 0;
12072 #ifndef TOLUA_RELEASE
12073 tolua_lerror:
12074 tolua_error(tolua_S,"#ferror in function 'NetworkProcessClientRequest'.",&tolua_err);
12075 return 0;
12076 #endif
12077 }
12078 #endif //#ifndef TOLUA_DISABLE
12079
12080
12081 #ifndef TOLUA_DISABLE_tolua_stratagus_GetNetworkState00
12082 static int tolua_stratagus_GetNetworkState00(lua_State* tolua_S)
12083 {
12084 #ifndef TOLUA_RELEASE
12085 tolua_Error tolua_err;
12086 if (
12087 !tolua_isnoobj(tolua_S,1,&tolua_err)
12088 )
12089 goto tolua_lerror;
12090 else
12091 #endif
12092 {
12093 {
12094 int tolua_ret = (int) GetNetworkState();
12095 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
12096 }
12097 }
12098 return 1;
12099 #ifndef TOLUA_RELEASE
12100 tolua_lerror:
12101 tolua_error(tolua_S,"#ferror in function 'GetNetworkState'.",&tolua_err);
12102 return 0;
12103 #endif
12104 }
12105 #endif //#ifndef TOLUA_DISABLE
12106
12107
12108 #ifndef TOLUA_DISABLE_tolua_stratagus_NetworkServerResyncClients00
12109 static int tolua_stratagus_NetworkServerResyncClients00(lua_State* tolua_S)
12110 {
12111 #ifndef TOLUA_RELEASE
12112 tolua_Error tolua_err;
12113 if (
12114 !tolua_isnoobj(tolua_S,1,&tolua_err)
12115 )
12116 goto tolua_lerror;
12117 else
12118 #endif
12119 {
12120 {
12121 NetworkServerResyncClients();
12122 }
12123 }
12124 return 0;
12125 #ifndef TOLUA_RELEASE
12126 tolua_lerror:
12127 tolua_error(tolua_S,"#ferror in function 'NetworkServerResyncClients'.",&tolua_err);
12128 return 0;
12129 #endif
12130 }
12131 #endif //#ifndef TOLUA_DISABLE
12132
12133
12134 #ifndef TOLUA_DISABLE_tolua_stratagus_NetworkDetachFromServer00
12135 static int tolua_stratagus_NetworkDetachFromServer00(lua_State* tolua_S)
12136 {
12137 #ifndef TOLUA_RELEASE
12138 tolua_Error tolua_err;
12139 if (
12140 !tolua_isnoobj(tolua_S,1,&tolua_err)
12141 )
12142 goto tolua_lerror;
12143 else
12144 #endif
12145 {
12146 {
12147 NetworkDetachFromServer();
12148 }
12149 }
12150 return 0;
12151 #ifndef TOLUA_RELEASE
12152 tolua_lerror:
12153 tolua_error(tolua_S,"#ferror in function 'NetworkDetachFromServer'.",&tolua_err);
12154 return 0;
12155 #endif
12156 }
12157 #endif //#ifndef TOLUA_DISABLE
12158
12159
12160 #ifndef TOLUA_DISABLE_tolua_get_CServerSetup_unsigned_ResourcesOption
12161 static int tolua_get_CServerSetup_unsigned_ResourcesOption(lua_State* tolua_S)
12162 {
12163 CServerSetup* self = (CServerSetup*) tolua_tousertype(tolua_S,1,0);
12164 #ifndef TOLUA_RELEASE
12165 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ResourcesOption'",NULL);
12166 #endif
12167 tolua_pushnumber(tolua_S,(lua_Number)self->ResourcesOption);
12168 return 1;
12169 }
12170 #endif //#ifndef TOLUA_DISABLE
12171
12172
12173 #ifndef TOLUA_DISABLE_tolua_set_CServerSetup_unsigned_ResourcesOption
12174 static int tolua_set_CServerSetup_unsigned_ResourcesOption(lua_State* tolua_S)
12175 {
12176 CServerSetup* self = (CServerSetup*) tolua_tousertype(tolua_S,1,0);
12177 #ifndef TOLUA_RELEASE
12178 tolua_Error tolua_err;
12179 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ResourcesOption'",NULL);
12180 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
12181 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
12182 #endif
12183 self->ResourcesOption = ((unsigned char) tolua_tonumber(tolua_S,2,0))
12184 ;
12185 return 0;
12186 }
12187 #endif //#ifndef TOLUA_DISABLE
12188
12189
12190 #ifndef TOLUA_DISABLE_tolua_get_CServerSetup_unsigned_UnitsOption
12191 static int tolua_get_CServerSetup_unsigned_UnitsOption(lua_State* tolua_S)
12192 {
12193 CServerSetup* self = (CServerSetup*) tolua_tousertype(tolua_S,1,0);
12194 #ifndef TOLUA_RELEASE
12195 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'UnitsOption'",NULL);
12196 #endif
12197 tolua_pushnumber(tolua_S,(lua_Number)self->UnitsOption);
12198 return 1;
12199 }
12200 #endif //#ifndef TOLUA_DISABLE
12201
12202
12203 #ifndef TOLUA_DISABLE_tolua_set_CServerSetup_unsigned_UnitsOption
12204 static int tolua_set_CServerSetup_unsigned_UnitsOption(lua_State* tolua_S)
12205 {
12206 CServerSetup* self = (CServerSetup*) tolua_tousertype(tolua_S,1,0);
12207 #ifndef TOLUA_RELEASE
12208 tolua_Error tolua_err;
12209 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'UnitsOption'",NULL);
12210 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
12211 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
12212 #endif
12213 self->UnitsOption = ((unsigned char) tolua_tonumber(tolua_S,2,0))
12214 ;
12215 return 0;
12216 }
12217 #endif //#ifndef TOLUA_DISABLE
12218
12219
12220 #ifndef TOLUA_DISABLE_tolua_get_CServerSetup_unsigned_FogOfWar
12221 static int tolua_get_CServerSetup_unsigned_FogOfWar(lua_State* tolua_S)
12222 {
12223 CServerSetup* self = (CServerSetup*) tolua_tousertype(tolua_S,1,0);
12224 #ifndef TOLUA_RELEASE
12225 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'FogOfWar'",NULL);
12226 #endif
12227 tolua_pushnumber(tolua_S,(lua_Number)self->FogOfWar);
12228 return 1;
12229 }
12230 #endif //#ifndef TOLUA_DISABLE
12231
12232
12233 #ifndef TOLUA_DISABLE_tolua_set_CServerSetup_unsigned_FogOfWar
12234 static int tolua_set_CServerSetup_unsigned_FogOfWar(lua_State* tolua_S)
12235 {
12236 CServerSetup* self = (CServerSetup*) tolua_tousertype(tolua_S,1,0);
12237 #ifndef TOLUA_RELEASE
12238 tolua_Error tolua_err;
12239 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'FogOfWar'",NULL);
12240 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
12241 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
12242 #endif
12243 self->FogOfWar = ((unsigned char) tolua_tonumber(tolua_S,2,0))
12244 ;
12245 return 0;
12246 }
12247 #endif //#ifndef TOLUA_DISABLE
12248
12249
12250 #ifndef TOLUA_DISABLE_tolua_get_CServerSetup_unsigned_RevealMap
12251 static int tolua_get_CServerSetup_unsigned_RevealMap(lua_State* tolua_S)
12252 {
12253 CServerSetup* self = (CServerSetup*) tolua_tousertype(tolua_S,1,0);
12254 #ifndef TOLUA_RELEASE
12255 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'RevealMap'",NULL);
12256 #endif
12257 tolua_pushnumber(tolua_S,(lua_Number)self->RevealMap);
12258 return 1;
12259 }
12260 #endif //#ifndef TOLUA_DISABLE
12261
12262
12263 #ifndef TOLUA_DISABLE_tolua_set_CServerSetup_unsigned_RevealMap
12264 static int tolua_set_CServerSetup_unsigned_RevealMap(lua_State* tolua_S)
12265 {
12266 CServerSetup* self = (CServerSetup*) tolua_tousertype(tolua_S,1,0);
12267 #ifndef TOLUA_RELEASE
12268 tolua_Error tolua_err;
12269 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'RevealMap'",NULL);
12270 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
12271 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
12272 #endif
12273 self->RevealMap = ((unsigned char) tolua_tonumber(tolua_S,2,0))
12274 ;
12275 return 0;
12276 }
12277 #endif //#ifndef TOLUA_DISABLE
12278
12279
12280 #ifndef TOLUA_DISABLE_tolua_get_CServerSetup_unsigned_GameTypeOption
12281 static int tolua_get_CServerSetup_unsigned_GameTypeOption(lua_State* tolua_S)
12282 {
12283 CServerSetup* self = (CServerSetup*) tolua_tousertype(tolua_S,1,0);
12284 #ifndef TOLUA_RELEASE
12285 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'GameTypeOption'",NULL);
12286 #endif
12287 tolua_pushnumber(tolua_S,(lua_Number)self->GameTypeOption);
12288 return 1;
12289 }
12290 #endif //#ifndef TOLUA_DISABLE
12291
12292
12293 #ifndef TOLUA_DISABLE_tolua_set_CServerSetup_unsigned_GameTypeOption
12294 static int tolua_set_CServerSetup_unsigned_GameTypeOption(lua_State* tolua_S)
12295 {
12296 CServerSetup* self = (CServerSetup*) tolua_tousertype(tolua_S,1,0);
12297 #ifndef TOLUA_RELEASE
12298 tolua_Error tolua_err;
12299 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'GameTypeOption'",NULL);
12300 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
12301 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
12302 #endif
12303 self->GameTypeOption = ((unsigned char) tolua_tonumber(tolua_S,2,0))
12304 ;
12305 return 0;
12306 }
12307 #endif //#ifndef TOLUA_DISABLE
12308
12309
12310 #ifndef TOLUA_DISABLE_tolua_get_CServerSetup_unsigned_Difficulty
12311 static int tolua_get_CServerSetup_unsigned_Difficulty(lua_State* tolua_S)
12312 {
12313 CServerSetup* self = (CServerSetup*) tolua_tousertype(tolua_S,1,0);
12314 #ifndef TOLUA_RELEASE
12315 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Difficulty'",NULL);
12316 #endif
12317 tolua_pushnumber(tolua_S,(lua_Number)self->Difficulty);
12318 return 1;
12319 }
12320 #endif //#ifndef TOLUA_DISABLE
12321
12322
12323 #ifndef TOLUA_DISABLE_tolua_set_CServerSetup_unsigned_Difficulty
12324 static int tolua_set_CServerSetup_unsigned_Difficulty(lua_State* tolua_S)
12325 {
12326 CServerSetup* self = (CServerSetup*) tolua_tousertype(tolua_S,1,0);
12327 #ifndef TOLUA_RELEASE
12328 tolua_Error tolua_err;
12329 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Difficulty'",NULL);
12330 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
12331 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
12332 #endif
12333 self->Difficulty = ((unsigned char) tolua_tonumber(tolua_S,2,0))
12334 ;
12335 return 0;
12336 }
12337 #endif //#ifndef TOLUA_DISABLE
12338
12339
12340 #ifndef TOLUA_DISABLE_tolua_get_CServerSetup_unsigned_MapRichness
12341 static int tolua_get_CServerSetup_unsigned_MapRichness(lua_State* tolua_S)
12342 {
12343 CServerSetup* self = (CServerSetup*) tolua_tousertype(tolua_S,1,0);
12344 #ifndef TOLUA_RELEASE
12345 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MapRichness'",NULL);
12346 #endif
12347 tolua_pushnumber(tolua_S,(lua_Number)self->MapRichness);
12348 return 1;
12349 }
12350 #endif //#ifndef TOLUA_DISABLE
12351
12352
12353 #ifndef TOLUA_DISABLE_tolua_set_CServerSetup_unsigned_MapRichness
12354 static int tolua_set_CServerSetup_unsigned_MapRichness(lua_State* tolua_S)
12355 {
12356 CServerSetup* self = (CServerSetup*) tolua_tousertype(tolua_S,1,0);
12357 #ifndef TOLUA_RELEASE
12358 tolua_Error tolua_err;
12359 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MapRichness'",NULL);
12360 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
12361 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
12362 #endif
12363 self->MapRichness = ((unsigned char) tolua_tonumber(tolua_S,2,0))
12364 ;
12365 return 0;
12366 }
12367 #endif //#ifndef TOLUA_DISABLE
12368
12369
12370 #ifndef TOLUA_DISABLE_tolua_get_stratagus_CServerSetup_CompOpt
12371 static int tolua_get_stratagus_CServerSetup_CompOpt(lua_State* tolua_S)
12372 {
12373 int tolua_index;
12374 CServerSetup* self;
12375 lua_pushstring(tolua_S,".self");
12376 lua_rawget(tolua_S,1);
12377 self = (CServerSetup*) lua_touserdata(tolua_S,-1);
12378 #ifndef TOLUA_RELEASE
12379 {
12380 tolua_Error tolua_err;
12381 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
12382 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
12383 }
12384 #endif
12385 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
12386 #ifndef TOLUA_RELEASE
12387 if (tolua_index<0 || tolua_index>=PlayerMax)
12388 tolua_error(tolua_S,"array indexing out of range.",NULL);
12389 #endif
12390 tolua_pushnumber(tolua_S,(lua_Number)self->CompOpt[tolua_index]);
12391 return 1;
12392 }
12393 #endif //#ifndef TOLUA_DISABLE
12394
12395
12396 #ifndef TOLUA_DISABLE_tolua_set_stratagus_CServerSetup_CompOpt
12397 static int tolua_set_stratagus_CServerSetup_CompOpt(lua_State* tolua_S)
12398 {
12399 int tolua_index;
12400 CServerSetup* self;
12401 lua_pushstring(tolua_S,".self");
12402 lua_rawget(tolua_S,1);
12403 self = (CServerSetup*) lua_touserdata(tolua_S,-1);
12404 #ifndef TOLUA_RELEASE
12405 {
12406 tolua_Error tolua_err;
12407 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
12408 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
12409 }
12410 #endif
12411 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
12412 #ifndef TOLUA_RELEASE
12413 if (tolua_index<0 || tolua_index>=PlayerMax)
12414 tolua_error(tolua_S,"array indexing out of range.",NULL);
12415 #endif
12416 self->CompOpt[tolua_index] = ((unsigned) tolua_tonumber(tolua_S,3,0));
12417 return 0;
12418 }
12419 #endif //#ifndef TOLUA_DISABLE
12420
12421
12422 #ifndef TOLUA_DISABLE_tolua_get_stratagus_CServerSetup_Ready
12423 static int tolua_get_stratagus_CServerSetup_Ready(lua_State* tolua_S)
12424 {
12425 int tolua_index;
12426 CServerSetup* self;
12427 lua_pushstring(tolua_S,".self");
12428 lua_rawget(tolua_S,1);
12429 self = (CServerSetup*) lua_touserdata(tolua_S,-1);
12430 #ifndef TOLUA_RELEASE
12431 {
12432 tolua_Error tolua_err;
12433 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
12434 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
12435 }
12436 #endif
12437 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
12438 #ifndef TOLUA_RELEASE
12439 if (tolua_index<0 || tolua_index>=PlayerMax)
12440 tolua_error(tolua_S,"array indexing out of range.",NULL);
12441 #endif
12442 tolua_pushnumber(tolua_S,(lua_Number)self->Ready[tolua_index]);
12443 return 1;
12444 }
12445 #endif //#ifndef TOLUA_DISABLE
12446
12447
12448 #ifndef TOLUA_DISABLE_tolua_set_stratagus_CServerSetup_Ready
12449 static int tolua_set_stratagus_CServerSetup_Ready(lua_State* tolua_S)
12450 {
12451 int tolua_index;
12452 CServerSetup* self;
12453 lua_pushstring(tolua_S,".self");
12454 lua_rawget(tolua_S,1);
12455 self = (CServerSetup*) lua_touserdata(tolua_S,-1);
12456 #ifndef TOLUA_RELEASE
12457 {
12458 tolua_Error tolua_err;
12459 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
12460 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
12461 }
12462 #endif
12463 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
12464 #ifndef TOLUA_RELEASE
12465 if (tolua_index<0 || tolua_index>=PlayerMax)
12466 tolua_error(tolua_S,"array indexing out of range.",NULL);
12467 #endif
12468 self->Ready[tolua_index] = ((unsigned) tolua_tonumber(tolua_S,3,0));
12469 return 0;
12470 }
12471 #endif //#ifndef TOLUA_DISABLE
12472
12473
12474 #ifndef TOLUA_DISABLE_tolua_get_stratagus_CServerSetup_LastFrame
12475 static int tolua_get_stratagus_CServerSetup_LastFrame(lua_State* tolua_S)
12476 {
12477 int tolua_index;
12478 CServerSetup* self;
12479 lua_pushstring(tolua_S,".self");
12480 lua_rawget(tolua_S,1);
12481 self = (CServerSetup*) lua_touserdata(tolua_S,-1);
12482 #ifndef TOLUA_RELEASE
12483 {
12484 tolua_Error tolua_err;
12485 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
12486 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
12487 }
12488 #endif
12489 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
12490 #ifndef TOLUA_RELEASE
12491 if (tolua_index<0 || tolua_index>=PlayerMax)
12492 tolua_error(tolua_S,"array indexing out of range.",NULL);
12493 #endif
12494 tolua_pushnumber(tolua_S,(lua_Number)self->LastFrame[tolua_index]);
12495 return 1;
12496 }
12497 #endif //#ifndef TOLUA_DISABLE
12498
12499
12500 #ifndef TOLUA_DISABLE_tolua_set_stratagus_CServerSetup_LastFrame
12501 static int tolua_set_stratagus_CServerSetup_LastFrame(lua_State* tolua_S)
12502 {
12503 int tolua_index;
12504 CServerSetup* self;
12505 lua_pushstring(tolua_S,".self");
12506 lua_rawget(tolua_S,1);
12507 self = (CServerSetup*) lua_touserdata(tolua_S,-1);
12508 #ifndef TOLUA_RELEASE
12509 {
12510 tolua_Error tolua_err;
12511 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
12512 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
12513 }
12514 #endif
12515 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
12516 #ifndef TOLUA_RELEASE
12517 if (tolua_index<0 || tolua_index>=PlayerMax)
12518 tolua_error(tolua_S,"array indexing out of range.",NULL);
12519 #endif
12520 self->LastFrame[tolua_index] = ((unsigned long) tolua_tonumber(tolua_S,3,0));
12521 return 0;
12522 }
12523 #endif //#ifndef TOLUA_DISABLE
12524
12525
12526 #ifndef TOLUA_DISABLE_tolua_get_LocalSetupState
12527 static int tolua_get_LocalSetupState(lua_State* tolua_S)
12528 {
12529 tolua_pushusertype(tolua_S,(void*)&LocalSetupState,"CServerSetup");
12530 return 1;
12531 }
12532 #endif //#ifndef TOLUA_DISABLE
12533
12534
12535 #ifndef TOLUA_DISABLE_tolua_set_LocalSetupState
12536 static int tolua_set_LocalSetupState(lua_State* tolua_S)
12537 {
12538 #ifndef TOLUA_RELEASE
12539 tolua_Error tolua_err;
12540 if (!tolua_isusertype(tolua_S,2,"CServerSetup",0,&tolua_err))
12541 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
12542 #endif
12543 LocalSetupState = *((CServerSetup*) tolua_tousertype(tolua_S,2,0))
12544 ;
12545 return 0;
12546 }
12547 #endif //#ifndef TOLUA_DISABLE
12548
12549
12550 #ifndef TOLUA_DISABLE_tolua_get_ServerSetupState
12551 static int tolua_get_ServerSetupState(lua_State* tolua_S)
12552 {
12553 tolua_pushusertype(tolua_S,(void*)&ServerSetupState,"CServerSetup");
12554 return 1;
12555 }
12556 #endif //#ifndef TOLUA_DISABLE
12557
12558
12559 #ifndef TOLUA_DISABLE_tolua_set_ServerSetupState
12560 static int tolua_set_ServerSetupState(lua_State* tolua_S)
12561 {
12562 #ifndef TOLUA_RELEASE
12563 tolua_Error tolua_err;
12564 if (!tolua_isusertype(tolua_S,2,"CServerSetup",0,&tolua_err))
12565 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
12566 #endif
12567 ServerSetupState = *((CServerSetup*) tolua_tousertype(tolua_S,2,0))
12568 ;
12569 return 0;
12570 }
12571 #endif //#ifndef TOLUA_DISABLE
12572
12573
12574 #ifndef TOLUA_DISABLE_tolua_get_NetLocalHostsSlot
12575 static int tolua_get_NetLocalHostsSlot(lua_State* tolua_S)
12576 {
12577 tolua_pushnumber(tolua_S,(lua_Number)NetLocalHostsSlot);
12578 return 1;
12579 }
12580 #endif //#ifndef TOLUA_DISABLE
12581
12582
12583 #ifndef TOLUA_DISABLE_tolua_set_NetLocalHostsSlot
12584 static int tolua_set_NetLocalHostsSlot(lua_State* tolua_S)
12585 {
12586 #ifndef TOLUA_RELEASE
12587 tolua_Error tolua_err;
12588 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
12589 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
12590 #endif
12591 NetLocalHostsSlot = ((int) tolua_tonumber(tolua_S,2,0))
12592 ;
12593 return 0;
12594 }
12595 #endif //#ifndef TOLUA_DISABLE
12596
12597
12598 #ifndef TOLUA_DISABLE_tolua_get_CNetworkHost_unsigned_Host
12599 static int tolua_get_CNetworkHost_unsigned_Host(lua_State* tolua_S)
12600 {
12601 CNetworkHost* self = (CNetworkHost*) tolua_tousertype(tolua_S,1,0);
12602 #ifndef TOLUA_RELEASE
12603 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Host'",NULL);
12604 #endif
12605 tolua_pushnumber(tolua_S,(lua_Number)self->Host);
12606 return 1;
12607 }
12608 #endif //#ifndef TOLUA_DISABLE
12609
12610
12611 #ifndef TOLUA_DISABLE_tolua_set_CNetworkHost_unsigned_Host
12612 static int tolua_set_CNetworkHost_unsigned_Host(lua_State* tolua_S)
12613 {
12614 CNetworkHost* self = (CNetworkHost*) tolua_tousertype(tolua_S,1,0);
12615 #ifndef TOLUA_RELEASE
12616 tolua_Error tolua_err;
12617 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Host'",NULL);
12618 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
12619 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
12620 #endif
12621 self->Host = ((unsigned long) tolua_tonumber(tolua_S,2,0))
12622 ;
12623 return 0;
12624 }
12625 #endif //#ifndef TOLUA_DISABLE
12626
12627
12628 #ifndef TOLUA_DISABLE_tolua_get_CNetworkHost_unsigned_Port
12629 static int tolua_get_CNetworkHost_unsigned_Port(lua_State* tolua_S)
12630 {
12631 CNetworkHost* self = (CNetworkHost*) tolua_tousertype(tolua_S,1,0);
12632 #ifndef TOLUA_RELEASE
12633 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Port'",NULL);
12634 #endif
12635 tolua_pushnumber(tolua_S,(lua_Number)self->Port);
12636 return 1;
12637 }
12638 #endif //#ifndef TOLUA_DISABLE
12639
12640
12641 #ifndef TOLUA_DISABLE_tolua_set_CNetworkHost_unsigned_Port
12642 static int tolua_set_CNetworkHost_unsigned_Port(lua_State* tolua_S)
12643 {
12644 CNetworkHost* self = (CNetworkHost*) tolua_tousertype(tolua_S,1,0);
12645 #ifndef TOLUA_RELEASE
12646 tolua_Error tolua_err;
12647 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Port'",NULL);
12648 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
12649 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
12650 #endif
12651 self->Port = ((unsigned short) tolua_tonumber(tolua_S,2,0))
12652 ;
12653 return 0;
12654 }
12655 #endif //#ifndef TOLUA_DISABLE
12656
12657
12658 #ifndef TOLUA_DISABLE_tolua_get_CNetworkHost_unsigned_PlyNr
12659 static int tolua_get_CNetworkHost_unsigned_PlyNr(lua_State* tolua_S)
12660 {
12661 CNetworkHost* self = (CNetworkHost*) tolua_tousertype(tolua_S,1,0);
12662 #ifndef TOLUA_RELEASE
12663 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'PlyNr'",NULL);
12664 #endif
12665 tolua_pushnumber(tolua_S,(lua_Number)self->PlyNr);
12666 return 1;
12667 }
12668 #endif //#ifndef TOLUA_DISABLE
12669
12670
12671 #ifndef TOLUA_DISABLE_tolua_set_CNetworkHost_unsigned_PlyNr
12672 static int tolua_set_CNetworkHost_unsigned_PlyNr(lua_State* tolua_S)
12673 {
12674 CNetworkHost* self = (CNetworkHost*) tolua_tousertype(tolua_S,1,0);
12675 #ifndef TOLUA_RELEASE
12676 tolua_Error tolua_err;
12677 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'PlyNr'",NULL);
12678 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
12679 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
12680 #endif
12681 self->PlyNr = ((unsigned short) tolua_tonumber(tolua_S,2,0))
12682 ;
12683 return 0;
12684 }
12685 #endif //#ifndef TOLUA_DISABLE
12686
12687
12688 #ifndef TOLUA_DISABLE_tolua_get_CNetworkHost_PlyName
12689 static int tolua_get_CNetworkHost_PlyName(lua_State* tolua_S)
12690 {
12691 CNetworkHost* self = (CNetworkHost*) tolua_tousertype(tolua_S,1,0);
12692 #ifndef TOLUA_RELEASE
12693 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'PlyName'",NULL);
12694 #endif
12695 tolua_pushstring(tolua_S,(const char*)self->PlyName);
12696 return 1;
12697 }
12698 #endif //#ifndef TOLUA_DISABLE
12699
12700
12701 #ifndef TOLUA_DISABLE_tolua_set_CNetworkHost_PlyName
12702 static int tolua_set_CNetworkHost_PlyName(lua_State* tolua_S)
12703 {
12704 CNetworkHost* self = (CNetworkHost*) tolua_tousertype(tolua_S,1,0);
12705 #ifndef TOLUA_RELEASE
12706 tolua_Error tolua_err;
12707 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'PlyName'",NULL);
12708 if (!tolua_istable(tolua_S,2,0,&tolua_err))
12709 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
12710 #endif
12711 strncpy(self->PlyName,tolua_tostring(tolua_S,2,0),16-1);
12712 return 0;
12713 }
12714 #endif //#ifndef TOLUA_DISABLE
12715
12716
12717 #ifndef TOLUA_DISABLE_tolua_get_stratagus_Hosts
12718 static int tolua_get_stratagus_Hosts(lua_State* tolua_S)
12719 {
12720 int tolua_index;
12721 #ifndef TOLUA_RELEASE
12722 {
12723 tolua_Error tolua_err;
12724 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
12725 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
12726 }
12727 #endif
12728 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
12729 #ifndef TOLUA_RELEASE
12730 if (tolua_index<0 || tolua_index>=PlayerMax)
12731 tolua_error(tolua_S,"array indexing out of range.",NULL);
12732 #endif
12733 tolua_pushusertype(tolua_S,(void*)&Hosts[tolua_index],"CNetworkHost");
12734 return 1;
12735 }
12736 #endif //#ifndef TOLUA_DISABLE
12737
12738
12739 #ifndef TOLUA_DISABLE_tolua_set_stratagus_Hosts
12740 static int tolua_set_stratagus_Hosts(lua_State* tolua_S)
12741 {
12742 int tolua_index;
12743 #ifndef TOLUA_RELEASE
12744 {
12745 tolua_Error tolua_err;
12746 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
12747 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
12748 }
12749 #endif
12750 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
12751 #ifndef TOLUA_RELEASE
12752 if (tolua_index<0 || tolua_index>=PlayerMax)
12753 tolua_error(tolua_S,"array indexing out of range.",NULL);
12754 #endif
12755 Hosts[tolua_index] = *((CNetworkHost*) tolua_tousertype(tolua_S,3,0));
12756 return 0;
12757 }
12758 #endif //#ifndef TOLUA_DISABLE
12759
12760
12761 #ifndef TOLUA_DISABLE_tolua_get_NetworkMapName
12762 static int tolua_get_NetworkMapName(lua_State* tolua_S)
12763 {
12764 tolua_pushcppstring(tolua_S,(const char*)NetworkMapName);
12765 return 1;
12766 }
12767 #endif //#ifndef TOLUA_DISABLE
12768
12769
12770 #ifndef TOLUA_DISABLE_tolua_set_NetworkMapName
12771 static int tolua_set_NetworkMapName(lua_State* tolua_S)
12772 {
12773 #ifndef TOLUA_RELEASE
12774 tolua_Error tolua_err;
12775 if (!tolua_iscppstring(tolua_S,2,0,&tolua_err))
12776 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
12777 #endif
12778 NetworkMapName = ((string) tolua_tocppstring(tolua_S,2,0))
12779 ;
12780 return 0;
12781 }
12782 #endif //#ifndef TOLUA_DISABLE
12783
12784
12785 #ifndef TOLUA_DISABLE_tolua_stratagus_NetworkGamePrepareGameSettings00
12786 static int tolua_stratagus_NetworkGamePrepareGameSettings00(lua_State* tolua_S)
12787 {
12788 #ifndef TOLUA_RELEASE
12789 tolua_Error tolua_err;
12790 if (
12791 !tolua_isnoobj(tolua_S,1,&tolua_err)
12792 )
12793 goto tolua_lerror;
12794 else
12795 #endif
12796 {
12797 {
12798 NetworkGamePrepareGameSettings();
12799 }
12800 }
12801 return 0;
12802 #ifndef TOLUA_RELEASE
12803 tolua_lerror:
12804 tolua_error(tolua_S,"#ferror in function 'NetworkGamePrepareGameSettings'.",&tolua_err);
12805 return 0;
12806 #endif
12807 }
12808 #endif //#ifndef TOLUA_DISABLE
12809
12810
12811 #ifndef TOLUA_DISABLE_tolua_stratagus_InitVideo00
12812 static int tolua_stratagus_InitVideo00(lua_State* tolua_S)
12813 {
12814 #ifndef TOLUA_RELEASE
12815 tolua_Error tolua_err;
12816 if (
12817 !tolua_isnoobj(tolua_S,1,&tolua_err)
12818 )
12819 goto tolua_lerror;
12820 else
12821 #endif
12822 {
12823 {
12824 InitVideo();
12825 }
12826 }
12827 return 0;
12828 #ifndef TOLUA_RELEASE
12829 tolua_lerror:
12830 tolua_error(tolua_S,"#ferror in function 'InitVideo'.",&tolua_err);
12831 return 0;
12832 #endif
12833 }
12834 #endif //#ifndef TOLUA_DISABLE
12835
12836
12837 #ifndef TOLUA_DISABLE_tolua_get_UseOpenGL
12838 static int tolua_get_UseOpenGL(lua_State* tolua_S)
12839 {
12840 tolua_pushboolean(tolua_S,(bool)UseOpenGL);
12841 return 1;
12842 }
12843 #endif //#ifndef TOLUA_DISABLE
12844
12845
12846 #ifndef TOLUA_DISABLE_tolua_set_UseOpenGL
12847 static int tolua_set_UseOpenGL(lua_State* tolua_S)
12848 {
12849 #ifndef TOLUA_RELEASE
12850 tolua_Error tolua_err;
12851 if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
12852 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
12853 #endif
12854 UseOpenGL = ((bool) tolua_toboolean(tolua_S,2,0))
12855 ;
12856 return 0;
12857 }
12858 #endif //#ifndef TOLUA_DISABLE
12859
12860
12861 #ifndef TOLUA_DISABLE_tolua_get_CVideo_Width
12862 static int tolua_get_CVideo_Width(lua_State* tolua_S)
12863 {
12864 CVideo* self = (CVideo*) tolua_tousertype(tolua_S,1,0);
12865 #ifndef TOLUA_RELEASE
12866 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Width'",NULL);
12867 #endif
12868 tolua_pushnumber(tolua_S,(lua_Number)self->Width);
12869 return 1;
12870 }
12871 #endif //#ifndef TOLUA_DISABLE
12872
12873
12874 #ifndef TOLUA_DISABLE_tolua_set_CVideo_Width
12875 static int tolua_set_CVideo_Width(lua_State* tolua_S)
12876 {
12877 CVideo* self = (CVideo*) tolua_tousertype(tolua_S,1,0);
12878 #ifndef TOLUA_RELEASE
12879 tolua_Error tolua_err;
12880 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Width'",NULL);
12881 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
12882 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
12883 #endif
12884 self->Width = ((int) tolua_tonumber(tolua_S,2,0))
12885 ;
12886 return 0;
12887 }
12888 #endif //#ifndef TOLUA_DISABLE
12889
12890
12891 #ifndef TOLUA_DISABLE_tolua_get_CVideo_Height
12892 static int tolua_get_CVideo_Height(lua_State* tolua_S)
12893 {
12894 CVideo* self = (CVideo*) tolua_tousertype(tolua_S,1,0);
12895 #ifndef TOLUA_RELEASE
12896 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Height'",NULL);
12897 #endif
12898 tolua_pushnumber(tolua_S,(lua_Number)self->Height);
12899 return 1;
12900 }
12901 #endif //#ifndef TOLUA_DISABLE
12902
12903
12904 #ifndef TOLUA_DISABLE_tolua_set_CVideo_Height
12905 static int tolua_set_CVideo_Height(lua_State* tolua_S)
12906 {
12907 CVideo* self = (CVideo*) tolua_tousertype(tolua_S,1,0);
12908 #ifndef TOLUA_RELEASE
12909 tolua_Error tolua_err;
12910 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Height'",NULL);
12911 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
12912 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
12913 #endif
12914 self->Height = ((int) tolua_tonumber(tolua_S,2,0))
12915 ;
12916 return 0;
12917 }
12918 #endif //#ifndef TOLUA_DISABLE
12919
12920
12921 #ifndef TOLUA_DISABLE_tolua_get_CVideo_Depth
12922 static int tolua_get_CVideo_Depth(lua_State* tolua_S)
12923 {
12924 CVideo* self = (CVideo*) tolua_tousertype(tolua_S,1,0);
12925 #ifndef TOLUA_RELEASE
12926 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Depth'",NULL);
12927 #endif
12928 tolua_pushnumber(tolua_S,(lua_Number)self->Depth);
12929 return 1;
12930 }
12931 #endif //#ifndef TOLUA_DISABLE
12932
12933
12934 #ifndef TOLUA_DISABLE_tolua_set_CVideo_Depth
12935 static int tolua_set_CVideo_Depth(lua_State* tolua_S)
12936 {
12937 CVideo* self = (CVideo*) tolua_tousertype(tolua_S,1,0);
12938 #ifndef TOLUA_RELEASE
12939 tolua_Error tolua_err;
12940 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Depth'",NULL);
12941 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
12942 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
12943 #endif
12944 self->Depth = ((int) tolua_tonumber(tolua_S,2,0))
12945 ;
12946 return 0;
12947 }
12948 #endif //#ifndef TOLUA_DISABLE
12949
12950
12951 #ifndef TOLUA_DISABLE_tolua_get_CVideo_FullScreen
12952 static int tolua_get_CVideo_FullScreen(lua_State* tolua_S)
12953 {
12954 CVideo* self = (CVideo*) tolua_tousertype(tolua_S,1,0);
12955 #ifndef TOLUA_RELEASE
12956 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'FullScreen'",NULL);
12957 #endif
12958 tolua_pushboolean(tolua_S,(bool)self->FullScreen);
12959 return 1;
12960 }
12961 #endif //#ifndef TOLUA_DISABLE
12962
12963
12964 #ifndef TOLUA_DISABLE_tolua_set_CVideo_FullScreen
12965 static int tolua_set_CVideo_FullScreen(lua_State* tolua_S)
12966 {
12967 CVideo* self = (CVideo*) tolua_tousertype(tolua_S,1,0);
12968 #ifndef TOLUA_RELEASE
12969 tolua_Error tolua_err;
12970 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'FullScreen'",NULL);
12971 if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
12972 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
12973 #endif
12974 self->FullScreen = ((bool) tolua_toboolean(tolua_S,2,0))
12975 ;
12976 return 0;
12977 }
12978 #endif //#ifndef TOLUA_DISABLE
12979
12980
12981 #ifndef TOLUA_DISABLE_tolua_stratagus_CVideo_ResizeScreen00
12982 static int tolua_stratagus_CVideo_ResizeScreen00(lua_State* tolua_S)
12983 {
12984 #ifndef TOLUA_RELEASE
12985 tolua_Error tolua_err;
12986 if (
12987 !tolua_isusertype(tolua_S,1,"CVideo",0,&tolua_err) ||
12988 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
12989 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
12990 !tolua_isnoobj(tolua_S,4,&tolua_err)
12991 )
12992 goto tolua_lerror;
12993 else
12994 #endif
12995 {
12996 CVideo* self = (CVideo*) tolua_tousertype(tolua_S,1,0);
12997 int width = ((int) tolua_tonumber(tolua_S,2,0));
12998 int height = ((int) tolua_tonumber(tolua_S,3,0));
12999 #ifndef TOLUA_RELEASE
13000 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ResizeScreen'",NULL);
13001 #endif
13002 {
13003 bool tolua_ret = (bool) self->ResizeScreen(width,height);
13004 tolua_pushboolean(tolua_S,(bool)tolua_ret);
13005 }
13006 }
13007 return 1;
13008 #ifndef TOLUA_RELEASE
13009 tolua_lerror:
13010 tolua_error(tolua_S,"#ferror in function 'ResizeScreen'.",&tolua_err);
13011 return 0;
13012 #endif
13013 }
13014 #endif //#ifndef TOLUA_DISABLE
13015
13016
13017 #ifndef TOLUA_DISABLE_tolua_get_Video
13018 static int tolua_get_Video(lua_State* tolua_S)
13019 {
13020 tolua_pushusertype(tolua_S,(void*)&Video,"CVideo");
13021 return 1;
13022 }
13023 #endif //#ifndef TOLUA_DISABLE
13024
13025
13026 #ifndef TOLUA_DISABLE_tolua_set_Video
13027 static int tolua_set_Video(lua_State* tolua_S)
13028 {
13029 #ifndef TOLUA_RELEASE
13030 tolua_Error tolua_err;
13031 if (!tolua_isusertype(tolua_S,2,"CVideo",0,&tolua_err))
13032 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
13033 #endif
13034 Video = *((CVideo*) tolua_tousertype(tolua_S,2,0))
13035 ;
13036 return 0;
13037 }
13038 #endif //#ifndef TOLUA_DISABLE
13039
13040
13041 #ifndef TOLUA_DISABLE_tolua_stratagus_ToggleFullScreen00
13042 static int tolua_stratagus_ToggleFullScreen00(lua_State* tolua_S)
13043 {
13044 #ifndef TOLUA_RELEASE
13045 tolua_Error tolua_err;
13046 if (
13047 !tolua_isnoobj(tolua_S,1,&tolua_err)
13048 )
13049 goto tolua_lerror;
13050 else
13051 #endif
13052 {
13053 {
13054 ToggleFullScreen();
13055 }
13056 }
13057 return 0;
13058 #ifndef TOLUA_RELEASE
13059 tolua_lerror:
13060 tolua_error(tolua_S,"#ferror in function 'ToggleFullScreen'.",&tolua_err);
13061 return 0;
13062 #endif
13063 }
13064 #endif //#ifndef TOLUA_DISABLE
13065
13066
13067 #ifndef TOLUA_DISABLE_tolua_stratagus_CGraphic_New00
13068 static int tolua_stratagus_CGraphic_New00(lua_State* tolua_S)
13069 {
13070 #ifndef TOLUA_RELEASE
13071 tolua_Error tolua_err;
13072 if (
13073 !tolua_isusertable(tolua_S,1,"CGraphic",0,&tolua_err) ||
13074 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
13075 !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
13076 !tolua_isnumber(tolua_S,4,1,&tolua_err) ||
13077 !tolua_isnoobj(tolua_S,5,&tolua_err)
13078 )
13079 goto tolua_lerror;
13080 else
13081 #endif
13082 {
13083 const std::string file = ((const std::string) tolua_tocppstring(tolua_S,2,0));
13084 int w = ((int) tolua_tonumber(tolua_S,3,0));
13085 int h = ((int) tolua_tonumber(tolua_S,4,0));
13086 {
13087 CGraphic* tolua_ret = (CGraphic*) CGraphic::New(file,w,h);
13088 tolua_pushusertype(tolua_S,(void*)tolua_ret,"CGraphic");
13089 }
13090 }
13091 return 1;
13092 #ifndef TOLUA_RELEASE
13093 tolua_lerror:
13094 tolua_error(tolua_S,"#ferror in function 'New'.",&tolua_err);
13095 return 0;
13096 #endif
13097 }
13098 #endif //#ifndef TOLUA_DISABLE
13099
13100
13101 #ifndef TOLUA_DISABLE_tolua_stratagus_CGraphic_Free00
13102 static int tolua_stratagus_CGraphic_Free00(lua_State* tolua_S)
13103 {
13104 #ifndef TOLUA_RELEASE
13105 tolua_Error tolua_err;
13106 if (
13107 !tolua_isusertable(tolua_S,1,"CGraphic",0,&tolua_err) ||
13108 !tolua_isusertype(tolua_S,2,"CGraphic",0,&tolua_err) ||
13109 !tolua_isnoobj(tolua_S,3,&tolua_err)
13110 )
13111 goto tolua_lerror;
13112 else
13113 #endif
13114 {
13115 CGraphic* tolua_var_1 = ((CGraphic*) tolua_tousertype(tolua_S,2,0));
13116 {
13117 CGraphic::Free(tolua_var_1);
13118 }
13119 }
13120 return 0;
13121 #ifndef TOLUA_RELEASE
13122 tolua_lerror:
13123 tolua_error(tolua_S,"#ferror in function 'Free'.",&tolua_err);
13124 return 0;
13125 #endif
13126 }
13127 #endif //#ifndef TOLUA_DISABLE
13128
13129
13130 #ifndef TOLUA_DISABLE_tolua_stratagus_CGraphic_Load00
13131 static int tolua_stratagus_CGraphic_Load00(lua_State* tolua_S)
13132 {
13133 #ifndef TOLUA_RELEASE
13134 tolua_Error tolua_err;
13135 if (
13136 !tolua_isusertype(tolua_S,1,"CGraphic",0,&tolua_err) ||
13137 !tolua_isnoobj(tolua_S,2,&tolua_err)
13138 )
13139 goto tolua_lerror;
13140 else
13141 #endif
13142 {
13143 CGraphic* self = (CGraphic*) tolua_tousertype(tolua_S,1,0);
13144 #ifndef TOLUA_RELEASE
13145 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Load'",NULL);
13146 #endif
13147 {
13148 self->Load();
13149 }
13150 }
13151 return 0;
13152 #ifndef TOLUA_RELEASE
13153 tolua_lerror:
13154 tolua_error(tolua_S,"#ferror in function 'Load'.",&tolua_err);
13155 return 0;
13156 #endif
13157 }
13158 #endif //#ifndef TOLUA_DISABLE
13159
13160
13161 #ifndef TOLUA_DISABLE_tolua_stratagus_CGraphic_Resize00
13162 static int tolua_stratagus_CGraphic_Resize00(lua_State* tolua_S)
13163 {
13164 #ifndef TOLUA_RELEASE
13165 tolua_Error tolua_err;
13166 if (
13167 !tolua_isusertype(tolua_S,1,"CGraphic",0,&tolua_err) ||
13168 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
13169 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
13170 !tolua_isnoobj(tolua_S,4,&tolua_err)
13171 )
13172 goto tolua_lerror;
13173 else
13174 #endif
13175 {
13176 CGraphic* self = (CGraphic*) tolua_tousertype(tolua_S,1,0);
13177 int w = ((int) tolua_tonumber(tolua_S,2,0));
13178 int h = ((int) tolua_tonumber(tolua_S,3,0));
13179 #ifndef TOLUA_RELEASE
13180 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Resize'",NULL);
13181 #endif
13182 {
13183 self->Resize(w,h);
13184 }
13185 }
13186 return 0;
13187 #ifndef TOLUA_RELEASE
13188 tolua_lerror:
13189 tolua_error(tolua_S,"#ferror in function 'Resize'.",&tolua_err);
13190 return 0;
13191 #endif
13192 }
13193 #endif //#ifndef TOLUA_DISABLE
13194
13195
13196 #ifndef TOLUA_DISABLE_tolua_stratagus_CPlayerColorGraphic_New00
13197 static int tolua_stratagus_CPlayerColorGraphic_New00(lua_State* tolua_S)
13198 {
13199 #ifndef TOLUA_RELEASE
13200 tolua_Error tolua_err;
13201 if (
13202 !tolua_isusertable(tolua_S,1,"CPlayerColorGraphic",0,&tolua_err) ||
13203 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
13204 !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
13205 !tolua_isnumber(tolua_S,4,1,&tolua_err) ||
13206 !tolua_isnoobj(tolua_S,5,&tolua_err)
13207 )
13208 goto tolua_lerror;
13209 else
13210 #endif
13211 {
13212 const std::string file = ((const std::string) tolua_tocppstring(tolua_S,2,0));
13213 int w = ((int) tolua_tonumber(tolua_S,3,0));
13214 int h = ((int) tolua_tonumber(tolua_S,4,0));
13215 {
13216 CPlayerColorGraphic* tolua_ret = (CPlayerColorGraphic*) CPlayerColorGraphic::New(file,w,h);
13217 tolua_pushusertype(tolua_S,(void*)tolua_ret,"CPlayerColorGraphic");
13218 }
13219 }
13220 return 1;
13221 #ifndef TOLUA_RELEASE
13222 tolua_lerror:
13223 tolua_error(tolua_S,"#ferror in function 'New'.",&tolua_err);
13224 return 0;
13225 #endif
13226 }
13227 #endif //#ifndef TOLUA_DISABLE
13228
13229
13230 #ifndef TOLUA_DISABLE_tolua_stratagus_CColor_new00
13231 static int tolua_stratagus_CColor_new00(lua_State* tolua_S)
13232 {
13233 #ifndef TOLUA_RELEASE
13234 tolua_Error tolua_err;
13235 if (
13236 !tolua_isusertable(tolua_S,1,"CColor",0,&tolua_err) ||
13237 !tolua_isnumber(tolua_S,2,1,&tolua_err) ||
13238 !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
13239 !tolua_isnumber(tolua_S,4,1,&tolua_err) ||
13240 !tolua_isnumber(tolua_S,5,1,&tolua_err) ||
13241 !tolua_isnoobj(tolua_S,6,&tolua_err)
13242 )
13243 goto tolua_lerror;
13244 else
13245 #endif
13246 {
13247 unsigned char r = ((unsigned char) tolua_tonumber(tolua_S,2,0));
13248 unsigned char g = ((unsigned char) tolua_tonumber(tolua_S,3,0));
13249 unsigned char b = ((unsigned char) tolua_tonumber(tolua_S,4,0));
13250 unsigned char a = ((unsigned char) tolua_tonumber(tolua_S,5,0));
13251 {
13252 CColor* tolua_ret = (CColor*) new CColor(r,g,b,a);
13253 tolua_pushusertype(tolua_S,(void*)tolua_ret,"CColor");
13254 }
13255 }
13256 return 1;
13257 #ifndef TOLUA_RELEASE
13258 tolua_lerror:
13259 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
13260 return 0;
13261 #endif
13262 }
13263 #endif //#ifndef TOLUA_DISABLE
13264
13265
13266 #ifndef TOLUA_DISABLE_tolua_stratagus_CColor_new00_local
13267 static int tolua_stratagus_CColor_new00_local(lua_State* tolua_S)
13268 {
13269 #ifndef TOLUA_RELEASE
13270 tolua_Error tolua_err;
13271 if (
13272 !tolua_isusertable(tolua_S,1,"CColor",0,&tolua_err) ||
13273 !tolua_isnumber(tolua_S,2,1,&tolua_err) ||
13274 !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
13275 !tolua_isnumber(tolua_S,4,1,&tolua_err) ||
13276 !tolua_isnumber(tolua_S,5,1,&tolua_err) ||
13277 !tolua_isnoobj(tolua_S,6,&tolua_err)
13278 )
13279 goto tolua_lerror;
13280 else
13281 #endif
13282 {
13283 unsigned char r = ((unsigned char) tolua_tonumber(tolua_S,2,0));
13284 unsigned char g = ((unsigned char) tolua_tonumber(tolua_S,3,0));
13285 unsigned char b = ((unsigned char) tolua_tonumber(tolua_S,4,0));
13286 unsigned char a = ((unsigned char) tolua_tonumber(tolua_S,5,0));
13287 {
13288 CColor* tolua_ret = (CColor*) new CColor(r,g,b,a);
13289 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"CColor");
13290 }
13291 }
13292 return 1;
13293 #ifndef TOLUA_RELEASE
13294 tolua_lerror:
13295 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
13296 return 0;
13297 #endif
13298 }
13299 #endif //#ifndef TOLUA_DISABLE
13300
13301
13302 #ifndef TOLUA_DISABLE_tolua_get_CColor_unsigned_R
13303 static int tolua_get_CColor_unsigned_R(lua_State* tolua_S)
13304 {
13305 CColor* self = (CColor*) tolua_tousertype(tolua_S,1,0);
13306 #ifndef TOLUA_RELEASE
13307 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'R'",NULL);
13308 #endif
13309 tolua_pushnumber(tolua_S,(lua_Number)self->R);
13310 return 1;
13311 }
13312 #endif //#ifndef TOLUA_DISABLE
13313
13314
13315 #ifndef TOLUA_DISABLE_tolua_set_CColor_unsigned_R
13316 static int tolua_set_CColor_unsigned_R(lua_State* tolua_S)
13317 {
13318 CColor* self = (CColor*) tolua_tousertype(tolua_S,1,0);
13319 #ifndef TOLUA_RELEASE
13320 tolua_Error tolua_err;
13321 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'R'",NULL);
13322 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
13323 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
13324 #endif
13325 self->R = ((unsigned char) tolua_tonumber(tolua_S,2,0))
13326 ;
13327 return 0;
13328 }
13329 #endif //#ifndef TOLUA_DISABLE
13330
13331
13332 #ifndef TOLUA_DISABLE_tolua_get_CColor_unsigned_G
13333 static int tolua_get_CColor_unsigned_G(lua_State* tolua_S)
13334 {
13335 CColor* self = (CColor*) tolua_tousertype(tolua_S,1,0);
13336 #ifndef TOLUA_RELEASE
13337 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'G'",NULL);
13338 #endif
13339 tolua_pushnumber(tolua_S,(lua_Number)self->G);
13340 return 1;
13341 }
13342 #endif //#ifndef TOLUA_DISABLE
13343
13344
13345 #ifndef TOLUA_DISABLE_tolua_set_CColor_unsigned_G
13346 static int tolua_set_CColor_unsigned_G(lua_State* tolua_S)
13347 {
13348 CColor* self = (CColor*) tolua_tousertype(tolua_S,1,0);
13349 #ifndef TOLUA_RELEASE
13350 tolua_Error tolua_err;
13351 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'G'",NULL);
13352 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
13353 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
13354 #endif
13355 self->G = ((unsigned char) tolua_tonumber(tolua_S,2,0))
13356 ;
13357 return 0;
13358 }
13359 #endif //#ifndef TOLUA_DISABLE
13360
13361
13362 #ifndef TOLUA_DISABLE_tolua_get_CColor_unsigned_B
13363 static int tolua_get_CColor_unsigned_B(lua_State* tolua_S)
13364 {
13365 CColor* self = (CColor*) tolua_tousertype(tolua_S,1,0);
13366 #ifndef TOLUA_RELEASE
13367 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'B'",NULL);
13368 #endif
13369 tolua_pushnumber(tolua_S,(lua_Number)self->B);
13370 return 1;
13371 }
13372 #endif //#ifndef TOLUA_DISABLE
13373
13374
13375 #ifndef TOLUA_DISABLE_tolua_set_CColor_unsigned_B
13376 static int tolua_set_CColor_unsigned_B(lua_State* tolua_S)
13377 {
13378 CColor* self = (CColor*) tolua_tousertype(tolua_S,1,0);
13379 #ifndef TOLUA_RELEASE
13380 tolua_Error tolua_err;
13381 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'B'",NULL);
13382 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
13383 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
13384 #endif
13385 self->B = ((unsigned char) tolua_tonumber(tolua_S,2,0))
13386 ;
13387 return 0;
13388 }
13389 #endif //#ifndef TOLUA_DISABLE
13390
13391
13392 #ifndef TOLUA_DISABLE_tolua_get_CColor_unsigned_A
13393 static int tolua_get_CColor_unsigned_A(lua_State* tolua_S)
13394 {
13395 CColor* self = (CColor*) tolua_tousertype(tolua_S,1,0);
13396 #ifndef TOLUA_RELEASE
13397 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'A'",NULL);
13398 #endif
13399 tolua_pushnumber(tolua_S,(lua_Number)self->A);
13400 return 1;
13401 }
13402 #endif //#ifndef TOLUA_DISABLE
13403
13404
13405 #ifndef TOLUA_DISABLE_tolua_set_CColor_unsigned_A
13406 static int tolua_set_CColor_unsigned_A(lua_State* tolua_S)
13407 {
13408 CColor* self = (CColor*) tolua_tousertype(tolua_S,1,0);
13409 #ifndef TOLUA_RELEASE
13410 tolua_Error tolua_err;
13411 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'A'",NULL);
13412 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
13413 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
13414 #endif
13415 self->A = ((unsigned char) tolua_tonumber(tolua_S,2,0))
13416 ;
13417 return 0;
13418 }
13419 #endif //#ifndef TOLUA_DISABLE
13420
13421
13422 #ifndef TOLUA_DISABLE_tolua_get_UseGLTextureCompression
13423 static int tolua_get_UseGLTextureCompression(lua_State* tolua_S)
13424 {
13425 tolua_pushboolean(tolua_S,(bool)UseGLTextureCompression);
13426 return 1;
13427 }
13428 #endif //#ifndef TOLUA_DISABLE
13429
13430
13431 #ifndef TOLUA_DISABLE_tolua_set_UseGLTextureCompression
13432 static int tolua_set_UseGLTextureCompression(lua_State* tolua_S)
13433 {
13434 #ifndef TOLUA_RELEASE
13435 tolua_Error tolua_err;
13436 if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
13437 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
13438 #endif
13439 UseGLTextureCompression = ((bool) tolua_toboolean(tolua_S,2,0))
13440 ;
13441 return 0;
13442 }
13443 #endif //#ifndef TOLUA_DISABLE
13444
13445
13446 #ifndef TOLUA_DISABLE_tolua_stratagus_CFont_New00
13447 static int tolua_stratagus_CFont_New00(lua_State* tolua_S)
13448 {
13449 #ifndef TOLUA_RELEASE
13450 tolua_Error tolua_err;
13451 if (
13452 !tolua_isusertable(tolua_S,1,"CFont",0,&tolua_err) ||
13453 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
13454 !tolua_isusertype(tolua_S,3,"CGraphic",0,&tolua_err) ||
13455 !tolua_isnoobj(tolua_S,4,&tolua_err)
13456 )
13457 goto tolua_lerror;
13458 else
13459 #endif
13460 {
13461 const std::string ident = ((const std::string) tolua_tocppstring(tolua_S,2,0));
13462 CGraphic* g = ((CGraphic*) tolua_tousertype(tolua_S,3,0));
13463 {
13464 CFont* tolua_ret = (CFont*) CFont::New(ident,g);
13465 tolua_pushusertype(tolua_S,(void*)tolua_ret,"CFont");
13466 }
13467 }
13468 return 1;
13469 #ifndef TOLUA_RELEASE
13470 tolua_lerror:
13471 tolua_error(tolua_S,"#ferror in function 'New'.",&tolua_err);
13472 return 0;
13473 #endif
13474 }
13475 #endif //#ifndef TOLUA_DISABLE
13476
13477
13478 #ifndef TOLUA_DISABLE_tolua_stratagus_CFont_Get00
13479 static int tolua_stratagus_CFont_Get00(lua_State* tolua_S)
13480 {
13481 #ifndef TOLUA_RELEASE
13482 tolua_Error tolua_err;
13483 if (
13484 !tolua_isusertable(tolua_S,1,"CFont",0,&tolua_err) ||
13485 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
13486 !tolua_isnoobj(tolua_S,3,&tolua_err)
13487 )
13488 goto tolua_lerror;
13489 else
13490 #endif
13491 {
13492 const std::string ident = ((const std::string) tolua_tocppstring(tolua_S,2,0));
13493 {
13494 CFont* tolua_ret = (CFont*) CFont::Get(ident);
13495 tolua_pushusertype(tolua_S,(void*)tolua_ret,"CFont");
13496 }
13497 }
13498 return 1;
13499 #ifndef TOLUA_RELEASE
13500 tolua_lerror:
13501 tolua_error(tolua_S,"#ferror in function 'Get'.",&tolua_err);
13502 return 0;
13503 #endif
13504 }
13505 #endif //#ifndef TOLUA_DISABLE
13506
13507
13508 #ifndef TOLUA_DISABLE_tolua_stratagus_CFont_Height00
13509 static int tolua_stratagus_CFont_Height00(lua_State* tolua_S)
13510 {
13511 #ifndef TOLUA_RELEASE
13512 tolua_Error tolua_err;
13513 if (
13514 !tolua_isusertype(tolua_S,1,"CFont",0,&tolua_err) ||
13515 !tolua_isnoobj(tolua_S,2,&tolua_err)
13516 )
13517 goto tolua_lerror;
13518 else
13519 #endif
13520 {
13521 CFont* self = (CFont*) tolua_tousertype(tolua_S,1,0);
13522 #ifndef TOLUA_RELEASE
13523 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Height'",NULL);
13524 #endif
13525 {
13526 int tolua_ret = (int) self->Height();
13527 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
13528 }
13529 }
13530 return 1;
13531 #ifndef TOLUA_RELEASE
13532 tolua_lerror:
13533 tolua_error(tolua_S,"#ferror in function 'Height'.",&tolua_err);
13534 return 0;
13535 #endif
13536 }
13537 #endif //#ifndef TOLUA_DISABLE
13538
13539
13540 #ifndef TOLUA_DISABLE_tolua_stratagus_CFont_Width00
13541 static int tolua_stratagus_CFont_Width00(lua_State* tolua_S)
13542 {
13543 #ifndef TOLUA_RELEASE
13544 tolua_Error tolua_err;
13545 if (
13546 !tolua_isusertype(tolua_S,1,"CFont",0,&tolua_err) ||
13547 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
13548 !tolua_isnoobj(tolua_S,3,&tolua_err)
13549 )
13550 goto tolua_lerror;
13551 else
13552 #endif
13553 {
13554 CFont* self = (CFont*) tolua_tousertype(tolua_S,1,0);
13555 const std::string text = ((const std::string) tolua_tocppstring(tolua_S,2,0));
13556 #ifndef TOLUA_RELEASE
13557 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Width'",NULL);
13558 #endif
13559 {
13560 int tolua_ret = (int) self->Width(text);
13561 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
13562 }
13563 }
13564 return 1;
13565 #ifndef TOLUA_RELEASE
13566 tolua_lerror:
13567 tolua_error(tolua_S,"#ferror in function 'Width'.",&tolua_err);
13568 return 0;
13569 #endif
13570 }
13571 #endif //#ifndef TOLUA_DISABLE
13572
13573
13574 #ifndef TOLUA_DISABLE_tolua_stratagus_CFontColor_New00
13575 static int tolua_stratagus_CFontColor_New00(lua_State* tolua_S)
13576 {
13577 #ifndef TOLUA_RELEASE
13578 tolua_Error tolua_err;
13579 if (
13580 !tolua_isusertable(tolua_S,1,"CFontColor",0,&tolua_err) ||
13581 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
13582 !tolua_isnoobj(tolua_S,3,&tolua_err)
13583 )
13584 goto tolua_lerror;
13585 else
13586 #endif
13587 {
13588 const std::string ident = ((const std::string) tolua_tocppstring(tolua_S,2,0));
13589 {
13590 CFontColor* tolua_ret = (CFontColor*) CFontColor::New(ident);
13591 tolua_pushusertype(tolua_S,(void*)tolua_ret,"CFontColor");
13592 }
13593 }
13594 return 1;
13595 #ifndef TOLUA_RELEASE
13596 tolua_lerror:
13597 tolua_error(tolua_S,"#ferror in function 'New'.",&tolua_err);
13598 return 0;
13599 #endif
13600 }
13601 #endif //#ifndef TOLUA_DISABLE
13602
13603
13604 #ifndef TOLUA_DISABLE_tolua_stratagus_CFontColor_Get00
13605 static int tolua_stratagus_CFontColor_Get00(lua_State* tolua_S)
13606 {
13607 #ifndef TOLUA_RELEASE
13608 tolua_Error tolua_err;
13609 if (
13610 !tolua_isusertable(tolua_S,1,"CFontColor",0,&tolua_err) ||
13611 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
13612 !tolua_isnoobj(tolua_S,3,&tolua_err)
13613 )
13614 goto tolua_lerror;
13615 else
13616 #endif
13617 {
13618 const std::string ident = ((const std::string) tolua_tocppstring(tolua_S,2,0));
13619 {
13620 CFontColor* tolua_ret = (CFontColor*) CFontColor::Get(ident);
13621 tolua_pushusertype(tolua_S,(void*)tolua_ret,"CFontColor");
13622 }
13623 }
13624 return 1;
13625 #ifndef TOLUA_RELEASE
13626 tolua_lerror:
13627 tolua_error(tolua_S,"#ferror in function 'Get'.",&tolua_err);
13628 return 0;
13629 #endif
13630 }
13631 #endif //#ifndef TOLUA_DISABLE
13632
13633
13634 #ifndef TOLUA_DISABLE_tolua_get_stratagus_CFontColor_Colors
13635 static int tolua_get_stratagus_CFontColor_Colors(lua_State* tolua_S)
13636 {
13637 int tolua_index;
13638 CFontColor* self;
13639 lua_pushstring(tolua_S,".self");
13640 lua_rawget(tolua_S,1);
13641 self = (CFontColor*) lua_touserdata(tolua_S,-1);
13642 #ifndef TOLUA_RELEASE
13643 {
13644 tolua_Error tolua_err;
13645 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
13646 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
13647 }
13648 #endif
13649 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
13650 #ifndef TOLUA_RELEASE
13651 if (tolua_index<0 || tolua_index>=MaxFontColors)
13652 tolua_error(tolua_S,"array indexing out of range.",NULL);
13653 #endif
13654 tolua_pushusertype(tolua_S,(void*)&self->Colors[tolua_index],"CColor");
13655 return 1;
13656 }
13657 #endif //#ifndef TOLUA_DISABLE
13658
13659
13660 #ifndef TOLUA_DISABLE_tolua_set_stratagus_CFontColor_Colors
13661 static int tolua_set_stratagus_CFontColor_Colors(lua_State* tolua_S)
13662 {
13663 int tolua_index;
13664 CFontColor* self;
13665 lua_pushstring(tolua_S,".self");
13666 lua_rawget(tolua_S,1);
13667 self = (CFontColor*) lua_touserdata(tolua_S,-1);
13668 #ifndef TOLUA_RELEASE
13669 {
13670 tolua_Error tolua_err;
13671 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
13672 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
13673 }
13674 #endif
13675 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
13676 #ifndef TOLUA_RELEASE
13677 if (tolua_index<0 || tolua_index>=MaxFontColors)
13678 tolua_error(tolua_S,"array indexing out of range.",NULL);
13679 #endif
13680 self->Colors[tolua_index] = *((CColor*) tolua_tousertype(tolua_S,3,0));
13681 return 0;
13682 }
13683 #endif //#ifndef TOLUA_DISABLE
13684
13685
13686 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_Index
13687 static int tolua_get_CPlayer_Index(lua_State* tolua_S)
13688 {
13689 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
13690 #ifndef TOLUA_RELEASE
13691 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Index'",NULL);
13692 #endif
13693 tolua_pushnumber(tolua_S,(lua_Number)self->Index);
13694 return 1;
13695 }
13696 #endif //#ifndef TOLUA_DISABLE
13697
13698
13699 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_Index
13700 static int tolua_set_CPlayer_Index(lua_State* tolua_S)
13701 {
13702 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
13703 #ifndef TOLUA_RELEASE
13704 tolua_Error tolua_err;
13705 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Index'",NULL);
13706 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
13707 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
13708 #endif
13709 self->Index = ((int) tolua_tonumber(tolua_S,2,0))
13710 ;
13711 return 0;
13712 }
13713 #endif //#ifndef TOLUA_DISABLE
13714
13715
13716 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_Name
13717 static int tolua_get_CPlayer_Name(lua_State* tolua_S)
13718 {
13719 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
13720 #ifndef TOLUA_RELEASE
13721 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Name'",NULL);
13722 #endif
13723 tolua_pushcppstring(tolua_S,(const char*)self->Name);
13724 return 1;
13725 }
13726 #endif //#ifndef TOLUA_DISABLE
13727
13728
13729 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_Name
13730 static int tolua_set_CPlayer_Name(lua_State* tolua_S)
13731 {
13732 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
13733 #ifndef TOLUA_RELEASE
13734 tolua_Error tolua_err;
13735 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Name'",NULL);
13736 if (!tolua_iscppstring(tolua_S,2,0,&tolua_err))
13737 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
13738 #endif
13739 self->Name = ((string) tolua_tocppstring(tolua_S,2,0))
13740 ;
13741 return 0;
13742 }
13743 #endif //#ifndef TOLUA_DISABLE
13744
13745
13746 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_Type
13747 static int tolua_get_CPlayer_Type(lua_State* tolua_S)
13748 {
13749 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
13750 #ifndef TOLUA_RELEASE
13751 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Type'",NULL);
13752 #endif
13753 tolua_pushnumber(tolua_S,(lua_Number)self->Type);
13754 return 1;
13755 }
13756 #endif //#ifndef TOLUA_DISABLE
13757
13758
13759 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_Type
13760 static int tolua_set_CPlayer_Type(lua_State* tolua_S)
13761 {
13762 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
13763 #ifndef TOLUA_RELEASE
13764 tolua_Error tolua_err;
13765 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Type'",NULL);
13766 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
13767 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
13768 #endif
13769 self->Type = ((int) tolua_tonumber(tolua_S,2,0))
13770 ;
13771 return 0;
13772 }
13773 #endif //#ifndef TOLUA_DISABLE
13774
13775
13776 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_AiName
13777 static int tolua_get_CPlayer_AiName(lua_State* tolua_S)
13778 {
13779 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
13780 #ifndef TOLUA_RELEASE
13781 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'AiName'",NULL);
13782 #endif
13783 tolua_pushcppstring(tolua_S,(const char*)self->AiName);
13784 return 1;
13785 }
13786 #endif //#ifndef TOLUA_DISABLE
13787
13788
13789 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_AiName
13790 static int tolua_set_CPlayer_AiName(lua_State* tolua_S)
13791 {
13792 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
13793 #ifndef TOLUA_RELEASE
13794 tolua_Error tolua_err;
13795 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'AiName'",NULL);
13796 if (!tolua_iscppstring(tolua_S,2,0,&tolua_err))
13797 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
13798 #endif
13799 self->AiName = ((string) tolua_tocppstring(tolua_S,2,0))
13800 ;
13801 return 0;
13802 }
13803 #endif //#ifndef TOLUA_DISABLE
13804
13805
13806 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_StartX
13807 static int tolua_get_CPlayer_StartX(lua_State* tolua_S)
13808 {
13809 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
13810 #ifndef TOLUA_RELEASE
13811 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'StartX'",NULL);
13812 #endif
13813 tolua_pushnumber(tolua_S,(lua_Number)self->StartX);
13814 return 1;
13815 }
13816 #endif //#ifndef TOLUA_DISABLE
13817
13818
13819 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_StartX
13820 static int tolua_set_CPlayer_StartX(lua_State* tolua_S)
13821 {
13822 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
13823 #ifndef TOLUA_RELEASE
13824 tolua_Error tolua_err;
13825 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'StartX'",NULL);
13826 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
13827 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
13828 #endif
13829 self->StartX = ((int) tolua_tonumber(tolua_S,2,0))
13830 ;
13831 return 0;
13832 }
13833 #endif //#ifndef TOLUA_DISABLE
13834
13835
13836 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_StartY
13837 static int tolua_get_CPlayer_StartY(lua_State* tolua_S)
13838 {
13839 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
13840 #ifndef TOLUA_RELEASE
13841 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'StartY'",NULL);
13842 #endif
13843 tolua_pushnumber(tolua_S,(lua_Number)self->StartY);
13844 return 1;
13845 }
13846 #endif //#ifndef TOLUA_DISABLE
13847
13848
13849 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_StartY
13850 static int tolua_set_CPlayer_StartY(lua_State* tolua_S)
13851 {
13852 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
13853 #ifndef TOLUA_RELEASE
13854 tolua_Error tolua_err;
13855 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'StartY'",NULL);
13856 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
13857 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
13858 #endif
13859 self->StartY = ((int) tolua_tonumber(tolua_S,2,0))
13860 ;
13861 return 0;
13862 }
13863 #endif //#ifndef TOLUA_DISABLE
13864
13865
13866 #ifndef TOLUA_DISABLE_tolua_stratagus_CPlayer_SetStartView00
13867 static int tolua_stratagus_CPlayer_SetStartView00(lua_State* tolua_S)
13868 {
13869 #ifndef TOLUA_RELEASE
13870 tolua_Error tolua_err;
13871 if (
13872 !tolua_isusertype(tolua_S,1,"CPlayer",0,&tolua_err) ||
13873 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
13874 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
13875 !tolua_isnoobj(tolua_S,4,&tolua_err)
13876 )
13877 goto tolua_lerror;
13878 else
13879 #endif
13880 {
13881 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
13882 int x = ((int) tolua_tonumber(tolua_S,2,0));
13883 int y = ((int) tolua_tonumber(tolua_S,3,0));
13884 #ifndef TOLUA_RELEASE
13885 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetStartView'",NULL);
13886 #endif
13887 {
13888 self->SetStartView(x,y);
13889 }
13890 }
13891 return 0;
13892 #ifndef TOLUA_RELEASE
13893 tolua_lerror:
13894 tolua_error(tolua_S,"#ferror in function 'SetStartView'.",&tolua_err);
13895 return 0;
13896 #endif
13897 }
13898 #endif //#ifndef TOLUA_DISABLE
13899
13900
13901 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_EnergyProductionRate
13902 static int tolua_get_CPlayer_EnergyProductionRate(lua_State* tolua_S)
13903 {
13904 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
13905 #ifndef TOLUA_RELEASE
13906 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'EnergyProductionRate'",NULL);
13907 #endif
13908 tolua_pushnumber(tolua_S,(lua_Number)self->GetEnergyProductionRate());
13909 return 1;
13910 }
13911 #endif //#ifndef TOLUA_DISABLE
13912
13913
13914 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_EnergyProductionRate
13915 static int tolua_set_CPlayer_EnergyProductionRate(lua_State* tolua_S)
13916 {
13917 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
13918 #ifndef TOLUA_RELEASE
13919 tolua_Error tolua_err;
13920 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'EnergyProductionRate'",NULL);
13921 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
13922 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
13923 #endif
13924 self->SetEnergyProductionRate(((int) tolua_tonumber(tolua_S,2,0))
13925 )
13926 ;
13927 return 0;
13928 }
13929 #endif //#ifndef TOLUA_DISABLE
13930
13931
13932 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_MagmaProductionRate
13933 static int tolua_get_CPlayer_MagmaProductionRate(lua_State* tolua_S)
13934 {
13935 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
13936 #ifndef TOLUA_RELEASE
13937 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MagmaProductionRate'",NULL);
13938 #endif
13939 tolua_pushnumber(tolua_S,(lua_Number)self->GetMagmaProductionRate());
13940 return 1;
13941 }
13942 #endif //#ifndef TOLUA_DISABLE
13943
13944
13945 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_MagmaProductionRate
13946 static int tolua_set_CPlayer_MagmaProductionRate(lua_State* tolua_S)
13947 {
13948 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
13949 #ifndef TOLUA_RELEASE
13950 tolua_Error tolua_err;
13951 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MagmaProductionRate'",NULL);
13952 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
13953 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
13954 #endif
13955 self->SetMagmaProductionRate(((int) tolua_tonumber(tolua_S,2,0))
13956 )
13957 ;
13958 return 0;
13959 }
13960 #endif //#ifndef TOLUA_DISABLE
13961
13962
13963 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_EnergyStored
13964 static int tolua_get_CPlayer_EnergyStored(lua_State* tolua_S)
13965 {
13966 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
13967 #ifndef TOLUA_RELEASE
13968 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'EnergyStored'",NULL);
13969 #endif
13970 tolua_pushnumber(tolua_S,(lua_Number)self->GetEnergyStored());
13971 return 1;
13972 }
13973 #endif //#ifndef TOLUA_DISABLE
13974
13975
13976 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_EnergyStored
13977 static int tolua_set_CPlayer_EnergyStored(lua_State* tolua_S)
13978 {
13979 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
13980 #ifndef TOLUA_RELEASE
13981 tolua_Error tolua_err;
13982 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'EnergyStored'",NULL);
13983 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
13984 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
13985 #endif
13986 self->SetEnergyStored(((int) tolua_tonumber(tolua_S,2,0))
13987 )
13988 ;
13989 return 0;
13990 }
13991 #endif //#ifndef TOLUA_DISABLE
13992
13993
13994 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_MagmaStored
13995 static int tolua_get_CPlayer_MagmaStored(lua_State* tolua_S)
13996 {
13997 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
13998 #ifndef TOLUA_RELEASE
13999 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MagmaStored'",NULL);
14000 #endif
14001 tolua_pushnumber(tolua_S,(lua_Number)self->GetMagmaStored());
14002 return 1;
14003 }
14004 #endif //#ifndef TOLUA_DISABLE
14005
14006
14007 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_MagmaStored
14008 static int tolua_set_CPlayer_MagmaStored(lua_State* tolua_S)
14009 {
14010 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14011 #ifndef TOLUA_RELEASE
14012 tolua_Error tolua_err;
14013 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MagmaStored'",NULL);
14014 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
14015 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
14016 #endif
14017 self->SetMagmaStored(((int) tolua_tonumber(tolua_S,2,0))
14018 )
14019 ;
14020 return 0;
14021 }
14022 #endif //#ifndef TOLUA_DISABLE
14023
14024
14025 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_EnergyStorageCapacity
14026 static int tolua_get_CPlayer_EnergyStorageCapacity(lua_State* tolua_S)
14027 {
14028 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14029 #ifndef TOLUA_RELEASE
14030 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'EnergyStorageCapacity'",NULL);
14031 #endif
14032 tolua_pushnumber(tolua_S,(lua_Number)self->GetEnergyStorageCapacity());
14033 return 1;
14034 }
14035 #endif //#ifndef TOLUA_DISABLE
14036
14037
14038 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_EnergyStorageCapacity
14039 static int tolua_set_CPlayer_EnergyStorageCapacity(lua_State* tolua_S)
14040 {
14041 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14042 #ifndef TOLUA_RELEASE
14043 tolua_Error tolua_err;
14044 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'EnergyStorageCapacity'",NULL);
14045 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
14046 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
14047 #endif
14048 self->SetEnergyStorageCapacity(((int) tolua_tonumber(tolua_S,2,0))
14049 )
14050 ;
14051 return 0;
14052 }
14053 #endif //#ifndef TOLUA_DISABLE
14054
14055
14056 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_MagmaStorageCapacity
14057 static int tolua_get_CPlayer_MagmaStorageCapacity(lua_State* tolua_S)
14058 {
14059 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14060 #ifndef TOLUA_RELEASE
14061 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MagmaStorageCapacity'",NULL);
14062 #endif
14063 tolua_pushnumber(tolua_S,(lua_Number)self->GetMagmaStorageCapacity());
14064 return 1;
14065 }
14066 #endif //#ifndef TOLUA_DISABLE
14067
14068
14069 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_MagmaStorageCapacity
14070 static int tolua_set_CPlayer_MagmaStorageCapacity(lua_State* tolua_S)
14071 {
14072 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14073 #ifndef TOLUA_RELEASE
14074 tolua_Error tolua_err;
14075 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MagmaStorageCapacity'",NULL);
14076 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
14077 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
14078 #endif
14079 self->SetMagmaStorageCapacity(((int) tolua_tonumber(tolua_S,2,0))
14080 )
14081 ;
14082 return 0;
14083 }
14084 #endif //#ifndef TOLUA_DISABLE
14085
14086
14087 #ifndef TOLUA_DISABLE_tolua_get_stratagus_CPlayer_UnitTypesCount
14088 static int tolua_get_stratagus_CPlayer_UnitTypesCount(lua_State* tolua_S)
14089 {
14090 int tolua_index;
14091 CPlayer* self;
14092 lua_pushstring(tolua_S,".self");
14093 lua_rawget(tolua_S,1);
14094 self = (CPlayer*) lua_touserdata(tolua_S,-1);
14095 #ifndef TOLUA_RELEASE
14096 {
14097 tolua_Error tolua_err;
14098 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
14099 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
14100 }
14101 #endif
14102 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
14103 #ifndef TOLUA_RELEASE
14104 if (tolua_index<0 || tolua_index>=UnitTypeMax)
14105 tolua_error(tolua_S,"array indexing out of range.",NULL);
14106 #endif
14107 tolua_pushnumber(tolua_S,(lua_Number)self->UnitTypesCount[tolua_index]);
14108 return 1;
14109 }
14110 #endif //#ifndef TOLUA_DISABLE
14111
14112
14113 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_AiEnabled
14114 static int tolua_get_CPlayer_AiEnabled(lua_State* tolua_S)
14115 {
14116 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14117 #ifndef TOLUA_RELEASE
14118 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'AiEnabled'",NULL);
14119 #endif
14120 tolua_pushnumber(tolua_S,(lua_Number)self->AiEnabled);
14121 return 1;
14122 }
14123 #endif //#ifndef TOLUA_DISABLE
14124
14125
14126 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_AiEnabled
14127 static int tolua_set_CPlayer_AiEnabled(lua_State* tolua_S)
14128 {
14129 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14130 #ifndef TOLUA_RELEASE
14131 tolua_Error tolua_err;
14132 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'AiEnabled'",NULL);
14133 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
14134 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
14135 #endif
14136 self->AiEnabled = ((int) tolua_tonumber(tolua_S,2,0))
14137 ;
14138 return 0;
14139 }
14140 #endif //#ifndef TOLUA_DISABLE
14141
14142
14143 #ifndef TOLUA_DISABLE_tolua_get_stratagus_CPlayer_Units
14144 static int tolua_get_stratagus_CPlayer_Units(lua_State* tolua_S)
14145 {
14146 int tolua_index;
14147 CPlayer* self;
14148 lua_pushstring(tolua_S,".self");
14149 lua_rawget(tolua_S,1);
14150 self = (CPlayer*) lua_touserdata(tolua_S,-1);
14151 #ifndef TOLUA_RELEASE
14152 {
14153 tolua_Error tolua_err;
14154 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
14155 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
14156 }
14157 #endif
14158 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
14159 #ifndef TOLUA_RELEASE
14160 if (tolua_index<0 || tolua_index>=UnitMax)
14161 tolua_error(tolua_S,"array indexing out of range.",NULL);
14162 #endif
14163 tolua_pushusertype(tolua_S,(void*)self->Units[tolua_index],"CUnit");
14164 return 1;
14165 }
14166 #endif //#ifndef TOLUA_DISABLE
14167
14168
14169 #ifndef TOLUA_DISABLE_tolua_set_stratagus_CPlayer_Units
14170 static int tolua_set_stratagus_CPlayer_Units(lua_State* tolua_S)
14171 {
14172 int tolua_index;
14173 CPlayer* self;
14174 lua_pushstring(tolua_S,".self");
14175 lua_rawget(tolua_S,1);
14176 self = (CPlayer*) lua_touserdata(tolua_S,-1);
14177 #ifndef TOLUA_RELEASE
14178 {
14179 tolua_Error tolua_err;
14180 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
14181 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
14182 }
14183 #endif
14184 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
14185 #ifndef TOLUA_RELEASE
14186 if (tolua_index<0 || tolua_index>=UnitMax)
14187 tolua_error(tolua_S,"array indexing out of range.",NULL);
14188 #endif
14189 self->Units[tolua_index] = ((CUnit*) tolua_tousertype(tolua_S,3,0));
14190 return 0;
14191 }
14192 #endif //#ifndef TOLUA_DISABLE
14193
14194
14195 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_TotalNumUnits
14196 static int tolua_get_CPlayer_TotalNumUnits(lua_State* tolua_S)
14197 {
14198 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14199 #ifndef TOLUA_RELEASE
14200 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TotalNumUnits'",NULL);
14201 #endif
14202 tolua_pushnumber(tolua_S,(lua_Number)self->TotalNumUnits);
14203 return 1;
14204 }
14205 #endif //#ifndef TOLUA_DISABLE
14206
14207
14208 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_TotalNumUnits
14209 static int tolua_set_CPlayer_TotalNumUnits(lua_State* tolua_S)
14210 {
14211 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14212 #ifndef TOLUA_RELEASE
14213 tolua_Error tolua_err;
14214 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TotalNumUnits'",NULL);
14215 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
14216 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
14217 #endif
14218 self->TotalNumUnits = ((int) tolua_tonumber(tolua_S,2,0))
14219 ;
14220 return 0;
14221 }
14222 #endif //#ifndef TOLUA_DISABLE
14223
14224
14225 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_NumBuildings
14226 static int tolua_get_CPlayer_NumBuildings(lua_State* tolua_S)
14227 {
14228 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14229 #ifndef TOLUA_RELEASE
14230 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'NumBuildings'",NULL);
14231 #endif
14232 tolua_pushnumber(tolua_S,(lua_Number)self->NumBuildings);
14233 return 1;
14234 }
14235 #endif //#ifndef TOLUA_DISABLE
14236
14237
14238 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_NumBuildings
14239 static int tolua_set_CPlayer_NumBuildings(lua_State* tolua_S)
14240 {
14241 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14242 #ifndef TOLUA_RELEASE
14243 tolua_Error tolua_err;
14244 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'NumBuildings'",NULL);
14245 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
14246 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
14247 #endif
14248 self->NumBuildings = ((int) tolua_tonumber(tolua_S,2,0))
14249 ;
14250 return 0;
14251 }
14252 #endif //#ifndef TOLUA_DISABLE
14253
14254
14255 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_UnitLimit
14256 static int tolua_get_CPlayer_UnitLimit(lua_State* tolua_S)
14257 {
14258 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14259 #ifndef TOLUA_RELEASE
14260 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'UnitLimit'",NULL);
14261 #endif
14262 tolua_pushnumber(tolua_S,(lua_Number)self->UnitLimit);
14263 return 1;
14264 }
14265 #endif //#ifndef TOLUA_DISABLE
14266
14267
14268 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_UnitLimit
14269 static int tolua_set_CPlayer_UnitLimit(lua_State* tolua_S)
14270 {
14271 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14272 #ifndef TOLUA_RELEASE
14273 tolua_Error tolua_err;
14274 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'UnitLimit'",NULL);
14275 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
14276 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
14277 #endif
14278 self->UnitLimit = ((int) tolua_tonumber(tolua_S,2,0))
14279 ;
14280 return 0;
14281 }
14282 #endif //#ifndef TOLUA_DISABLE
14283
14284
14285 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_BuildingLimit
14286 static int tolua_get_CPlayer_BuildingLimit(lua_State* tolua_S)
14287 {
14288 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14289 #ifndef TOLUA_RELEASE
14290 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'BuildingLimit'",NULL);
14291 #endif
14292 tolua_pushnumber(tolua_S,(lua_Number)self->BuildingLimit);
14293 return 1;
14294 }
14295 #endif //#ifndef TOLUA_DISABLE
14296
14297
14298 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_BuildingLimit
14299 static int tolua_set_CPlayer_BuildingLimit(lua_State* tolua_S)
14300 {
14301 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14302 #ifndef TOLUA_RELEASE
14303 tolua_Error tolua_err;
14304 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'BuildingLimit'",NULL);
14305 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
14306 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
14307 #endif
14308 self->BuildingLimit = ((int) tolua_tonumber(tolua_S,2,0))
14309 ;
14310 return 0;
14311 }
14312 #endif //#ifndef TOLUA_DISABLE
14313
14314
14315 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_TotalUnitLimit
14316 static int tolua_get_CPlayer_TotalUnitLimit(lua_State* tolua_S)
14317 {
14318 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14319 #ifndef TOLUA_RELEASE
14320 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TotalUnitLimit'",NULL);
14321 #endif
14322 tolua_pushnumber(tolua_S,(lua_Number)self->TotalUnitLimit);
14323 return 1;
14324 }
14325 #endif //#ifndef TOLUA_DISABLE
14326
14327
14328 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_TotalUnitLimit
14329 static int tolua_set_CPlayer_TotalUnitLimit(lua_State* tolua_S)
14330 {
14331 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14332 #ifndef TOLUA_RELEASE
14333 tolua_Error tolua_err;
14334 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TotalUnitLimit'",NULL);
14335 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
14336 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
14337 #endif
14338 self->TotalUnitLimit = ((int) tolua_tonumber(tolua_S,2,0))
14339 ;
14340 return 0;
14341 }
14342 #endif //#ifndef TOLUA_DISABLE
14343
14344
14345 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_Score
14346 static int tolua_get_CPlayer_Score(lua_State* tolua_S)
14347 {
14348 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14349 #ifndef TOLUA_RELEASE
14350 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Score'",NULL);
14351 #endif
14352 tolua_pushnumber(tolua_S,(lua_Number)self->Score);
14353 return 1;
14354 }
14355 #endif //#ifndef TOLUA_DISABLE
14356
14357
14358 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_Score
14359 static int tolua_set_CPlayer_Score(lua_State* tolua_S)
14360 {
14361 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14362 #ifndef TOLUA_RELEASE
14363 tolua_Error tolua_err;
14364 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Score'",NULL);
14365 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
14366 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
14367 #endif
14368 self->Score = ((int) tolua_tonumber(tolua_S,2,0))
14369 ;
14370 return 0;
14371 }
14372 #endif //#ifndef TOLUA_DISABLE
14373
14374
14375 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_TotalUnits
14376 static int tolua_get_CPlayer_TotalUnits(lua_State* tolua_S)
14377 {
14378 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14379 #ifndef TOLUA_RELEASE
14380 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TotalUnits'",NULL);
14381 #endif
14382 tolua_pushnumber(tolua_S,(lua_Number)self->TotalUnits);
14383 return 1;
14384 }
14385 #endif //#ifndef TOLUA_DISABLE
14386
14387
14388 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_TotalUnits
14389 static int tolua_set_CPlayer_TotalUnits(lua_State* tolua_S)
14390 {
14391 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14392 #ifndef TOLUA_RELEASE
14393 tolua_Error tolua_err;
14394 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TotalUnits'",NULL);
14395 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
14396 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
14397 #endif
14398 self->TotalUnits = ((int) tolua_tonumber(tolua_S,2,0))
14399 ;
14400 return 0;
14401 }
14402 #endif //#ifndef TOLUA_DISABLE
14403
14404
14405 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_TotalBuildings
14406 static int tolua_get_CPlayer_TotalBuildings(lua_State* tolua_S)
14407 {
14408 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14409 #ifndef TOLUA_RELEASE
14410 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TotalBuildings'",NULL);
14411 #endif
14412 tolua_pushnumber(tolua_S,(lua_Number)self->TotalBuildings);
14413 return 1;
14414 }
14415 #endif //#ifndef TOLUA_DISABLE
14416
14417
14418 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_TotalBuildings
14419 static int tolua_set_CPlayer_TotalBuildings(lua_State* tolua_S)
14420 {
14421 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14422 #ifndef TOLUA_RELEASE
14423 tolua_Error tolua_err;
14424 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TotalBuildings'",NULL);
14425 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
14426 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
14427 #endif
14428 self->TotalBuildings = ((int) tolua_tonumber(tolua_S,2,0))
14429 ;
14430 return 0;
14431 }
14432 #endif //#ifndef TOLUA_DISABLE
14433
14434
14435 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_TotalEnergy
14436 static int tolua_get_CPlayer_TotalEnergy(lua_State* tolua_S)
14437 {
14438 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14439 #ifndef TOLUA_RELEASE
14440 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TotalEnergy'",NULL);
14441 #endif
14442 tolua_pushnumber(tolua_S,(lua_Number)self->GetTotalEnergy());
14443 return 1;
14444 }
14445 #endif //#ifndef TOLUA_DISABLE
14446
14447
14448 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_TotalEnergy
14449 static int tolua_set_CPlayer_TotalEnergy(lua_State* tolua_S)
14450 {
14451 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14452 #ifndef TOLUA_RELEASE
14453 tolua_Error tolua_err;
14454 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TotalEnergy'",NULL);
14455 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
14456 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
14457 #endif
14458 self->SetTotalEnergy(((int) tolua_tonumber(tolua_S,2,0))
14459 )
14460 ;
14461 return 0;
14462 }
14463 #endif //#ifndef TOLUA_DISABLE
14464
14465
14466 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_TotalMagma
14467 static int tolua_get_CPlayer_TotalMagma(lua_State* tolua_S)
14468 {
14469 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14470 #ifndef TOLUA_RELEASE
14471 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TotalMagma'",NULL);
14472 #endif
14473 tolua_pushnumber(tolua_S,(lua_Number)self->GetTotalMagma());
14474 return 1;
14475 }
14476 #endif //#ifndef TOLUA_DISABLE
14477
14478
14479 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_TotalMagma
14480 static int tolua_set_CPlayer_TotalMagma(lua_State* tolua_S)
14481 {
14482 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14483 #ifndef TOLUA_RELEASE
14484 tolua_Error tolua_err;
14485 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TotalMagma'",NULL);
14486 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
14487 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
14488 #endif
14489 self->SetTotalMagma(((int) tolua_tonumber(tolua_S,2,0))
14490 )
14491 ;
14492 return 0;
14493 }
14494 #endif //#ifndef TOLUA_DISABLE
14495
14496
14497 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_TotalRazings
14498 static int tolua_get_CPlayer_TotalRazings(lua_State* tolua_S)
14499 {
14500 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14501 #ifndef TOLUA_RELEASE
14502 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TotalRazings'",NULL);
14503 #endif
14504 tolua_pushnumber(tolua_S,(lua_Number)self->TotalRazings);
14505 return 1;
14506 }
14507 #endif //#ifndef TOLUA_DISABLE
14508
14509
14510 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_TotalRazings
14511 static int tolua_set_CPlayer_TotalRazings(lua_State* tolua_S)
14512 {
14513 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14514 #ifndef TOLUA_RELEASE
14515 tolua_Error tolua_err;
14516 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TotalRazings'",NULL);
14517 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
14518 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
14519 #endif
14520 self->TotalRazings = ((int) tolua_tonumber(tolua_S,2,0))
14521 ;
14522 return 0;
14523 }
14524 #endif //#ifndef TOLUA_DISABLE
14525
14526
14527 #ifndef TOLUA_DISABLE_tolua_get_CPlayer_TotalKills
14528 static int tolua_get_CPlayer_TotalKills(lua_State* tolua_S)
14529 {
14530 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14531 #ifndef TOLUA_RELEASE
14532 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TotalKills'",NULL);
14533 #endif
14534 tolua_pushnumber(tolua_S,(lua_Number)self->TotalKills);
14535 return 1;
14536 }
14537 #endif //#ifndef TOLUA_DISABLE
14538
14539
14540 #ifndef TOLUA_DISABLE_tolua_set_CPlayer_TotalKills
14541 static int tolua_set_CPlayer_TotalKills(lua_State* tolua_S)
14542 {
14543 CPlayer* self = (CPlayer*) tolua_tousertype(tolua_S,1,0);
14544 #ifndef TOLUA_RELEASE
14545 tolua_Error tolua_err;
14546 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'TotalKills'",NULL);
14547 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
14548 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
14549 #endif
14550 self->TotalKills = ((int) tolua_tonumber(tolua_S,2,0))
14551 ;
14552 return 0;
14553 }
14554 #endif //#ifndef TOLUA_DISABLE
14555
14556
14557 #ifndef TOLUA_DISABLE_tolua_stratagus_CPlayer_IsEnemy00
14558 static int tolua_stratagus_CPlayer_IsEnemy00(lua_State* tolua_S)
14559 {
14560 #ifndef TOLUA_RELEASE
14561 tolua_Error tolua_err;
14562 if (
14563 !tolua_isusertype(tolua_S,1,"const CPlayer",0,&tolua_err) ||
14564 !tolua_isusertype(tolua_S,2,"const CPlayer",0,&tolua_err) ||
14565 !tolua_isnoobj(tolua_S,3,&tolua_err)
14566 )
14567 goto tolua_lerror;
14568 else
14569 #endif
14570 {
14571 const CPlayer* self = (const CPlayer*) tolua_tousertype(tolua_S,1,0);
14572 const CPlayer* x = ((const CPlayer*) tolua_tousertype(tolua_S,2,0));
14573 #ifndef TOLUA_RELEASE
14574 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsEnemy'",NULL);
14575 #endif
14576 {
14577 bool tolua_ret = (bool) self->IsEnemy(x);
14578 tolua_pushboolean(tolua_S,(bool)tolua_ret);
14579 }
14580 }
14581 return 1;
14582 #ifndef TOLUA_RELEASE
14583 tolua_lerror:
14584 tolua_error(tolua_S,"#ferror in function 'IsEnemy'.",&tolua_err);
14585 return 0;
14586 #endif
14587 }
14588 #endif //#ifndef TOLUA_DISABLE
14589
14590
14591 #ifndef TOLUA_DISABLE_tolua_stratagus_CPlayer_IsEnemy01
14592 static int tolua_stratagus_CPlayer_IsEnemy01(lua_State* tolua_S)
14593 {
14594 tolua_Error tolua_err;
14595 if (
14596 !tolua_isusertype(tolua_S,1,"const CPlayer",0,&tolua_err) ||
14597 !tolua_isusertype(tolua_S,2,"const CUnit",0,&tolua_err) ||
14598 !tolua_isnoobj(tolua_S,3,&tolua_err)
14599 )
14600 goto tolua_lerror;
14601 else
14602 {
14603 const CPlayer* self = (const CPlayer*) tolua_tousertype(tolua_S,1,0);
14604 const CUnit* x = ((const CUnit*) tolua_tousertype(tolua_S,2,0));
14605 #ifndef TOLUA_RELEASE
14606 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsEnemy'",NULL);
14607 #endif
14608 {
14609 bool tolua_ret = (bool) self->IsEnemy(x);
14610 tolua_pushboolean(tolua_S,(bool)tolua_ret);
14611 }
14612 }
14613 return 1;
14614 tolua_lerror:
14615 return tolua_stratagus_CPlayer_IsEnemy00(tolua_S);
14616 }
14617 #endif //#ifndef TOLUA_DISABLE
14618
14619
14620 #ifndef TOLUA_DISABLE_tolua_stratagus_CPlayer_IsAllied00
14621 static int tolua_stratagus_CPlayer_IsAllied00(lua_State* tolua_S)
14622 {
14623 #ifndef TOLUA_RELEASE
14624 tolua_Error tolua_err;
14625 if (
14626 !tolua_isusertype(tolua_S,1,"const CPlayer",0,&tolua_err) ||
14627 !tolua_isusertype(tolua_S,2,"const CPlayer",0,&tolua_err) ||
14628 !tolua_isnoobj(tolua_S,3,&tolua_err)
14629 )
14630 goto tolua_lerror;
14631 else
14632 #endif
14633 {
14634 const CPlayer* self = (const CPlayer*) tolua_tousertype(tolua_S,1,0);
14635 const CPlayer* x = ((const CPlayer*) tolua_tousertype(tolua_S,2,0));
14636 #ifndef TOLUA_RELEASE
14637 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsAllied'",NULL);
14638 #endif
14639 {
14640 bool tolua_ret = (bool) self->IsAllied(x);
14641 tolua_pushboolean(tolua_S,(bool)tolua_ret);
14642 }
14643 }
14644 return 1;
14645 #ifndef TOLUA_RELEASE
14646 tolua_lerror:
14647 tolua_error(tolua_S,"#ferror in function 'IsAllied'.",&tolua_err);
14648 return 0;
14649 #endif
14650 }
14651 #endif //#ifndef TOLUA_DISABLE
14652
14653
14654 #ifndef TOLUA_DISABLE_tolua_stratagus_CPlayer_IsAllied01
14655 static int tolua_stratagus_CPlayer_IsAllied01(lua_State* tolua_S)
14656 {
14657 tolua_Error tolua_err;
14658 if (
14659 !tolua_isusertype(tolua_S,1,"const CPlayer",0,&tolua_err) ||
14660 !tolua_isusertype(tolua_S,2,"const CUnit",0,&tolua_err) ||
14661 !tolua_isnoobj(tolua_S,3,&tolua_err)
14662 )
14663 goto tolua_lerror;
14664 else
14665 {
14666 const CPlayer* self = (const CPlayer*) tolua_tousertype(tolua_S,1,0);
14667 const CUnit* x = ((const CUnit*) tolua_tousertype(tolua_S,2,0));
14668 #ifndef TOLUA_RELEASE
14669 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsAllied'",NULL);
14670 #endif
14671 {
14672 bool tolua_ret = (bool) self->IsAllied(x);
14673 tolua_pushboolean(tolua_S,(bool)tolua_ret);
14674 }
14675 }
14676 return 1;
14677 tolua_lerror:
14678 return tolua_stratagus_CPlayer_IsAllied00(tolua_S);
14679 }
14680 #endif //#ifndef TOLUA_DISABLE
14681
14682
14683 #ifndef TOLUA_DISABLE_tolua_stratagus_CPlayer_IsSharedVision00
14684 static int tolua_stratagus_CPlayer_IsSharedVision00(lua_State* tolua_S)
14685 {
14686 #ifndef TOLUA_RELEASE
14687 tolua_Error tolua_err;
14688 if (
14689 !tolua_isusertype(tolua_S,1,"const CPlayer",0,&tolua_err) ||
14690 !tolua_isusertype(tolua_S,2,"const CPlayer",0,&tolua_err) ||
14691 !tolua_isnoobj(tolua_S,3,&tolua_err)
14692 )
14693 goto tolua_lerror;
14694 else
14695 #endif
14696 {
14697 const CPlayer* self = (const CPlayer*) tolua_tousertype(tolua_S,1,0);
14698 const CPlayer* x = ((const CPlayer*) tolua_tousertype(tolua_S,2,0));
14699 #ifndef TOLUA_RELEASE
14700 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsSharedVision'",NULL);
14701 #endif
14702 {
14703 bool tolua_ret = (bool) self->IsSharedVision(x);
14704 tolua_pushboolean(tolua_S,(bool)tolua_ret);
14705 }
14706 }
14707 return 1;
14708 #ifndef TOLUA_RELEASE
14709 tolua_lerror:
14710 tolua_error(tolua_S,"#ferror in function 'IsSharedVision'.",&tolua_err);
14711 return 0;
14712 #endif
14713 }
14714 #endif //#ifndef TOLUA_DISABLE
14715
14716
14717 #ifndef TOLUA_DISABLE_tolua_stratagus_CPlayer_IsSharedVision01
14718 static int tolua_stratagus_CPlayer_IsSharedVision01(lua_State* tolua_S)
14719 {
14720 tolua_Error tolua_err;
14721 if (
14722 !tolua_isusertype(tolua_S,1,"const CPlayer",0,&tolua_err) ||
14723 !tolua_isusertype(tolua_S,2,"const CUnit",0,&tolua_err) ||
14724 !tolua_isnoobj(tolua_S,3,&tolua_err)
14725 )
14726 goto tolua_lerror;
14727 else
14728 {
14729 const CPlayer* self = (const CPlayer*) tolua_tousertype(tolua_S,1,0);
14730 const CUnit* x = ((const CUnit*) tolua_tousertype(tolua_S,2,0));
14731 #ifndef TOLUA_RELEASE
14732 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsSharedVision'",NULL);
14733 #endif
14734 {
14735 bool tolua_ret = (bool) self->IsSharedVision(x);
14736 tolua_pushboolean(tolua_S,(bool)tolua_ret);
14737 }
14738 }
14739 return 1;
14740 tolua_lerror:
14741 return tolua_stratagus_CPlayer_IsSharedVision00(tolua_S);
14742 }
14743 #endif //#ifndef TOLUA_DISABLE
14744
14745
14746 #ifndef TOLUA_DISABLE_tolua_stratagus_CPlayer_IsBothSharedVision00
14747 static int tolua_stratagus_CPlayer_IsBothSharedVision00(lua_State* tolua_S)
14748 {
14749 #ifndef TOLUA_RELEASE
14750 tolua_Error tolua_err;
14751 if (
14752 !tolua_isusertype(tolua_S,1,"const CPlayer",0,&tolua_err) ||
14753 !tolua_isusertype(tolua_S,2,"const CPlayer",0,&tolua_err) ||
14754 !tolua_isnoobj(tolua_S,3,&tolua_err)
14755 )
14756 goto tolua_lerror;
14757 else
14758 #endif
14759 {
14760 const CPlayer* self = (const CPlayer*) tolua_tousertype(tolua_S,1,0);
14761 const CPlayer* x = ((const CPlayer*) tolua_tousertype(tolua_S,2,0));
14762 #ifndef TOLUA_RELEASE
14763 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsBothSharedVision'",NULL);
14764 #endif
14765 {
14766 bool tolua_ret = (bool) self->IsBothSharedVision(x);
14767 tolua_pushboolean(tolua_S,(bool)tolua_ret);
14768 }
14769 }
14770 return 1;
14771 #ifndef TOLUA_RELEASE
14772 tolua_lerror:
14773 tolua_error(tolua_S,"#ferror in function 'IsBothSharedVision'.",&tolua_err);
14774 return 0;
14775 #endif
14776 }
14777 #endif //#ifndef TOLUA_DISABLE
14778
14779
14780 #ifndef TOLUA_DISABLE_tolua_stratagus_CPlayer_IsBothSharedVision01
14781 static int tolua_stratagus_CPlayer_IsBothSharedVision01(lua_State* tolua_S)
14782 {
14783 tolua_Error tolua_err;
14784 if (
14785 !tolua_isusertype(tolua_S,1,"const CPlayer",0,&tolua_err) ||
14786 !tolua_isusertype(tolua_S,2,"const CUnit",0,&tolua_err) ||
14787 !tolua_isnoobj(tolua_S,3,&tolua_err)
14788 )
14789 goto tolua_lerror;
14790 else
14791 {
14792 const CPlayer* self = (const CPlayer*) tolua_tousertype(tolua_S,1,0);
14793 const CUnit* x = ((const CUnit*) tolua_tousertype(tolua_S,2,0));
14794 #ifndef TOLUA_RELEASE
14795 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsBothSharedVision'",NULL);
14796 #endif
14797 {
14798 bool tolua_ret = (bool) self->IsBothSharedVision(x);
14799 tolua_pushboolean(tolua_S,(bool)tolua_ret);
14800 }
14801 }
14802 return 1;
14803 tolua_lerror:
14804 return tolua_stratagus_CPlayer_IsBothSharedVision00(tolua_S);
14805 }
14806 #endif //#ifndef TOLUA_DISABLE
14807
14808
14809 #ifndef TOLUA_DISABLE_tolua_stratagus_CPlayer_IsTeamed00
14810 static int tolua_stratagus_CPlayer_IsTeamed00(lua_State* tolua_S)
14811 {
14812 #ifndef TOLUA_RELEASE
14813 tolua_Error tolua_err;
14814 if (
14815 !tolua_isusertype(tolua_S,1,"const CPlayer",0,&tolua_err) ||
14816 !tolua_isusertype(tolua_S,2,"const CPlayer",0,&tolua_err) ||
14817 !tolua_isnoobj(tolua_S,3,&tolua_err)
14818 )
14819 goto tolua_lerror;
14820 else
14821 #endif
14822 {
14823 const CPlayer* self = (const CPlayer*) tolua_tousertype(tolua_S,1,0);
14824 const CPlayer* x = ((const CPlayer*) tolua_tousertype(tolua_S,2,0));
14825 #ifndef TOLUA_RELEASE
14826 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsTeamed'",NULL);
14827 #endif
14828 {
14829 bool tolua_ret = (bool) self->IsTeamed(x);
14830 tolua_pushboolean(tolua_S,(bool)tolua_ret);
14831 }
14832 }
14833 return 1;
14834 #ifndef TOLUA_RELEASE
14835 tolua_lerror:
14836 tolua_error(tolua_S,"#ferror in function 'IsTeamed'.",&tolua_err);
14837 return 0;
14838 #endif
14839 }
14840 #endif //#ifndef TOLUA_DISABLE
14841
14842
14843 #ifndef TOLUA_DISABLE_tolua_stratagus_CPlayer_IsTeamed01
14844 static int tolua_stratagus_CPlayer_IsTeamed01(lua_State* tolua_S)
14845 {
14846 tolua_Error tolua_err;
14847 if (
14848 !tolua_isusertype(tolua_S,1,"const CPlayer",0,&tolua_err) ||
14849 !tolua_isusertype(tolua_S,2,"const CUnit",0,&tolua_err) ||
14850 !tolua_isnoobj(tolua_S,3,&tolua_err)
14851 )
14852 goto tolua_lerror;
14853 else
14854 {
14855 const CPlayer* self = (const CPlayer*) tolua_tousertype(tolua_S,1,0);
14856 const CUnit* x = ((const CUnit*) tolua_tousertype(tolua_S,2,0));
14857 #ifndef TOLUA_RELEASE
14858 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsTeamed'",NULL);
14859 #endif
14860 {
14861 bool tolua_ret = (bool) self->IsTeamed(x);
14862 tolua_pushboolean(tolua_S,(bool)tolua_ret);
14863 }
14864 }
14865 return 1;
14866 tolua_lerror:
14867 return tolua_stratagus_CPlayer_IsTeamed00(tolua_S);
14868 }
14869 #endif //#ifndef TOLUA_DISABLE
14870
14871
14872 #ifndef TOLUA_DISABLE_tolua_get_stratagus_Players
14873 static int tolua_get_stratagus_Players(lua_State* tolua_S)
14874 {
14875 int tolua_index;
14876 #ifndef TOLUA_RELEASE
14877 {
14878 tolua_Error tolua_err;
14879 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
14880 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
14881 }
14882 #endif
14883 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
14884 #ifndef TOLUA_RELEASE
14885 if (tolua_index<0 || tolua_index>=PlayerMax)
14886 tolua_error(tolua_S,"array indexing out of range.",NULL);
14887 #endif
14888 tolua_pushusertype(tolua_S,(void*)&Players[tolua_index],"CPlayer");
14889 return 1;
14890 }
14891 #endif //#ifndef TOLUA_DISABLE
14892
14893
14894 #ifndef TOLUA_DISABLE_tolua_set_stratagus_Players
14895 static int tolua_set_stratagus_Players(lua_State* tolua_S)
14896 {
14897 int tolua_index;
14898 #ifndef TOLUA_RELEASE
14899 {
14900 tolua_Error tolua_err;
14901 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
14902 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
14903 }
14904 #endif
14905 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
14906 #ifndef TOLUA_RELEASE
14907 if (tolua_index<0 || tolua_index>=PlayerMax)
14908 tolua_error(tolua_S,"array indexing out of range.",NULL);
14909 #endif
14910 Players[tolua_index] = *((CPlayer*) tolua_tousertype(tolua_S,3,0));
14911 return 0;
14912 }
14913 #endif //#ifndef TOLUA_DISABLE
14914
14915
14916 #ifndef TOLUA_DISABLE_tolua_get_ThisPlayer_ptr
14917 static int tolua_get_ThisPlayer_ptr(lua_State* tolua_S)
14918 {
14919 tolua_pushusertype(tolua_S,(void*)ThisPlayer,"CPlayer");
14920 return 1;
14921 }
14922 #endif //#ifndef TOLUA_DISABLE
14923
14924
14925 #ifndef TOLUA_DISABLE_tolua_set_ThisPlayer_ptr
14926 static int tolua_set_ThisPlayer_ptr(lua_State* tolua_S)
14927 {
14928 #ifndef TOLUA_RELEASE
14929 tolua_Error tolua_err;
14930 if (!tolua_isusertype(tolua_S,2,"CPlayer",0,&tolua_err))
14931 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
14932 #endif
14933 ThisPlayer = ((CPlayer*) tolua_tousertype(tolua_S,2,0))
14934 ;
14935 return 0;
14936 }
14937 #endif //#ifndef TOLUA_DISABLE
14938
14939
14940 #ifndef TOLUA_DISABLE_tolua_get_CUnitType_Ident
14941 static int tolua_get_CUnitType_Ident(lua_State* tolua_S)
14942 {
14943 CUnitType* self = (CUnitType*) tolua_tousertype(tolua_S,1,0);
14944 #ifndef TOLUA_RELEASE
14945 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Ident'",NULL);
14946 #endif
14947 tolua_pushcppstring(tolua_S,(const char*)self->Ident);
14948 return 1;
14949 }
14950 #endif //#ifndef TOLUA_DISABLE
14951
14952
14953 #ifndef TOLUA_DISABLE_tolua_set_CUnitType_Ident
14954 static int tolua_set_CUnitType_Ident(lua_State* tolua_S)
14955 {
14956 CUnitType* self = (CUnitType*) tolua_tousertype(tolua_S,1,0);
14957 #ifndef TOLUA_RELEASE
14958 tolua_Error tolua_err;
14959 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Ident'",NULL);
14960 if (!tolua_iscppstring(tolua_S,2,0,&tolua_err))
14961 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
14962 #endif
14963 self->Ident = ((std::string) tolua_tocppstring(tolua_S,2,0))
14964 ;
14965 return 0;
14966 }
14967 #endif //#ifndef TOLUA_DISABLE
14968
14969
14970 #ifndef TOLUA_DISABLE_tolua_get_CUnitType_Name
14971 static int tolua_get_CUnitType_Name(lua_State* tolua_S)
14972 {
14973 CUnitType* self = (CUnitType*) tolua_tousertype(tolua_S,1,0);
14974 #ifndef TOLUA_RELEASE
14975 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Name'",NULL);
14976 #endif
14977 tolua_pushcppstring(tolua_S,(const char*)self->Name);
14978 return 1;
14979 }
14980 #endif //#ifndef TOLUA_DISABLE
14981
14982
14983 #ifndef TOLUA_DISABLE_tolua_set_CUnitType_Name
14984 static int tolua_set_CUnitType_Name(lua_State* tolua_S)
14985 {
14986 CUnitType* self = (CUnitType*) tolua_tousertype(tolua_S,1,0);
14987 #ifndef TOLUA_RELEASE
14988 tolua_Error tolua_err;
14989 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Name'",NULL);
14990 if (!tolua_iscppstring(tolua_S,2,0,&tolua_err))
14991 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
14992 #endif
14993 self->Name = ((std::string) tolua_tocppstring(tolua_S,2,0))
14994 ;
14995 return 0;
14996 }
14997 #endif //#ifndef TOLUA_DISABLE
14998
14999
15000 #ifndef TOLUA_DISABLE_tolua_get_CUnitType_Slot
15001 static int tolua_get_CUnitType_Slot(lua_State* tolua_S)
15002 {
15003 CUnitType* self = (CUnitType*) tolua_tousertype(tolua_S,1,0);
15004 #ifndef TOLUA_RELEASE
15005 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Slot'",NULL);
15006 #endif
15007 tolua_pushnumber(tolua_S,(lua_Number)self->Slot);
15008 return 1;
15009 }
15010 #endif //#ifndef TOLUA_DISABLE
15011
15012
15013 #ifndef TOLUA_DISABLE_tolua_get_CUnitType_MinAttackRange
15014 static int tolua_get_CUnitType_MinAttackRange(lua_State* tolua_S)
15015 {
15016 CUnitType* self = (CUnitType*) tolua_tousertype(tolua_S,1,0);
15017 #ifndef TOLUA_RELEASE
15018 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MinAttackRange'",NULL);
15019 #endif
15020 tolua_pushnumber(tolua_S,(lua_Number)self->MinAttackRange);
15021 return 1;
15022 }
15023 #endif //#ifndef TOLUA_DISABLE
15024
15025
15026 #ifndef TOLUA_DISABLE_tolua_set_CUnitType_MinAttackRange
15027 static int tolua_set_CUnitType_MinAttackRange(lua_State* tolua_S)
15028 {
15029 CUnitType* self = (CUnitType*) tolua_tousertype(tolua_S,1,0);
15030 #ifndef TOLUA_RELEASE
15031 tolua_Error tolua_err;
15032 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MinAttackRange'",NULL);
15033 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
15034 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
15035 #endif
15036 self->MinAttackRange = ((int) tolua_tonumber(tolua_S,2,0))
15037 ;
15038 return 0;
15039 }
15040 #endif //#ifndef TOLUA_DISABLE
15041
15042
15043 #ifndef TOLUA_DISABLE_tolua_get_CUnitType_MaxEnergyUtilizationRate
15044 static int tolua_get_CUnitType_MaxEnergyUtilizationRate(lua_State* tolua_S)
15045 {
15046 CUnitType* self = (CUnitType*) tolua_tousertype(tolua_S,1,0);
15047 #ifndef TOLUA_RELEASE
15048 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MaxEnergyUtilizationRate'",NULL);
15049 #endif
15050 tolua_pushnumber(tolua_S,(lua_Number)self->GetMaxEnergyUtilizationRate());
15051 return 1;
15052 }
15053 #endif //#ifndef TOLUA_DISABLE
15054
15055
15056 #ifndef TOLUA_DISABLE_tolua_set_CUnitType_MaxEnergyUtilizationRate
15057 static int tolua_set_CUnitType_MaxEnergyUtilizationRate(lua_State* tolua_S)
15058 {
15059 CUnitType* self = (CUnitType*) tolua_tousertype(tolua_S,1,0);
15060 #ifndef TOLUA_RELEASE
15061 tolua_Error tolua_err;
15062 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MaxEnergyUtilizationRate'",NULL);
15063 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
15064 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
15065 #endif
15066 self->SetMaxEnergyUtilizationRate(((int) tolua_tonumber(tolua_S,2,0))
15067 )
15068 ;
15069 return 0;
15070 }
15071 #endif //#ifndef TOLUA_DISABLE
15072
15073
15074 #ifndef TOLUA_DISABLE_tolua_get_CUnitType_MaxMagmaUtilizationRate
15075 static int tolua_get_CUnitType_MaxMagmaUtilizationRate(lua_State* tolua_S)
15076 {
15077 CUnitType* self = (CUnitType*) tolua_tousertype(tolua_S,1,0);
15078 #ifndef TOLUA_RELEASE
15079 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MaxMagmaUtilizationRate'",NULL);
15080 #endif
15081 tolua_pushnumber(tolua_S,(lua_Number)self->GetMaxMagmaUtilizationRate());
15082 return 1;
15083 }
15084 #endif //#ifndef TOLUA_DISABLE
15085
15086
15087 #ifndef TOLUA_DISABLE_tolua_set_CUnitType_MaxMagmaUtilizationRate
15088 static int tolua_set_CUnitType_MaxMagmaUtilizationRate(lua_State* tolua_S)
15089 {
15090 CUnitType* self = (CUnitType*) tolua_tousertype(tolua_S,1,0);
15091 #ifndef TOLUA_RELEASE
15092 tolua_Error tolua_err;
15093 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MaxMagmaUtilizationRate'",NULL);
15094 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
15095 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
15096 #endif
15097 self->SetMaxMagmaUtilizationRate(((int) tolua_tonumber(tolua_S,2,0))
15098 )
15099 ;
15100 return 0;
15101 }
15102 #endif //#ifndef TOLUA_DISABLE
15103
15104
15105 #ifndef TOLUA_DISABLE_tolua_get_CUnitType_EnergyProductionRate
15106 static int tolua_get_CUnitType_EnergyProductionRate(lua_State* tolua_S)
15107 {
15108 CUnitType* self = (CUnitType*) tolua_tousertype(tolua_S,1,0);
15109 #ifndef TOLUA_RELEASE
15110 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'EnergyProductionRate'",NULL);
15111 #endif
15112 tolua_pushnumber(tolua_S,(lua_Number)self->GetEnergyProductionRate());
15113 return 1;
15114 }
15115 #endif //#ifndef TOLUA_DISABLE
15116
15117
15118 #ifndef TOLUA_DISABLE_tolua_set_CUnitType_EnergyProductionRate
15119 static int tolua_set_CUnitType_EnergyProductionRate(lua_State* tolua_S)
15120 {
15121 CUnitType* self = (CUnitType*) tolua_tousertype(tolua_S,1,0);
15122 #ifndef TOLUA_RELEASE
15123 tolua_Error tolua_err;
15124 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'EnergyProductionRate'",NULL);
15125 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
15126 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
15127 #endif
15128 self->SetEnergyProductionRate(((int) tolua_tonumber(tolua_S,2,0))
15129 )
15130 ;
15131 return 0;
15132 }
15133 #endif //#ifndef TOLUA_DISABLE
15134
15135
15136 #ifndef TOLUA_DISABLE_tolua_get_CUnitType_MagmaProductionRate
15137 static int tolua_get_CUnitType_MagmaProductionRate(lua_State* tolua_S)
15138 {
15139 CUnitType* self = (CUnitType*) tolua_tousertype(tolua_S,1,0);
15140 #ifndef TOLUA_RELEASE
15141 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MagmaProductionRate'",NULL);
15142 #endif
15143 tolua_pushnumber(tolua_S,(lua_Number)self->GetMagmaProductionRate());
15144 return 1;
15145 }
15146 #endif //#ifndef TOLUA_DISABLE
15147
15148
15149 #ifndef TOLUA_DISABLE_tolua_set_CUnitType_MagmaProductionRate
15150 static int tolua_set_CUnitType_MagmaProductionRate(lua_State* tolua_S)
15151 {
15152 CUnitType* self = (CUnitType*) tolua_tousertype(tolua_S,1,0);
15153 #ifndef TOLUA_RELEASE
15154 tolua_Error tolua_err;
15155 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MagmaProductionRate'",NULL);
15156 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
15157 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
15158 #endif
15159 self->SetMagmaProductionRate(((int) tolua_tonumber(tolua_S,2,0))
15160 )
15161 ;
15162 return 0;
15163 }
15164 #endif //#ifndef TOLUA_DISABLE
15165
15166
15167 #ifndef TOLUA_DISABLE_tolua_get_CUnitType_EnergyValue
15168 static int tolua_get_CUnitType_EnergyValue(lua_State* tolua_S)
15169 {
15170 CUnitType* self = (CUnitType*) tolua_tousertype(tolua_S,1,0);
15171 #ifndef TOLUA_RELEASE
15172 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'EnergyValue'",NULL);
15173 #endif
15174 tolua_pushnumber(tolua_S,(lua_Number)self->GetEnergyValue());
15175 return 1;
15176 }
15177 #endif //#ifndef TOLUA_DISABLE
15178
15179
15180 #ifndef TOLUA_DISABLE_tolua_set_CUnitType_EnergyValue
15181 static int tolua_set_CUnitType_EnergyValue(lua_State* tolua_S)
15182 {
15183 CUnitType* self = (CUnitType*) tolua_tousertype(tolua_S,1,0);
15184 #ifndef TOLUA_RELEASE
15185 tolua_Error tolua_err;
15186 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'EnergyValue'",NULL);
15187 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
15188 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
15189 #endif
15190 self->SetEnergyValue(((int) tolua_tonumber(tolua_S,2,0))
15191 )
15192 ;
15193 return 0;
15194 }
15195 #endif //#ifndef TOLUA_DISABLE
15196
15197
15198 #ifndef TOLUA_DISABLE_tolua_get_CUnitType_MagmaValue
15199 static int tolua_get_CUnitType_MagmaValue(lua_State* tolua_S)
15200 {
15201 CUnitType* self = (CUnitType*) tolua_tousertype(tolua_S,1,0);
15202 #ifndef TOLUA_RELEASE
15203 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MagmaValue'",NULL);
15204 #endif
15205 tolua_pushnumber(tolua_S,(lua_Number)self->GetMagmaValue());
15206 return 1;
15207 }
15208 #endif //#ifndef TOLUA_DISABLE
15209
15210
15211 #ifndef TOLUA_DISABLE_tolua_set_CUnitType_MagmaValue
15212 static int tolua_set_CUnitType_MagmaValue(lua_State* tolua_S)
15213 {
15214 CUnitType* self = (CUnitType*) tolua_tousertype(tolua_S,1,0);
15215 #ifndef TOLUA_RELEASE
15216 tolua_Error tolua_err;
15217 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MagmaValue'",NULL);
15218 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
15219 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
15220 #endif
15221 self->SetMagmaValue(((int) tolua_tonumber(tolua_S,2,0))
15222 )
15223 ;
15224 return 0;
15225 }
15226 #endif //#ifndef TOLUA_DISABLE
15227
15228
15229 #ifndef TOLUA_DISABLE_tolua_get_CUnitType_EnergyStorageCapacity
15230 static int tolua_get_CUnitType_EnergyStorageCapacity(lua_State* tolua_S)
15231 {
15232 CUnitType* self = (CUnitType*) tolua_tousertype(tolua_S,1,0);
15233 #ifndef TOLUA_RELEASE
15234 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'EnergyStorageCapacity'",NULL);
15235 #endif
15236 tolua_pushnumber(tolua_S,(lua_Number)self->GetEnergyStorageCapacity());
15237 return 1;
15238 }
15239 #endif //#ifndef TOLUA_DISABLE
15240
15241
15242 #ifndef TOLUA_DISABLE_tolua_set_CUnitType_EnergyStorageCapacity
15243 static int tolua_set_CUnitType_EnergyStorageCapacity(lua_State* tolua_S)
15244 {
15245 CUnitType* self = (CUnitType*) tolua_tousertype(tolua_S,1,0);
15246 #ifndef TOLUA_RELEASE
15247 tolua_Error tolua_err;
15248 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'EnergyStorageCapacity'",NULL);
15249 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
15250 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
15251 #endif
15252 self->SetEnergyStorageCapacity(((int) tolua_tonumber(tolua_S,2,0))
15253 )
15254 ;
15255 return 0;
15256 }
15257 #endif //#ifndef TOLUA_DISABLE
15258
15259
15260 #ifndef TOLUA_DISABLE_tolua_get_CUnitType_MagmaStorageCapacity
15261 static int tolua_get_CUnitType_MagmaStorageCapacity(lua_State* tolua_S)
15262 {
15263 CUnitType* self = (CUnitType*) tolua_tousertype(tolua_S,1,0);
15264 #ifndef TOLUA_RELEASE
15265 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MagmaStorageCapacity'",NULL);
15266 #endif
15267 tolua_pushnumber(tolua_S,(lua_Number)self->GetMagmaStorageCapacity());
15268 return 1;
15269 }
15270 #endif //#ifndef TOLUA_DISABLE
15271
15272
15273 #ifndef TOLUA_DISABLE_tolua_set_CUnitType_MagmaStorageCapacity
15274 static int tolua_set_CUnitType_MagmaStorageCapacity(lua_State* tolua_S)
15275 {
15276 CUnitType* self = (CUnitType*) tolua_tousertype(tolua_S,1,0);
15277 #ifndef TOLUA_RELEASE
15278 tolua_Error tolua_err;
15279 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MagmaStorageCapacity'",NULL);
15280 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
15281 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
15282 #endif
15283 self->SetMagmaStorageCapacity(((int) tolua_tonumber(tolua_S,2,0))
15284 )
15285 ;
15286 return 0;
15287 }
15288 #endif //#ifndef TOLUA_DISABLE
15289
15290
15291 #ifndef TOLUA_DISABLE_tolua_stratagus_UnitTypeByIdent00
15292 static int tolua_stratagus_UnitTypeByIdent00(lua_State* tolua_S)
15293 {
15294 #ifndef TOLUA_RELEASE
15295 tolua_Error tolua_err;
15296 if (
15297 !tolua_iscppstring(tolua_S,1,0,&tolua_err) ||
15298 !tolua_isnoobj(tolua_S,2,&tolua_err)
15299 )
15300 goto tolua_lerror;
15301 else
15302 #endif
15303 {
15304 const std::string ident = ((const std::string) tolua_tocppstring(tolua_S,1,0));
15305 {
15306 CUnitType* tolua_ret = (CUnitType*) UnitTypeByIdent(ident);
15307 tolua_pushusertype(tolua_S,(void*)tolua_ret,"CUnitType");
15308 }
15309 }
15310 return 1;
15311 #ifndef TOLUA_RELEASE
15312 tolua_lerror:
15313 tolua_error(tolua_S,"#ferror in function 'UnitTypeByIdent'.",&tolua_err);
15314 return 0;
15315 #endif
15316 }
15317 #endif //#ifndef TOLUA_DISABLE
15318
15319
15320 #ifndef TOLUA_DISABLE_tolua_get_CUnit_Slot
15321 static int tolua_get_CUnit_Slot(lua_State* tolua_S)
15322 {
15323 CUnit* self = (CUnit*) tolua_tousertype(tolua_S,1,0);
15324 #ifndef TOLUA_RELEASE
15325 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Slot'",NULL);
15326 #endif
15327 tolua_pushnumber(tolua_S,(lua_Number)self->Slot);
15328 return 1;
15329 }
15330 #endif //#ifndef TOLUA_DISABLE
15331
15332
15333 #ifndef TOLUA_DISABLE_tolua_get_CUnit_X
15334 static int tolua_get_CUnit_X(lua_State* tolua_S)
15335 {
15336 CUnit* self = (CUnit*) tolua_tousertype(tolua_S,1,0);
15337 #ifndef TOLUA_RELEASE
15338 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'X'",NULL);
15339 #endif
15340 tolua_pushnumber(tolua_S,(lua_Number)self->X);
15341 return 1;
15342 }
15343 #endif //#ifndef TOLUA_DISABLE
15344
15345
15346 #ifndef TOLUA_DISABLE_tolua_set_CUnit_X
15347 static int tolua_set_CUnit_X(lua_State* tolua_S)
15348 {
15349 CUnit* self = (CUnit*) tolua_tousertype(tolua_S,1,0);
15350 #ifndef TOLUA_RELEASE
15351 tolua_Error tolua_err;
15352 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'X'",NULL);
15353 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
15354 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
15355 #endif
15356 self->X = ((int) tolua_tonumber(tolua_S,2,0))
15357 ;
15358 return 0;
15359 }
15360 #endif //#ifndef TOLUA_DISABLE
15361
15362
15363 #ifndef TOLUA_DISABLE_tolua_get_CUnit_Y
15364 static int tolua_get_CUnit_Y(lua_State* tolua_S)
15365 {
15366 CUnit* self = (CUnit*) tolua_tousertype(tolua_S,1,0);
15367 #ifndef TOLUA_RELEASE
15368 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Y'",NULL);
15369 #endif
15370 tolua_pushnumber(tolua_S,(lua_Number)self->Y);
15371 return 1;
15372 }
15373 #endif //#ifndef TOLUA_DISABLE
15374
15375
15376 #ifndef TOLUA_DISABLE_tolua_set_CUnit_Y
15377 static int tolua_set_CUnit_Y(lua_State* tolua_S)
15378 {
15379 CUnit* self = (CUnit*) tolua_tousertype(tolua_S,1,0);
15380 #ifndef TOLUA_RELEASE
15381 tolua_Error tolua_err;
15382 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Y'",NULL);
15383 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
15384 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
15385 #endif
15386 self->Y = ((int) tolua_tonumber(tolua_S,2,0))
15387 ;
15388 return 0;
15389 }
15390 #endif //#ifndef TOLUA_DISABLE
15391
15392
15393 #ifndef TOLUA_DISABLE_tolua_get_CUnit_Type_ptr
15394 static int tolua_get_CUnit_Type_ptr(lua_State* tolua_S)
15395 {
15396 CUnit* self = (CUnit*) tolua_tousertype(tolua_S,1,0);
15397 #ifndef TOLUA_RELEASE
15398 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Type'",NULL);
15399 #endif
15400 tolua_pushusertype(tolua_S,(void*)self->Type,"CUnitType");
15401 return 1;
15402 }
15403 #endif //#ifndef TOLUA_DISABLE
15404
15405
15406 #ifndef TOLUA_DISABLE_tolua_set_CUnit_Type_ptr
15407 static int tolua_set_CUnit_Type_ptr(lua_State* tolua_S)
15408 {
15409 CUnit* self = (CUnit*) tolua_tousertype(tolua_S,1,0);
15410 #ifndef TOLUA_RELEASE
15411 tolua_Error tolua_err;
15412 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Type'",NULL);
15413 if (!tolua_isusertype(tolua_S,2,"CUnitType",0,&tolua_err))
15414 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
15415 #endif
15416 self->Type = ((CUnitType*) tolua_tousertype(tolua_S,2,0))
15417 ;
15418 return 0;
15419 }
15420 #endif //#ifndef TOLUA_DISABLE
15421
15422
15423 #ifndef TOLUA_DISABLE_tolua_get_CUnit_Player_ptr
15424 static int tolua_get_CUnit_Player_ptr(lua_State* tolua_S)
15425 {
15426 CUnit* self = (CUnit*) tolua_tousertype(tolua_S,1,0);
15427 #ifndef TOLUA_RELEASE
15428 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Player'",NULL);
15429 #endif
15430 tolua_pushusertype(tolua_S,(void*)self->Player,"CPlayer");
15431 return 1;
15432 }
15433 #endif //#ifndef TOLUA_DISABLE
15434
15435
15436 #ifndef TOLUA_DISABLE_tolua_set_CUnit_Player_ptr
15437 static int tolua_set_CUnit_Player_ptr(lua_State* tolua_S)
15438 {
15439 CUnit* self = (CUnit*) tolua_tousertype(tolua_S,1,0);
15440 #ifndef TOLUA_RELEASE
15441 tolua_Error tolua_err;
15442 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Player'",NULL);
15443 if (!tolua_isusertype(tolua_S,2,"CPlayer",0,&tolua_err))
15444 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
15445 #endif
15446 self->Player = ((CPlayer*) tolua_tousertype(tolua_S,2,0))
15447 ;
15448 return 0;
15449 }
15450 #endif //#ifndef TOLUA_DISABLE
15451
15452
15453 #ifndef TOLUA_DISABLE_tolua_get_CPreference_ShowSightRange
15454 static int tolua_get_CPreference_ShowSightRange(lua_State* tolua_S)
15455 {
15456 CPreference* self = (CPreference*) tolua_tousertype(tolua_S,1,0);
15457 #ifndef TOLUA_RELEASE
15458 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ShowSightRange'",NULL);
15459 #endif
15460 tolua_pushboolean(tolua_S,(bool)self->ShowSightRange);
15461 return 1;
15462 }
15463 #endif //#ifndef TOLUA_DISABLE
15464
15465
15466 #ifndef TOLUA_DISABLE_tolua_set_CPreference_ShowSightRange
15467 static int tolua_set_CPreference_ShowSightRange(lua_State* tolua_S)
15468 {
15469 CPreference* self = (CPreference*) tolua_tousertype(tolua_S,1,0);
15470 #ifndef TOLUA_RELEASE
15471 tolua_Error tolua_err;
15472 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ShowSightRange'",NULL);
15473 if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
15474 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
15475 #endif
15476 self->ShowSightRange = ((bool) tolua_toboolean(tolua_S,2,0))
15477 ;
15478 return 0;
15479 }
15480 #endif //#ifndef TOLUA_DISABLE
15481
15482
15483 #ifndef TOLUA_DISABLE_tolua_get_CPreference_ShowReactionRange
15484 static int tolua_get_CPreference_ShowReactionRange(lua_State* tolua_S)
15485 {
15486 CPreference* self = (CPreference*) tolua_tousertype(tolua_S,1,0);
15487 #ifndef TOLUA_RELEASE
15488 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ShowReactionRange'",NULL);
15489 #endif
15490 tolua_pushboolean(tolua_S,(bool)self->ShowReactionRange);
15491 return 1;
15492 }
15493 #endif //#ifndef TOLUA_DISABLE
15494
15495
15496 #ifndef TOLUA_DISABLE_tolua_set_CPreference_ShowReactionRange
15497 static int tolua_set_CPreference_ShowReactionRange(lua_State* tolua_S)
15498 {
15499 CPreference* self = (CPreference*) tolua_tousertype(tolua_S,1,0);
15500 #ifndef TOLUA_RELEASE
15501 tolua_Error tolua_err;
15502 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ShowReactionRange'",NULL);
15503 if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
15504 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
15505 #endif
15506 self->ShowReactionRange = ((bool) tolua_toboolean(tolua_S,2,0))
15507 ;
15508 return 0;
15509 }
15510 #endif //#ifndef TOLUA_DISABLE
15511
15512
15513 #ifndef TOLUA_DISABLE_tolua_get_CPreference_ShowAttackRange
15514 static int tolua_get_CPreference_ShowAttackRange(lua_State* tolua_S)
15515 {
15516 CPreference* self = (CPreference*) tolua_tousertype(tolua_S,1,0);
15517 #ifndef TOLUA_RELEASE
15518 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ShowAttackRange'",NULL);
15519 #endif
15520 tolua_pushboolean(tolua_S,(bool)self->ShowAttackRange);
15521 return 1;
15522 }
15523 #endif //#ifndef TOLUA_DISABLE
15524
15525
15526 #ifndef TOLUA_DISABLE_tolua_set_CPreference_ShowAttackRange
15527 static int tolua_set_CPreference_ShowAttackRange(lua_State* tolua_S)
15528 {
15529 CPreference* self = (CPreference*) tolua_tousertype(tolua_S,1,0);
15530 #ifndef TOLUA_RELEASE
15531 tolua_Error tolua_err;
15532 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ShowAttackRange'",NULL);
15533 if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
15534 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
15535 #endif
15536 self->ShowAttackRange = ((bool) tolua_toboolean(tolua_S,2,0))
15537 ;
15538 return 0;
15539 }
15540 #endif //#ifndef TOLUA_DISABLE
15541
15542
15543 #ifndef TOLUA_DISABLE_tolua_get_CPreference_unsigned_ShowOrders
15544 static int tolua_get_CPreference_unsigned_ShowOrders(lua_State* tolua_S)
15545 {
15546 CPreference* self = (CPreference*) tolua_tousertype(tolua_S,1,0);
15547 #ifndef TOLUA_RELEASE
15548 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ShowOrders'",NULL);
15549 #endif
15550 tolua_pushnumber(tolua_S,(lua_Number)self->ShowOrders);
15551 return 1;
15552 }
15553 #endif //#ifndef TOLUA_DISABLE
15554
15555
15556 #ifndef TOLUA_DISABLE_tolua_set_CPreference_unsigned_ShowOrders
15557 static int tolua_set_CPreference_unsigned_ShowOrders(lua_State* tolua_S)
15558 {
15559 CPreference* self = (CPreference*) tolua_tousertype(tolua_S,1,0);
15560 #ifndef TOLUA_RELEASE
15561 tolua_Error tolua_err;
15562 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ShowOrders'",NULL);
15563 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
15564 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
15565 #endif
15566 self->ShowOrders = ((unsigned int) tolua_tonumber(tolua_S,2,0))
15567 ;
15568 return 0;
15569 }
15570 #endif //#ifndef TOLUA_DISABLE
15571
15572
15573 #ifndef TOLUA_DISABLE_tolua_get_Preference
15574 static int tolua_get_Preference(lua_State* tolua_S)
15575 {
15576 tolua_pushusertype(tolua_S,(void*)&Preference,"CPreference");
15577 return 1;
15578 }
15579 #endif //#ifndef TOLUA_DISABLE
15580
15581
15582 #ifndef TOLUA_DISABLE_tolua_set_Preference
15583 static int tolua_set_Preference(lua_State* tolua_S)
15584 {
15585 #ifndef TOLUA_RELEASE
15586 tolua_Error tolua_err;
15587 if (!tolua_isusertype(tolua_S,2,"CPreference",0,&tolua_err))
15588 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
15589 #endif
15590 Preference = *((CPreference*) tolua_tousertype(tolua_S,2,0))
15591 ;
15592 return 0;
15593 }
15594 #endif //#ifndef TOLUA_DISABLE
15595
15596
15597 #ifndef TOLUA_DISABLE_tolua_stratagus_GetEffectsVolume00
15598 static int tolua_stratagus_GetEffectsVolume00(lua_State* tolua_S)
15599 {
15600 #ifndef TOLUA_RELEASE
15601 tolua_Error tolua_err;
15602 if (
15603 !tolua_isnoobj(tolua_S,1,&tolua_err)
15604 )
15605 goto tolua_lerror;
15606 else
15607 #endif
15608 {
15609 {
15610 int tolua_ret = (int) GetEffectsVolume();
15611 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
15612 }
15613 }
15614 return 1;
15615 #ifndef TOLUA_RELEASE
15616 tolua_lerror:
15617 tolua_error(tolua_S,"#ferror in function 'GetEffectsVolume'.",&tolua_err);
15618 return 0;
15619 #endif
15620 }
15621 #endif //#ifndef TOLUA_DISABLE
15622
15623
15624 #ifndef TOLUA_DISABLE_tolua_stratagus_SetEffectsVolume00
15625 static int tolua_stratagus_SetEffectsVolume00(lua_State* tolua_S)
15626 {
15627 #ifndef TOLUA_RELEASE
15628 tolua_Error tolua_err;
15629 if (
15630 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
15631 !tolua_isnoobj(tolua_S,2,&tolua_err)
15632 )
15633 goto tolua_lerror;
15634 else
15635 #endif
15636 {
15637 int volume = ((int) tolua_tonumber(tolua_S,1,0));
15638 {
15639 SetEffectsVolume(volume);
15640 }
15641 }
15642 return 0;
15643 #ifndef TOLUA_RELEASE
15644 tolua_lerror:
15645 tolua_error(tolua_S,"#ferror in function 'SetEffectsVolume'.",&tolua_err);
15646 return 0;
15647 #endif
15648 }
15649 #endif //#ifndef TOLUA_DISABLE
15650
15651
15652 #ifndef TOLUA_DISABLE_tolua_stratagus_GetMusicVolume00
15653 static int tolua_stratagus_GetMusicVolume00(lua_State* tolua_S)
15654 {
15655 #ifndef TOLUA_RELEASE
15656 tolua_Error tolua_err;
15657 if (
15658 !tolua_isnoobj(tolua_S,1,&tolua_err)
15659 )
15660 goto tolua_lerror;
15661 else
15662 #endif
15663 {
15664 {
15665 int tolua_ret = (int) GetMusicVolume();
15666 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
15667 }
15668 }
15669 return 1;
15670 #ifndef TOLUA_RELEASE
15671 tolua_lerror:
15672 tolua_error(tolua_S,"#ferror in function 'GetMusicVolume'.",&tolua_err);
15673 return 0;
15674 #endif
15675 }
15676 #endif //#ifndef TOLUA_DISABLE
15677
15678
15679 #ifndef TOLUA_DISABLE_tolua_stratagus_SetMusicVolume00
15680 static int tolua_stratagus_SetMusicVolume00(lua_State* tolua_S)
15681 {
15682 #ifndef TOLUA_RELEASE
15683 tolua_Error tolua_err;
15684 if (
15685 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
15686 !tolua_isnoobj(tolua_S,2,&tolua_err)
15687 )
15688 goto tolua_lerror;
15689 else
15690 #endif
15691 {
15692 int volume = ((int) tolua_tonumber(tolua_S,1,0));
15693 {
15694 SetMusicVolume(volume);
15695 }
15696 }
15697 return 0;
15698 #ifndef TOLUA_RELEASE
15699 tolua_lerror:
15700 tolua_error(tolua_S,"#ferror in function 'SetMusicVolume'.",&tolua_err);
15701 return 0;
15702 #endif
15703 }
15704 #endif //#ifndef TOLUA_DISABLE
15705
15706
15707 #ifndef TOLUA_DISABLE_tolua_stratagus_SetEffectsEnabled00
15708 static int tolua_stratagus_SetEffectsEnabled00(lua_State* tolua_S)
15709 {
15710 #ifndef TOLUA_RELEASE
15711 tolua_Error tolua_err;
15712 if (
15713 !tolua_isboolean(tolua_S,1,0,&tolua_err) ||
15714 !tolua_isnoobj(tolua_S,2,&tolua_err)
15715 )
15716 goto tolua_lerror;
15717 else
15718 #endif
15719 {
15720 bool enabled = ((bool) tolua_toboolean(tolua_S,1,0));
15721 {
15722 SetEffectsEnabled(enabled);
15723 }
15724 }
15725 return 0;
15726 #ifndef TOLUA_RELEASE
15727 tolua_lerror:
15728 tolua_error(tolua_S,"#ferror in function 'SetEffectsEnabled'.",&tolua_err);
15729 return 0;
15730 #endif
15731 }
15732 #endif //#ifndef TOLUA_DISABLE
15733
15734
15735 #ifndef TOLUA_DISABLE_tolua_stratagus_IsEffectsEnabled00
15736 static int tolua_stratagus_IsEffectsEnabled00(lua_State* tolua_S)
15737 {
15738 #ifndef TOLUA_RELEASE
15739 tolua_Error tolua_err;
15740 if (
15741 !tolua_isnoobj(tolua_S,1,&tolua_err)
15742 )
15743 goto tolua_lerror;
15744 else
15745 #endif
15746 {
15747 {
15748 bool tolua_ret = (bool) IsEffectsEnabled();
15749 tolua_pushboolean(tolua_S,(bool)tolua_ret);
15750 }
15751 }
15752 return 1;
15753 #ifndef TOLUA_RELEASE
15754 tolua_lerror:
15755 tolua_error(tolua_S,"#ferror in function 'IsEffectsEnabled'.",&tolua_err);
15756 return 0;
15757 #endif
15758 }
15759 #endif //#ifndef TOLUA_DISABLE
15760
15761
15762 #ifndef TOLUA_DISABLE_tolua_stratagus_SetMusicEnabled00
15763 static int tolua_stratagus_SetMusicEnabled00(lua_State* tolua_S)
15764 {
15765 #ifndef TOLUA_RELEASE
15766 tolua_Error tolua_err;
15767 if (
15768 !tolua_isboolean(tolua_S,1,0,&tolua_err) ||
15769 !tolua_isnoobj(tolua_S,2,&tolua_err)
15770 )
15771 goto tolua_lerror;
15772 else
15773 #endif
15774 {
15775 bool enabled = ((bool) tolua_toboolean(tolua_S,1,0));
15776 {
15777 SetMusicEnabled(enabled);
15778 }
15779 }
15780 return 0;
15781 #ifndef TOLUA_RELEASE
15782 tolua_lerror:
15783 tolua_error(tolua_S,"#ferror in function 'SetMusicEnabled'.",&tolua_err);
15784 return 0;
15785 #endif
15786 }
15787 #endif //#ifndef TOLUA_DISABLE
15788
15789
15790 #ifndef TOLUA_DISABLE_tolua_stratagus_IsMusicEnabled00
15791 static int tolua_stratagus_IsMusicEnabled00(lua_State* tolua_S)
15792 {
15793 #ifndef TOLUA_RELEASE
15794 tolua_Error tolua_err;
15795 if (
15796 !tolua_isnoobj(tolua_S,1,&tolua_err)
15797 )
15798 goto tolua_lerror;
15799 else
15800 #endif
15801 {
15802 {
15803 bool tolua_ret = (bool) IsMusicEnabled();
15804 tolua_pushboolean(tolua_S,(bool)tolua_ret);
15805 }
15806 }
15807 return 1;
15808 #ifndef TOLUA_RELEASE
15809 tolua_lerror:
15810 tolua_error(tolua_S,"#ferror in function 'IsMusicEnabled'.",&tolua_err);
15811 return 0;
15812 #endif
15813 }
15814 #endif //#ifndef TOLUA_DISABLE
15815
15816
15817 #ifndef TOLUA_DISABLE_tolua_stratagus_PlayFile00
15818 static int tolua_stratagus_PlayFile00(lua_State* tolua_S)
15819 {
15820 #ifndef TOLUA_RELEASE
15821 tolua_Error tolua_err;
15822 if (
15823 !tolua_iscppstring(tolua_S,1,0,&tolua_err) ||
15824 !tolua_isusertype(tolua_S,2,"LuaActionListener",1,&tolua_err) ||
15825 !tolua_isnoobj(tolua_S,3,&tolua_err)
15826 )
15827 goto tolua_lerror;
15828 else
15829 #endif
15830 {
15831 const std::string name = ((const std::string) tolua_tocppstring(tolua_S,1,0));
15832 LuaActionListener* listener = ((LuaActionListener*) tolua_tousertype(tolua_S,2,NULL));
15833 {
15834 int tolua_ret = (int) PlayFile(name,listener);
15835 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
15836 }
15837 }
15838 return 1;
15839 #ifndef TOLUA_RELEASE
15840 tolua_lerror:
15841 tolua_error(tolua_S,"#ferror in function 'PlayFile'.",&tolua_err);
15842 return 0;
15843 #endif
15844 }
15845 #endif //#ifndef TOLUA_DISABLE
15846
15847
15848 #ifndef TOLUA_DISABLE_tolua_stratagus_PlayMusic00
15849 static int tolua_stratagus_PlayMusic00(lua_State* tolua_S)
15850 {
15851 #ifndef TOLUA_RELEASE
15852 tolua_Error tolua_err;
15853 if (
15854 !tolua_iscppstring(tolua_S,1,0,&tolua_err) ||
15855 !tolua_isnoobj(tolua_S,2,&tolua_err)
15856 )
15857 goto tolua_lerror;
15858 else
15859 #endif
15860 {
15861 const std::string name = ((const std::string) tolua_tocppstring(tolua_S,1,0));
15862 {
15863 int tolua_ret = (int) PlayMusic(name);
15864 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
15865 }
15866 }
15867 return 1;
15868 #ifndef TOLUA_RELEASE
15869 tolua_lerror:
15870 tolua_error(tolua_S,"#ferror in function 'PlayMusic'.",&tolua_err);
15871 return 0;
15872 #endif
15873 }
15874 #endif //#ifndef TOLUA_DISABLE
15875
15876
15877 #ifndef TOLUA_DISABLE_tolua_stratagus_StopMusic00
15878 static int tolua_stratagus_StopMusic00(lua_State* tolua_S)
15879 {
15880 #ifndef TOLUA_RELEASE
15881 tolua_Error tolua_err;
15882 if (
15883 !tolua_isnoobj(tolua_S,1,&tolua_err)
15884 )
15885 goto tolua_lerror;
15886 else
15887 #endif
15888 {
15889 {
15890 StopMusic();
15891 }
15892 }
15893 return 0;
15894 #ifndef TOLUA_RELEASE
15895 tolua_lerror:
15896 tolua_error(tolua_S,"#ferror in function 'StopMusic'.",&tolua_err);
15897 return 0;
15898 #endif
15899 }
15900 #endif //#ifndef TOLUA_DISABLE
15901
15902
15903 #ifndef TOLUA_DISABLE_tolua_stratagus_SetChannelVolume00
15904 static int tolua_stratagus_SetChannelVolume00(lua_State* tolua_S)
15905 {
15906 #ifndef TOLUA_RELEASE
15907 tolua_Error tolua_err;
15908 if (
15909 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
15910 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
15911 !tolua_isnoobj(tolua_S,3,&tolua_err)
15912 )
15913 goto tolua_lerror;
15914 else
15915 #endif
15916 {
15917 int channel = ((int) tolua_tonumber(tolua_S,1,0));
15918 int volume = ((int) tolua_tonumber(tolua_S,2,0));
15919 {
15920 int tolua_ret = (int) SetChannelVolume(channel,volume);
15921 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
15922 }
15923 }
15924 return 1;
15925 #ifndef TOLUA_RELEASE
15926 tolua_lerror:
15927 tolua_error(tolua_S,"#ferror in function 'SetChannelVolume'.",&tolua_err);
15928 return 0;
15929 #endif
15930 }
15931 #endif //#ifndef TOLUA_DISABLE
15932
15933
15934 #ifndef TOLUA_DISABLE_tolua_stratagus_SetChannelStereo00
15935 static int tolua_stratagus_SetChannelStereo00(lua_State* tolua_S)
15936 {
15937 #ifndef TOLUA_RELEASE
15938 tolua_Error tolua_err;
15939 if (
15940 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
15941 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
15942 !tolua_isnoobj(tolua_S,3,&tolua_err)
15943 )
15944 goto tolua_lerror;
15945 else
15946 #endif
15947 {
15948 int channel = ((int) tolua_tonumber(tolua_S,1,0));
15949 int stereo = ((int) tolua_tonumber(tolua_S,2,0));
15950 {
15951 int tolua_ret = (int) SetChannelStereo(channel,stereo);
15952 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
15953 }
15954 }
15955 return 1;
15956 #ifndef TOLUA_RELEASE
15957 tolua_lerror:
15958 tolua_error(tolua_S,"#ferror in function 'SetChannelStereo'.",&tolua_err);
15959 return 0;
15960 #endif
15961 }
15962 #endif //#ifndef TOLUA_DISABLE
15963
15964
15965 #ifndef TOLUA_DISABLE_tolua_stratagus_StopChannel00
15966 static int tolua_stratagus_StopChannel00(lua_State* tolua_S)
15967 {
15968 #ifndef TOLUA_RELEASE
15969 tolua_Error tolua_err;
15970 if (
15971 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
15972 !tolua_isnoobj(tolua_S,2,&tolua_err)
15973 )
15974 goto tolua_lerror;
15975 else
15976 #endif
15977 {
15978 int channel = ((int) tolua_tonumber(tolua_S,1,0));
15979 {
15980 StopChannel(channel);
15981 }
15982 }
15983 return 0;
15984 #ifndef TOLUA_RELEASE
15985 tolua_lerror:
15986 tolua_error(tolua_S,"#ferror in function 'StopChannel'.",&tolua_err);
15987 return 0;
15988 #endif
15989 }
15990 #endif //#ifndef TOLUA_DISABLE
15991
15992
15993 #ifndef TOLUA_DISABLE_tolua_stratagus_StopAllChannels00
15994 static int tolua_stratagus_StopAllChannels00(lua_State* tolua_S)
15995 {
15996 #ifndef TOLUA_RELEASE
15997 tolua_Error tolua_err;
15998 if (
15999 !tolua_isnoobj(tolua_S,1,&tolua_err)
16000 )
16001 goto tolua_lerror;
16002 else
16003 #endif
16004 {
16005 {
16006 StopAllChannels();
16007 }
16008 }
16009 return 0;
16010 #ifndef TOLUA_RELEASE
16011 tolua_lerror:
16012 tolua_error(tolua_S,"#ferror in function 'StopAllChannels'.",&tolua_err);
16013 return 0;
16014 #endif
16015 }
16016 #endif //#ifndef TOLUA_DISABLE
16017
16018
16019 #ifndef TOLUA_DISABLE_tolua_get_CEditor_UnitTypes
16020 static int tolua_get_CEditor_UnitTypes(lua_State* tolua_S)
16021 {
16022 CEditor* self = (CEditor*) tolua_tousertype(tolua_S,1,0);
16023 #ifndef TOLUA_RELEASE
16024 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'UnitTypes'",NULL);
16025 #endif
16026 tolua_pushusertype(tolua_S,(void*)&self->UnitTypes,"vector<string>");
16027 return 1;
16028 }
16029 #endif //#ifndef TOLUA_DISABLE
16030
16031
16032 #ifndef TOLUA_DISABLE_tolua_set_CEditor_UnitTypes
16033 static int tolua_set_CEditor_UnitTypes(lua_State* tolua_S)
16034 {
16035 CEditor* self = (CEditor*) tolua_tousertype(tolua_S,1,0);
16036 #ifndef TOLUA_RELEASE
16037 tolua_Error tolua_err;
16038 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'UnitTypes'",NULL);
16039 if (!tolua_isusertype(tolua_S,2,"vector<string>",0,&tolua_err))
16040 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
16041 #endif
16042 self->UnitTypes = *((vector<string>*) tolua_tousertype(tolua_S,2,0))
16043 ;
16044 return 0;
16045 }
16046 #endif //#ifndef TOLUA_DISABLE
16047
16048
16049 #ifndef TOLUA_DISABLE_tolua_get_CEditor_StartUnit_ptr
16050 static int tolua_get_CEditor_StartUnit_ptr(lua_State* tolua_S)
16051 {
16052 CEditor* self = (CEditor*) tolua_tousertype(tolua_S,1,0);
16053 #ifndef TOLUA_RELEASE
16054 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'StartUnit'",NULL);
16055 #endif
16056 tolua_pushusertype(tolua_S,(void*)self->StartUnit,"const CUnitType");
16057 return 1;
16058 }
16059 #endif //#ifndef TOLUA_DISABLE
16060
16061
16062 #ifndef TOLUA_DISABLE_tolua_get_CEditor_Running
16063 static int tolua_get_CEditor_Running(lua_State* tolua_S)
16064 {
16065 CEditor* self = (CEditor*) tolua_tousertype(tolua_S,1,0);
16066 #ifndef TOLUA_RELEASE
16067 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Running'",NULL);
16068 #endif
16069 tolua_pushnumber(tolua_S,(lua_Number)self->Running);
16070 return 1;
16071 }
16072 #endif //#ifndef TOLUA_DISABLE
16073
16074
16075 #ifndef TOLUA_DISABLE_tolua_set_CEditor_Running
16076 static int tolua_set_CEditor_Running(lua_State* tolua_S)
16077 {
16078 CEditor* self = (CEditor*) tolua_tousertype(tolua_S,1,0);
16079 #ifndef TOLUA_RELEASE
16080 tolua_Error tolua_err;
16081 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Running'",NULL);
16082 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
16083 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
16084 #endif
16085 self->Running = ((EditorRunningType) (int) tolua_tonumber(tolua_S,2,0))
16086 ;
16087 return 0;
16088 }
16089 #endif //#ifndef TOLUA_DISABLE
16090
16091
16092 #ifndef TOLUA_DISABLE_tolua_stratagus_SetEditorSelectIcon00
16093 static int tolua_stratagus_SetEditorSelectIcon00(lua_State* tolua_S)
16094 {
16095 #ifndef TOLUA_RELEASE
16096 tolua_Error tolua_err;
16097 if (
16098 !tolua_iscppstring(tolua_S,1,0,&tolua_err) ||
16099 !tolua_isnoobj(tolua_S,2,&tolua_err)
16100 )
16101 goto tolua_lerror;
16102 else
16103 #endif
16104 {
16105 const std::string icon = ((const std::string) tolua_tocppstring(tolua_S,1,0));
16106 {
16107 SetEditorSelectIcon(icon);
16108 tolua_pushcppstring(tolua_S,(const char*)icon);
16109 }
16110 }
16111 return 1;
16112 #ifndef TOLUA_RELEASE
16113 tolua_lerror:
16114 tolua_error(tolua_S,"#ferror in function 'SetEditorSelectIcon'.",&tolua_err);
16115 return 0;
16116 #endif
16117 }
16118 #endif //#ifndef TOLUA_DISABLE
16119
16120
16121 #ifndef TOLUA_DISABLE_tolua_stratagus_SetEditorUnitsIcon00
16122 static int tolua_stratagus_SetEditorUnitsIcon00(lua_State* tolua_S)
16123 {
16124 #ifndef TOLUA_RELEASE
16125 tolua_Error tolua_err;
16126 if (
16127 !tolua_iscppstring(tolua_S,1,0,&tolua_err) ||
16128 !tolua_isnoobj(tolua_S,2,&tolua_err)
16129 )
16130 goto tolua_lerror;
16131 else
16132 #endif
16133 {
16134 const std::string icon = ((const std::string) tolua_tocppstring(tolua_S,1,0));
16135 {
16136 SetEditorUnitsIcon(icon);
16137 tolua_pushcppstring(tolua_S,(const char*)icon);
16138 }
16139 }
16140 return 1;
16141 #ifndef TOLUA_RELEASE
16142 tolua_lerror:
16143 tolua_error(tolua_S,"#ferror in function 'SetEditorUnitsIcon'.",&tolua_err);
16144 return 0;
16145 #endif
16146 }
16147 #endif //#ifndef TOLUA_DISABLE
16148
16149
16150 #ifndef TOLUA_DISABLE_tolua_stratagus_SetEditorPatchIcon00
16151 static int tolua_stratagus_SetEditorPatchIcon00(lua_State* tolua_S)
16152 {
16153 #ifndef TOLUA_RELEASE
16154 tolua_Error tolua_err;
16155 if (
16156 !tolua_iscppstring(tolua_S,1,0,&tolua_err) ||
16157 !tolua_isnoobj(tolua_S,2,&tolua_err)
16158 )
16159 goto tolua_lerror;
16160 else
16161 #endif
16162 {
16163 const std::string icon = ((const std::string) tolua_tocppstring(tolua_S,1,0));
16164 {
16165 SetEditorPatchIcon(icon);
16166 tolua_pushcppstring(tolua_S,(const char*)icon);
16167 }
16168 }
16169 return 1;
16170 #ifndef TOLUA_RELEASE
16171 tolua_lerror:
16172 tolua_error(tolua_S,"#ferror in function 'SetEditorPatchIcon'.",&tolua_err);
16173 return 0;
16174 #endif
16175 }
16176 #endif //#ifndef TOLUA_DISABLE
16177
16178
16179 #ifndef TOLUA_DISABLE_tolua_stratagus_SetEditorStartUnit00
16180 static int tolua_stratagus_SetEditorStartUnit00(lua_State* tolua_S)
16181 {
16182 #ifndef TOLUA_RELEASE
16183 tolua_Error tolua_err;
16184 if (
16185 !tolua_iscppstring(tolua_S,1,0,&tolua_err) ||
16186 !tolua_isnoobj(tolua_S,2,&tolua_err)
16187 )
16188 goto tolua_lerror;
16189 else
16190 #endif
16191 {
16192 const std::string name = ((const std::string) tolua_tocppstring(tolua_S,1,0));
16193 {
16194 SetEditorStartUnit(name);
16195 tolua_pushcppstring(tolua_S,(const char*)name);
16196 }
16197 }
16198 return 1;
16199 #ifndef TOLUA_RELEASE
16200 tolua_lerror:
16201 tolua_error(tolua_S,"#ferror in function 'SetEditorStartUnit'.",&tolua_err);
16202 return 0;
16203 #endif
16204 }
16205 #endif //#ifndef TOLUA_DISABLE
16206
16207
16208 #ifndef TOLUA_DISABLE_tolua_get_Editor
16209 static int tolua_get_Editor(lua_State* tolua_S)
16210 {
16211 tolua_pushusertype(tolua_S,(void*)&Editor,"CEditor");
16212 return 1;
16213 }
16214 #endif //#ifndef TOLUA_DISABLE
16215
16216
16217 #ifndef TOLUA_DISABLE_tolua_set_Editor
16218 static int tolua_set_Editor(lua_State* tolua_S)
16219 {
16220 #ifndef TOLUA_RELEASE
16221 tolua_Error tolua_err;
16222 if (!tolua_isusertype(tolua_S,2,"CEditor",0,&tolua_err))
16223 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
16224 #endif
16225 Editor = *((CEditor*) tolua_tousertype(tolua_S,2,0))
16226 ;
16227 return 0;
16228 }
16229 #endif //#ifndef TOLUA_DISABLE
16230
16231
16232 #ifndef TOLUA_DISABLE_tolua_stratagus_StartEditor00
16233 static int tolua_stratagus_StartEditor00(lua_State* tolua_S)
16234 {
16235 #ifndef TOLUA_RELEASE
16236 tolua_Error tolua_err;
16237 if (
16238 !tolua_iscppstring(tolua_S,1,0,&tolua_err) ||
16239 !tolua_isnoobj(tolua_S,2,&tolua_err)
16240 )
16241 goto tolua_lerror;
16242 else
16243 #endif
16244 {
16245 const std::string filename = ((const std::string) tolua_tocppstring(tolua_S,1,0));
16246 {
16247 StartEditor(filename);
16248 tolua_pushcppstring(tolua_S,(const char*)filename);
16249 }
16250 }
16251 return 1;
16252 #ifndef TOLUA_RELEASE
16253 tolua_lerror:
16254 tolua_error(tolua_S,"#ferror in function 'StartEditor'.",&tolua_err);
16255 return 0;
16256 #endif
16257 }
16258 #endif //#ifndef TOLUA_DISABLE
16259
16260
16261 #ifndef TOLUA_DISABLE_tolua_stratagus_EditorSaveMap00
16262 static int tolua_stratagus_EditorSaveMap00(lua_State* tolua_S)
16263 {
16264 #ifndef TOLUA_RELEASE
16265 tolua_Error tolua_err;
16266 if (
16267 !tolua_iscppstring(tolua_S,1,0,&tolua_err) ||
16268 !tolua_isnoobj(tolua_S,2,&tolua_err)
16269 )
16270 goto tolua_lerror;
16271 else
16272 #endif
16273 {
16274 const std::string file = ((const std::string) tolua_tocppstring(tolua_S,1,0));
16275 {
16276 int tolua_ret = (int) EditorSaveMap(file);
16277 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
16278 tolua_pushcppstring(tolua_S,(const char*)file);
16279 }
16280 }
16281 return 2;
16282 #ifndef TOLUA_RELEASE
16283 tolua_lerror:
16284 tolua_error(tolua_S,"#ferror in function 'EditorSaveMap'.",&tolua_err);
16285 return 0;
16286 #endif
16287 }
16288 #endif //#ifndef TOLUA_DISABLE
16289
16290
16291 #ifndef TOLUA_DISABLE_tolua_stratagus_StartPatchEditor00
16292 static int tolua_stratagus_StartPatchEditor00(lua_State* tolua_S)
16293 {
16294 #ifndef TOLUA_RELEASE
16295 tolua_Error tolua_err;
16296 if (
16297 !tolua_iscppstring(tolua_S,1,0,&tolua_err) ||
16298 !tolua_isnoobj(tolua_S,2,&tolua_err)
16299 )
16300 goto tolua_lerror;
16301 else
16302 #endif
16303 {
16304 const std::string patchName = ((const std::string) tolua_tocppstring(tolua_S,1,0));
16305 {
16306 StartPatchEditor(patchName);
16307 tolua_pushcppstring(tolua_S,(const char*)patchName);
16308 }
16309 }
16310 return 1;
16311 #ifndef TOLUA_RELEASE
16312 tolua_lerror:
16313 tolua_error(tolua_S,"#ferror in function 'StartPatchEditor'.",&tolua_err);
16314 return 0;
16315 #endif
16316 }
16317 #endif //#ifndef TOLUA_DISABLE
16318
16319
16320 #ifndef TOLUA_DISABLE_tolua_stratagus_IsReplayGame00
16321 static int tolua_stratagus_IsReplayGame00(lua_State* tolua_S)
16322 {
16323 #ifndef TOLUA_RELEASE
16324 tolua_Error tolua_err;
16325 if (
16326 !tolua_isnoobj(tolua_S,1,&tolua_err)
16327 )
16328 goto tolua_lerror;
16329 else
16330 #endif
16331 {
16332 {
16333 bool tolua_ret = (bool) IsReplayGame();
16334 tolua_pushboolean(tolua_S,(bool)tolua_ret);
16335 }
16336 }
16337 return 1;
16338 #ifndef TOLUA_RELEASE
16339 tolua_lerror:
16340 tolua_error(tolua_S,"#ferror in function 'IsReplayGame'.",&tolua_err);
16341 return 0;
16342 #endif
16343 }
16344 #endif //#ifndef TOLUA_DISABLE
16345
16346
16347 #ifndef TOLUA_DISABLE_tolua_stratagus_StartMap00
16348 static int tolua_stratagus_StartMap00(lua_State* tolua_S)
16349 {
16350 #ifndef TOLUA_RELEASE
16351 tolua_Error tolua_err;
16352 if (
16353 !tolua_iscppstring(tolua_S,1,0,&tolua_err) ||
16354 !tolua_isboolean(tolua_S,2,1,&tolua_err) ||
16355 !tolua_isnoobj(tolua_S,3,&tolua_err)
16356 )
16357 goto tolua_lerror;
16358 else
16359 #endif
16360 {
16361 const string str = ((const string) tolua_tocppstring(tolua_S,1,0));
16362 bool clean = ((bool) tolua_toboolean(tolua_S,2,true));
16363 {
16364 StartMap(str,clean);
16365 }
16366 }
16367 return 0;
16368 #ifndef TOLUA_RELEASE
16369 tolua_lerror:
16370 tolua_error(tolua_S,"#ferror in function 'StartMap'.",&tolua_err);
16371 return 0;
16372 #endif
16373 }
16374 #endif //#ifndef TOLUA_DISABLE
16375
16376
16377 #ifndef TOLUA_DISABLE_tolua_stratagus_StartReplay00
16378 static int tolua_stratagus_StartReplay00(lua_State* tolua_S)
16379 {
16380 #ifndef TOLUA_RELEASE
16381 tolua_Error tolua_err;
16382 if (
16383 !tolua_iscppstring(tolua_S,1,0,&tolua_err) ||
16384 !tolua_isboolean(tolua_S,2,1,&tolua_err) ||
16385 !tolua_isnoobj(tolua_S,3,&tolua_err)
16386 )
16387 goto tolua_lerror;
16388 else
16389 #endif
16390 {
16391 const string str = ((const string) tolua_tocppstring(tolua_S,1,0));
16392 bool reveal = ((bool) tolua_toboolean(tolua_S,2,false));
16393 {
16394 StartReplay(str,reveal);
16395 }
16396 }
16397 return 0;
16398 #ifndef TOLUA_RELEASE
16399 tolua_lerror:
16400 tolua_error(tolua_S,"#ferror in function 'StartReplay'.",&tolua_err);
16401 return 0;
16402 #endif
16403 }
16404 #endif //#ifndef TOLUA_DISABLE
16405
16406
16407 #ifndef TOLUA_DISABLE_tolua_stratagus_StartSavedGame00
16408 static int tolua_stratagus_StartSavedGame00(lua_State* tolua_S)
16409 {
16410 #ifndef TOLUA_RELEASE
16411 tolua_Error tolua_err;
16412 if (
16413 !tolua_iscppstring(tolua_S,1,0,&tolua_err) ||
16414 !tolua_isnoobj(tolua_S,2,&tolua_err)
16415 )
16416 goto tolua_lerror;
16417 else
16418 #endif
16419 {
16420 const string str = ((const string) tolua_tocppstring(tolua_S,1,0));
16421 {
16422 StartSavedGame(str);
16423 }
16424 }
16425 return 0;
16426 #ifndef TOLUA_RELEASE
16427 tolua_lerror:
16428 tolua_error(tolua_S,"#ferror in function 'StartSavedGame'.",&tolua_err);
16429 return 0;
16430 #endif
16431 }
16432 #endif //#ifndef TOLUA_DISABLE
16433
16434
16435 #ifndef TOLUA_DISABLE_tolua_stratagus_SaveReplay00
16436 static int tolua_stratagus_SaveReplay00(lua_State* tolua_S)
16437 {
16438 #ifndef TOLUA_RELEASE
16439 tolua_Error tolua_err;
16440 if (
16441 !tolua_iscppstring(tolua_S,1,0,&tolua_err) ||
16442 !tolua_isnoobj(tolua_S,2,&tolua_err)
16443 )
16444 goto tolua_lerror;
16445 else
16446 #endif
16447 {
16448 const std::string filename = ((const std::string) tolua_tocppstring(tolua_S,1,0));
16449 {
16450 int tolua_ret = (int) SaveReplay(filename);
16451 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
16452 }
16453 }
16454 return 1;
16455 #ifndef TOLUA_RELEASE
16456 tolua_lerror:
16457 tolua_error(tolua_S,"#ferror in function 'SaveReplay'.",&tolua_err);
16458 return 0;
16459 #endif
16460 }
16461 #endif //#ifndef TOLUA_DISABLE
16462
16463
16464 #ifndef TOLUA_DISABLE_tolua_get_GameResult
16465 static int tolua_get_GameResult(lua_State* tolua_S)
16466 {
16467 tolua_pushnumber(tolua_S,(lua_Number)GameResult);
16468 return 1;
16469 }
16470 #endif //#ifndef TOLUA_DISABLE
16471
16472
16473 #ifndef TOLUA_DISABLE_tolua_set_GameResult
16474 static int tolua_set_GameResult(lua_State* tolua_S)
16475 {
16476 #ifndef TOLUA_RELEASE
16477 tolua_Error tolua_err;
16478 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
16479 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
16480 #endif
16481 GameResult = ((GameResults) (int) tolua_tonumber(tolua_S,2,0))
16482 ;
16483 return 0;
16484 }
16485 #endif //#ifndef TOLUA_DISABLE
16486
16487
16488 #ifndef TOLUA_DISABLE_tolua_stratagus_StopGame00
16489 static int tolua_stratagus_StopGame00(lua_State* tolua_S)
16490 {
16491 #ifndef TOLUA_RELEASE
16492 tolua_Error tolua_err;
16493 if (
16494 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
16495 !tolua_isnoobj(tolua_S,2,&tolua_err)
16496 )
16497 goto tolua_lerror;
16498 else
16499 #endif
16500 {
16501 GameResults result = ((GameResults) (int) tolua_tonumber(tolua_S,1,0));
16502 {
16503 StopGame(result);
16504 }
16505 }
16506 return 0;
16507 #ifndef TOLUA_RELEASE
16508 tolua_lerror:
16509 tolua_error(tolua_S,"#ferror in function 'StopGame'.",&tolua_err);
16510 return 0;
16511 #endif
16512 }
16513 #endif //#ifndef TOLUA_DISABLE
16514
16515
16516 #ifndef TOLUA_DISABLE_tolua_get_GameRunning
16517 static int tolua_get_GameRunning(lua_State* tolua_S)
16518 {
16519 tolua_pushboolean(tolua_S,(bool)GameRunning);
16520 return 1;
16521 }
16522 #endif //#ifndef TOLUA_DISABLE
16523
16524
16525 #ifndef TOLUA_DISABLE_tolua_set_GameRunning
16526 static int tolua_set_GameRunning(lua_State* tolua_S)
16527 {
16528 #ifndef TOLUA_RELEASE
16529 tolua_Error tolua_err;
16530 if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
16531 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
16532 #endif
16533 GameRunning = ((bool) tolua_toboolean(tolua_S,2,0))
16534 ;
16535 return 0;
16536 }
16537 #endif //#ifndef TOLUA_DISABLE
16538
16539
16540 #ifndef TOLUA_DISABLE_tolua_stratagus_SetGamePaused00
16541 static int tolua_stratagus_SetGamePaused00(lua_State* tolua_S)
16542 {
16543 #ifndef TOLUA_RELEASE
16544 tolua_Error tolua_err;
16545 if (
16546 !tolua_isboolean(tolua_S,1,0,&tolua_err) ||
16547 !tolua_isnoobj(tolua_S,2,&tolua_err)
16548 )
16549 goto tolua_lerror;
16550 else
16551 #endif
16552 {
16553 bool paused = ((bool) tolua_toboolean(tolua_S,1,0));
16554 {
16555 SetGamePaused(paused);
16556 }
16557 }
16558 return 0;
16559 #ifndef TOLUA_RELEASE
16560 tolua_lerror:
16561 tolua_error(tolua_S,"#ferror in function 'SetGamePaused'.",&tolua_err);
16562 return 0;
16563 #endif
16564 }
16565 #endif //#ifndef TOLUA_DISABLE
16566
16567
16568 #ifndef TOLUA_DISABLE_tolua_stratagus_GetGamePaused00
16569 static int tolua_stratagus_GetGamePaused00(lua_State* tolua_S)
16570 {
16571 #ifndef TOLUA_RELEASE
16572 tolua_Error tolua_err;
16573 if (
16574 !tolua_isnoobj(tolua_S,1,&tolua_err)
16575 )
16576 goto tolua_lerror;
16577 else
16578 #endif
16579 {
16580 {
16581 bool tolua_ret = (bool) GetGamePaused();
16582 tolua_pushboolean(tolua_S,(bool)tolua_ret);
16583 }
16584 }
16585 return 1;
16586 #ifndef TOLUA_RELEASE
16587 tolua_lerror:
16588 tolua_error(tolua_S,"#ferror in function 'GetGamePaused'.",&tolua_err);
16589 return 0;
16590 #endif
16591 }
16592 #endif //#ifndef TOLUA_DISABLE
16593
16594
16595 #ifndef TOLUA_DISABLE_tolua_get_GamePaused
16596 static int tolua_get_GamePaused(lua_State* tolua_S)
16597 {
16598 tolua_pushboolean(tolua_S,(bool)GetGamePaused());
16599 return 1;
16600 }
16601 #endif //#ifndef TOLUA_DISABLE
16602
16603
16604 #ifndef TOLUA_DISABLE_tolua_set_GamePaused
16605 static int tolua_set_GamePaused(lua_State* tolua_S)
16606 {
16607 #ifndef TOLUA_RELEASE
16608 tolua_Error tolua_err;
16609 if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
16610 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
16611 #endif
16612 SetGamePaused(((bool) tolua_toboolean(tolua_S,2,0))
16613 )
16614 ;
16615 return 0;
16616 }
16617 #endif //#ifndef TOLUA_DISABLE
16618
16619
16620 #ifndef TOLUA_DISABLE_tolua_stratagus_SetGameSpeed00
16621 static int tolua_stratagus_SetGameSpeed00(lua_State* tolua_S)
16622 {
16623 #ifndef TOLUA_RELEASE
16624 tolua_Error tolua_err;
16625 if (
16626 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
16627 !tolua_isnoobj(tolua_S,2,&tolua_err)
16628 )
16629 goto tolua_lerror;
16630 else
16631 #endif
16632 {
16633 int speed = ((int) tolua_tonumber(tolua_S,1,0));
16634 {
16635 SetGameSpeed(speed);
16636 }
16637 }
16638 return 0;
16639 #ifndef TOLUA_RELEASE
16640 tolua_lerror:
16641 tolua_error(tolua_S,"#ferror in function 'SetGameSpeed'.",&tolua_err);
16642 return 0;
16643 #endif
16644 }
16645 #endif //#ifndef TOLUA_DISABLE
16646
16647
16648 #ifndef TOLUA_DISABLE_tolua_stratagus_GetGameSpeed00
16649 static int tolua_stratagus_GetGameSpeed00(lua_State* tolua_S)
16650 {
16651 #ifndef TOLUA_RELEASE
16652 tolua_Error tolua_err;
16653 if (
16654 !tolua_isnoobj(tolua_S,1,&tolua_err)
16655 )
16656 goto tolua_lerror;
16657 else
16658 #endif
16659 {
16660 {
16661 int tolua_ret = (int) GetGameSpeed();
16662 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
16663 }
16664 }
16665 return 1;
16666 #ifndef TOLUA_RELEASE
16667 tolua_lerror:
16668 tolua_error(tolua_S,"#ferror in function 'GetGameSpeed'.",&tolua_err);
16669 return 0;
16670 #endif
16671 }
16672 #endif //#ifndef TOLUA_DISABLE
16673
16674
16675 #ifndef TOLUA_DISABLE_tolua_get_GameSpeed
16676 static int tolua_get_GameSpeed(lua_State* tolua_S)
16677 {
16678 tolua_pushnumber(tolua_S,(lua_Number)GetGameSpeed());
16679 return 1;
16680 }
16681 #endif //#ifndef TOLUA_DISABLE
16682
16683
16684 #ifndef TOLUA_DISABLE_tolua_set_GameSpeed
16685 static int tolua_set_GameSpeed(lua_State* tolua_S)
16686 {
16687 #ifndef TOLUA_RELEASE
16688 tolua_Error tolua_err;
16689 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
16690 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
16691 #endif
16692 SetGameSpeed(((int) tolua_tonumber(tolua_S,2,0))
16693 )
16694 ;
16695 return 0;
16696 }
16697 #endif //#ifndef TOLUA_DISABLE
16698
16699
16700 #ifndef TOLUA_DISABLE_tolua_get_GameObserve
16701 static int tolua_get_GameObserve(lua_State* tolua_S)
16702 {
16703 tolua_pushboolean(tolua_S,(bool)GameObserve);
16704 return 1;
16705 }
16706 #endif //#ifndef TOLUA_DISABLE
16707
16708
16709 #ifndef TOLUA_DISABLE_tolua_set_GameObserve
16710 static int tolua_set_GameObserve(lua_State* tolua_S)
16711 {
16712 #ifndef TOLUA_RELEASE
16713 tolua_Error tolua_err;
16714 if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
16715 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
16716 #endif
16717 GameObserve = ((bool) tolua_toboolean(tolua_S,2,0))
16718 ;
16719 return 0;
16720 }
16721 #endif //#ifndef TOLUA_DISABLE
16722
16723
16724 #ifndef TOLUA_DISABLE_tolua_get_unsigned_GameCycle
16725 static int tolua_get_unsigned_GameCycle(lua_State* tolua_S)
16726 {
16727 tolua_pushnumber(tolua_S,(lua_Number)GameCycle);
16728 return 1;
16729 }
16730 #endif //#ifndef TOLUA_DISABLE
16731
16732
16733 #ifndef TOLUA_DISABLE_tolua_set_unsigned_GameCycle
16734 static int tolua_set_unsigned_GameCycle(lua_State* tolua_S)
16735 {
16736 #ifndef TOLUA_RELEASE
16737 tolua_Error tolua_err;
16738 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
16739 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
16740 #endif
16741 GameCycle = ((unsigned long) tolua_tonumber(tolua_S,2,0))
16742 ;
16743 return 0;
16744 }
16745 #endif //#ifndef TOLUA_DISABLE
16746
16747
16748 #ifndef TOLUA_DISABLE_tolua_get_SettingsPresets_Team
16749 static int tolua_get_SettingsPresets_Team(lua_State* tolua_S)
16750 {
16751 SettingsPresets* self = (SettingsPresets*) tolua_tousertype(tolua_S,1,0);
16752 #ifndef TOLUA_RELEASE
16753 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Team'",NULL);
16754 #endif
16755 tolua_pushnumber(tolua_S,(lua_Number)self->Team);
16756 return 1;
16757 }
16758 #endif //#ifndef TOLUA_DISABLE
16759
16760
16761 #ifndef TOLUA_DISABLE_tolua_set_SettingsPresets_Team
16762 static int tolua_set_SettingsPresets_Team(lua_State* tolua_S)
16763 {
16764 SettingsPresets* self = (SettingsPresets*) tolua_tousertype(tolua_S,1,0);
16765 #ifndef TOLUA_RELEASE
16766 tolua_Error tolua_err;
16767 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Team'",NULL);
16768 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
16769 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
16770 #endif
16771 self->Team = ((int) tolua_tonumber(tolua_S,2,0))
16772 ;
16773 return 0;
16774 }
16775 #endif //#ifndef TOLUA_DISABLE
16776
16777
16778 #ifndef TOLUA_DISABLE_tolua_get_SettingsPresets_Type
16779 static int tolua_get_SettingsPresets_Type(lua_State* tolua_S)
16780 {
16781 SettingsPresets* self = (SettingsPresets*) tolua_tousertype(tolua_S,1,0);
16782 #ifndef TOLUA_RELEASE
16783 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Type'",NULL);
16784 #endif
16785 tolua_pushnumber(tolua_S,(lua_Number)self->Type);
16786 return 1;
16787 }
16788 #endif //#ifndef TOLUA_DISABLE
16789
16790
16791 #ifndef TOLUA_DISABLE_tolua_set_SettingsPresets_Type
16792 static int tolua_set_SettingsPresets_Type(lua_State* tolua_S)
16793 {
16794 SettingsPresets* self = (SettingsPresets*) tolua_tousertype(tolua_S,1,0);
16795 #ifndef TOLUA_RELEASE
16796 tolua_Error tolua_err;
16797 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Type'",NULL);
16798 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
16799 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
16800 #endif
16801 self->Type = ((int) tolua_tonumber(tolua_S,2,0))
16802 ;
16803 return 0;
16804 }
16805 #endif //#ifndef TOLUA_DISABLE
16806
16807
16808 #ifndef TOLUA_DISABLE_tolua_get_Settings_NetGameType
16809 static int tolua_get_Settings_NetGameType(lua_State* tolua_S)
16810 {
16811 Settings* self = (Settings*) tolua_tousertype(tolua_S,1,0);
16812 #ifndef TOLUA_RELEASE
16813 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'NetGameType'",NULL);
16814 #endif
16815 tolua_pushnumber(tolua_S,(lua_Number)self->NetGameType);
16816 return 1;
16817 }
16818 #endif //#ifndef TOLUA_DISABLE
16819
16820
16821 #ifndef TOLUA_DISABLE_tolua_set_Settings_NetGameType
16822 static int tolua_set_Settings_NetGameType(lua_State* tolua_S)
16823 {
16824 Settings* self = (Settings*) tolua_tousertype(tolua_S,1,0);
16825 #ifndef TOLUA_RELEASE
16826 tolua_Error tolua_err;
16827 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'NetGameType'",NULL);
16828 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
16829 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
16830 #endif
16831 self->NetGameType = ((int) tolua_tonumber(tolua_S,2,0))
16832 ;
16833 return 0;
16834 }
16835 #endif //#ifndef TOLUA_DISABLE
16836
16837
16838 #ifndef TOLUA_DISABLE_tolua_get_stratagus_Settings_Presets
16839 static int tolua_get_stratagus_Settings_Presets(lua_State* tolua_S)
16840 {
16841 int tolua_index;
16842 Settings* self;
16843 lua_pushstring(tolua_S,".self");
16844 lua_rawget(tolua_S,1);
16845 self = (Settings*) lua_touserdata(tolua_S,-1);
16846 #ifndef TOLUA_RELEASE
16847 {
16848 tolua_Error tolua_err;
16849 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
16850 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
16851 }
16852 #endif
16853 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
16854 #ifndef TOLUA_RELEASE
16855 if (tolua_index<0 || tolua_index>=PlayerMax)
16856 tolua_error(tolua_S,"array indexing out of range.",NULL);
16857 #endif
16858 tolua_pushusertype(tolua_S,(void*)&self->Presets[tolua_index],"SettingsPresets");
16859 return 1;
16860 }
16861 #endif //#ifndef TOLUA_DISABLE
16862
16863
16864 #ifndef TOLUA_DISABLE_tolua_set_stratagus_Settings_Presets
16865 static int tolua_set_stratagus_Settings_Presets(lua_State* tolua_S)
16866 {
16867 int tolua_index;
16868 Settings* self;
16869 lua_pushstring(tolua_S,".self");
16870 lua_rawget(tolua_S,1);
16871 self = (Settings*) lua_touserdata(tolua_S,-1);
16872 #ifndef TOLUA_RELEASE
16873 {
16874 tolua_Error tolua_err;
16875 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
16876 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
16877 }
16878 #endif
16879 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
16880 #ifndef TOLUA_RELEASE
16881 if (tolua_index<0 || tolua_index>=PlayerMax)
16882 tolua_error(tolua_S,"array indexing out of range.",NULL);
16883 #endif
16884 self->Presets[tolua_index] = *((SettingsPresets*) tolua_tousertype(tolua_S,3,0));
16885 return 0;
16886 }
16887 #endif //#ifndef TOLUA_DISABLE
16888
16889
16890 #ifndef TOLUA_DISABLE_tolua_get_Settings_Resources
16891 static int tolua_get_Settings_Resources(lua_State* tolua_S)
16892 {
16893 Settings* self = (Settings*) tolua_tousertype(tolua_S,1,0);
16894 #ifndef TOLUA_RELEASE
16895 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Resources'",NULL);
16896 #endif
16897 tolua_pushnumber(tolua_S,(lua_Number)self->Resources);
16898 return 1;
16899 }
16900 #endif //#ifndef TOLUA_DISABLE
16901
16902
16903 #ifndef TOLUA_DISABLE_tolua_set_Settings_Resources
16904 static int tolua_set_Settings_Resources(lua_State* tolua_S)
16905 {
16906 Settings* self = (Settings*) tolua_tousertype(tolua_S,1,0);
16907 #ifndef TOLUA_RELEASE
16908 tolua_Error tolua_err;
16909 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Resources'",NULL);
16910 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
16911 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
16912 #endif
16913 self->Resources = ((int) tolua_tonumber(tolua_S,2,0))
16914 ;
16915 return 0;
16916 }
16917 #endif //#ifndef TOLUA_DISABLE
16918
16919
16920 #ifndef TOLUA_DISABLE_tolua_get_Settings_NumUnits
16921 static int tolua_get_Settings_NumUnits(lua_State* tolua_S)
16922 {
16923 Settings* self = (Settings*) tolua_tousertype(tolua_S,1,0);
16924 #ifndef TOLUA_RELEASE
16925 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'NumUnits'",NULL);
16926 #endif
16927 tolua_pushnumber(tolua_S,(lua_Number)self->NumUnits);
16928 return 1;
16929 }
16930 #endif //#ifndef TOLUA_DISABLE
16931
16932
16933 #ifndef TOLUA_DISABLE_tolua_set_Settings_NumUnits
16934 static int tolua_set_Settings_NumUnits(lua_State* tolua_S)
16935 {
16936 Settings* self = (Settings*) tolua_tousertype(tolua_S,1,0);
16937 #ifndef TOLUA_RELEASE
16938 tolua_Error tolua_err;
16939 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'NumUnits'",NULL);
16940 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
16941 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
16942 #endif
16943 self->NumUnits = ((int) tolua_tonumber(tolua_S,2,0))
16944 ;
16945 return 0;
16946 }
16947 #endif //#ifndef TOLUA_DISABLE
16948
16949
16950 #ifndef TOLUA_DISABLE_tolua_get_Settings_Opponents
16951 static int tolua_get_Settings_Opponents(lua_State* tolua_S)
16952 {
16953 Settings* self = (Settings*) tolua_tousertype(tolua_S,1,0);
16954 #ifndef TOLUA_RELEASE
16955 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Opponents'",NULL);
16956 #endif
16957 tolua_pushnumber(tolua_S,(lua_Number)self->Opponents);
16958 return 1;
16959 }
16960 #endif //#ifndef TOLUA_DISABLE
16961
16962
16963 #ifndef TOLUA_DISABLE_tolua_set_Settings_Opponents
16964 static int tolua_set_Settings_Opponents(lua_State* tolua_S)
16965 {
16966 Settings* self = (Settings*) tolua_tousertype(tolua_S,1,0);
16967 #ifndef TOLUA_RELEASE
16968 tolua_Error tolua_err;
16969 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Opponents'",NULL);
16970 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
16971 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
16972 #endif
16973 self->Opponents = ((int) tolua_tonumber(tolua_S,2,0))
16974 ;
16975 return 0;
16976 }
16977 #endif //#ifndef TOLUA_DISABLE
16978
16979
16980 #ifndef TOLUA_DISABLE_tolua_get_Settings_Difficulty
16981 static int tolua_get_Settings_Difficulty(lua_State* tolua_S)
16982 {
16983 Settings* self = (Settings*) tolua_tousertype(tolua_S,1,0);
16984 #ifndef TOLUA_RELEASE
16985 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Difficulty'",NULL);
16986 #endif
16987 tolua_pushnumber(tolua_S,(lua_Number)self->Difficulty);
16988 return 1;
16989 }
16990 #endif //#ifndef TOLUA_DISABLE
16991
16992
16993 #ifndef TOLUA_DISABLE_tolua_set_Settings_Difficulty
16994 static int tolua_set_Settings_Difficulty(lua_State* tolua_S)
16995 {
16996 Settings* self = (Settings*) tolua_tousertype(tolua_S,1,0);
16997 #ifndef TOLUA_RELEASE
16998 tolua_Error tolua_err;
16999 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Difficulty'",NULL);
17000 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
17001 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
17002 #endif
17003 self->Difficulty = ((int) tolua_tonumber(tolua_S,2,0))
17004 ;
17005 return 0;
17006 }
17007 #endif //#ifndef TOLUA_DISABLE
17008
17009
17010 #ifndef TOLUA_DISABLE_tolua_get_Settings_GameType
17011 static int tolua_get_Settings_GameType(lua_State* tolua_S)
17012 {
17013 Settings* self = (Settings*) tolua_tousertype(tolua_S,1,0);
17014 #ifndef TOLUA_RELEASE
17015 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'GameType'",NULL);
17016 #endif
17017 tolua_pushnumber(tolua_S,(lua_Number)self->GameType);
17018 return 1;
17019 }
17020 #endif //#ifndef TOLUA_DISABLE
17021
17022
17023 #ifndef TOLUA_DISABLE_tolua_set_Settings_GameType
17024 static int tolua_set_Settings_GameType(lua_State* tolua_S)
17025 {
17026 Settings* self = (Settings*) tolua_tousertype(tolua_S,1,0);
17027 #ifndef TOLUA_RELEASE
17028 tolua_Error tolua_err;
17029 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'GameType'",NULL);
17030 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
17031 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
17032 #endif
17033 self->GameType = ((int) tolua_tonumber(tolua_S,2,0))
17034 ;
17035 return 0;
17036 }
17037 #endif //#ifndef TOLUA_DISABLE
17038
17039
17040 #ifndef TOLUA_DISABLE_tolua_get_Settings_NoFogOfWar
17041 static int tolua_get_Settings_NoFogOfWar(lua_State* tolua_S)
17042 {
17043 Settings* self = (Settings*) tolua_tousertype(tolua_S,1,0);
17044 #ifndef TOLUA_RELEASE
17045 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'NoFogOfWar'",NULL);
17046 #endif
17047 tolua_pushboolean(tolua_S,(bool)self->NoFogOfWar);
17048 return 1;
17049 }
17050 #endif //#ifndef TOLUA_DISABLE
17051
17052
17053 #ifndef TOLUA_DISABLE_tolua_set_Settings_NoFogOfWar
17054 static int tolua_set_Settings_NoFogOfWar(lua_State* tolua_S)
17055 {
17056 Settings* self = (Settings*) tolua_tousertype(tolua_S,1,0);
17057 #ifndef TOLUA_RELEASE
17058 tolua_Error tolua_err;
17059 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'NoFogOfWar'",NULL);
17060 if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
17061 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
17062 #endif
17063 self->NoFogOfWar = ((bool) tolua_toboolean(tolua_S,2,0))
17064 ;
17065 return 0;
17066 }
17067 #endif //#ifndef TOLUA_DISABLE
17068
17069
17070 #ifndef TOLUA_DISABLE_tolua_get_Settings_RevealMap
17071 static int tolua_get_Settings_RevealMap(lua_State* tolua_S)
17072 {
17073 Settings* self = (Settings*) tolua_tousertype(tolua_S,1,0);
17074 #ifndef TOLUA_RELEASE
17075 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'RevealMap'",NULL);
17076 #endif
17077 tolua_pushnumber(tolua_S,(lua_Number)self->RevealMap);
17078 return 1;
17079 }
17080 #endif //#ifndef TOLUA_DISABLE
17081
17082
17083 #ifndef TOLUA_DISABLE_tolua_set_Settings_RevealMap
17084 static int tolua_set_Settings_RevealMap(lua_State* tolua_S)
17085 {
17086 Settings* self = (Settings*) tolua_tousertype(tolua_S,1,0);
17087 #ifndef TOLUA_RELEASE
17088 tolua_Error tolua_err;
17089 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'RevealMap'",NULL);
17090 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
17091 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
17092 #endif
17093 self->RevealMap = ((int) tolua_tonumber(tolua_S,2,0))
17094 ;
17095 return 0;
17096 }
17097 #endif //#ifndef TOLUA_DISABLE
17098
17099
17100 #ifndef TOLUA_DISABLE_tolua_get_Settings_MapRichness
17101 static int tolua_get_Settings_MapRichness(lua_State* tolua_S)
17102 {
17103 Settings* self = (Settings*) tolua_tousertype(tolua_S,1,0);
17104 #ifndef TOLUA_RELEASE
17105 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MapRichness'",NULL);
17106 #endif
17107 tolua_pushnumber(tolua_S,(lua_Number)self->MapRichness);
17108 return 1;
17109 }
17110 #endif //#ifndef TOLUA_DISABLE
17111
17112
17113 #ifndef TOLUA_DISABLE_tolua_set_Settings_MapRichness
17114 static int tolua_set_Settings_MapRichness(lua_State* tolua_S)
17115 {
17116 Settings* self = (Settings*) tolua_tousertype(tolua_S,1,0);
17117 #ifndef TOLUA_RELEASE
17118 tolua_Error tolua_err;
17119 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MapRichness'",NULL);
17120 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
17121 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
17122 #endif
17123 self->MapRichness = ((int) tolua_tonumber(tolua_S,2,0))
17124 ;
17125 return 0;
17126 }
17127 #endif //#ifndef TOLUA_DISABLE
17128
17129
17130 #ifndef TOLUA_DISABLE_tolua_get_GameSettings
17131 static int tolua_get_GameSettings(lua_State* tolua_S)
17132 {
17133 tolua_pushusertype(tolua_S,(void*)&GameSettings,"Settings");
17134 return 1;
17135 }
17136 #endif //#ifndef TOLUA_DISABLE
17137
17138
17139 #ifndef TOLUA_DISABLE_tolua_set_GameSettings
17140 static int tolua_set_GameSettings(lua_State* tolua_S)
17141 {
17142 #ifndef TOLUA_RELEASE
17143 tolua_Error tolua_err;
17144 if (!tolua_isusertype(tolua_S,2,"Settings",0,&tolua_err))
17145 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
17146 #endif
17147 GameSettings = *((Settings*) tolua_tousertype(tolua_S,2,0))
17148 ;
17149 return 0;
17150 }
17151 #endif //#ifndef TOLUA_DISABLE
17152
17153
17154 #ifndef TOLUA_DISABLE_tolua_get_stratagus_AlliedUnitRecyclingEfficiency
17155 static int tolua_get_stratagus_AlliedUnitRecyclingEfficiency(lua_State* tolua_S)
17156 {
17157 int tolua_index;
17158 #ifndef TOLUA_RELEASE
17159 {
17160 tolua_Error tolua_err;
17161 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
17162 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
17163 }
17164 #endif
17165 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
17166 #ifndef TOLUA_RELEASE
17167 if (tolua_index<0 || tolua_index>=MaxCosts)
17168 tolua_error(tolua_S,"array indexing out of range.",NULL);
17169 #endif
17170 tolua_pushnumber(tolua_S,(lua_Number)AlliedUnitRecyclingEfficiency[tolua_index]);
17171 return 1;
17172 }
17173 #endif //#ifndef TOLUA_DISABLE
17174
17175
17176 #ifndef TOLUA_DISABLE_tolua_set_stratagus_AlliedUnitRecyclingEfficiency
17177 static int tolua_set_stratagus_AlliedUnitRecyclingEfficiency(lua_State* tolua_S)
17178 {
17179 int tolua_index;
17180 #ifndef TOLUA_RELEASE
17181 {
17182 tolua_Error tolua_err;
17183 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
17184 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
17185 }
17186 #endif
17187 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
17188 #ifndef TOLUA_RELEASE
17189 if (tolua_index<0 || tolua_index>=MaxCosts)
17190 tolua_error(tolua_S,"array indexing out of range.",NULL);
17191 #endif
17192 AlliedUnitRecyclingEfficiency[tolua_index] = ((int) tolua_tonumber(tolua_S,3,0));
17193 return 0;
17194 }
17195 #endif //#ifndef TOLUA_DISABLE
17196
17197
17198 #ifndef TOLUA_DISABLE_tolua_get_stratagus_EnemyUnitRecyclingEfficiency
17199 static int tolua_get_stratagus_EnemyUnitRecyclingEfficiency(lua_State* tolua_S)
17200 {
17201 int tolua_index;
17202 #ifndef TOLUA_RELEASE
17203 {
17204 tolua_Error tolua_err;
17205 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
17206 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
17207 }
17208 #endif
17209 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
17210 #ifndef TOLUA_RELEASE
17211 if (tolua_index<0 || tolua_index>=MaxCosts)
17212 tolua_error(tolua_S,"array indexing out of range.",NULL);
17213 #endif
17214 tolua_pushnumber(tolua_S,(lua_Number)EnemyUnitRecyclingEfficiency[tolua_index]);
17215 return 1;
17216 }
17217 #endif //#ifndef TOLUA_DISABLE
17218
17219
17220 #ifndef TOLUA_DISABLE_tolua_set_stratagus_EnemyUnitRecyclingEfficiency
17221 static int tolua_set_stratagus_EnemyUnitRecyclingEfficiency(lua_State* tolua_S)
17222 {
17223 int tolua_index;
17224 #ifndef TOLUA_RELEASE
17225 {
17226 tolua_Error tolua_err;
17227 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
17228 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
17229 }
17230 #endif
17231 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
17232 #ifndef TOLUA_RELEASE
17233 if (tolua_index<0 || tolua_index>=MaxCosts)
17234 tolua_error(tolua_S,"array indexing out of range.",NULL);
17235 #endif
17236 EnemyUnitRecyclingEfficiency[tolua_index] = ((int) tolua_tonumber(tolua_S,3,0));
17237 return 0;
17238 }
17239 #endif //#ifndef TOLUA_DISABLE
17240
17241
17242 #ifndef TOLUA_DISABLE_tolua_get_CMapInfo_Description
17243 static int tolua_get_CMapInfo_Description(lua_State* tolua_S)
17244 {
17245 CMapInfo* self = (CMapInfo*) tolua_tousertype(tolua_S,1,0);
17246 #ifndef TOLUA_RELEASE
17247 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Description'",NULL);
17248 #endif
17249 tolua_pushcppstring(tolua_S,(const char*)self->Description);
17250 return 1;
17251 }
17252 #endif //#ifndef TOLUA_DISABLE
17253
17254
17255 #ifndef TOLUA_DISABLE_tolua_set_CMapInfo_Description
17256 static int tolua_set_CMapInfo_Description(lua_State* tolua_S)
17257 {
17258 CMapInfo* self = (CMapInfo*) tolua_tousertype(tolua_S,1,0);
17259 #ifndef TOLUA_RELEASE
17260 tolua_Error tolua_err;
17261 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Description'",NULL);
17262 if (!tolua_iscppstring(tolua_S,2,0,&tolua_err))
17263 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
17264 #endif
17265 self->Description = ((string) tolua_tocppstring(tolua_S,2,0))
17266 ;
17267 return 0;
17268 }
17269 #endif //#ifndef TOLUA_DISABLE
17270
17271
17272 #ifndef TOLUA_DISABLE_tolua_get_CMapInfo_MapWidth
17273 static int tolua_get_CMapInfo_MapWidth(lua_State* tolua_S)
17274 {
17275 CMapInfo* self = (CMapInfo*) tolua_tousertype(tolua_S,1,0);
17276 #ifndef TOLUA_RELEASE
17277 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MapWidth'",NULL);
17278 #endif
17279 tolua_pushnumber(tolua_S,(lua_Number)self->MapWidth);
17280 return 1;
17281 }
17282 #endif //#ifndef TOLUA_DISABLE
17283
17284
17285 #ifndef TOLUA_DISABLE_tolua_set_CMapInfo_MapWidth
17286 static int tolua_set_CMapInfo_MapWidth(lua_State* tolua_S)
17287 {
17288 CMapInfo* self = (CMapInfo*) tolua_tousertype(tolua_S,1,0);
17289 #ifndef TOLUA_RELEASE
17290 tolua_Error tolua_err;
17291 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MapWidth'",NULL);
17292 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
17293 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
17294 #endif
17295 self->MapWidth = ((int) tolua_tonumber(tolua_S,2,0))
17296 ;
17297 return 0;
17298 }
17299 #endif //#ifndef TOLUA_DISABLE
17300
17301
17302 #ifndef TOLUA_DISABLE_tolua_get_CMapInfo_MapHeight
17303 static int tolua_get_CMapInfo_MapHeight(lua_State* tolua_S)
17304 {
17305 CMapInfo* self = (CMapInfo*) tolua_tousertype(tolua_S,1,0);
17306 #ifndef TOLUA_RELEASE
17307 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MapHeight'",NULL);
17308 #endif
17309 tolua_pushnumber(tolua_S,(lua_Number)self->MapHeight);
17310 return 1;
17311 }
17312 #endif //#ifndef TOLUA_DISABLE
17313
17314
17315 #ifndef TOLUA_DISABLE_tolua_set_CMapInfo_MapHeight
17316 static int tolua_set_CMapInfo_MapHeight(lua_State* tolua_S)
17317 {
17318 CMapInfo* self = (CMapInfo*) tolua_tousertype(tolua_S,1,0);
17319 #ifndef TOLUA_RELEASE
17320 tolua_Error tolua_err;
17321 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'MapHeight'",NULL);
17322 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
17323 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
17324 #endif
17325 self->MapHeight = ((int) tolua_tonumber(tolua_S,2,0))
17326 ;
17327 return 0;
17328 }
17329 #endif //#ifndef TOLUA_DISABLE
17330
17331
17332 #ifndef TOLUA_DISABLE_tolua_get_stratagus_CMapInfo_PlayerType
17333 static int tolua_get_stratagus_CMapInfo_PlayerType(lua_State* tolua_S)
17334 {
17335 int tolua_index;
17336 CMapInfo* self;
17337 lua_pushstring(tolua_S,".self");
17338 lua_rawget(tolua_S,1);
17339 self = (CMapInfo*) lua_touserdata(tolua_S,-1);
17340 #ifndef TOLUA_RELEASE
17341 {
17342 tolua_Error tolua_err;
17343 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
17344 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
17345 }
17346 #endif
17347 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
17348 #ifndef TOLUA_RELEASE
17349 if (tolua_index<0 || tolua_index>=PlayerMax)
17350 tolua_error(tolua_S,"array indexing out of range.",NULL);
17351 #endif
17352 tolua_pushnumber(tolua_S,(lua_Number)self->PlayerType[tolua_index]);
17353 return 1;
17354 }
17355 #endif //#ifndef TOLUA_DISABLE
17356
17357
17358 #ifndef TOLUA_DISABLE_tolua_set_stratagus_CMapInfo_PlayerType
17359 static int tolua_set_stratagus_CMapInfo_PlayerType(lua_State* tolua_S)
17360 {
17361 int tolua_index;
17362 CMapInfo* self;
17363 lua_pushstring(tolua_S,".self");
17364 lua_rawget(tolua_S,1);
17365 self = (CMapInfo*) lua_touserdata(tolua_S,-1);
17366 #ifndef TOLUA_RELEASE
17367 {
17368 tolua_Error tolua_err;
17369 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
17370 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
17371 }
17372 #endif
17373 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
17374 #ifndef TOLUA_RELEASE
17375 if (tolua_index<0 || tolua_index>=PlayerMax)
17376 tolua_error(tolua_S,"array indexing out of range.",NULL);
17377 #endif
17378 self->PlayerType[tolua_index] = ((int) tolua_tonumber(tolua_S,3,0));
17379 return 0;
17380 }
17381 #endif //#ifndef TOLUA_DISABLE
17382
17383
17384 #ifndef TOLUA_DISABLE_tolua_get_CMap_Info
17385 static int tolua_get_CMap_Info(lua_State* tolua_S)
17386 {
17387 CMap* self = (CMap*) tolua_tousertype(tolua_S,1,0);
17388 #ifndef TOLUA_RELEASE
17389 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Info'",NULL);
17390 #endif
17391 tolua_pushusertype(tolua_S,(void*)&self->Info,"CMapInfo");
17392 return 1;
17393 }
17394 #endif //#ifndef TOLUA_DISABLE
17395
17396
17397 #ifndef TOLUA_DISABLE_tolua_set_CMap_Info
17398 static int tolua_set_CMap_Info(lua_State* tolua_S)
17399 {
17400 CMap* self = (CMap*) tolua_tousertype(tolua_S,1,0);
17401 #ifndef TOLUA_RELEASE
17402 tolua_Error tolua_err;
17403 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'Info'",NULL);
17404 if (!tolua_isusertype(tolua_S,2,"CMapInfo",0,&tolua_err))
17405 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
17406 #endif
17407 self->Info = *((CMapInfo*) tolua_tousertype(tolua_S,2,0))
17408 ;
17409 return 0;
17410 }
17411 #endif //#ifndef TOLUA_DISABLE
17412
17413
17414 #ifndef TOLUA_DISABLE_tolua_get_CMap_PatchManager
17415 static int tolua_get_CMap_PatchManager(lua_State* tolua_S)
17416 {
17417 CMap* self = (CMap*) tolua_tousertype(tolua_S,1,0);
17418 #ifndef TOLUA_RELEASE
17419 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'PatchManager'",NULL);
17420 #endif
17421 tolua_pushusertype(tolua_S,(void*)&self->PatchManager,"CPatchManager");
17422 return 1;
17423 }
17424 #endif //#ifndef TOLUA_DISABLE
17425
17426
17427 #ifndef TOLUA_DISABLE_tolua_set_CMap_PatchManager
17428 static int tolua_set_CMap_PatchManager(lua_State* tolua_S)
17429 {
17430 CMap* self = (CMap*) tolua_tousertype(tolua_S,1,0);
17431 #ifndef TOLUA_RELEASE
17432 tolua_Error tolua_err;
17433 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'PatchManager'",NULL);
17434 if (!tolua_isusertype(tolua_S,2,"CPatchManager",0,&tolua_err))
17435 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
17436 #endif
17437 self->PatchManager = *((CPatchManager*) tolua_tousertype(tolua_S,2,0))
17438 ;
17439 return 0;
17440 }
17441 #endif //#ifndef TOLUA_DISABLE
17442
17443
17444 #ifndef TOLUA_DISABLE_tolua_get_Map
17445 static int tolua_get_Map(lua_State* tolua_S)
17446 {
17447 tolua_pushusertype(tolua_S,(void*)&Map,"CMap");
17448 return 1;
17449 }
17450 #endif //#ifndef TOLUA_DISABLE
17451
17452
17453 #ifndef TOLUA_DISABLE_tolua_set_Map
17454 static int tolua_set_Map(lua_State* tolua_S)
17455 {
17456 #ifndef TOLUA_RELEASE
17457 tolua_Error tolua_err;
17458 if (!tolua_isusertype(tolua_S,2,"CMap",0,&tolua_err))
17459 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
17460 #endif
17461 Map = *((CMap*) tolua_tousertype(tolua_S,2,0))
17462 ;
17463 return 0;
17464 }
17465 #endif //#ifndef TOLUA_DISABLE
17466
17467
17468 #ifndef TOLUA_DISABLE_tolua_stratagus_CPatchType_getGraphic00
17469 static int tolua_stratagus_CPatchType_getGraphic00(lua_State* tolua_S)
17470 {
17471 #ifndef TOLUA_RELEASE
17472 tolua_Error tolua_err;
17473 if (
17474 !tolua_isusertype(tolua_S,1,"const CPatchType",0,&tolua_err) ||
17475 !tolua_isnoobj(tolua_S,2,&tolua_err)
17476 )
17477 goto tolua_lerror;
17478 else
17479 #endif
17480 {
17481 const CPatchType* self = (const CPatchType*) tolua_tousertype(tolua_S,1,0);
17482 #ifndef TOLUA_RELEASE
17483 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getGraphic'",NULL);
17484 #endif
17485 {
17486 const CGraphic* tolua_ret = (const CGraphic*) self->getGraphic();
17487 tolua_pushusertype(tolua_S,(void*)tolua_ret,"const CGraphic");
17488 }
17489 }
17490 return 1;
17491 #ifndef TOLUA_RELEASE
17492 tolua_lerror:
17493 tolua_error(tolua_S,"#ferror in function 'getGraphic'.",&tolua_err);
17494 return 0;
17495 #endif
17496 }
17497 #endif //#ifndef TOLUA_DISABLE
17498
17499
17500 #ifndef TOLUA_DISABLE_tolua_stratagus_CPatchType_getTileWidth00
17501 static int tolua_stratagus_CPatchType_getTileWidth00(lua_State* tolua_S)
17502 {
17503 #ifndef TOLUA_RELEASE
17504 tolua_Error tolua_err;
17505 if (
17506 !tolua_isusertype(tolua_S,1,"const CPatchType",0,&tolua_err) ||
17507 !tolua_isnoobj(tolua_S,2,&tolua_err)
17508 )
17509 goto tolua_lerror;
17510 else
17511 #endif
17512 {
17513 const CPatchType* self = (const CPatchType*) tolua_tousertype(tolua_S,1,0);
17514 #ifndef TOLUA_RELEASE
17515 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getTileWidth'",NULL);
17516 #endif
17517 {
17518 int tolua_ret = (int) self->getTileWidth();
17519 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
17520 }
17521 }
17522 return 1;
17523 #ifndef TOLUA_RELEASE
17524 tolua_lerror:
17525 tolua_error(tolua_S,"#ferror in function 'getTileWidth'.",&tolua_err);
17526 return 0;
17527 #endif
17528 }
17529 #endif //#ifndef TOLUA_DISABLE
17530
17531
17532 #ifndef TOLUA_DISABLE_tolua_stratagus_CPatchType_getTileHeight00
17533 static int tolua_stratagus_CPatchType_getTileHeight00(lua_State* tolua_S)
17534 {
17535 #ifndef TOLUA_RELEASE
17536 tolua_Error tolua_err;
17537 if (
17538 !tolua_isusertype(tolua_S,1,"const CPatchType",0,&tolua_err) ||
17539 !tolua_isnoobj(tolua_S,2,&tolua_err)
17540 )
17541 goto tolua_lerror;
17542 else
17543 #endif
17544 {
17545 const CPatchType* self = (const CPatchType*) tolua_tousertype(tolua_S,1,0);
17546 #ifndef TOLUA_RELEASE
17547 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getTileHeight'",NULL);
17548 #endif
17549 {
17550 int tolua_ret = (int) self->getTileHeight();
17551 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
17552 }
17553 }
17554 return 1;
17555 #ifndef TOLUA_RELEASE
17556 tolua_lerror:
17557 tolua_error(tolua_S,"#ferror in function 'getTileHeight'.",&tolua_err);
17558 return 0;
17559 #endif
17560 }
17561 #endif //#ifndef TOLUA_DISABLE
17562
17563
17564 #ifndef TOLUA_DISABLE_tolua_stratagus_CPatchType_getFlag00
17565 static int tolua_stratagus_CPatchType_getFlag00(lua_State* tolua_S)
17566 {
17567 #ifndef TOLUA_RELEASE
17568 tolua_Error tolua_err;
17569 if (
17570 !tolua_isusertype(tolua_S,1,"CPatchType",0,&tolua_err) ||
17571 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
17572 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
17573 !tolua_isnoobj(tolua_S,4,&tolua_err)
17574 )
17575 goto tolua_lerror;
17576 else
17577 #endif
17578 {
17579 CPatchType* self = (CPatchType*) tolua_tousertype(tolua_S,1,0);
17580 int x = ((int) tolua_tonumber(tolua_S,2,0));
17581 int y = ((int) tolua_tonumber(tolua_S,3,0));
17582 #ifndef TOLUA_RELEASE
17583 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getFlag'",NULL);
17584 #endif
17585 {
17586 unsigned short tolua_ret = (unsigned short) self->getFlag(x,y);
17587 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
17588 }
17589 }
17590 return 1;
17591 #ifndef TOLUA_RELEASE
17592 tolua_lerror:
17593 tolua_error(tolua_S,"#ferror in function 'getFlag'.",&tolua_err);
17594 return 0;
17595 #endif
17596 }
17597 #endif //#ifndef TOLUA_DISABLE
17598
17599
17600 #ifndef TOLUA_DISABLE_tolua_stratagus_CPatch_getType00
17601 static int tolua_stratagus_CPatch_getType00(lua_State* tolua_S)
17602 {
17603 #ifndef TOLUA_RELEASE
17604 tolua_Error tolua_err;
17605 if (
17606 !tolua_isusertype(tolua_S,1,"CPatch",0,&tolua_err) ||
17607 !tolua_isnoobj(tolua_S,2,&tolua_err)
17608 )
17609 goto tolua_lerror;
17610 else
17611 #endif
17612 {
17613 CPatch* self = (CPatch*) tolua_tousertype(tolua_S,1,0);
17614 #ifndef TOLUA_RELEASE
17615 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getType'",NULL);
17616 #endif
17617 {
17618 CPatchType* tolua_ret = (CPatchType*) self->getType();
17619 tolua_pushusertype(tolua_S,(void*)tolua_ret,"CPatchType");
17620 }
17621 }
17622 return 1;
17623 #ifndef TOLUA_RELEASE
17624 tolua_lerror:
17625 tolua_error(tolua_S,"#ferror in function 'getType'.",&tolua_err);
17626 return 0;
17627 #endif
17628 }
17629 #endif //#ifndef TOLUA_DISABLE
17630
17631
17632 #ifndef TOLUA_DISABLE_tolua_stratagus_CPatch_setPos00
17633 static int tolua_stratagus_CPatch_setPos00(lua_State* tolua_S)
17634 {
17635 #ifndef TOLUA_RELEASE
17636 tolua_Error tolua_err;
17637 if (
17638 !tolua_isusertype(tolua_S,1,"CPatch",0,&tolua_err) ||
17639 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
17640 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
17641 !tolua_isnoobj(tolua_S,4,&tolua_err)
17642 )
17643 goto tolua_lerror;
17644 else
17645 #endif
17646 {
17647 CPatch* self = (CPatch*) tolua_tousertype(tolua_S,1,0);
17648 int x = ((int) tolua_tonumber(tolua_S,2,0));
17649 int y = ((int) tolua_tonumber(tolua_S,3,0));
17650 #ifndef TOLUA_RELEASE
17651 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setPos'",NULL);
17652 #endif
17653 {
17654 self->setPos(x,y);
17655 }
17656 }
17657 return 0;
17658 #ifndef TOLUA_RELEASE
17659 tolua_lerror:
17660 tolua_error(tolua_S,"#ferror in function 'setPos'.",&tolua_err);
17661 return 0;
17662 #endif
17663 }
17664 #endif //#ifndef TOLUA_DISABLE
17665
17666
17667 #ifndef TOLUA_DISABLE_tolua_stratagus_CPatch_setX00
17668 static int tolua_stratagus_CPatch_setX00(lua_State* tolua_S)
17669 {
17670 #ifndef TOLUA_RELEASE
17671 tolua_Error tolua_err;
17672 if (
17673 !tolua_isusertype(tolua_S,1,"CPatch",0,&tolua_err) ||
17674 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
17675 !tolua_isnoobj(tolua_S,3,&tolua_err)
17676 )
17677 goto tolua_lerror;
17678 else
17679 #endif
17680 {
17681 CPatch* self = (CPatch*) tolua_tousertype(tolua_S,1,0);
17682 int x = ((int) tolua_tonumber(tolua_S,2,0));
17683 #ifndef TOLUA_RELEASE
17684 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setX'",NULL);
17685 #endif
17686 {
17687 self->setX(x);
17688 }
17689 }
17690 return 0;
17691 #ifndef TOLUA_RELEASE
17692 tolua_lerror:
17693 tolua_error(tolua_S,"#ferror in function 'setX'.",&tolua_err);
17694 return 0;
17695 #endif
17696 }
17697 #endif //#ifndef TOLUA_DISABLE
17698
17699
17700 #ifndef TOLUA_DISABLE_tolua_stratagus_CPatch_getX00
17701 static int tolua_stratagus_CPatch_getX00(lua_State* tolua_S)
17702 {
17703 #ifndef TOLUA_RELEASE
17704 tolua_Error tolua_err;
17705 if (
17706 !tolua_isusertype(tolua_S,1,"const CPatch",0,&tolua_err) ||
17707 !tolua_isnoobj(tolua_S,2,&tolua_err)
17708 )
17709 goto tolua_lerror;
17710 else
17711 #endif
17712 {
17713 const CPatch* self = (const CPatch*) tolua_tousertype(tolua_S,1,0);
17714 #ifndef TOLUA_RELEASE
17715 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getX'",NULL);
17716 #endif
17717 {
17718 int tolua_ret = (int) self->getX();
17719 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
17720 }
17721 }
17722 return 1;
17723 #ifndef TOLUA_RELEASE
17724 tolua_lerror:
17725 tolua_error(tolua_S,"#ferror in function 'getX'.",&tolua_err);
17726 return 0;
17727 #endif
17728 }
17729 #endif //#ifndef TOLUA_DISABLE
17730
17731
17732 #ifndef TOLUA_DISABLE_tolua_stratagus_CPatch_setY00
17733 static int tolua_stratagus_CPatch_setY00(lua_State* tolua_S)
17734 {
17735 #ifndef TOLUA_RELEASE
17736 tolua_Error tolua_err;
17737 if (
17738 !tolua_isusertype(tolua_S,1,"CPatch",0,&tolua_err) ||
17739 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
17740 !tolua_isnoobj(tolua_S,3,&tolua_err)
17741 )
17742 goto tolua_lerror;
17743 else
17744 #endif
17745 {
17746 CPatch* self = (CPatch*) tolua_tousertype(tolua_S,1,0);
17747 int y = ((int) tolua_tonumber(tolua_S,2,0));
17748 #ifndef TOLUA_RELEASE
17749 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setY'",NULL);
17750 #endif
17751 {
17752 self->setY(y);
17753 }
17754 }
17755 return 0;
17756 #ifndef TOLUA_RELEASE
17757 tolua_lerror:
17758 tolua_error(tolua_S,"#ferror in function 'setY'.",&tolua_err);
17759 return 0;
17760 #endif
17761 }
17762 #endif //#ifndef TOLUA_DISABLE
17763
17764
17765 #ifndef TOLUA_DISABLE_tolua_stratagus_CPatch_getY00
17766 static int tolua_stratagus_CPatch_getY00(lua_State* tolua_S)
17767 {
17768 #ifndef TOLUA_RELEASE
17769 tolua_Error tolua_err;
17770 if (
17771 !tolua_isusertype(tolua_S,1,"const CPatch",0,&tolua_err) ||
17772 !tolua_isnoobj(tolua_S,2,&tolua_err)
17773 )
17774 goto tolua_lerror;
17775 else
17776 #endif
17777 {
17778 const CPatch* self = (const CPatch*) tolua_tousertype(tolua_S,1,0);
17779 #ifndef TOLUA_RELEASE
17780 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getY'",NULL);
17781 #endif
17782 {
17783 int tolua_ret = (int) self->getY();
17784 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
17785 }
17786 }
17787 return 1;
17788 #ifndef TOLUA_RELEASE
17789 tolua_lerror:
17790 tolua_error(tolua_S,"#ferror in function 'getY'.",&tolua_err);
17791 return 0;
17792 #endif
17793 }
17794 #endif //#ifndef TOLUA_DISABLE
17795
17796
17797 #ifndef TOLUA_DISABLE_tolua_stratagus_CPatchManager_add00
17798 static int tolua_stratagus_CPatchManager_add00(lua_State* tolua_S)
17799 {
17800 #ifndef TOLUA_RELEASE
17801 tolua_Error tolua_err;
17802 if (
17803 !tolua_isusertype(tolua_S,1,"CPatchManager",0,&tolua_err) ||
17804 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
17805 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
17806 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
17807 !tolua_isnoobj(tolua_S,5,&tolua_err)
17808 )
17809 goto tolua_lerror;
17810 else
17811 #endif
17812 {
17813 CPatchManager* self = (CPatchManager*) tolua_tousertype(tolua_S,1,0);
17814 const std::string typeName = ((const std::string) tolua_tocppstring(tolua_S,2,0));
17815 int x = ((int) tolua_tonumber(tolua_S,3,0));
17816 int y = ((int) tolua_tonumber(tolua_S,4,0));
17817 #ifndef TOLUA_RELEASE
17818 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'add'",NULL);
17819 #endif
17820 {
17821 CPatch* tolua_ret = (CPatch*) self->add(typeName,x,y);
17822 tolua_pushusertype(tolua_S,(void*)tolua_ret,"CPatch");
17823 tolua_pushcppstring(tolua_S,(const char*)typeName);
17824 }
17825 }
17826 return 2;
17827 #ifndef TOLUA_RELEASE
17828 tolua_lerror:
17829 tolua_error(tolua_S,"#ferror in function 'add'.",&tolua_err);
17830 return 0;
17831 #endif
17832 }
17833 #endif //#ifndef TOLUA_DISABLE
17834
17835
17836 #ifndef TOLUA_DISABLE_tolua_stratagus_CPatchManager_moveToTop00
17837 static int tolua_stratagus_CPatchManager_moveToTop00(lua_State* tolua_S)
17838 {
17839 #ifndef TOLUA_RELEASE
17840 tolua_Error tolua_err;
17841 if (
17842 !tolua_isusertype(tolua_S,1,"CPatchManager",0,&tolua_err) ||
17843 !tolua_isusertype(tolua_S,2,"CPatch",0,&tolua_err) ||
17844 !tolua_isnoobj(tolua_S,3,&tolua_err)
17845 )
17846 goto tolua_lerror;
17847 else
17848 #endif
17849 {
17850 CPatchManager* self = (CPatchManager*) tolua_tousertype(tolua_S,1,0);
17851 CPatch* patch = ((CPatch*) tolua_tousertype(tolua_S,2,0));
17852 #ifndef TOLUA_RELEASE
17853 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'moveToTop'",NULL);
17854 #endif
17855 {
17856 self->moveToTop(patch);
17857 }
17858 }
17859 return 0;
17860 #ifndef TOLUA_RELEASE
17861 tolua_lerror:
17862 tolua_error(tolua_S,"#ferror in function 'moveToTop'.",&tolua_err);
17863 return 0;
17864 #endif
17865 }
17866 #endif //#ifndef TOLUA_DISABLE
17867
17868
17869 #ifndef TOLUA_DISABLE_tolua_stratagus_CPatchManager_moveToBottom00
17870 static int tolua_stratagus_CPatchManager_moveToBottom00(lua_State* tolua_S)
17871 {
17872 #ifndef TOLUA_RELEASE
17873 tolua_Error tolua_err;
17874 if (
17875 !tolua_isusertype(tolua_S,1,"CPatchManager",0,&tolua_err) ||
17876 !tolua_isusertype(tolua_S,2,"CPatch",0,&tolua_err) ||
17877 !tolua_isnoobj(tolua_S,3,&tolua_err)
17878 )
17879 goto tolua_lerror;
17880 else
17881 #endif
17882 {
17883 CPatchManager* self = (CPatchManager*) tolua_tousertype(tolua_S,1,0);
17884 CPatch* patch = ((CPatch*) tolua_tousertype(tolua_S,2,0));
17885 #ifndef TOLUA_RELEASE
17886 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'moveToBottom'",NULL);
17887 #endif
17888 {
17889 self->moveToBottom(patch);
17890 }
17891 }
17892 return 0;
17893 #ifndef TOLUA_RELEASE
17894 tolua_lerror:
17895 tolua_error(tolua_S,"#ferror in function 'moveToBottom'.",&tolua_err);
17896 return 0;
17897 #endif
17898 }
17899 #endif //#ifndef TOLUA_DISABLE
17900
17901
17902 #ifndef TOLUA_DISABLE_tolua_stratagus_CPatchManager_getPatch00
17903 static int tolua_stratagus_CPatchManager_getPatch00(lua_State* tolua_S)
17904 {
17905 #ifndef TOLUA_RELEASE
17906 tolua_Error tolua_err;
17907 if (
17908 !tolua_isusertype(tolua_S,1,"const CPatchManager",0,&tolua_err) ||
17909 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
17910 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
17911 !tolua_isnoobj(tolua_S,4,&tolua_err)
17912 )
17913 goto tolua_lerror;
17914 else
17915 #endif
17916 {
17917 const CPatchManager* self = (const CPatchManager*) tolua_tousertype(tolua_S,1,0);
17918 int x = ((int) tolua_tonumber(tolua_S,2,0));
17919 int y = ((int) tolua_tonumber(tolua_S,3,0));
17920 #ifndef TOLUA_RELEASE
17921 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getPatch'",NULL);
17922 #endif
17923 {
17924 CPatch* tolua_ret = (CPatch*) self->getPatch(x,y);
17925 tolua_pushusertype(tolua_S,(void*)tolua_ret,"CPatch");
17926 }
17927 }
17928 return 1;
17929 #ifndef TOLUA_RELEASE
17930 tolua_lerror:
17931 tolua_error(tolua_S,"#ferror in function 'getPatch'.",&tolua_err);
17932 return 0;
17933 #endif
17934 }
17935 #endif //#ifndef TOLUA_DISABLE
17936
17937
17938 #ifndef TOLUA_DISABLE_tolua_stratagus_CPatchManager_getPatchTypeNames00
17939 static int tolua_stratagus_CPatchManager_getPatchTypeNames00(lua_State* tolua_S)
17940 {
17941 #ifndef TOLUA_RELEASE
17942 tolua_Error tolua_err;
17943 if (
17944 !tolua_isusertype(tolua_S,1,"const CPatchManager",0,&tolua_err) ||
17945 !tolua_isnoobj(tolua_S,2,&tolua_err)
17946 )
17947 goto tolua_lerror;
17948 else
17949 #endif
17950 {
17951 const CPatchManager* self = (const CPatchManager*) tolua_tousertype(tolua_S,1,0);
17952 #ifndef TOLUA_RELEASE
17953 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getPatchTypeNames'",NULL);
17954 #endif
17955 {
17956 vector<string> tolua_ret = (vector<string>) self->getPatchTypeNames();
17957 {
17958 #ifdef __cplusplus
17959 void* tolua_obj = new vector<string>(tolua_ret);
17960 tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"vector<string>");
17961 #else
17962 void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(vector<string>));
17963 tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"vector<string>");
17964 #endif
17965 }
17966 }
17967 }
17968 return 1;
17969 #ifndef TOLUA_RELEASE
17970 tolua_lerror:
17971 tolua_error(tolua_S,"#ferror in function 'getPatchTypeNames'.",&tolua_err);
17972 return 0;
17973 #endif
17974 }
17975 #endif //#ifndef TOLUA_DISABLE
17976
17977
17978 #ifndef TOLUA_DISABLE_tolua_stratagus_CPatchManager_newPatchType00
17979 static int tolua_stratagus_CPatchManager_newPatchType00(lua_State* tolua_S)
17980 {
17981 #ifndef TOLUA_RELEASE
17982 tolua_Error tolua_err;
17983 if (
17984 !tolua_isusertype(tolua_S,1,"CPatchManager",0,&tolua_err) ||
17985 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
17986 !tolua_iscppstring(tolua_S,3,0,&tolua_err) ||
17987 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
17988 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
17989 !tolua_istable(tolua_S,6,0,&tolua_err) ||
17990 !tolua_isnoobj(tolua_S,7,&tolua_err)
17991 )
17992 goto tolua_lerror;
17993 else
17994 #endif
17995 {
17996 CPatchManager* self = (CPatchManager*) tolua_tousertype(tolua_S,1,0);
17997 const std::string name = ((const std::string) tolua_tocppstring(tolua_S,2,0));
17998 const std::string file = ((const std::string) tolua_tocppstring(tolua_S,3,0));
17999 int width = ((int) tolua_tonumber(tolua_S,4,0));
18000 int height = ((int) tolua_tonumber(tolua_S,5,0));
18001 #ifdef __cplusplus
18002 int* flags = new int[width*height];
18003 #else
18004 int* flags = (int*) malloc((width*height)*sizeof(int));
18005 #endif
18006 #ifndef TOLUA_RELEASE
18007 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'newPatchType'",NULL);
18008 #endif
18009 {
18010 #ifndef TOLUA_RELEASE
18011 if (!tolua_isnumberarray(tolua_S,6,width*height,0,&tolua_err))
18012 goto tolua_lerror;
18013 else
18014 #endif
18015 {
18016 int i;
18017 for(i=0; i<width*height;i++)
18018 flags[i] = ((int) tolua_tofieldnumber(tolua_S,6,i+1,0));
18019 }
18020 }
18021 {
18022 CPatchType* tolua_ret = (CPatchType*) self->newPatchType(name,file,width,height,flags);
18023 tolua_pushusertype(tolua_S,(void*)tolua_ret,"CPatchType");
18024 tolua_pushcppstring(tolua_S,(const char*)name);
18025 tolua_pushcppstring(tolua_S,(const char*)file);
18026 }
18027 {
18028 int i;
18029 for(i=0; i<width*height;i++)
18030 tolua_pushfieldnumber(tolua_S,6,i+1,(lua_Number) flags[i]);
18031 }
18032 #ifdef __cplusplus
18033 delete [] flags;
18034 #else
18035 free(flags);
18036 #endif
18037 }
18038 return 3;
18039 #ifndef TOLUA_RELEASE
18040 tolua_lerror:
18041 tolua_error(tolua_S,"#ferror in function 'newPatchType'.",&tolua_err);
18042 return 0;
18043 #endif
18044 }
18045 #endif //#ifndef TOLUA_DISABLE
18046
18047
18048 #ifndef TOLUA_DISABLE_tolua_get_AStarFixedUnitCrossingCost
18049 static int tolua_get_AStarFixedUnitCrossingCost(lua_State* tolua_S)
18050 {
18051 tolua_pushnumber(tolua_S,(lua_Number)GetAStarFixedUnitCrossingCost());
18052 return 1;
18053 }
18054 #endif //#ifndef TOLUA_DISABLE
18055
18056
18057 #ifndef TOLUA_DISABLE_tolua_set_AStarFixedUnitCrossingCost
18058 static int tolua_set_AStarFixedUnitCrossingCost(lua_State* tolua_S)
18059 {
18060 #ifndef TOLUA_RELEASE
18061 tolua_Error tolua_err;
18062 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
18063 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
18064 #endif
18065 SetAStarFixedUnitCrossingCost(((int) tolua_tonumber(tolua_S,2,0))
18066 )
18067 ;
18068 return 0;
18069 }
18070 #endif //#ifndef TOLUA_DISABLE
18071
18072
18073 #ifndef TOLUA_DISABLE_tolua_get_AStarMovingUnitCrossingCost
18074 static int tolua_get_AStarMovingUnitCrossingCost(lua_State* tolua_S)
18075 {
18076 tolua_pushnumber(tolua_S,(lua_Number)GetAStarMovingUnitCrossingCost());
18077 return 1;
18078 }
18079 #endif //#ifndef TOLUA_DISABLE
18080
18081
18082 #ifndef TOLUA_DISABLE_tolua_set_AStarMovingUnitCrossingCost
18083 static int tolua_set_AStarMovingUnitCrossingCost(lua_State* tolua_S)
18084 {
18085 #ifndef TOLUA_RELEASE
18086 tolua_Error tolua_err;
18087 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
18088 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
18089 #endif
18090 SetAStarMovingUnitCrossingCost(((int) tolua_tonumber(tolua_S,2,0))
18091 )
18092 ;
18093 return 0;
18094 }
18095 #endif //#ifndef TOLUA_DISABLE
18096
18097
18098 #ifndef TOLUA_DISABLE_tolua_get_AStarKnowUnseenTerrain
18099 static int tolua_get_AStarKnowUnseenTerrain(lua_State* tolua_S)
18100 {
18101 tolua_pushboolean(tolua_S,(bool)AStarKnowUnseenTerrain);
18102 return 1;
18103 }
18104 #endif //#ifndef TOLUA_DISABLE
18105
18106
18107 #ifndef TOLUA_DISABLE_tolua_set_AStarKnowUnseenTerrain
18108 static int tolua_set_AStarKnowUnseenTerrain(lua_State* tolua_S)
18109 {
18110 #ifndef TOLUA_RELEASE
18111 tolua_Error tolua_err;
18112 if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
18113 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
18114 #endif
18115 AStarKnowUnseenTerrain = ((bool) tolua_toboolean(tolua_S,2,0))
18116 ;
18117 return 0;
18118 }
18119 #endif //#ifndef TOLUA_DISABLE
18120
18121
18122 #ifndef TOLUA_DISABLE_tolua_get_AStarUnknownTerrainCost
18123 static int tolua_get_AStarUnknownTerrainCost(lua_State* tolua_S)
18124 {
18125 tolua_pushnumber(tolua_S,(lua_Number)GetAStarUnknownTerrainCost());
18126 return 1;
18127 }
18128 #endif //#ifndef TOLUA_DISABLE
18129
18130
18131 #ifndef TOLUA_DISABLE_tolua_set_AStarUnknownTerrainCost
18132 static int tolua_set_AStarUnknownTerrainCost(lua_State* tolua_S)
18133 {
18134 #ifndef TOLUA_RELEASE
18135 tolua_Error tolua_err;
18136 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
18137 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
18138 #endif
18139 SetAStarUnknownTerrainCost(((int) tolua_tonumber(tolua_S,2,0))
18140 )
18141 ;
18142 return 0;
18143 }
18144 #endif //#ifndef TOLUA_DISABLE
18145
18146
18147 #ifndef TOLUA_DISABLE_tolua_stratagus_GetNumOpponents00
18148 static int tolua_stratagus_GetNumOpponents00(lua_State* tolua_S)
18149 {
18150 #ifndef TOLUA_RELEASE
18151 tolua_Error tolua_err;
18152 if (
18153 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
18154 !tolua_isnoobj(tolua_S,2,&tolua_err)
18155 )
18156 goto tolua_lerror;
18157 else
18158 #endif
18159 {
18160 int player = ((int) tolua_tonumber(tolua_S,1,0));
18161 {
18162 int tolua_ret = (int) GetNumOpponents(player);
18163 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
18164 }
18165 }
18166 return 1;
18167 #ifndef TOLUA_RELEASE
18168 tolua_lerror:
18169 tolua_error(tolua_S,"#ferror in function 'GetNumOpponents'.",&tolua_err);
18170 return 0;
18171 #endif
18172 }
18173 #endif //#ifndef TOLUA_DISABLE
18174
18175
18176 #ifndef TOLUA_DISABLE_tolua_stratagus_GetTimer00
18177 static int tolua_stratagus_GetTimer00(lua_State* tolua_S)
18178 {
18179 #ifndef TOLUA_RELEASE
18180 tolua_Error tolua_err;
18181 if (
18182 !tolua_isnoobj(tolua_S,1,&tolua_err)
18183 )
18184 goto tolua_lerror;
18185 else
18186 #endif
18187 {
18188 {
18189 int tolua_ret = (int) GetTimer();
18190 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
18191 }
18192 }
18193 return 1;
18194 #ifndef TOLUA_RELEASE
18195 tolua_lerror:
18196 tolua_error(tolua_S,"#ferror in function 'GetTimer'.",&tolua_err);
18197 return 0;
18198 #endif
18199 }
18200 #endif //#ifndef TOLUA_DISABLE
18201
18202
18203 #ifndef TOLUA_DISABLE_tolua_stratagus_ActionVictory00
18204 static int tolua_stratagus_ActionVictory00(lua_State* tolua_S)
18205 {
18206 #ifndef TOLUA_RELEASE
18207 tolua_Error tolua_err;
18208 if (
18209 !tolua_isnoobj(tolua_S,1,&tolua_err)
18210 )
18211 goto tolua_lerror;
18212 else
18213 #endif
18214 {
18215 {
18216 ActionVictory();
18217 }
18218 }
18219 return 0;
18220 #ifndef TOLUA_RELEASE
18221 tolua_lerror:
18222 tolua_error(tolua_S,"#ferror in function 'ActionVictory'.",&tolua_err);
18223 return 0;
18224 #endif
18225 }
18226 #endif //#ifndef TOLUA_DISABLE
18227
18228
18229 #ifndef TOLUA_DISABLE_tolua_stratagus_ActionDefeat00
18230 static int tolua_stratagus_ActionDefeat00(lua_State* tolua_S)
18231 {
18232 #ifndef TOLUA_RELEASE
18233 tolua_Error tolua_err;
18234 if (
18235 !tolua_isnoobj(tolua_S,1,&tolua_err)
18236 )
18237 goto tolua_lerror;
18238 else
18239 #endif
18240 {
18241 {
18242 ActionDefeat();
18243 }
18244 }
18245 return 0;
18246 #ifndef TOLUA_RELEASE
18247 tolua_lerror:
18248 tolua_error(tolua_S,"#ferror in function 'ActionDefeat'.",&tolua_err);
18249 return 0;
18250 #endif
18251 }
18252 #endif //#ifndef TOLUA_DISABLE
18253
18254
18255 #ifndef TOLUA_DISABLE_tolua_stratagus_ActionDraw00
18256 static int tolua_stratagus_ActionDraw00(lua_State* tolua_S)
18257 {
18258 #ifndef TOLUA_RELEASE
18259 tolua_Error tolua_err;
18260 if (
18261 !tolua_isnoobj(tolua_S,1,&tolua_err)
18262 )
18263 goto tolua_lerror;
18264 else
18265 #endif
18266 {
18267 {
18268 ActionDraw();
18269 }
18270 }
18271 return 0;
18272 #ifndef TOLUA_RELEASE
18273 tolua_lerror:
18274 tolua_error(tolua_S,"#ferror in function 'ActionDraw'.",&tolua_err);
18275 return 0;
18276 #endif
18277 }
18278 #endif //#ifndef TOLUA_DISABLE
18279
18280
18281 #ifndef TOLUA_DISABLE_tolua_stratagus_ActionSetTimer00
18282 static int tolua_stratagus_ActionSetTimer00(lua_State* tolua_S)
18283 {
18284 #ifndef TOLUA_RELEASE
18285 tolua_Error tolua_err;
18286 if (
18287 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
18288 !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
18289 !tolua_isnoobj(tolua_S,3,&tolua_err)
18290 )
18291 goto tolua_lerror;
18292 else
18293 #endif
18294 {
18295 int cycles = ((int) tolua_tonumber(tolua_S,1,0));
18296 bool increasing = ((bool) tolua_toboolean(tolua_S,2,0));
18297 {
18298 ActionSetTimer(cycles,increasing);
18299 }
18300 }
18301 return 0;
18302 #ifndef TOLUA_RELEASE
18303 tolua_lerror:
18304 tolua_error(tolua_S,"#ferror in function 'ActionSetTimer'.",&tolua_err);
18305 return 0;
18306 #endif
18307 }
18308 #endif //#ifndef TOLUA_DISABLE
18309
18310
18311 #ifndef TOLUA_DISABLE_tolua_stratagus_ActionStartTimer00
18312 static int tolua_stratagus_ActionStartTimer00(lua_State* tolua_S)
18313 {
18314 #ifndef TOLUA_RELEASE
18315 tolua_Error tolua_err;
18316 if (
18317 !tolua_isnoobj(tolua_S,1,&tolua_err)
18318 )
18319 goto tolua_lerror;
18320 else
18321 #endif
18322 {
18323 {
18324 ActionStartTimer();
18325 }
18326 }
18327 return 0;
18328 #ifndef TOLUA_RELEASE
18329 tolua_lerror:
18330 tolua_error(tolua_S,"#ferror in function 'ActionStartTimer'.",&tolua_err);
18331 return 0;
18332 #endif
18333 }
18334 #endif //#ifndef TOLUA_DISABLE
18335
18336
18337 #ifndef TOLUA_DISABLE_tolua_stratagus_ActionStopTimer00
18338 static int tolua_stratagus_ActionStopTimer00(lua_State* tolua_S)
18339 {
18340 #ifndef TOLUA_RELEASE
18341 tolua_Error tolua_err;
18342 if (
18343 !tolua_isnoobj(tolua_S,1,&tolua_err)
18344 )
18345 goto tolua_lerror;
18346 else
18347 #endif
18348 {
18349 {
18350 ActionStopTimer();
18351 }
18352 }
18353 return 0;
18354 #ifndef TOLUA_RELEASE
18355 tolua_lerror:
18356 tolua_error(tolua_S,"#ferror in function 'ActionStopTimer'.",&tolua_err);
18357 return 0;
18358 #endif
18359 }
18360 #endif //#ifndef TOLUA_DISABLE
18361
18362
18363 #ifndef TOLUA_DISABLE_tolua_stratagus_SetTrigger00
18364 static int tolua_stratagus_SetTrigger00(lua_State* tolua_S)
18365 {
18366 #ifndef TOLUA_RELEASE
18367 tolua_Error tolua_err;
18368 if (
18369 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
18370 !tolua_isnoobj(tolua_S,2,&tolua_err)
18371 )
18372 goto tolua_lerror;
18373 else
18374 #endif
18375 {
18376 int trigger = ((int) tolua_tonumber(tolua_S,1,0));
18377 {
18378 SetTrigger(trigger);
18379 }
18380 }
18381 return 0;
18382 #ifndef TOLUA_RELEASE
18383 tolua_lerror:
18384 tolua_error(tolua_S,"#ferror in function 'SetTrigger'.",&tolua_err);
18385 return 0;
18386 #endif
18387 }
18388 #endif //#ifndef TOLUA_DISABLE
18389
18390
18391 #ifndef TOLUA_DISABLE_tolua_stratagus_CPosition_new00
18392 static int tolua_stratagus_CPosition_new00(lua_State* tolua_S)
18393 {
18394 #ifndef TOLUA_RELEASE
18395 tolua_Error tolua_err;
18396 if (
18397 !tolua_isusertable(tolua_S,1,"CPosition",0,&tolua_err) ||
18398 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
18399 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
18400 !tolua_isnoobj(tolua_S,4,&tolua_err)
18401 )
18402 goto tolua_lerror;
18403 else
18404 #endif
18405 {
18406 int x = ((int) tolua_tonumber(tolua_S,2,0));
18407 int y = ((int) tolua_tonumber(tolua_S,3,0));
18408 {
18409 CPosition* tolua_ret = (CPosition*) new CPosition(x,y);
18410 tolua_pushusertype(tolua_S,(void*)tolua_ret,"CPosition");
18411 }
18412 }
18413 return 1;
18414 #ifndef TOLUA_RELEASE
18415 tolua_lerror:
18416 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
18417 return 0;
18418 #endif
18419 }
18420 #endif //#ifndef TOLUA_DISABLE
18421
18422
18423 #ifndef TOLUA_DISABLE_tolua_stratagus_CPosition_new00_local
18424 static int tolua_stratagus_CPosition_new00_local(lua_State* tolua_S)
18425 {
18426 #ifndef TOLUA_RELEASE
18427 tolua_Error tolua_err;
18428 if (
18429 !tolua_isusertable(tolua_S,1,"CPosition",0,&tolua_err) ||
18430 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
18431 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
18432 !tolua_isnoobj(tolua_S,4,&tolua_err)
18433 )
18434 goto tolua_lerror;
18435 else
18436 #endif
18437 {
18438 int x = ((int) tolua_tonumber(tolua_S,2,0));
18439 int y = ((int) tolua_tonumber(tolua_S,3,0));
18440 {
18441 CPosition* tolua_ret = (CPosition*) new CPosition(x,y);
18442 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"CPosition");
18443 }
18444 }
18445 return 1;
18446 #ifndef TOLUA_RELEASE
18447 tolua_lerror:
18448 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
18449 return 0;
18450 #endif
18451 }
18452 #endif //#ifndef TOLUA_DISABLE
18453
18454
18455 #ifndef TOLUA_DISABLE_tolua_get_CPosition_x
18456 static int tolua_get_CPosition_x(lua_State* tolua_S)
18457 {
18458 CPosition* self = (CPosition*) tolua_tousertype(tolua_S,1,0);
18459 #ifndef TOLUA_RELEASE
18460 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x'",NULL);
18461 #endif
18462 tolua_pushnumber(tolua_S,(lua_Number)self->x);
18463 return 1;
18464 }
18465 #endif //#ifndef TOLUA_DISABLE
18466
18467
18468 #ifndef TOLUA_DISABLE_tolua_set_CPosition_x
18469 static int tolua_set_CPosition_x(lua_State* tolua_S)
18470 {
18471 CPosition* self = (CPosition*) tolua_tousertype(tolua_S,1,0);
18472 #ifndef TOLUA_RELEASE
18473 tolua_Error tolua_err;
18474 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x'",NULL);
18475 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
18476 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
18477 #endif
18478 self->x = ((float) tolua_tonumber(tolua_S,2,0))
18479 ;
18480 return 0;
18481 }
18482 #endif //#ifndef TOLUA_DISABLE
18483
18484
18485 #ifndef TOLUA_DISABLE_tolua_get_CPosition_y
18486 static int tolua_get_CPosition_y(lua_State* tolua_S)
18487 {
18488 CPosition* self = (CPosition*) tolua_tousertype(tolua_S,1,0);
18489 #ifndef TOLUA_RELEASE
18490 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y'",NULL);
18491 #endif
18492 tolua_pushnumber(tolua_S,(lua_Number)self->y);
18493 return 1;
18494 }
18495 #endif //#ifndef TOLUA_DISABLE
18496
18497
18498 #ifndef TOLUA_DISABLE_tolua_set_CPosition_y
18499 static int tolua_set_CPosition_y(lua_State* tolua_S)
18500 {
18501 CPosition* self = (CPosition*) tolua_tousertype(tolua_S,1,0);
18502 #ifndef TOLUA_RELEASE
18503 tolua_Error tolua_err;
18504 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y'",NULL);
18505 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
18506 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
18507 #endif
18508 self->y = ((float) tolua_tonumber(tolua_S,2,0))
18509 ;
18510 return 0;
18511 }
18512 #endif //#ifndef TOLUA_DISABLE
18513
18514
18515 #ifndef TOLUA_DISABLE_tolua_stratagus_GraphicAnimation_new00
18516 static int tolua_stratagus_GraphicAnimation_new00(lua_State* tolua_S)
18517 {
18518 #ifndef TOLUA_RELEASE
18519 tolua_Error tolua_err;
18520 if (
18521 !tolua_isusertable(tolua_S,1,"GraphicAnimation",0,&tolua_err) ||
18522 !tolua_isusertype(tolua_S,2,"CGraphic",0,&tolua_err) ||
18523 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
18524 !tolua_isnoobj(tolua_S,4,&tolua_err)
18525 )
18526 goto tolua_lerror;
18527 else
18528 #endif
18529 {
18530 CGraphic* g = ((CGraphic*) tolua_tousertype(tolua_S,2,0));
18531 int ticksPerFrame = ((int) tolua_tonumber(tolua_S,3,0));
18532 {
18533 GraphicAnimation* tolua_ret = (GraphicAnimation*) new GraphicAnimation(g,ticksPerFrame);
18534 tolua_pushusertype(tolua_S,(void*)tolua_ret,"GraphicAnimation");
18535 }
18536 }
18537 return 1;
18538 #ifndef TOLUA_RELEASE
18539 tolua_lerror:
18540 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
18541 return 0;
18542 #endif
18543 }
18544 #endif //#ifndef TOLUA_DISABLE
18545
18546
18547 #ifndef TOLUA_DISABLE_tolua_stratagus_GraphicAnimation_new00_local
18548 static int tolua_stratagus_GraphicAnimation_new00_local(lua_State* tolua_S)
18549 {
18550 #ifndef TOLUA_RELEASE
18551 tolua_Error tolua_err;
18552 if (
18553 !tolua_isusertable(tolua_S,1,"GraphicAnimation",0,&tolua_err) ||
18554 !tolua_isusertype(tolua_S,2,"CGraphic",0,&tolua_err) ||
18555 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
18556 !tolua_isnoobj(tolua_S,4,&tolua_err)
18557 )
18558 goto tolua_lerror;
18559 else
18560 #endif
18561 {
18562 CGraphic* g = ((CGraphic*) tolua_tousertype(tolua_S,2,0));
18563 int ticksPerFrame = ((int) tolua_tonumber(tolua_S,3,0));
18564 {
18565 GraphicAnimation* tolua_ret = (GraphicAnimation*) new GraphicAnimation(g,ticksPerFrame);
18566 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"GraphicAnimation");
18567 }
18568 }
18569 return 1;
18570 #ifndef TOLUA_RELEASE
18571 tolua_lerror:
18572 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
18573 return 0;
18574 #endif
18575 }
18576 #endif //#ifndef TOLUA_DISABLE
18577
18578
18579 #ifndef TOLUA_DISABLE_tolua_stratagus_GraphicAnimation_clone00
18580 static int tolua_stratagus_GraphicAnimation_clone00(lua_State* tolua_S)
18581 {
18582 #ifndef TOLUA_RELEASE
18583 tolua_Error tolua_err;
18584 if (
18585 !tolua_isusertype(tolua_S,1,"GraphicAnimation",0,&tolua_err) ||
18586 !tolua_isnoobj(tolua_S,2,&tolua_err)
18587 )
18588 goto tolua_lerror;
18589 else
18590 #endif
18591 {
18592 GraphicAnimation* self = (GraphicAnimation*) tolua_tousertype(tolua_S,1,0);
18593 #ifndef TOLUA_RELEASE
18594 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'clone'",NULL);
18595 #endif
18596 {
18597 Animation* tolua_ret = (Animation*) self->clone();
18598 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Animation");
18599 }
18600 }
18601 return 1;
18602 #ifndef TOLUA_RELEASE
18603 tolua_lerror:
18604 tolua_error(tolua_S,"#ferror in function 'clone'.",&tolua_err);
18605 return 0;
18606 #endif
18607 }
18608 #endif //#ifndef TOLUA_DISABLE
18609
18610
18611 #ifndef TOLUA_DISABLE_tolua_stratagus_CParticle_clone00
18612 static int tolua_stratagus_CParticle_clone00(lua_State* tolua_S)
18613 {
18614 #ifndef TOLUA_RELEASE
18615 tolua_Error tolua_err;
18616 if (
18617 !tolua_isusertype(tolua_S,1,"CParticle",0,&tolua_err) ||
18618 !tolua_isnoobj(tolua_S,2,&tolua_err)
18619 )
18620 goto tolua_lerror;
18621 else
18622 #endif
18623 {
18624 CParticle* self = (CParticle*) tolua_tousertype(tolua_S,1,0);
18625 #ifndef TOLUA_RELEASE
18626 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'clone'",NULL);
18627 #endif
18628 {
18629 CParticle* tolua_ret = (CParticle*) self->clone();
18630 tolua_pushusertype(tolua_S,(void*)tolua_ret,"CParticle");
18631 }
18632 }
18633 return 1;
18634 #ifndef TOLUA_RELEASE
18635 tolua_lerror:
18636 tolua_error(tolua_S,"#ferror in function 'clone'.",&tolua_err);
18637 return 0;
18638 #endif
18639 }
18640 #endif //#ifndef TOLUA_DISABLE
18641
18642
18643 #ifndef TOLUA_DISABLE_tolua_stratagus_StaticParticle_new00
18644 static int tolua_stratagus_StaticParticle_new00(lua_State* tolua_S)
18645 {
18646 #ifndef TOLUA_RELEASE
18647 tolua_Error tolua_err;
18648 if (
18649 !tolua_isusertable(tolua_S,1,"StaticParticle",0,&tolua_err) ||
18650 !tolua_isusertype(tolua_S,2,"CPosition",0,&tolua_err) ||
18651 !tolua_isusertype(tolua_S,3,"Animation",0,&tolua_err) ||
18652 !tolua_isnoobj(tolua_S,4,&tolua_err)
18653 )
18654 goto tolua_lerror;
18655 else
18656 #endif
18657 {
18658 CPosition position = *((CPosition*) tolua_tousertype(tolua_S,2,0));
18659 Animation* animation = ((Animation*) tolua_tousertype(tolua_S,3,0));
18660 {
18661 StaticParticle* tolua_ret = (StaticParticle*) new StaticParticle(position,animation);
18662 tolua_pushusertype(tolua_S,(void*)tolua_ret,"StaticParticle");
18663 }
18664 }
18665 return 1;
18666 #ifndef TOLUA_RELEASE
18667 tolua_lerror:
18668 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
18669 return 0;
18670 #endif
18671 }
18672 #endif //#ifndef TOLUA_DISABLE
18673
18674
18675 #ifndef TOLUA_DISABLE_tolua_stratagus_StaticParticle_new00_local
18676 static int tolua_stratagus_StaticParticle_new00_local(lua_State* tolua_S)
18677 {
18678 #ifndef TOLUA_RELEASE
18679 tolua_Error tolua_err;
18680 if (
18681 !tolua_isusertable(tolua_S,1,"StaticParticle",0,&tolua_err) ||
18682 !tolua_isusertype(tolua_S,2,"CPosition",0,&tolua_err) ||
18683 !tolua_isusertype(tolua_S,3,"Animation",0,&tolua_err) ||
18684 !tolua_isnoobj(tolua_S,4,&tolua_err)
18685 )
18686 goto tolua_lerror;
18687 else
18688 #endif
18689 {
18690 CPosition position = *((CPosition*) tolua_tousertype(tolua_S,2,0));
18691 Animation* animation = ((Animation*) tolua_tousertype(tolua_S,3,0));
18692 {
18693 StaticParticle* tolua_ret = (StaticParticle*) new StaticParticle(position,animation);
18694 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"StaticParticle");
18695 }
18696 }
18697 return 1;
18698 #ifndef TOLUA_RELEASE
18699 tolua_lerror:
18700 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
18701 return 0;
18702 #endif
18703 }
18704 #endif //#ifndef TOLUA_DISABLE
18705
18706
18707 #ifndef TOLUA_DISABLE_tolua_stratagus_CChunkParticle_new00
18708 static int tolua_stratagus_CChunkParticle_new00(lua_State* tolua_S)
18709 {
18710 #ifndef TOLUA_RELEASE
18711 tolua_Error tolua_err;
18712 if (
18713 !tolua_isusertable(tolua_S,1,"CChunkParticle",0,&tolua_err) ||
18714 !tolua_isusertype(tolua_S,2,"CPosition",0,&tolua_err) ||
18715 !tolua_isusertype(tolua_S,3,"Animation",0,&tolua_err) ||
18716 !tolua_isnoobj(tolua_S,4,&tolua_err)
18717 )
18718 goto tolua_lerror;
18719 else
18720 #endif
18721 {
18722 CPosition position = *((CPosition*) tolua_tousertype(tolua_S,2,0));
18723 Animation* smokeAnimation = ((Animation*) tolua_tousertype(tolua_S,3,0));
18724 {
18725 CChunkParticle* tolua_ret = (CChunkParticle*) new CChunkParticle(position,smokeAnimation);
18726 tolua_pushusertype(tolua_S,(void*)tolua_ret,"CChunkParticle");
18727 }
18728 }
18729 return 1;
18730 #ifndef TOLUA_RELEASE
18731 tolua_lerror:
18732 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
18733 return 0;
18734 #endif
18735 }
18736 #endif //#ifndef TOLUA_DISABLE
18737
18738
18739 #ifndef TOLUA_DISABLE_tolua_stratagus_CChunkParticle_new00_local
18740 static int tolua_stratagus_CChunkParticle_new00_local(lua_State* tolua_S)
18741 {
18742 #ifndef TOLUA_RELEASE
18743 tolua_Error tolua_err;
18744 if (
18745 !tolua_isusertable(tolua_S,1,"CChunkParticle",0,&tolua_err) ||
18746 !tolua_isusertype(tolua_S,2,"CPosition",0,&tolua_err) ||
18747 !tolua_isusertype(tolua_S,3,"Animation",0,&tolua_err) ||
18748 !tolua_isnoobj(tolua_S,4,&tolua_err)
18749 )
18750 goto tolua_lerror;
18751 else
18752 #endif
18753 {
18754 CPosition position = *((CPosition*) tolua_tousertype(tolua_S,2,0));
18755 Animation* smokeAnimation = ((Animation*) tolua_tousertype(tolua_S,3,0));
18756 {
18757 CChunkParticle* tolua_ret = (CChunkParticle*) new CChunkParticle(position,smokeAnimation);
18758 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"CChunkParticle");
18759 }
18760 }
18761 return 1;
18762 #ifndef TOLUA_RELEASE
18763 tolua_lerror:
18764 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
18765 return 0;
18766 #endif
18767 }
18768 #endif //#ifndef TOLUA_DISABLE
18769
18770
18771 #ifndef TOLUA_DISABLE_tolua_stratagus_CParticleManager_new00
18772 static int tolua_stratagus_CParticleManager_new00(lua_State* tolua_S)
18773 {
18774 #ifndef TOLUA_RELEASE
18775 tolua_Error tolua_err;
18776 if (
18777 !tolua_isusertable(tolua_S,1,"CParticleManager",0,&tolua_err) ||
18778 !tolua_isnoobj(tolua_S,2,&tolua_err)
18779 )
18780 goto tolua_lerror;
18781 else
18782 #endif
18783 {
18784 {
18785 CParticleManager* tolua_ret = (CParticleManager*) new CParticleManager();
18786 tolua_pushusertype(tolua_S,(void*)tolua_ret,"CParticleManager");
18787 }
18788 }
18789 return 1;
18790 #ifndef TOLUA_RELEASE
18791 tolua_lerror:
18792 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
18793 return 0;
18794 #endif
18795 }
18796 #endif //#ifndef TOLUA_DISABLE
18797
18798
18799 #ifndef TOLUA_DISABLE_tolua_stratagus_CParticleManager_new00_local
18800 static int tolua_stratagus_CParticleManager_new00_local(lua_State* tolua_S)
18801 {
18802 #ifndef TOLUA_RELEASE
18803 tolua_Error tolua_err;
18804 if (
18805 !tolua_isusertable(tolua_S,1,"CParticleManager",0,&tolua_err) ||
18806 !tolua_isnoobj(tolua_S,2,&tolua_err)
18807 )
18808 goto tolua_lerror;
18809 else
18810 #endif
18811 {
18812 {
18813 CParticleManager* tolua_ret = (CParticleManager*) new CParticleManager();
18814 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"CParticleManager");
18815 }
18816 }
18817 return 1;
18818 #ifndef TOLUA_RELEASE
18819 tolua_lerror:
18820 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
18821 return 0;
18822 #endif
18823 }
18824 #endif //#ifndef TOLUA_DISABLE
18825
18826
18827 #ifndef TOLUA_DISABLE_tolua_stratagus_CParticleManager_delete00
18828 static int tolua_stratagus_CParticleManager_delete00(lua_State* tolua_S)
18829 {
18830 #ifndef TOLUA_RELEASE
18831 tolua_Error tolua_err;
18832 if (
18833 !tolua_isusertype(tolua_S,1,"CParticleManager",0,&tolua_err) ||
18834 !tolua_isnoobj(tolua_S,2,&tolua_err)
18835 )
18836 goto tolua_lerror;
18837 else
18838 #endif
18839 {
18840 CParticleManager* self = (CParticleManager*) tolua_tousertype(tolua_S,1,0);
18841 #ifndef TOLUA_RELEASE
18842 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'",NULL);
18843 #endif
18844 delete self;
18845 }
18846 return 0;
18847 #ifndef TOLUA_RELEASE
18848 tolua_lerror:
18849 tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
18850 return 0;
18851 #endif
18852 }
18853 #endif //#ifndef TOLUA_DISABLE
18854
18855
18856 #ifndef TOLUA_DISABLE_tolua_stratagus_CParticleManager_add00
18857 static int tolua_stratagus_CParticleManager_add00(lua_State* tolua_S)
18858 {
18859 #ifndef TOLUA_RELEASE
18860 tolua_Error tolua_err;
18861 if (
18862 !tolua_isusertype(tolua_S,1,"CParticleManager",0,&tolua_err) ||
18863 !tolua_isusertype(tolua_S,2,"CParticle",0,&tolua_err) ||
18864 !tolua_isnoobj(tolua_S,3,&tolua_err)
18865 )
18866 goto tolua_lerror;
18867 else
18868 #endif
18869 {
18870 CParticleManager* self = (CParticleManager*) tolua_tousertype(tolua_S,1,0);
18871 CParticle* particle = ((CParticle*) tolua_tousertype(tolua_S,2,0));
18872 #ifndef TOLUA_RELEASE
18873 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'add'",NULL);
18874 #endif
18875 {
18876 self->add(particle);
18877 }
18878 }
18879 return 0;
18880 #ifndef TOLUA_RELEASE
18881 tolua_lerror:
18882 tolua_error(tolua_S,"#ferror in function 'add'.",&tolua_err);
18883 return 0;
18884 #endif
18885 }
18886 #endif //#ifndef TOLUA_DISABLE
18887
18888
18889 #ifndef TOLUA_DISABLE_tolua_get_ParticleManager
18890 static int tolua_get_ParticleManager(lua_State* tolua_S)
18891 {
18892 tolua_pushusertype(tolua_S,(void*)&ParticleManager,"CParticleManager");
18893 return 1;
18894 }
18895 #endif //#ifndef TOLUA_DISABLE
18896
18897
18898 #ifndef TOLUA_DISABLE_tolua_set_ParticleManager
18899 static int tolua_set_ParticleManager(lua_State* tolua_S)
18900 {
18901 #ifndef TOLUA_RELEASE
18902 tolua_Error tolua_err;
18903 if (!tolua_isusertype(tolua_S,2,"CParticleManager",0,&tolua_err))
18904 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
18905 #endif
18906 ParticleManager = *((CParticleManager*) tolua_tousertype(tolua_S,2,0))
18907 ;
18908 return 0;
18909 }
18910 #endif //#ifndef TOLUA_DISABLE
18911
18912
18913 #ifndef TOLUA_DISABLE_tolua_stratagus_Translate00
18914 static int tolua_stratagus_Translate00(lua_State* tolua_S)
18915 {
18916 #ifndef TOLUA_RELEASE
18917 tolua_Error tolua_err;
18918 if (
18919 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
18920 !tolua_isnoobj(tolua_S,2,&tolua_err)
18921 )
18922 goto tolua_lerror;
18923 else
18924 #endif
18925 {
18926 const char* str = ((const char*) tolua_tostring(tolua_S,1,0));
18927 {
18928 const char* tolua_ret = (const char*) Translate(str);
18929 tolua_pushstring(tolua_S,(const char*)tolua_ret);
18930 }
18931 }
18932 return 1;
18933 #ifndef TOLUA_RELEASE
18934 tolua_lerror:
18935 tolua_error(tolua_S,"#ferror in function 'Translate'.",&tolua_err);
18936 return 0;
18937 #endif
18938 }
18939 #endif //#ifndef TOLUA_DISABLE
18940
18941
18942 #ifndef TOLUA_DISABLE_tolua_stratagus_AddTranslation00
18943 static int tolua_stratagus_AddTranslation00(lua_State* tolua_S)
18944 {
18945 #ifndef TOLUA_RELEASE
18946 tolua_Error tolua_err;
18947 if (
18948 !tolua_iscppstring(tolua_S,1,0,&tolua_err) ||
18949 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
18950 !tolua_isnoobj(tolua_S,3,&tolua_err)
18951 )
18952 goto tolua_lerror;
18953 else
18954 #endif
18955 {
18956 const string str1 = ((const string) tolua_tocppstring(tolua_S,1,0));
18957 const string str2 = ((const string) tolua_tocppstring(tolua_S,2,0));
18958 {
18959 AddTranslation(str1,str2);
18960 }
18961 }
18962 return 0;
18963 #ifndef TOLUA_RELEASE
18964 tolua_lerror:
18965 tolua_error(tolua_S,"#ferror in function 'AddTranslation'.",&tolua_err);
18966 return 0;
18967 #endif
18968 }
18969 #endif //#ifndef TOLUA_DISABLE
18970
18971
18972 #ifndef TOLUA_DISABLE_tolua_stratagus_LoadPO00
18973 static int tolua_stratagus_LoadPO00(lua_State* tolua_S)
18974 {
18975 #ifndef TOLUA_RELEASE
18976 tolua_Error tolua_err;
18977 if (
18978 !tolua_iscppstring(tolua_S,1,0,&tolua_err) ||
18979 !tolua_isnoobj(tolua_S,2,&tolua_err)
18980 )
18981 goto tolua_lerror;
18982 else
18983 #endif
18984 {
18985 const string file = ((const string) tolua_tocppstring(tolua_S,1,0));
18986 {
18987 LoadPO(file);
18988 }
18989 }
18990 return 0;
18991 #ifndef TOLUA_RELEASE
18992 tolua_lerror:
18993 tolua_error(tolua_S,"#ferror in function 'LoadPO'.",&tolua_err);
18994 return 0;
18995 #endif
18996 }
18997 #endif //#ifndef TOLUA_DISABLE
18998
18999
19000 #ifndef TOLUA_DISABLE_tolua_stratagus_SetTranslationsFiles00
19001 static int tolua_stratagus_SetTranslationsFiles00(lua_State* tolua_S)
19002 {
19003 #ifndef TOLUA_RELEASE
19004 tolua_Error tolua_err;
19005 if (
19006 !tolua_iscppstring(tolua_S,1,0,&tolua_err) ||
19007 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
19008 !tolua_isnoobj(tolua_S,3,&tolua_err)
19009 )
19010 goto tolua_lerror;
19011 else
19012 #endif
19013 {
19014 const string stratagusfile = ((const string) tolua_tocppstring(tolua_S,1,0));
19015 const string gamefile = ((const string) tolua_tocppstring(tolua_S,2,0));
19016 {
19017 SetTranslationsFiles(stratagusfile,gamefile);
19018 }
19019 }
19020 return 0;
19021 #ifndef TOLUA_RELEASE
19022 tolua_lerror:
19023 tolua_error(tolua_S,"#ferror in function 'SetTranslationsFiles'.",&tolua_err);
19024 return 0;
19025 #endif
19026 }
19027 #endif //#ifndef TOLUA_DISABLE
19028
19029
19030 #ifndef TOLUA_DISABLE_tolua_get_StratagusTranslation
19031 static int tolua_get_StratagusTranslation(lua_State* tolua_S)
19032 {
19033 tolua_pushcppstring(tolua_S,(const char*)StratagusTranslation);
19034 return 1;
19035 }
19036 #endif //#ifndef TOLUA_DISABLE
19037
19038
19039 #ifndef TOLUA_DISABLE_tolua_set_StratagusTranslation
19040 static int tolua_set_StratagusTranslation(lua_State* tolua_S)
19041 {
19042 #ifndef TOLUA_RELEASE
19043 tolua_Error tolua_err;
19044 if (!tolua_iscppstring(tolua_S,2,0,&tolua_err))
19045 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
19046 #endif
19047 StratagusTranslation = ((std::string) tolua_tocppstring(tolua_S,2,0))
19048 ;
19049 return 0;
19050 }
19051 #endif //#ifndef TOLUA_DISABLE
19052
19053
19054 #ifndef TOLUA_DISABLE_tolua_get_GameTranslation
19055 static int tolua_get_GameTranslation(lua_State* tolua_S)
19056 {
19057 tolua_pushcppstring(tolua_S,(const char*)GameTranslation);
19058 return 1;
19059 }
19060 #endif //#ifndef TOLUA_DISABLE
19061
19062
19063 #ifndef TOLUA_DISABLE_tolua_set_GameTranslation
19064 static int tolua_set_GameTranslation(lua_State* tolua_S)
19065 {
19066 #ifndef TOLUA_RELEASE
19067 tolua_Error tolua_err;
19068 if (!tolua_iscppstring(tolua_S,2,0,&tolua_err))
19069 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
19070 #endif
19071 GameTranslation = ((std::string) tolua_tocppstring(tolua_S,2,0))
19072 ;
19073 return 0;
19074 }
19075 #endif //#ifndef TOLUA_DISABLE
19076
19077
19078 #ifndef TOLUA_DISABLE_tolua_stratagus_SaveGame00
19079 static int tolua_stratagus_SaveGame00(lua_State* tolua_S)
19080 {
19081 #ifndef TOLUA_RELEASE
19082 tolua_Error tolua_err;
19083 if (
19084 !tolua_iscppstring(tolua_S,1,0,&tolua_err) ||
19085 !tolua_isnoobj(tolua_S,2,&tolua_err)
19086 )
19087 goto tolua_lerror;
19088 else
19089 #endif
19090 {
19091 const std::string filename = ((const std::string) tolua_tocppstring(tolua_S,1,0));
19092 {
19093 SaveGame(filename);
19094 }
19095 }
19096 return 0;
19097 #ifndef TOLUA_RELEASE
19098 tolua_lerror:
19099 tolua_error(tolua_S,"#ferror in function 'SaveGame'.",&tolua_err);
19100 return 0;
19101 #endif
19102 }
19103 #endif //#ifndef TOLUA_DISABLE
19104
19105
19106 #ifndef TOLUA_DISABLE_tolua_stratagus__00
19107 static int tolua_stratagus__00(lua_State* tolua_S)
19108 {
19109 #ifndef TOLUA_RELEASE
19110 tolua_Error tolua_err;
19111 if (
19112 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
19113 !tolua_isnoobj(tolua_S,2,&tolua_err)
19114 )
19115 goto tolua_lerror;
19116 else
19117 #endif
19118 {
19119 const char* str = ((const char*) tolua_tostring(tolua_S,1,0));
19120 {
19121 const char* tolua_ret = (const char*) Translate(str);
19122 tolua_pushstring(tolua_S,(const char*)tolua_ret);
19123 }
19124 }
19125 return 1;
19126 #ifndef TOLUA_RELEASE
19127 tolua_lerror:
19128 tolua_error(tolua_S,"#ferror in function '_'.",&tolua_err);
19129 return 0;
19130 #endif
19131 }
19132 #endif //#ifndef TOLUA_DISABLE
19133
19134
19135 #ifndef TOLUA_DISABLE_tolua_stratagus_SyncRand00
19136 static int tolua_stratagus_SyncRand00(lua_State* tolua_S)
19137 {
19138 #ifndef TOLUA_RELEASE
19139 tolua_Error tolua_err;
19140 if (
19141 !tolua_isnoobj(tolua_S,1,&tolua_err)
19142 )
19143 goto tolua_lerror;
19144 else
19145 #endif
19146 {
19147 {
19148 int tolua_ret = (int) SyncRand();
19149 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
19150 }
19151 }
19152 return 1;
19153 #ifndef TOLUA_RELEASE
19154 tolua_lerror:
19155 tolua_error(tolua_S,"#ferror in function 'SyncRand'.",&tolua_err);
19156 return 0;
19157 #endif
19158 }
19159 #endif //#ifndef TOLUA_DISABLE
19160
19161
19162 #ifndef TOLUA_DISABLE_tolua_stratagus_SyncRand01
19163 static int tolua_stratagus_SyncRand01(lua_State* tolua_S)
19164 {
19165 tolua_Error tolua_err;
19166 if (
19167 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
19168 !tolua_isnoobj(tolua_S,2,&tolua_err)
19169 )
19170 goto tolua_lerror;
19171 else
19172 {
19173 int max = ((int) tolua_tonumber(tolua_S,1,0));
19174 {
19175 int tolua_ret = (int) SyncRand(max);
19176 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
19177 }
19178 }
19179 return 1;
19180 tolua_lerror:
19181 return tolua_stratagus_SyncRand00(tolua_S);
19182 }
19183 #endif //#ifndef TOLUA_DISABLE
19184
19185
19186 #ifndef TOLUA_DISABLE_tolua_stratagus_Exit00
19187 static int tolua_stratagus_Exit00(lua_State* tolua_S)
19188 {
19189 #ifndef TOLUA_RELEASE
19190 tolua_Error tolua_err;
19191 if (
19192 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
19193 !tolua_isnoobj(tolua_S,2,&tolua_err)
19194 )
19195 goto tolua_lerror;
19196 else
19197 #endif
19198 {
19199 int err = ((int) tolua_tonumber(tolua_S,1,0));
19200 {
19201 Exit(err);
19202 }
19203 }
19204 return 0;
19205 #ifndef TOLUA_RELEASE
19206 tolua_lerror:
19207 tolua_error(tolua_S,"#ferror in function 'Exit'.",&tolua_err);
19208 return 0;
19209 #endif
19210 }
19211 #endif //#ifndef TOLUA_DISABLE
19212
19213
19214 #ifndef TOLUA_DISABLE_tolua_get_CliMapName
19215 static int tolua_get_CliMapName(lua_State* tolua_S)
19216 {
19217 tolua_pushcppstring(tolua_S,(const char*)CliMapName);
19218 return 1;
19219 }
19220 #endif //#ifndef TOLUA_DISABLE
19221
19222
19223 #ifndef TOLUA_DISABLE_tolua_set_CliMapName
19224 static int tolua_set_CliMapName(lua_State* tolua_S)
19225 {
19226 #ifndef TOLUA_RELEASE
19227 tolua_Error tolua_err;
19228 if (!tolua_iscppstring(tolua_S,2,0,&tolua_err))
19229 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
19230 #endif
19231 CliMapName = ((std::string) tolua_tocppstring(tolua_S,2,0))
19232 ;
19233 return 0;
19234 }
19235 #endif //#ifndef TOLUA_DISABLE
19236
19237
19238 TOLUA_API int tolua_stratagus_open (lua_State* tolua_S)
19239 {
19240 tolua_open(tolua_S);
19241 tolua_reg_types(tolua_S);
19242 tolua_module(tolua_S,NULL,1);
19243 tolua_beginmodule(tolua_S,NULL);
19244
19245 {
19246 int top = lua_gettop(tolua_S);
19247 static unsigned char B[] = {
19248 10,109,116, 32, 61, 32,123, 32, 95, 95,105,110,100,101,120,
19249 32, 61, 32,102,117,110, 99,116,105,111,110, 40,116, 44, 32,
19250 107,101,121, 41, 32,114,101,116,117,114,110, 32, 67, 73, 99,
19251 111,110, 58, 71,101,116, 40,107,101,121, 41, 32,101,110,100,
19252 32,125, 10, 73, 99,111,110,115, 32, 61, 32,123,125, 10,115,
19253 101,116,109,101,116, 97,116, 97, 98,108,101, 40, 73, 99,111,
19254 110,115, 44, 32,109,116, 41, 10,109,116, 32, 61, 32,123, 32,
19255 95, 95,105,110,100,101,120, 32, 61, 32,102,117,110, 99,116,
19256 105,111,110, 40,116, 44, 32,107,101,121, 41, 32,114,101,116,
19257 117,114,110, 32, 67, 70,111,110,116, 58, 71,101,116, 40,107,
19258 101,121, 41, 32,101,110,100, 32,125, 10, 70,111,110,116,115,
19259 32, 61, 32,123,125, 10,115,101,116,109,101,116, 97,116, 97,
19260 98,108,101, 40, 70,111,110,116,115, 44, 32,109,116, 41, 10,
19261 109,116, 32, 61, 32,123, 32, 95, 95,105,110,100,101,120, 32,
19262 61, 32,102,117,110, 99,116,105,111,110, 40,116, 44, 32,107,
19263 101,121, 41, 32,114,101,116,117,114,110, 32, 67, 70,111,110,
19264 116, 67,111,108,111,114, 58, 71,101,116, 40,107,101,121, 41,
19265 32,101,110,100, 32,125, 10, 70,111,110,116, 67,111,108,111,
19266 114,115, 32, 61, 32,123,125, 10,115,101,116,109,101,116, 97,
19267 116, 97, 98,108,101, 40, 70,111,110,116, 67,111,108,111,114,
19268 115, 44, 32,109,116, 41, 10,109,116, 32, 61, 32,123, 32, 95,
19269 95,105,110,100,101,120, 32, 61, 32,102,117,110, 99,116,105,
19270 111,110, 40,116, 44, 32,107,101,121, 41, 32,114,101,116,117,
19271 114,110, 32, 85,110,105,116, 84,121,112,101, 66,121, 73,100,
19272 101,110,116, 40,107,101,121, 41, 32,101,110,100, 32,125, 10,
19273 85,110,105,116, 84,121,112,101,115, 32, 61, 32,123,125, 10,
19274 115,101,116,109,101,116, 97,116, 97, 98,108,101, 40, 85,110,
19275 105,116, 84,121,112,101,115, 44, 32,109,116, 41, 10,102,117,
19276 110, 99,116,105,111,110, 32, 71, 97,109,101, 83,116, 97,114,
19277 116,105,110,103, 40, 41, 10,101,110,100,32
19278 };
19279 tolua_dobuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code 1");
19280 lua_settop(tolua_S, top);
19281 }
19282
19283 tolua_constant(tolua_S,"MaxCosts",MaxCosts);
19284 tolua_constant(tolua_S,"EnergyCost",EnergyCost);
19285 tolua_constant(tolua_S,"MagmaCost",MagmaCost);
19286 tolua_constant(tolua_S,"PlayerMax",PlayerMax);
19287 tolua_constant(tolua_S,"PlayerNumNeutral",PlayerNumNeutral);
19288 tolua_constant(tolua_S,"UnitMax",UnitMax);
19289 tolua_constant(tolua_S,"NoButton",NoButton);
19290 tolua_constant(tolua_S,"LeftButton",LeftButton);
19291 tolua_constant(tolua_S,"MiddleButton",MiddleButton);
19292 tolua_constant(tolua_S,"RightButton",RightButton);
19293 tolua_constant(tolua_S,"UpButton",UpButton);
19294 tolua_constant(tolua_S,"DownButton",DownButton);
19295 tolua_cclass(tolua_S,"CMinimap","CMinimap","",NULL);
19296 tolua_beginmodule(tolua_S,"CMinimap");
19297 tolua_variable(tolua_S,"X",tolua_get_CMinimap_X,tolua_set_CMinimap_X);
19298 tolua_variable(tolua_S,"Y",tolua_get_CMinimap_Y,tolua_set_CMinimap_Y);
19299 tolua_variable(tolua_S,"W",tolua_get_CMinimap_W,tolua_set_CMinimap_W);
19300 tolua_variable(tolua_S,"H",tolua_get_CMinimap_H,tolua_set_CMinimap_H);
19301 tolua_variable(tolua_S,"WithTerrain",tolua_get_CMinimap_WithTerrain,tolua_set_CMinimap_WithTerrain);
19302 tolua_variable(tolua_S,"ShowSelected",tolua_get_CMinimap_ShowSelected,tolua_set_CMinimap_ShowSelected);
19303 tolua_variable(tolua_S,"Transparent",tolua_get_CMinimap_Transparent,tolua_set_CMinimap_Transparent);
19304 tolua_endmodule(tolua_S);
19305 #ifdef __cplusplus
19306 tolua_cclass(tolua_S,"LuaActionListener","LuaActionListener","",tolua_collect_LuaActionListener);
19307 #else
19308 tolua_cclass(tolua_S,"LuaActionListener","LuaActionListener","",NULL);
19309 #endif
19310 tolua_beginmodule(tolua_S,"LuaActionListener");
19311 tolua_function(tolua_S,"new",tolua_stratagus_LuaActionListener_new00);
19312 tolua_function(tolua_S,"new_local",tolua_stratagus_LuaActionListener_new00_local);
19313 tolua_function(tolua_S,".call",tolua_stratagus_LuaActionListener_new00_local);
19314 tolua_endmodule(tolua_S);
19315 #ifdef __cplusplus
19316 tolua_cclass(tolua_S,"CUIButton","CUIButton","",tolua_collect_CUIButton);
19317 #else
19318 tolua_cclass(tolua_S,"CUIButton","CUIButton","",NULL);
19319 #endif
19320 tolua_beginmodule(tolua_S,"CUIButton");
19321 tolua_function(tolua_S,"new",tolua_stratagus_CUIButton_new00);
19322 tolua_function(tolua_S,"new_local",tolua_stratagus_CUIButton_new00_local);
19323 tolua_function(tolua_S,".call",tolua_stratagus_CUIButton_new00_local);
19324 tolua_function(tolua_S,"delete",tolua_stratagus_CUIButton_delete00);
19325 tolua_variable(tolua_S,"X",tolua_get_CUIButton_X,tolua_set_CUIButton_X);
19326 tolua_variable(tolua_S,"Y",tolua_get_CUIButton_Y,tolua_set_CUIButton_Y);
19327 tolua_variable(tolua_S,"Text",tolua_get_CUIButton_Text,tolua_set_CUIButton_Text);
19328 tolua_variable(tolua_S,"Style",tolua_get_CUIButton_Style_ptr,tolua_set_CUIButton_Style_ptr);
19329 tolua_variable(tolua_S,"Callback",tolua_get_CUIButton_Callback_ptr,tolua_set_CUIButton_Callback_ptr);
19330 tolua_endmodule(tolua_S);
19331
19332 {
19333 int top = lua_gettop(tolua_S);
19334 static unsigned char B[] = {
19335 10, 95,117,105, 66,117,116,116,111,110, 67, 97,108,108, 98,
19336 97, 99,107,115, 32, 61, 32,123,125, 10, 67, 85, 73, 66,117,
19337 116,116,111,110, 46, 83,101,116, 67, 97,108,108, 98, 97, 99,
19338 107, 32, 61, 32,102,117,110, 99,116,105,111,110, 40,119, 44,
19339 32,102, 41, 10,119, 46, 67, 97,108,108, 98, 97, 99,107, 32,
19340 61, 32, 76,117, 97, 65, 99,116,105,111,110, 76,105,115,116,
19341 101,110,101,114, 40,102, 41, 10,116, 97, 98,108,101, 46,105,
19342 110,115,101,114,116, 40, 95,117,105, 66,117,116,116,111,110,
19343 67, 97,108,108, 98, 97, 99,107,115, 44, 32,119, 46, 67, 97,
19344 108,108, 98, 97, 99,107, 41, 10,101,110,100,32
19345 };
19346 tolua_dobuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code 2");
19347 lua_settop(tolua_S, top);
19348 }
19349
19350 tolua_cclass(tolua_S,"CMapArea","CMapArea","",NULL);
19351 tolua_beginmodule(tolua_S,"CMapArea");
19352 tolua_variable(tolua_S,"X",tolua_get_CMapArea_X,tolua_set_CMapArea_X);
19353 tolua_variable(tolua_S,"Y",tolua_get_CMapArea_Y,tolua_set_CMapArea_Y);
19354 tolua_variable(tolua_S,"EndX",tolua_get_CMapArea_EndX,tolua_set_CMapArea_EndX);
19355 tolua_variable(tolua_S,"EndY",tolua_get_CMapArea_EndY,tolua_set_CMapArea_EndY);
19356 tolua_variable(tolua_S,"ScrollPaddingLeft",tolua_get_CMapArea_ScrollPaddingLeft,tolua_set_CMapArea_ScrollPaddingLeft);
19357 tolua_variable(tolua_S,"ScrollPaddingRight",tolua_get_CMapArea_ScrollPaddingRight,tolua_set_CMapArea_ScrollPaddingRight);
19358 tolua_variable(tolua_S,"ScrollPaddingTop",tolua_get_CMapArea_ScrollPaddingTop,tolua_set_CMapArea_ScrollPaddingTop);
19359 tolua_variable(tolua_S,"ScrollPaddingBottom",tolua_get_CMapArea_ScrollPaddingBottom,tolua_set_CMapArea_ScrollPaddingBottom);
19360 tolua_endmodule(tolua_S);
19361 tolua_cclass(tolua_S,"CViewport","CViewport","",NULL);
19362 tolua_beginmodule(tolua_S,"CViewport");
19363 tolua_function(tolua_S,"Viewport2MapX",tolua_stratagus_CViewport_Viewport2MapX00);
19364 tolua_function(tolua_S,"Viewport2MapY",tolua_stratagus_CViewport_Viewport2MapY00);
19365 tolua_endmodule(tolua_S);
19366 #ifdef __cplusplus
19367 tolua_cclass(tolua_S,"CFiller","CFiller","",tolua_collect_CFiller);
19368 #else
19369 tolua_cclass(tolua_S,"CFiller","CFiller","",NULL);
19370 #endif
19371 tolua_beginmodule(tolua_S,"CFiller");
19372 tolua_function(tolua_S,"new",tolua_stratagus_CFiller_new00);
19373 tolua_function(tolua_S,"new_local",tolua_stratagus_CFiller_new00_local);
19374 tolua_function(tolua_S,".call",tolua_stratagus_CFiller_new00_local);
19375 tolua_variable(tolua_S,"G",tolua_get_CFiller_G_ptr,tolua_set_CFiller_G_ptr);
19376 tolua_variable(tolua_S,"X",tolua_get_CFiller_X,tolua_set_CFiller_X);
19377 tolua_variable(tolua_S,"Y",tolua_get_CFiller_Y,tolua_set_CFiller_Y);
19378 tolua_endmodule(tolua_S);
19379 #ifdef __cplusplus
19380 tolua_cclass(tolua_S,"vector_CFiller_","vector<CFiller>","",tolua_collect_vector_CFiller_);
19381 #else
19382 tolua_cclass(tolua_S,"vector_CFiller_","vector<CFiller>","",NULL);
19383 #endif
19384 tolua_beginmodule(tolua_S,"vector_CFiller_");
19385 tolua_function(tolua_S,"new",tolua_stratagus_vector_CFiller__new00);
19386 tolua_function(tolua_S,"new_local",tolua_stratagus_vector_CFiller__new00_local);
19387 tolua_function(tolua_S,".call",tolua_stratagus_vector_CFiller__new00_local);
19388 tolua_function(tolua_S,"delete",tolua_stratagus_vector_CFiller__delete00);
19389 tolua_function(tolua_S,".geti",tolua_stratagus_vector_CFiller___geti00);
19390 tolua_function(tolua_S,".seti",tolua_stratagus_vector_CFiller___seti00);
19391 tolua_function(tolua_S,".geti",tolua_stratagus_vector_CFiller___geti01);
19392 tolua_function(tolua_S,"at",tolua_stratagus_vector_CFiller__at00);
19393 tolua_function(tolua_S,"at",tolua_stratagus_vector_CFiller__at01);
19394 tolua_function(tolua_S,"front",tolua_stratagus_vector_CFiller__front00);
19395 tolua_function(tolua_S,"front",tolua_stratagus_vector_CFiller__front01);
19396 tolua_function(tolua_S,"back",tolua_stratagus_vector_CFiller__back00);
19397 tolua_function(tolua_S,"back",tolua_stratagus_vector_CFiller__back01);
19398 tolua_function(tolua_S,"push_back",tolua_stratagus_vector_CFiller__push_back00);
19399 tolua_function(tolua_S,"pop_back",tolua_stratagus_vector_CFiller__pop_back00);
19400 tolua_function(tolua_S,"assign",tolua_stratagus_vector_CFiller__assign00);
19401 tolua_function(tolua_S,"clear",tolua_stratagus_vector_CFiller__clear00);
19402 tolua_function(tolua_S,"empty",tolua_stratagus_vector_CFiller__empty00);
19403 tolua_function(tolua_S,"size",tolua_stratagus_vector_CFiller__size00);
19404 tolua_endmodule(tolua_S);
19405 #ifdef __cplusplus
19406 tolua_cclass(tolua_S,"vector_CUIButton_","vector<CUIButton>","",tolua_collect_vector_CUIButton_);
19407 #else
19408 tolua_cclass(tolua_S,"vector_CUIButton_","vector<CUIButton>","",NULL);
19409 #endif
19410 tolua_beginmodule(tolua_S,"vector_CUIButton_");
19411 tolua_function(tolua_S,"new",tolua_stratagus_vector_CUIButton__new00);
19412 tolua_function(tolua_S,"new_local",tolua_stratagus_vector_CUIButton__new00_local);
19413 tolua_function(tolua_S,".call",tolua_stratagus_vector_CUIButton__new00_local);
19414 tolua_function(tolua_S,"delete",tolua_stratagus_vector_CUIButton__delete00);
19415 tolua_function(tolua_S,".geti",tolua_stratagus_vector_CUIButton___geti00);
19416 tolua_function(tolua_S,".seti",tolua_stratagus_vector_CUIButton___seti00);
19417 tolua_function(tolua_S,".geti",tolua_stratagus_vector_CUIButton___geti01);
19418 tolua_function(tolua_S,"at",tolua_stratagus_vector_CUIButton__at00);
19419 tolua_function(tolua_S,"at",tolua_stratagus_vector_CUIButton__at01);
19420 tolua_function(tolua_S,"front",tolua_stratagus_vector_CUIButton__front00);
19421 tolua_function(tolua_S,"front",tolua_stratagus_vector_CUIButton__front01);
19422 tolua_function(tolua_S,"back",tolua_stratagus_vector_CUIButton__back00);
19423 tolua_function(tolua_S,"back",tolua_stratagus_vector_CUIButton__back01);
19424 tolua_function(tolua_S,"push_back",tolua_stratagus_vector_CUIButton__push_back00);
19425 tolua_function(tolua_S,"pop_back",tolua_stratagus_vector_CUIButton__pop_back00);
19426 tolua_function(tolua_S,"assign",tolua_stratagus_vector_CUIButton__assign00);
19427 tolua_function(tolua_S,"clear",tolua_stratagus_vector_CUIButton__clear00);
19428 tolua_function(tolua_S,"empty",tolua_stratagus_vector_CUIButton__empty00);
19429 tolua_function(tolua_S,"size",tolua_stratagus_vector_CUIButton__size00);
19430 tolua_endmodule(tolua_S);
19431 #ifdef __cplusplus
19432 tolua_cclass(tolua_S,"vector_string_","vector<string>","",tolua_collect_vector_string_);
19433 #else
19434 tolua_cclass(tolua_S,"vector_string_","vector<string>","",NULL);
19435 #endif
19436 tolua_beginmodule(tolua_S,"vector_string_");
19437 tolua_function(tolua_S,"new",tolua_stratagus_vector_string__new00);
19438 tolua_function(tolua_S,"new_local",tolua_stratagus_vector_string__new00_local);
19439 tolua_function(tolua_S,".call",tolua_stratagus_vector_string__new00_local);
19440 tolua_function(tolua_S,"delete",tolua_stratagus_vector_string__delete00);
19441 tolua_function(tolua_S,".geti",tolua_stratagus_vector_string___geti00);
19442 tolua_function(tolua_S,".seti",tolua_stratagus_vector_string___seti00);
19443 tolua_function(tolua_S,".geti",tolua_stratagus_vector_string___geti01);
19444 tolua_function(tolua_S,"at",tolua_stratagus_vector_string__at00);
19445 tolua_function(tolua_S,"at",tolua_stratagus_vector_string__at01);
19446 tolua_function(tolua_S,"front",tolua_stratagus_vector_string__front00);
19447 tolua_function(tolua_S,"front",tolua_stratagus_vector_string__front01);
19448 tolua_function(tolua_S,"back",tolua_stratagus_vector_string__back00);
19449 tolua_function(tolua_S,"back",tolua_stratagus_vector_string__back01);
19450 tolua_function(tolua_S,"push_back",tolua_stratagus_vector_string__push_back00);
19451 tolua_function(tolua_S,"pop_back",tolua_stratagus_vector_string__pop_back00);
19452 tolua_function(tolua_S,"assign",tolua_stratagus_vector_string__assign00);
19453 tolua_function(tolua_S,"clear",tolua_stratagus_vector_string__clear00);
19454 tolua_function(tolua_S,"empty",tolua_stratagus_vector_string__empty00);
19455 tolua_function(tolua_S,"size",tolua_stratagus_vector_string__size00);
19456 tolua_endmodule(tolua_S);
19457 tolua_cclass(tolua_S,"CButtonPanel","CButtonPanel","",NULL);
19458 tolua_beginmodule(tolua_S,"CButtonPanel");
19459 tolua_variable(tolua_S,"X",tolua_get_CButtonPanel_X,tolua_set_CButtonPanel_X);
19460 tolua_variable(tolua_S,"Y",tolua_get_CButtonPanel_Y,tolua_set_CButtonPanel_Y);
19461 tolua_variable(tolua_S,"Buttons",tolua_get_CButtonPanel_Buttons,tolua_set_CButtonPanel_Buttons);
19462 tolua_variable(tolua_S,"AutoCastBorderColorRGB",tolua_get_CButtonPanel_AutoCastBorderColorRGB,tolua_set_CButtonPanel_AutoCastBorderColorRGB);
19463 tolua_variable(tolua_S,"ShowCommandKey",tolua_get_CButtonPanel_ShowCommandKey,tolua_set_CButtonPanel_ShowCommandKey);
19464 tolua_endmodule(tolua_S);
19465 tolua_cclass(tolua_S,"CPieMenu","CPieMenu","",NULL);
19466 tolua_beginmodule(tolua_S,"CPieMenu");
19467 tolua_variable(tolua_S,"G",tolua_get_CPieMenu_G_ptr,tolua_set_CPieMenu_G_ptr);
19468 tolua_variable(tolua_S,"MouseButton",tolua_get_CPieMenu_MouseButton,tolua_set_CPieMenu_MouseButton);
19469 tolua_array(tolua_S,"X",tolua_get_stratagus_CPieMenu_X,tolua_set_stratagus_CPieMenu_X);
19470 tolua_array(tolua_S,"Y",tolua_get_stratagus_CPieMenu_Y,tolua_set_stratagus_CPieMenu_Y);
19471 tolua_function(tolua_S,"SetRadius",tolua_stratagus_CPieMenu_SetRadius00);
19472 tolua_endmodule(tolua_S);
19473 #ifdef __cplusplus
19474 tolua_cclass(tolua_S,"CResourceInfo","CResourceInfo","",tolua_collect_CResourceInfo);
19475 #else
19476 tolua_cclass(tolua_S,"CResourceInfo","CResourceInfo","",NULL);
19477 #endif
19478 tolua_beginmodule(tolua_S,"CResourceInfo");
19479 tolua_variable(tolua_S,"G",tolua_get_CResourceInfo_G_ptr,tolua_set_CResourceInfo_G_ptr);
19480 tolua_variable(tolua_S,"IconFrame",tolua_get_CResourceInfo_IconFrame,tolua_set_CResourceInfo_IconFrame);
19481 tolua_variable(tolua_S,"IconX",tolua_get_CResourceInfo_IconX,tolua_set_CResourceInfo_IconX);
19482 tolua_variable(tolua_S,"IconY",tolua_get_CResourceInfo_IconY,tolua_set_CResourceInfo_IconY);
19483 tolua_variable(tolua_S,"TextX",tolua_get_CResourceInfo_TextX,tolua_set_CResourceInfo_TextX);
19484 tolua_variable(tolua_S,"TextY",tolua_get_CResourceInfo_TextY,tolua_set_CResourceInfo_TextY);
19485 tolua_endmodule(tolua_S);
19486 tolua_cclass(tolua_S,"CInfoPanel","CInfoPanel","",NULL);
19487 tolua_beginmodule(tolua_S,"CInfoPanel");
19488 tolua_variable(tolua_S,"X",tolua_get_CInfoPanel_X,tolua_set_CInfoPanel_X);
19489 tolua_variable(tolua_S,"Y",tolua_get_CInfoPanel_Y,tolua_set_CInfoPanel_Y);
19490 tolua_endmodule(tolua_S);
19491 tolua_cclass(tolua_S,"CStatusLine","CStatusLine","",NULL);
19492 tolua_beginmodule(tolua_S,"CStatusLine");
19493 tolua_function(tolua_S,"Set",tolua_stratagus_CStatusLine_Set00);
19494 tolua_function(tolua_S,"Get",tolua_stratagus_CStatusLine_Get00);
19495 tolua_function(tolua_S,"Clear",tolua_stratagus_CStatusLine_Clear00);
19496 tolua_variable(tolua_S,"Width",tolua_get_CStatusLine_Width,tolua_set_CStatusLine_Width);
19497 tolua_variable(tolua_S,"TextX",tolua_get_CStatusLine_TextX,tolua_set_CStatusLine_TextX);
19498 tolua_variable(tolua_S,"TextY",tolua_get_CStatusLine_TextY,tolua_set_CStatusLine_TextY);
19499 tolua_variable(tolua_S,"Font",tolua_get_CStatusLine_Font_ptr,tolua_set_CStatusLine_Font_ptr);
19500 tolua_endmodule(tolua_S);
19501 tolua_cclass(tolua_S,"CUITimer","CUITimer","",NULL);
19502 tolua_beginmodule(tolua_S,"CUITimer");
19503 tolua_variable(tolua_S,"X",tolua_get_CUITimer_X,tolua_set_CUITimer_X);
19504 tolua_variable(tolua_S,"Y",tolua_get_CUITimer_Y,tolua_set_CUITimer_Y);
19505 tolua_variable(tolua_S,"Font",tolua_get_CUITimer_Font_ptr,tolua_set_CUITimer_Font_ptr);
19506 tolua_endmodule(tolua_S);
19507 tolua_cclass(tolua_S,"CUserInterface","CUserInterface","",NULL);
19508 tolua_beginmodule(tolua_S,"CUserInterface");
19509 tolua_variable(tolua_S,"NormalFontColor",tolua_get_CUserInterface_NormalFontColor,tolua_set_CUserInterface_NormalFontColor);
19510 tolua_variable(tolua_S,"ReverseFontColor",tolua_get_CUserInterface_ReverseFontColor,tolua_set_CUserInterface_ReverseFontColor);
19511 tolua_variable(tolua_S,"Fillers",tolua_get_CUserInterface_Fillers,tolua_set_CUserInterface_Fillers);
19512 tolua_array(tolua_S,"Resources",tolua_get_stratagus_CUserInterface_Resources,tolua_set_stratagus_CUserInterface_Resources);
19513 tolua_variable(tolua_S,"InfoPanel",tolua_get_CUserInterface_InfoPanel,tolua_set_CUserInterface_InfoPanel);
19514 tolua_variable(tolua_S,"SingleSelectedButton",tolua_get_CUserInterface_SingleSelectedButton_ptr,tolua_set_CUserInterface_SingleSelectedButton_ptr);
19515 tolua_variable(tolua_S,"SelectedButtons",tolua_get_CUserInterface_SelectedButtons,tolua_set_CUserInterface_SelectedButtons);
19516 tolua_variable(tolua_S,"MaxSelectedFont",tolua_get_CUserInterface_MaxSelectedFont_ptr,tolua_set_CUserInterface_MaxSelectedFont_ptr);
19517 tolua_variable(tolua_S,"MaxSelectedTextX",tolua_get_CUserInterface_MaxSelectedTextX,tolua_set_CUserInterface_MaxSelectedTextX);
19518 tolua_variable(tolua_S,"MaxSelectedTextY",tolua_get_CUserInterface_MaxSelectedTextY,tolua_set_CUserInterface_MaxSelectedTextY);
19519 tolua_variable(tolua_S,"SingleTrainingButton",tolua_get_CUserInterface_SingleTrainingButton_ptr,tolua_set_CUserInterface_SingleTrainingButton_ptr);
19520 tolua_variable(tolua_S,"TrainingButtons",tolua_get_CUserInterface_TrainingButtons,tolua_set_CUserInterface_TrainingButtons);
19521 tolua_variable(tolua_S,"TransportingButtons",tolua_get_CUserInterface_TransportingButtons,tolua_set_CUserInterface_TransportingButtons);
19522 tolua_variable(tolua_S,"CompletedBarColorRGB",tolua_get_CUserInterface_CompletedBarColorRGB,tolua_set_CUserInterface_CompletedBarColorRGB);
19523 tolua_variable(tolua_S,"CompletedBarShadow",tolua_get_CUserInterface_CompletedBarShadow,tolua_set_CUserInterface_CompletedBarShadow);
19524 tolua_variable(tolua_S,"ButtonPanel",tolua_get_CUserInterface_ButtonPanel,tolua_set_CUserInterface_ButtonPanel);
19525 tolua_variable(tolua_S,"PieMenu",tolua_get_CUserInterface_PieMenu,tolua_set_CUserInterface_PieMenu);
19526 tolua_variable(tolua_S,"MouseViewport",tolua_get_CUserInterface_MouseViewport_ptr,tolua_set_CUserInterface_MouseViewport_ptr);
19527 tolua_variable(tolua_S,"MapArea",tolua_get_CUserInterface_MapArea,tolua_set_CUserInterface_MapArea);
19528 tolua_variable(tolua_S,"MessageFont",tolua_get_CUserInterface_MessageFont_ptr,tolua_set_CUserInterface_MessageFont_ptr);
19529 tolua_variable(tolua_S,"MessageScrollSpeed",tolua_get_CUserInterface_MessageScrollSpeed,tolua_set_CUserInterface_MessageScrollSpeed);
19530 tolua_variable(tolua_S,"MenuButton",tolua_get_CUserInterface_MenuButton,tolua_set_CUserInterface_MenuButton);
19531 tolua_variable(tolua_S,"NetworkMenuButton",tolua_get_CUserInterface_NetworkMenuButton,tolua_set_CUserInterface_NetworkMenuButton);
19532 tolua_variable(tolua_S,"NetworkDiplomacyButton",tolua_get_CUserInterface_NetworkDiplomacyButton,tolua_set_CUserInterface_NetworkDiplomacyButton);
19533 tolua_variable(tolua_S,"Minimap",tolua_get_CUserInterface_Minimap,tolua_set_CUserInterface_Minimap);
19534 tolua_variable(tolua_S,"StatusLine",tolua_get_CUserInterface_StatusLine,tolua_set_CUserInterface_StatusLine);
19535 tolua_variable(tolua_S,"Timer",tolua_get_CUserInterface_Timer,tolua_set_CUserInterface_Timer);
19536 tolua_endmodule(tolua_S);
19537 tolua_variable(tolua_S,"UI",tolua_get_UI,tolua_set_UI);
19538 tolua_cclass(tolua_S,"CIcon","CIcon","",NULL);
19539 tolua_beginmodule(tolua_S,"CIcon");
19540 tolua_function(tolua_S,"New",tolua_stratagus_CIcon_New00);
19541 tolua_function(tolua_S,"Get",tolua_stratagus_CIcon_Get00);
19542 tolua_variable(tolua_S,"Ident",tolua_get_CIcon_Ident,NULL);
19543 tolua_variable(tolua_S,"G",tolua_get_CIcon_G_ptr,tolua_set_CIcon_G_ptr);
19544 tolua_variable(tolua_S,"Frame",tolua_get_CIcon_Frame,tolua_set_CIcon_Frame);
19545 tolua_endmodule(tolua_S);
19546 tolua_function(tolua_S,"FindButtonStyle",tolua_stratagus_FindButtonStyle00);
19547 tolua_function(tolua_S,"GetMouseScroll",tolua_stratagus_GetMouseScroll00);
19548 tolua_function(tolua_S,"SetMouseScroll",tolua_stratagus_SetMouseScroll00);
19549 tolua_function(tolua_S,"GetKeyScroll",tolua_stratagus_GetKeyScroll00);
19550 tolua_function(tolua_S,"SetKeyScroll",tolua_stratagus_SetKeyScroll00);
19551 tolua_function(tolua_S,"GetGrabMouse",tolua_stratagus_GetGrabMouse00);
19552 tolua_function(tolua_S,"SetGrabMouse",tolua_stratagus_SetGrabMouse00);
19553 tolua_function(tolua_S,"GetLeaveStops",tolua_stratagus_GetLeaveStops00);
19554 tolua_function(tolua_S,"SetLeaveStops",tolua_stratagus_SetLeaveStops00);
19555 tolua_function(tolua_S,"GetDoubleClickDelay",tolua_stratagus_GetDoubleClickDelay00);
19556 tolua_function(tolua_S,"SetDoubleClickDelay",tolua_stratagus_SetDoubleClickDelay00);
19557 tolua_function(tolua_S,"GetHoldClickDelay",tolua_stratagus_GetHoldClickDelay00);
19558 tolua_function(tolua_S,"SetHoldClickDelay",tolua_stratagus_SetHoldClickDelay00);
19559 tolua_variable(tolua_S,"CursorX",tolua_get_CursorX,tolua_set_CursorX);
19560 tolua_variable(tolua_S,"CursorY",tolua_get_CursorY,tolua_set_CursorY);
19561 #ifdef __cplusplus
19562 tolua_cclass(tolua_S,"Color","Color","",tolua_collect_Color);
19563 #else
19564 tolua_cclass(tolua_S,"Color","Color","",NULL);
19565 #endif
19566 tolua_beginmodule(tolua_S,"Color");
19567 tolua_function(tolua_S,"new",tolua_stratagus_Color_new00);
19568 tolua_function(tolua_S,"new_local",tolua_stratagus_Color_new00_local);
19569 tolua_function(tolua_S,".call",tolua_stratagus_Color_new00_local);
19570 tolua_variable(tolua_S,"r",tolua_get_Color_r,tolua_set_Color_r);
19571 tolua_variable(tolua_S,"g",tolua_get_Color_g,tolua_set_Color_g);
19572 tolua_variable(tolua_S,"b",tolua_get_Color_b,tolua_set_Color_b);
19573 tolua_variable(tolua_S,"a",tolua_get_Color_a,tolua_set_Color_a);
19574 tolua_endmodule(tolua_S);
19575 tolua_cclass(tolua_S,"Graphics","Graphics","",NULL);
19576 tolua_beginmodule(tolua_S,"Graphics");
19577 tolua_constant(tolua_S,"LEFT",Graphics::LEFT);
19578 tolua_constant(tolua_S,"CENTER",Graphics::CENTER);
19579 tolua_constant(tolua_S,"RIGHT",Graphics::RIGHT);
19580 tolua_endmodule(tolua_S);
19581 tolua_cclass(tolua_S,"Widget","Widget","",NULL);
19582 tolua_beginmodule(tolua_S,"Widget");
19583 tolua_function(tolua_S,"setWidth",tolua_stratagus_Widget_setWidth00);
19584 tolua_function(tolua_S,"getWidth",tolua_stratagus_Widget_getWidth00);
19585 tolua_function(tolua_S,"setHeight",tolua_stratagus_Widget_setHeight00);
19586 tolua_function(tolua_S,"getHeight",tolua_stratagus_Widget_getHeight00);
19587 tolua_function(tolua_S,"setSize",tolua_stratagus_Widget_setSize00);
19588 tolua_function(tolua_S,"setX",tolua_stratagus_Widget_setX00);
19589 tolua_function(tolua_S,"getX",tolua_stratagus_Widget_getX00);
19590 tolua_function(tolua_S,"setY",tolua_stratagus_Widget_setY00);
19591 tolua_function(tolua_S,"getY",tolua_stratagus_Widget_getY00);
19592 tolua_function(tolua_S,"setPosition",tolua_stratagus_Widget_setPosition00);
19593 tolua_function(tolua_S,"setBorderSize",tolua_stratagus_Widget_setBorderSize00);
19594 tolua_function(tolua_S,"getBorderSize",tolua_stratagus_Widget_getBorderSize00);
19595 tolua_function(tolua_S,"setEnabled",tolua_stratagus_Widget_setEnabled00);
19596 tolua_function(tolua_S,"isEnabled",tolua_stratagus_Widget_isEnabled00);
19597 tolua_function(tolua_S,"setVisible",tolua_stratagus_Widget_setVisible00);
19598 tolua_function(tolua_S,"isVisible",tolua_stratagus_Widget_isVisible00);
19599 tolua_function(tolua_S,"setBaseColor",tolua_stratagus_Widget_setBaseColor00);
19600 tolua_function(tolua_S,"getBaseColor",tolua_stratagus_Widget_getBaseColor00);
19601 tolua_function(tolua_S,"setForegroundColor",tolua_stratagus_Widget_setForegroundColor00);
19602 tolua_function(tolua_S,"getForegroundColor",tolua_stratagus_Widget_getForegroundColor00);
19603 tolua_function(tolua_S,"setBackgroundColor",tolua_stratagus_Widget_setBackgroundColor00);
19604 tolua_function(tolua_S,"getBackgroundColor",tolua_stratagus_Widget_getBackgroundColor00);
19605 tolua_function(tolua_S,"setDisabledColor",tolua_stratagus_Widget_setDisabledColor00);
19606 tolua_function(tolua_S,"getDisabledColor",tolua_stratagus_Widget_getDisabledColor00);
19607 tolua_function(tolua_S,"setGlobalFont",tolua_stratagus_Widget_setGlobalFont00);
19608 tolua_function(tolua_S,"setFont",tolua_stratagus_Widget_setFont00);
19609 tolua_function(tolua_S,"getHotKey",tolua_stratagus_Widget_getHotKey00);
19610 tolua_function(tolua_S,"setHotKey",tolua_stratagus_Widget_setHotKey00);
19611 tolua_function(tolua_S,"setHotKey",tolua_stratagus_Widget_setHotKey01);
19612 tolua_function(tolua_S,"addActionListener",tolua_stratagus_Widget_addActionListener00);
19613 tolua_endmodule(tolua_S);
19614
19615 {
19616 int top = lua_gettop(tolua_S);
19617 static unsigned char B[] = {
19618 10, 87,105,100,103,101,116, 46,115,101,116, 65, 99,116,105,
19619 111,110, 67, 97,108,108, 98, 97, 99,107, 32, 61, 32,102,117,
19620 110, 99,116,105,111,110, 40,119, 44, 32,102, 41, 10,119, 46,
19621 95, 97, 99,116,105,111,110, 99, 98, 32, 61, 32, 76,117, 97,
19622 65, 99,116,105,111,110, 76,105,115,116,101,110,101,114, 40,
19623 102, 41, 10,119, 58, 97,100,100, 65, 99,116,105,111,110, 76,
19624 105,115,116,101,110,101,114, 40,119, 46, 95, 97, 99,116,105,
19625 111,110, 99, 98, 41, 10,101,110,100,32
19626 };
19627 tolua_dobuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code 3");
19628 lua_settop(tolua_S, top);
19629 }
19630
19631 tolua_cclass(tolua_S,"BasicContainer","BasicContainer","Widget",NULL);
19632 tolua_beginmodule(tolua_S,"BasicContainer");
19633 tolua_endmodule(tolua_S);
19634 #ifdef __cplusplus
19635 tolua_cclass(tolua_S,"ScrollArea","ScrollArea","BasicContainer",tolua_collect_ScrollArea);
19636 #else
19637 tolua_cclass(tolua_S,"ScrollArea","ScrollArea","BasicContainer",NULL);
19638 #endif
19639 tolua_beginmodule(tolua_S,"ScrollArea");
19640 tolua_function(tolua_S,"new",tolua_stratagus_ScrollArea_new00);
19641 tolua_function(tolua_S,"new_local",tolua_stratagus_ScrollArea_new00_local);
19642 tolua_function(tolua_S,".call",tolua_stratagus_ScrollArea_new00_local);
19643 tolua_function(tolua_S,"setContent",tolua_stratagus_ScrollArea_setContent00);
19644 tolua_function(tolua_S,"getContent",tolua_stratagus_ScrollArea_getContent00);
19645 tolua_function(tolua_S,"setScrollbarWidth",tolua_stratagus_ScrollArea_setScrollbarWidth00);
19646 tolua_function(tolua_S,"getScrollbarWidth",tolua_stratagus_ScrollArea_getScrollbarWidth00);
19647 tolua_endmodule(tolua_S);
19648 #ifdef __cplusplus
19649 tolua_cclass(tolua_S,"ImageWidget","ImageWidget","Widget",tolua_collect_ImageWidget);
19650 #else
19651 tolua_cclass(tolua_S,"ImageWidget","ImageWidget","Widget",NULL);
19652 #endif
19653 tolua_beginmodule(tolua_S,"ImageWidget");
19654 tolua_function(tolua_S,"new",tolua_stratagus_ImageWidget_new00);
19655 tolua_function(tolua_S,"new_local",tolua_stratagus_ImageWidget_new00_local);
19656 tolua_function(tolua_S,".call",tolua_stratagus_ImageWidget_new00_local);
19657 tolua_endmodule(tolua_S);
19658 tolua_cclass(tolua_S,"Button","Button","Widget",NULL);
19659 tolua_beginmodule(tolua_S,"Button");
19660 tolua_endmodule(tolua_S);
19661 #ifdef __cplusplus
19662 tolua_cclass(tolua_S,"ButtonWidget","ButtonWidget","Button",tolua_collect_ButtonWidget);
19663 #else
19664 tolua_cclass(tolua_S,"ButtonWidget","ButtonWidget","Button",NULL);
19665 #endif
19666 tolua_beginmodule(tolua_S,"ButtonWidget");
19667 tolua_function(tolua_S,"new",tolua_stratagus_ButtonWidget_new00);
19668 tolua_function(tolua_S,"new_local",tolua_stratagus_ButtonWidget_new00_local);
19669 tolua_function(tolua_S,".call",tolua_stratagus_ButtonWidget_new00_local);
19670 tolua_function(tolua_S,"setCaption",tolua_stratagus_ButtonWidget_setCaption00);
19671 tolua_function(tolua_S,"getCaption",tolua_stratagus_ButtonWidget_getCaption00);
19672 tolua_function(tolua_S,"adjustSize",tolua_stratagus_ButtonWidget_adjustSize00);
19673 tolua_endmodule(tolua_S);
19674 #ifdef __cplusplus
19675 tolua_cclass(tolua_S,"ImageButton","ImageButton","Button",tolua_collect_ImageButton);
19676 #else
19677 tolua_cclass(tolua_S,"ImageButton","ImageButton","Button",NULL);
19678 #endif
19679 tolua_beginmodule(tolua_S,"ImageButton");
19680 tolua_function(tolua_S,"new",tolua_stratagus_ImageButton_new00);
19681 tolua_function(tolua_S,"new_local",tolua_stratagus_ImageButton_new00_local);
19682 tolua_function(tolua_S,".call",tolua_stratagus_ImageButton_new00_local);
19683 tolua_function(tolua_S,"new",tolua_stratagus_ImageButton_new01);
19684 tolua_function(tolua_S,"new_local",tolua_stratagus_ImageButton_new01_local);
19685 tolua_function(tolua_S,".call",tolua_stratagus_ImageButton_new01_local);
19686 tolua_function(tolua_S,"setNormalImage",tolua_stratagus_ImageButton_setNormalImage00);
19687 tolua_function(tolua_S,"setPressedImage",tolua_stratagus_ImageButton_setPressedImage00);
19688 tolua_function(tolua_S,"setDisabledImage",tolua_stratagus_ImageButton_setDisabledImage00);
19689 tolua_endmodule(tolua_S);
19690 #ifdef __cplusplus
19691 tolua_cclass(tolua_S,"RadioButton","RadioButton","Widget",tolua_collect_RadioButton);
19692 #else
19693 tolua_cclass(tolua_S,"RadioButton","RadioButton","Widget",NULL);
19694 #endif
19695 tolua_beginmodule(tolua_S,"RadioButton");
19696 tolua_function(tolua_S,"new",tolua_stratagus_RadioButton_new00);
19697 tolua_function(tolua_S,"new_local",tolua_stratagus_RadioButton_new00_local);
19698 tolua_function(tolua_S,".call",tolua_stratagus_RadioButton_new00_local);
19699 tolua_function(tolua_S,"new",tolua_stratagus_RadioButton_new01);
19700 tolua_function(tolua_S,"new_local",tolua_stratagus_RadioButton_new01_local);
19701 tolua_function(tolua_S,".call",tolua_stratagus_RadioButton_new01_local);
19702 tolua_function(tolua_S,"isMarked",tolua_stratagus_RadioButton_isMarked00);
19703 tolua_function(tolua_S,"setMarked",tolua_stratagus_RadioButton_setMarked00);
19704 tolua_function(tolua_S,"getCaption",tolua_stratagus_RadioButton_getCaption00);
19705 tolua_function(tolua_S,"setCaption",tolua_stratagus_RadioButton_setCaption00);
19706 tolua_function(tolua_S,"setGroup",tolua_stratagus_RadioButton_setGroup00);
19707 tolua_function(tolua_S,"getGroup",tolua_stratagus_RadioButton_getGroup00);
19708 tolua_function(tolua_S,"adjustSize",tolua_stratagus_RadioButton_adjustSize00);
19709 tolua_endmodule(tolua_S);
19710 #ifdef __cplusplus
19711 tolua_cclass(tolua_S,"ImageRadioButton","ImageRadioButton","RadioButton",tolua_collect_ImageRadioButton);
19712 #else
19713 tolua_cclass(tolua_S,"ImageRadioButton","ImageRadioButton","RadioButton",NULL);
19714 #endif
19715 tolua_beginmodule(tolua_S,"ImageRadioButton");
19716 tolua_function(tolua_S,"new",tolua_stratagus_ImageRadioButton_new00);
19717 tolua_function(tolua_S,"new_local",tolua_stratagus_ImageRadioButton_new00_local);
19718 tolua_function(tolua_S,".call",tolua_stratagus_ImageRadioButton_new00_local);
19719 tolua_function(tolua_S,"new",tolua_stratagus_ImageRadioButton_new01);
19720 tolua_function(tolua_S,"new_local",tolua_stratagus_ImageRadioButton_new01_local);
19721 tolua_function(tolua_S,".call",tolua_stratagus_ImageRadioButton_new01_local);
19722 tolua_function(tolua_S,"setUncheckedNormalImage",tolua_stratagus_ImageRadioButton_setUncheckedNormalImage00);
19723 tolua_function(tolua_S,"setUncheckedPressedImage",tolua_stratagus_ImageRadioButton_setUncheckedPressedImage00);
19724 tolua_function(tolua_S,"setCheckedNormalImage",tolua_stratagus_ImageRadioButton_setCheckedNormalImage00);
19725 tolua_function(tolua_S,"setCheckedPressedImage",tolua_stratagus_ImageRadioButton_setCheckedPressedImage00);
19726 tolua_endmodule(tolua_S);
19727 #ifdef __cplusplus
19728 tolua_cclass(tolua_S,"CheckBox","CheckBox","Widget",tolua_collect_CheckBox);
19729 #else
19730 tolua_cclass(tolua_S,"CheckBox","CheckBox","Widget",NULL);
19731 #endif
19732 tolua_beginmodule(tolua_S,"CheckBox");
19733 tolua_function(tolua_S,"new",tolua_stratagus_CheckBox_new00);
19734 tolua_function(tolua_S,"new_local",tolua_stratagus_CheckBox_new00_local);
19735 tolua_function(tolua_S,".call",tolua_stratagus_CheckBox_new00_local);
19736 tolua_function(tolua_S,"new",tolua_stratagus_CheckBox_new01);
19737 tolua_function(tolua_S,"new_local",tolua_stratagus_CheckBox_new01_local);
19738 tolua_function(tolua_S,".call",tolua_stratagus_CheckBox_new01_local);
19739 tolua_function(tolua_S,"isMarked",tolua_stratagus_CheckBox_isMarked00);
19740 tolua_function(tolua_S,"setMarked",tolua_stratagus_CheckBox_setMarked00);
19741 tolua_function(tolua_S,"getCaption",tolua_stratagus_CheckBox_getCaption00);
19742 tolua_function(tolua_S,"setCaption",tolua_stratagus_CheckBox_setCaption00);
19743 tolua_function(tolua_S,"adjustSize",tolua_stratagus_CheckBox_adjustSize00);
19744 tolua_endmodule(tolua_S);
19745 #ifdef __cplusplus
19746 tolua_cclass(tolua_S,"ImageCheckBox","ImageCheckBox","CheckBox",tolua_collect_ImageCheckBox);
19747 #else
19748 tolua_cclass(tolua_S,"ImageCheckBox","ImageCheckBox","CheckBox",NULL);
19749 #endif
19750 tolua_beginmodule(tolua_S,"ImageCheckBox");
19751 tolua_function(tolua_S,"new",tolua_stratagus_ImageCheckBox_new00);
19752 tolua_function(tolua_S,"new_local",tolua_stratagus_ImageCheckBox_new00_local);
19753 tolua_function(tolua_S,".call",tolua_stratagus_ImageCheckBox_new00_local);
19754 tolua_function(tolua_S,"new",tolua_stratagus_ImageCheckBox_new01);
19755 tolua_function(tolua_S,"new_local",tolua_stratagus_ImageCheckBox_new01_local);
19756 tolua_function(tolua_S,".call",tolua_stratagus_ImageCheckBox_new01_local);
19757 tolua_function(tolua_S,"setUncheckedNormalImage",tolua_stratagus_ImageCheckBox_setUncheckedNormalImage00);
19758 tolua_function(tolua_S,"setUncheckedPressedImage",tolua_stratagus_ImageCheckBox_setUncheckedPressedImage00);
19759 tolua_function(tolua_S,"setCheckedNormalImage",tolua_stratagus_ImageCheckBox_setCheckedNormalImage00);
19760 tolua_function(tolua_S,"setCheckedPressedImage",tolua_stratagus_ImageCheckBox_setCheckedPressedImage00);
19761 tolua_endmodule(tolua_S);
19762 #ifdef __cplusplus
19763 tolua_cclass(tolua_S,"Slider","Slider","Widget",tolua_collect_Slider);
19764 #else
19765 tolua_cclass(tolua_S,"Slider","Slider","Widget",NULL);
19766 #endif
19767 tolua_beginmodule(tolua_S,"Slider");
19768 tolua_function(tolua_S,"new",tolua_stratagus_Slider_new00);
19769 tolua_function(tolua_S,"new_local",tolua_stratagus_Slider_new00_local);
19770 tolua_function(tolua_S,".call",tolua_stratagus_Slider_new00_local);
19771 tolua_function(tolua_S,"new",tolua_stratagus_Slider_new01);
19772 tolua_function(tolua_S,"new_local",tolua_stratagus_Slider_new01_local);
19773 tolua_function(tolua_S,".call",tolua_stratagus_Slider_new01_local);
19774 tolua_function(tolua_S,"setScale",tolua_stratagus_Slider_setScale00);
19775 tolua_function(tolua_S,"getScaleStart",tolua_stratagus_Slider_getScaleStart00);
19776 tolua_function(tolua_S,"setScaleStart",tolua_stratagus_Slider_setScaleStart00);
19777 tolua_function(tolua_S,"getScaleEnd",tolua_stratagus_Slider_getScaleEnd00);
19778 tolua_function(tolua_S,"setScaleEnd",tolua_stratagus_Slider_setScaleEnd00);
19779 tolua_function(tolua_S,"getValue",tolua_stratagus_Slider_getValue00);
19780 tolua_function(tolua_S,"setValue",tolua_stratagus_Slider_setValue00);
19781 tolua_function(tolua_S,"setMarkerLength",tolua_stratagus_Slider_setMarkerLength00);
19782 tolua_function(tolua_S,"getMarkerLength",tolua_stratagus_Slider_getMarkerLength00);
19783 tolua_function(tolua_S,"setOrientation",tolua_stratagus_Slider_setOrientation00);
19784 tolua_function(tolua_S,"getOrientation",tolua_stratagus_Slider_getOrientation00);
19785 tolua_function(tolua_S,"setStepLength",tolua_stratagus_Slider_setStepLength00);
19786 tolua_function(tolua_S,"getStepLength",tolua_stratagus_Slider_getStepLength00);
19787 tolua_constant(tolua_S,"HORIZONTAL",Slider::HORIZONTAL);
19788 tolua_constant(tolua_S,"VERTICAL",Slider::VERTICAL);
19789 tolua_endmodule(tolua_S);
19790 #ifdef __cplusplus
19791 tolua_cclass(tolua_S,"ImageSlider","ImageSlider","Slider",tolua_collect_ImageSlider);
19792 #else
19793 tolua_cclass(tolua_S,"ImageSlider","ImageSlider","Slider",NULL);
19794 #endif
19795 tolua_beginmodule(tolua_S,"ImageSlider");
19796 tolua_function(tolua_S,"new",tolua_stratagus_ImageSlider_new00);
19797 tolua_function(tolua_S,"new_local",tolua_stratagus_ImageSlider_new00_local);
19798 tolua_function(tolua_S,".call",tolua_stratagus_ImageSlider_new00_local);
19799 tolua_function(tolua_S,"new",tolua_stratagus_ImageSlider_new01);
19800 tolua_function(tolua_S,"new_local",tolua_stratagus_ImageSlider_new01_local);
19801 tolua_function(tolua_S,".call",tolua_stratagus_ImageSlider_new01_local);
19802 tolua_function(tolua_S,"setMarkerImage",tolua_stratagus_ImageSlider_setMarkerImage00);
19803 tolua_function(tolua_S,"setBackgroundImage",tolua_stratagus_ImageSlider_setBackgroundImage00);
19804 tolua_endmodule(tolua_S);
19805 #ifdef __cplusplus
19806 tolua_cclass(tolua_S,"Label","Label","Widget",tolua_collect_Label);
19807 #else
19808 tolua_cclass(tolua_S,"Label","Label","Widget",NULL);
19809 #endif
19810 tolua_beginmodule(tolua_S,"Label");
19811 tolua_function(tolua_S,"new",tolua_stratagus_Label_new00);
19812 tolua_function(tolua_S,"new_local",tolua_stratagus_Label_new00_local);
19813 tolua_function(tolua_S,".call",tolua_stratagus_Label_new00_local);
19814 tolua_function(tolua_S,"getCaption",tolua_stratagus_Label_getCaption00);
19815 tolua_function(tolua_S,"setCaption",tolua_stratagus_Label_setCaption00);
19816 tolua_function(tolua_S,"setAlignment",tolua_stratagus_Label_setAlignment00);
19817 tolua_function(tolua_S,"getAlignment",tolua_stratagus_Label_getAlignment00);
19818 tolua_function(tolua_S,"adjustSize",tolua_stratagus_Label_adjustSize00);
19819 tolua_endmodule(tolua_S);
19820 #ifdef __cplusplus
19821 tolua_cclass(tolua_S,"MultiLineLabel","MultiLineLabel","Widget",tolua_collect_MultiLineLabel);
19822 #else
19823 tolua_cclass(tolua_S,"MultiLineLabel","MultiLineLabel","Widget",NULL);
19824 #endif
19825 tolua_beginmodule(tolua_S,"MultiLineLabel");
19826 tolua_function(tolua_S,"new",tolua_stratagus_MultiLineLabel_new00);
19827 tolua_function(tolua_S,"new_local",tolua_stratagus_MultiLineLabel_new00_local);
19828 tolua_function(tolua_S,".call",tolua_stratagus_MultiLineLabel_new00_local);
19829 tolua_function(tolua_S,"new",tolua_stratagus_MultiLineLabel_new01);
19830 tolua_function(tolua_S,"new_local",tolua_stratagus_MultiLineLabel_new01_local);
19831 tolua_function(tolua_S,".call",tolua_stratagus_MultiLineLabel_new01_local);
19832 tolua_function(tolua_S,"setCaption",tolua_stratagus_MultiLineLabel_setCaption00);
19833 tolua_function(tolua_S,"getCaption",tolua_stratagus_MultiLineLabel_getCaption00);
19834 tolua_function(tolua_S,"setAlignment",tolua_stratagus_MultiLineLabel_setAlignment00);
19835 tolua_function(tolua_S,"getAlignment",tolua_stratagus_MultiLineLabel_getAlignment00);
19836 tolua_function(tolua_S,"setVerticalAlignment",tolua_stratagus_MultiLineLabel_setVerticalAlignment00);
19837 tolua_function(tolua_S,"getVerticalAlignment",tolua_stratagus_MultiLineLabel_getVerticalAlignment00);
19838 tolua_function(tolua_S,"setLineWidth",tolua_stratagus_MultiLineLabel_setLineWidth00);
19839 tolua_function(tolua_S,"getLineWidth",tolua_stratagus_MultiLineLabel_getLineWidth00);
19840 tolua_function(tolua_S,"adjustSize",tolua_stratagus_MultiLineLabel_adjustSize00);
19841 tolua_function(tolua_S,"draw",tolua_stratagus_MultiLineLabel_draw00);
19842 tolua_constant(tolua_S,"LEFT",MultiLineLabel::LEFT);
19843 tolua_constant(tolua_S,"CENTER",MultiLineLabel::CENTER);
19844 tolua_constant(tolua_S,"RIGHT",MultiLineLabel::RIGHT);
19845 tolua_constant(tolua_S,"TOP",MultiLineLabel::TOP);
19846 tolua_constant(tolua_S,"BOTTOM",MultiLineLabel::BOTTOM);
19847 tolua_endmodule(tolua_S);
19848 #ifdef __cplusplus
19849 tolua_cclass(tolua_S,"TextField","TextField","Widget",tolua_collect_TextField);
19850 #else
19851 tolua_cclass(tolua_S,"TextField","TextField","Widget",NULL);
19852 #endif
19853 tolua_beginmodule(tolua_S,"TextField");
19854 tolua_function(tolua_S,"new",tolua_stratagus_TextField_new00);
19855 tolua_function(tolua_S,"new_local",tolua_stratagus_TextField_new00_local);
19856 tolua_function(tolua_S,".call",tolua_stratagus_TextField_new00_local);
19857 tolua_function(tolua_S,"setText",tolua_stratagus_TextField_setText00);
19858 tolua_function(tolua_S,"getText",tolua_stratagus_TextField_getText00);
19859 tolua_endmodule(tolua_S);
19860 tolua_cclass(tolua_S,"ListBox","ListBox","Widget",NULL);
19861 tolua_beginmodule(tolua_S,"ListBox");
19862 tolua_endmodule(tolua_S);
19863 #ifdef __cplusplus
19864 tolua_cclass(tolua_S,"ListBoxWidget","ListBoxWidget","ScrollArea",tolua_collect_ListBoxWidget);
19865 #else
19866 tolua_cclass(tolua_S,"ListBoxWidget","ListBoxWidget","ScrollArea",NULL);
19867 #endif
19868 tolua_beginmodule(tolua_S,"ListBoxWidget");
19869 tolua_function(tolua_S,"new",tolua_stratagus_ListBoxWidget_new00);
19870 tolua_function(tolua_S,"new_local",tolua_stratagus_ListBoxWidget_new00_local);
19871 tolua_function(tolua_S,".call",tolua_stratagus_ListBoxWidget_new00_local);
19872 tolua_function(tolua_S,"setList",tolua_stratagus_ListBoxWidget_setList00);
19873 tolua_function(tolua_S,"setSelected",tolua_stratagus_ListBoxWidget_setSelected00);
19874 tolua_function(tolua_S,"getSelected",tolua_stratagus_ListBoxWidget_getSelected00);
19875 tolua_endmodule(tolua_S);
19876 #ifdef __cplusplus
19877 tolua_cclass(tolua_S,"Window","Window","BasicContainer",tolua_collect_Window);
19878 #else
19879 tolua_cclass(tolua_S,"Window","Window","BasicContainer",NULL);
19880 #endif
19881 tolua_beginmodule(tolua_S,"Window");
19882 tolua_function(tolua_S,"new",tolua_stratagus_Window_new00);
19883 tolua_function(tolua_S,"new_local",tolua_stratagus_Window_new00_local);
19884 tolua_function(tolua_S,".call",tolua_stratagus_Window_new00_local);
19885 tolua_function(tolua_S,"new",tolua_stratagus_Window_new01);
19886 tolua_function(tolua_S,"new_local",tolua_stratagus_Window_new01_local);
19887 tolua_function(tolua_S,".call",tolua_stratagus_Window_new01_local);
19888 tolua_function(tolua_S,"new",tolua_stratagus_Window_new02);
19889 tolua_function(tolua_S,"new_local",tolua_stratagus_Window_new02_local);
19890 tolua_function(tolua_S,".call",tolua_stratagus_Window_new02_local);
19891 tolua_function(tolua_S,"setCaption",tolua_stratagus_Window_setCaption00);
19892 tolua_function(tolua_S,"getCaption",tolua_stratagus_Window_getCaption00);
19893 tolua_function(tolua_S,"setAlignment",tolua_stratagus_Window_setAlignment00);
19894 tolua_function(tolua_S,"getAlignment",tolua_stratagus_Window_getAlignment00);
19895 tolua_function(tolua_S,"setContent",tolua_stratagus_Window_setContent00);
19896 tolua_function(tolua_S,"getContent",tolua_stratagus_Window_getContent00);
19897 tolua_function(tolua_S,"setPadding",tolua_stratagus_Window_setPadding00);
19898 tolua_function(tolua_S,"getPadding",tolua_stratagus_Window_getPadding00);
19899 tolua_function(tolua_S,"setTitleBarHeight",tolua_stratagus_Window_setTitleBarHeight00);
19900 tolua_function(tolua_S,"getTitleBarHeight",tolua_stratagus_Window_getTitleBarHeight00);
19901 tolua_function(tolua_S,"setMovable",tolua_stratagus_Window_setMovable00);
19902 tolua_function(tolua_S,"isMovable",tolua_stratagus_Window_isMovable00);
19903 tolua_function(tolua_S,"resizeToContent",tolua_stratagus_Window_resizeToContent00);
19904 tolua_function(tolua_S,"setOpaque",tolua_stratagus_Window_setOpaque00);
19905 tolua_function(tolua_S,"isOpaque",tolua_stratagus_Window_isOpaque00);
19906 tolua_endmodule(tolua_S);
19907 #ifdef __cplusplus
19908 tolua_cclass(tolua_S,"Windows","Windows","Window",tolua_collect_Windows);
19909 #else
19910 tolua_cclass(tolua_S,"Windows","Windows","Window",NULL);
19911 #endif
19912 tolua_beginmodule(tolua_S,"Windows");
19913 tolua_function(tolua_S,"new",tolua_stratagus_Windows_new00);
19914 tolua_function(tolua_S,"new_local",tolua_stratagus_Windows_new00_local);
19915 tolua_function(tolua_S,".call",tolua_stratagus_Windows_new00_local);
19916 tolua_function(tolua_S,"add",tolua_stratagus_Windows_add00);
19917 tolua_endmodule(tolua_S);
19918 #ifdef __cplusplus
19919 tolua_cclass(tolua_S,"ScrollingWidget","ScrollingWidget","ScrollArea",tolua_collect_ScrollingWidget);
19920 #else
19921 tolua_cclass(tolua_S,"ScrollingWidget","ScrollingWidget","ScrollArea",NULL);
19922 #endif
19923 tolua_beginmodule(tolua_S,"ScrollingWidget");
19924 tolua_function(tolua_S,"new",tolua_stratagus_ScrollingWidget_new00);
19925 tolua_function(tolua_S,"new_local",tolua_stratagus_ScrollingWidget_new00_local);
19926 tolua_function(tolua_S,".call",tolua_stratagus_ScrollingWidget_new00_local);
19927 tolua_function(tolua_S,"add",tolua_stratagus_ScrollingWidget_add00);
19928 tolua_function(tolua_S,"restart",tolua_stratagus_ScrollingWidget_restart00);
19929 tolua_function(tolua_S,"setSpeed",tolua_stratagus_ScrollingWidget_setSpeed00);
19930 tolua_function(tolua_S,"getSpeed",tolua_stratagus_ScrollingWidget_getSpeed00);
19931 tolua_endmodule(tolua_S);
19932 tolua_cclass(tolua_S,"DropDown","DropDown","BasicContainer",NULL);
19933 tolua_beginmodule(tolua_S,"DropDown");
19934 tolua_function(tolua_S,"getSelected",tolua_stratagus_DropDown_getSelected00);
19935 tolua_function(tolua_S,"setSelected",tolua_stratagus_DropDown_setSelected00);
19936 tolua_function(tolua_S,"setScrollArea",tolua_stratagus_DropDown_setScrollArea00);
19937 tolua_function(tolua_S,"getScrollArea",tolua_stratagus_DropDown_getScrollArea00);
19938 tolua_function(tolua_S,"setListBox",tolua_stratagus_DropDown_setListBox00);
19939 tolua_function(tolua_S,"getListBox",tolua_stratagus_DropDown_getListBox00);
19940 tolua_endmodule(tolua_S);
19941 #ifdef __cplusplus
19942 tolua_cclass(tolua_S,"DropDownWidget","DropDownWidget","DropDown",tolua_collect_DropDownWidget);
19943 #else
19944 tolua_cclass(tolua_S,"DropDownWidget","DropDownWidget","DropDown",NULL);
19945 #endif
19946 tolua_beginmodule(tolua_S,"DropDownWidget");
19947 tolua_function(tolua_S,"new",tolua_stratagus_DropDownWidget_new00);
19948 tolua_function(tolua_S,"new_local",tolua_stratagus_DropDownWidget_new00_local);
19949 tolua_function(tolua_S,".call",tolua_stratagus_DropDownWidget_new00_local);
19950 tolua_function(tolua_S,"setList",tolua_stratagus_DropDownWidget_setList00);
19951 tolua_function(tolua_S,"getListBox",tolua_stratagus_DropDownWidget_getListBox00);
19952 tolua_function(tolua_S,"setSize",tolua_stratagus_DropDownWidget_setSize00);
19953 tolua_endmodule(tolua_S);
19954 #ifdef __cplusplus
19955 tolua_cclass(tolua_S,"StatBoxWidget","StatBoxWidget","Widget",tolua_collect_StatBoxWidget);
19956 #else
19957 tolua_cclass(tolua_S,"StatBoxWidget","StatBoxWidget","Widget",NULL);
19958 #endif
19959 tolua_beginmodule(tolua_S,"StatBoxWidget");
19960 tolua_function(tolua_S,"new",tolua_stratagus_StatBoxWidget_new00);
19961 tolua_function(tolua_S,"new_local",tolua_stratagus_StatBoxWidget_new00_local);
19962 tolua_function(tolua_S,".call",tolua_stratagus_StatBoxWidget_new00_local);
19963 tolua_function(tolua_S,"setCaption",tolua_stratagus_StatBoxWidget_setCaption00);
19964 tolua_function(tolua_S,"getCaption",tolua_stratagus_StatBoxWidget_getCaption00);
19965 tolua_function(tolua_S,"setPercent",tolua_stratagus_StatBoxWidget_setPercent00);
19966 tolua_function(tolua_S,"getPercent",tolua_stratagus_StatBoxWidget_getPercent00);
19967 tolua_endmodule(tolua_S);
19968 #ifdef __cplusplus
19969 tolua_cclass(tolua_S,"Container","Container","BasicContainer",tolua_collect_Container);
19970 #else
19971 tolua_cclass(tolua_S,"Container","Container","BasicContainer",NULL);
19972 #endif
19973 tolua_beginmodule(tolua_S,"Container");
19974 tolua_function(tolua_S,"new",tolua_stratagus_Container_new00);
19975 tolua_function(tolua_S,"new_local",tolua_stratagus_Container_new00_local);
19976 tolua_function(tolua_S,".call",tolua_stratagus_Container_new00_local);
19977 tolua_function(tolua_S,"setOpaque",tolua_stratagus_Container_setOpaque00);
19978 tolua_function(tolua_S,"isOpaque",tolua_stratagus_Container_isOpaque00);
19979 tolua_function(tolua_S,"add",tolua_stratagus_Container_add00);
19980 tolua_function(tolua_S,"remove",tolua_stratagus_Container_remove00);
19981 tolua_function(tolua_S,"clear",tolua_stratagus_Container_clear00);
19982 tolua_endmodule(tolua_S);
19983 #ifdef __cplusplus
19984 tolua_cclass(tolua_S,"CMenuScreen","MenuScreen","Container",tolua_collect_MenuScreen);
19985 #else
19986 tolua_cclass(tolua_S,"CMenuScreen","MenuScreen","Container",NULL);
19987 #endif
19988 tolua_beginmodule(tolua_S,"CMenuScreen");
19989 tolua_function(tolua_S,"new",tolua_stratagus_CMenuScreen_new00);
19990 tolua_function(tolua_S,"new_local",tolua_stratagus_CMenuScreen_new00_local);
19991 tolua_function(tolua_S,".call",tolua_stratagus_CMenuScreen_new00_local);
19992 tolua_function(tolua_S,"run",tolua_stratagus_CMenuScreen_run00);
19993 tolua_function(tolua_S,"stop",tolua_stratagus_CMenuScreen_stop00);
19994 tolua_function(tolua_S,"stopAll",tolua_stratagus_CMenuScreen_stopAll00);
19995 tolua_function(tolua_S,"addLogicCallback",tolua_stratagus_CMenuScreen_addLogicCallback00);
19996 tolua_function(tolua_S,"setDrawMenusUnder",tolua_stratagus_CMenuScreen_setDrawMenusUnder00);
19997 tolua_function(tolua_S,"getDrawMenusUnder",tolua_stratagus_CMenuScreen_getDrawMenusUnder00);
19998 tolua_endmodule(tolua_S);
19999
20000 {
20001 int top = lua_gettop(tolua_S);
20002 static unsigned char B[] = {
20003 10,102,117,110, 99,116,105,111,110, 32, 77,101,110,117, 83,
20004 99,114,101,101,110, 40, 41, 10,108,111, 99, 97,108, 32,109,
20005 101,110,117, 32, 61, 32, 67, 77,101,110,117, 83, 99,114,101,
20006 101,110, 40, 41, 10,108,111, 99, 97,108, 32,103,117,105, 99,
20007 104, 97,110, 97,100,100, 32, 61, 32, 67,111,110,116, 97,105,
20008 110,101,114, 46, 97,100,100, 10,102,117,110, 99,116,105,111,
20009 110, 32,109,101,110,117, 58, 97,100,100, 40,119,105,100,103,
20010 101,116, 44, 32,120, 44, 32,121, 41, 10,105,102, 32,110,111,
20011 116, 32,115,101,108,102, 46, 95, 97,100,100,101,100, 87,105,
20012 100,103,101,116,115, 32,116,104,101,110, 10,115,101,108,102,
20013 46, 95, 97,100,100,101,100, 87,105,100,103,101,116,115, 32,
20014 61, 32,123,125, 10,101,110,100, 10,115,101,108,102, 46, 95,
20015 97,100,100,101,100, 87,105,100,103,101,116,115, 91,119,105,
20016 100,103,101,116, 93, 32, 61, 32,116,114,117,101, 10,103,117,
20017 105, 99,104, 97,110, 97,100,100, 40,115,101,108,102, 44, 32,
20018 119,105,100,103,101,116, 44, 32,120, 44, 32,121, 41, 10,101,
20019 110,100, 10,114,101,116,117,114,110, 32,109,101,110,117, 10,
20020 101,110,100,32
20021 };
20022 tolua_dobuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code 4");
20023 lua_settop(tolua_S, top);
20024 }
20025
20026 tolua_function(tolua_S,"InitNetwork1",tolua_stratagus_InitNetwork100);
20027 tolua_function(tolua_S,"ExitNetwork1",tolua_stratagus_ExitNetwork100);
20028 tolua_function(tolua_S,"IsNetworkGame",tolua_stratagus_IsNetworkGame00);
20029 tolua_function(tolua_S,"NetworkSetupServerAddress",tolua_stratagus_NetworkSetupServerAddress00);
20030 tolua_function(tolua_S,"NetworkInitClientConnect",tolua_stratagus_NetworkInitClientConnect00);
20031 tolua_function(tolua_S,"NetworkInitServerConnect",tolua_stratagus_NetworkInitServerConnect00);
20032 tolua_function(tolua_S,"NetworkServerStartGame",tolua_stratagus_NetworkServerStartGame00);
20033 tolua_function(tolua_S,"NetworkProcessClientRequest",tolua_stratagus_NetworkProcessClientRequest00);
20034 tolua_function(tolua_S,"GetNetworkState",tolua_stratagus_GetNetworkState00);
20035 tolua_function(tolua_S,"NetworkServerResyncClients",tolua_stratagus_NetworkServerResyncClients00);
20036 tolua_function(tolua_S,"NetworkDetachFromServer",tolua_stratagus_NetworkDetachFromServer00);
20037 tolua_cclass(tolua_S,"CServerSetup","CServerSetup","",NULL);
20038 tolua_beginmodule(tolua_S,"CServerSetup");
20039 tolua_variable(tolua_S,"ResourcesOption",tolua_get_CServerSetup_unsigned_ResourcesOption,tolua_set_CServerSetup_unsigned_ResourcesOption);
20040 tolua_variable(tolua_S,"UnitsOption",tolua_get_CServerSetup_unsigned_UnitsOption,tolua_set_CServerSetup_unsigned_UnitsOption);
20041 tolua_variable(tolua_S,"FogOfWar",tolua_get_CServerSetup_unsigned_FogOfWar,tolua_set_CServerSetup_unsigned_FogOfWar);
20042 tolua_variable(tolua_S,"RevealMap",tolua_get_CServerSetup_unsigned_RevealMap,tolua_set_CServerSetup_unsigned_RevealMap);
20043 tolua_variable(tolua_S,"GameTypeOption",tolua_get_CServerSetup_unsigned_GameTypeOption,tolua_set_CServerSetup_unsigned_GameTypeOption);
20044 tolua_variable(tolua_S,"Difficulty",tolua_get_CServerSetup_unsigned_Difficulty,tolua_set_CServerSetup_unsigned_Difficulty);
20045 tolua_variable(tolua_S,"MapRichness",tolua_get_CServerSetup_unsigned_MapRichness,tolua_set_CServerSetup_unsigned_MapRichness);
20046 tolua_array(tolua_S,"CompOpt",tolua_get_stratagus_CServerSetup_CompOpt,tolua_set_stratagus_CServerSetup_CompOpt);
20047 tolua_array(tolua_S,"Ready",tolua_get_stratagus_CServerSetup_Ready,tolua_set_stratagus_CServerSetup_Ready);
20048 tolua_array(tolua_S,"LastFrame",tolua_get_stratagus_CServerSetup_LastFrame,tolua_set_stratagus_CServerSetup_LastFrame);
20049 tolua_endmodule(tolua_S);
20050 tolua_variable(tolua_S,"LocalSetupState",tolua_get_LocalSetupState,tolua_set_LocalSetupState);
20051 tolua_variable(tolua_S,"ServerSetupState",tolua_get_ServerSetupState,tolua_set_ServerSetupState);
20052 tolua_variable(tolua_S,"NetLocalHostsSlot",tolua_get_NetLocalHostsSlot,tolua_set_NetLocalHostsSlot);
20053 #ifdef __cplusplus
20054 tolua_cclass(tolua_S,"CNetworkHost","CNetworkHost","",tolua_collect_CNetworkHost);
20055 #else
20056 tolua_cclass(tolua_S,"CNetworkHost","CNetworkHost","",NULL);
20057 #endif
20058 tolua_beginmodule(tolua_S,"CNetworkHost");
20059 tolua_variable(tolua_S,"Host",tolua_get_CNetworkHost_unsigned_Host,tolua_set_CNetworkHost_unsigned_Host);
20060 tolua_variable(tolua_S,"Port",tolua_get_CNetworkHost_unsigned_Port,tolua_set_CNetworkHost_unsigned_Port);
20061 tolua_variable(tolua_S,"PlyNr",tolua_get_CNetworkHost_unsigned_PlyNr,tolua_set_CNetworkHost_unsigned_PlyNr);
20062 tolua_variable(tolua_S,"PlyName",tolua_get_CNetworkHost_PlyName,tolua_set_CNetworkHost_PlyName);
20063 tolua_endmodule(tolua_S);
20064 tolua_array(tolua_S,"Hosts",tolua_get_stratagus_Hosts,tolua_set_stratagus_Hosts);
20065 tolua_variable(tolua_S,"NetworkMapName",tolua_get_NetworkMapName,tolua_set_NetworkMapName);
20066 tolua_function(tolua_S,"NetworkGamePrepareGameSettings",tolua_stratagus_NetworkGamePrepareGameSettings00);
20067 tolua_function(tolua_S,"InitVideo",tolua_stratagus_InitVideo00);
20068 tolua_variable(tolua_S,"UseOpenGL",tolua_get_UseOpenGL,tolua_set_UseOpenGL);
20069 tolua_cclass(tolua_S,"CVideo","CVideo","",NULL);
20070 tolua_beginmodule(tolua_S,"CVideo");
20071 tolua_variable(tolua_S,"Width",tolua_get_CVideo_Width,tolua_set_CVideo_Width);
20072 tolua_variable(tolua_S,"Height",tolua_get_CVideo_Height,tolua_set_CVideo_Height);
20073 tolua_variable(tolua_S,"Depth",tolua_get_CVideo_Depth,tolua_set_CVideo_Depth);
20074 tolua_variable(tolua_S,"FullScreen",tolua_get_CVideo_FullScreen,tolua_set_CVideo_FullScreen);
20075 tolua_function(tolua_S,"ResizeScreen",tolua_stratagus_CVideo_ResizeScreen00);
20076 tolua_endmodule(tolua_S);
20077 tolua_variable(tolua_S,"Video",tolua_get_Video,tolua_set_Video);
20078 tolua_function(tolua_S,"ToggleFullScreen",tolua_stratagus_ToggleFullScreen00);
20079 tolua_cclass(tolua_S,"CGraphic","CGraphic","",NULL);
20080 tolua_beginmodule(tolua_S,"CGraphic");
20081 tolua_function(tolua_S,"New",tolua_stratagus_CGraphic_New00);
20082 tolua_function(tolua_S,"Free",tolua_stratagus_CGraphic_Free00);
20083 tolua_function(tolua_S,"Load",tolua_stratagus_CGraphic_Load00);
20084 tolua_function(tolua_S,"Resize",tolua_stratagus_CGraphic_Resize00);
20085 tolua_endmodule(tolua_S);
20086 tolua_cclass(tolua_S,"CPlayerColorGraphic","CPlayerColorGraphic","CGraphic",NULL);
20087 tolua_beginmodule(tolua_S,"CPlayerColorGraphic");
20088 tolua_function(tolua_S,"New",tolua_stratagus_CPlayerColorGraphic_New00);
20089 tolua_endmodule(tolua_S);
20090 #ifdef __cplusplus
20091 tolua_cclass(tolua_S,"CColor","CColor","",tolua_collect_CColor);
20092 #else
20093 tolua_cclass(tolua_S,"CColor","CColor","",NULL);
20094 #endif
20095 tolua_beginmodule(tolua_S,"CColor");
20096 tolua_function(tolua_S,"new",tolua_stratagus_CColor_new00);
20097 tolua_function(tolua_S,"new_local",tolua_stratagus_CColor_new00_local);
20098 tolua_function(tolua_S,".call",tolua_stratagus_CColor_new00_local);
20099 tolua_variable(tolua_S,"R",tolua_get_CColor_unsigned_R,tolua_set_CColor_unsigned_R);
20100 tolua_variable(tolua_S,"G",tolua_get_CColor_unsigned_G,tolua_set_CColor_unsigned_G);
20101 tolua_variable(tolua_S,"B",tolua_get_CColor_unsigned_B,tolua_set_CColor_unsigned_B);
20102 tolua_variable(tolua_S,"A",tolua_get_CColor_unsigned_A,tolua_set_CColor_unsigned_A);
20103 tolua_endmodule(tolua_S);
20104 tolua_variable(tolua_S,"UseGLTextureCompression",tolua_get_UseGLTextureCompression,tolua_set_UseGLTextureCompression);
20105 tolua_cclass(tolua_S,"CFont","CFont","",NULL);
20106 tolua_beginmodule(tolua_S,"CFont");
20107 tolua_function(tolua_S,"New",tolua_stratagus_CFont_New00);
20108 tolua_function(tolua_S,"Get",tolua_stratagus_CFont_Get00);
20109 tolua_function(tolua_S,"Height",tolua_stratagus_CFont_Height00);
20110 tolua_function(tolua_S,"Width",tolua_stratagus_CFont_Width00);
20111 tolua_endmodule(tolua_S);
20112 tolua_constant(tolua_S,"MaxFontColors",MaxFontColors);
20113 tolua_cclass(tolua_S,"CFontColor","CFontColor","",NULL);
20114 tolua_beginmodule(tolua_S,"CFontColor");
20115 tolua_function(tolua_S,"New",tolua_stratagus_CFontColor_New00);
20116 tolua_function(tolua_S,"Get",tolua_stratagus_CFontColor_Get00);
20117 tolua_array(tolua_S,"Colors",tolua_get_stratagus_CFontColor_Colors,tolua_set_stratagus_CFontColor_Colors);
20118 tolua_endmodule(tolua_S);
20119 tolua_constant(tolua_S,"PlayerNeutral",PlayerNeutral);
20120 tolua_constant(tolua_S,"PlayerNobody",PlayerNobody);
20121 tolua_constant(tolua_S,"PlayerComputer",PlayerComputer);
20122 tolua_constant(tolua_S,"PlayerPerson",PlayerPerson);
20123 tolua_constant(tolua_S,"PlayerRescuePassive",PlayerRescuePassive);
20124 tolua_constant(tolua_S,"PlayerRescueActive",PlayerRescueActive);
20125 #ifdef __cplusplus
20126 tolua_cclass(tolua_S,"CPlayer","CPlayer","",tolua_collect_CPlayer);
20127 #else
20128 tolua_cclass(tolua_S,"CPlayer","CPlayer","",NULL);
20129 #endif
20130 tolua_beginmodule(tolua_S,"CPlayer");
20131 tolua_variable(tolua_S,"Index",tolua_get_CPlayer_Index,tolua_set_CPlayer_Index);
20132 tolua_variable(tolua_S,"Name",tolua_get_CPlayer_Name,tolua_set_CPlayer_Name);
20133 tolua_variable(tolua_S,"Type",tolua_get_CPlayer_Type,tolua_set_CPlayer_Type);
20134 tolua_variable(tolua_S,"AiName",tolua_get_CPlayer_AiName,tolua_set_CPlayer_AiName);
20135 tolua_variable(tolua_S,"StartX",tolua_get_CPlayer_StartX,tolua_set_CPlayer_StartX);
20136 tolua_variable(tolua_S,"StartY",tolua_get_CPlayer_StartY,tolua_set_CPlayer_StartY);
20137 tolua_function(tolua_S,"SetStartView",tolua_stratagus_CPlayer_SetStartView00);
20138 tolua_variable(tolua_S,"EnergyProductionRate",tolua_get_CPlayer_EnergyProductionRate,tolua_set_CPlayer_EnergyProductionRate);
20139 tolua_variable(tolua_S,"MagmaProductionRate",tolua_get_CPlayer_MagmaProductionRate,tolua_set_CPlayer_MagmaProductionRate);
20140 tolua_variable(tolua_S,"EnergyStored",tolua_get_CPlayer_EnergyStored,tolua_set_CPlayer_EnergyStored);
20141 tolua_variable(tolua_S,"MagmaStored",tolua_get_CPlayer_MagmaStored,tolua_set_CPlayer_MagmaStored);
20142 tolua_variable(tolua_S,"EnergyStorageCapacity",tolua_get_CPlayer_EnergyStorageCapacity,tolua_set_CPlayer_EnergyStorageCapacity);
20143 tolua_variable(tolua_S,"MagmaStorageCapacity",tolua_get_CPlayer_MagmaStorageCapacity,tolua_set_CPlayer_MagmaStorageCapacity);
20144 tolua_array(tolua_S,"UnitTypesCount",tolua_get_stratagus_CPlayer_UnitTypesCount,NULL);
20145 tolua_variable(tolua_S,"AiEnabled",tolua_get_CPlayer_AiEnabled,tolua_set_CPlayer_AiEnabled);
20146 tolua_array(tolua_S,"Units",tolua_get_stratagus_CPlayer_Units,tolua_set_stratagus_CPlayer_Units);
20147 tolua_variable(tolua_S,"TotalNumUnits",tolua_get_CPlayer_TotalNumUnits,tolua_set_CPlayer_TotalNumUnits);
20148 tolua_variable(tolua_S,"NumBuildings",tolua_get_CPlayer_NumBuildings,tolua_set_CPlayer_NumBuildings);
20149 tolua_variable(tolua_S,"UnitLimit",tolua_get_CPlayer_UnitLimit,tolua_set_CPlayer_UnitLimit);
20150 tolua_variable(tolua_S,"BuildingLimit",tolua_get_CPlayer_BuildingLimit,tolua_set_CPlayer_BuildingLimit);
20151 tolua_variable(tolua_S,"TotalUnitLimit",tolua_get_CPlayer_TotalUnitLimit,tolua_set_CPlayer_TotalUnitLimit);
20152 tolua_variable(tolua_S,"Score",tolua_get_CPlayer_Score,tolua_set_CPlayer_Score);
20153 tolua_variable(tolua_S,"TotalUnits",tolua_get_CPlayer_TotalUnits,tolua_set_CPlayer_TotalUnits);
20154 tolua_variable(tolua_S,"TotalBuildings",tolua_get_CPlayer_TotalBuildings,tolua_set_CPlayer_TotalBuildings);
20155 tolua_variable(tolua_S,"TotalEnergy",tolua_get_CPlayer_TotalEnergy,tolua_set_CPlayer_TotalEnergy);
20156 tolua_variable(tolua_S,"TotalMagma",tolua_get_CPlayer_TotalMagma,tolua_set_CPlayer_TotalMagma);
20157 tolua_variable(tolua_S,"TotalRazings",tolua_get_CPlayer_TotalRazings,tolua_set_CPlayer_TotalRazings);
20158 tolua_variable(tolua_S,"TotalKills",tolua_get_CPlayer_TotalKills,tolua_set_CPlayer_TotalKills);
20159 tolua_function(tolua_S,"IsEnemy",tolua_stratagus_CPlayer_IsEnemy00);
20160 tolua_function(tolua_S,"IsEnemy",tolua_stratagus_CPlayer_IsEnemy01);
20161 tolua_function(tolua_S,"IsAllied",tolua_stratagus_CPlayer_IsAllied00);
20162 tolua_function(tolua_S,"IsAllied",tolua_stratagus_CPlayer_IsAllied01);
20163 tolua_function(tolua_S,"IsSharedVision",tolua_stratagus_CPlayer_IsSharedVision00);
20164 tolua_function(tolua_S,"IsSharedVision",tolua_stratagus_CPlayer_IsSharedVision01);
20165 tolua_function(tolua_S,"IsBothSharedVision",tolua_stratagus_CPlayer_IsBothSharedVision00);
20166 tolua_function(tolua_S,"IsBothSharedVision",tolua_stratagus_CPlayer_IsBothSharedVision01);
20167 tolua_function(tolua_S,"IsTeamed",tolua_stratagus_CPlayer_IsTeamed00);
20168 tolua_function(tolua_S,"IsTeamed",tolua_stratagus_CPlayer_IsTeamed01);
20169 tolua_endmodule(tolua_S);
20170 tolua_array(tolua_S,"Players",tolua_get_stratagus_Players,tolua_set_stratagus_Players);
20171 tolua_variable(tolua_S,"ThisPlayer",tolua_get_ThisPlayer_ptr,tolua_set_ThisPlayer_ptr);
20172 tolua_cclass(tolua_S,"CUnitType","CUnitType","",NULL);
20173 tolua_beginmodule(tolua_S,"CUnitType");
20174 tolua_variable(tolua_S,"Ident",tolua_get_CUnitType_Ident,tolua_set_CUnitType_Ident);
20175 tolua_variable(tolua_S,"Name",tolua_get_CUnitType_Name,tolua_set_CUnitType_Name);
20176 tolua_variable(tolua_S,"Slot",tolua_get_CUnitType_Slot,NULL);
20177 tolua_variable(tolua_S,"MinAttackRange",tolua_get_CUnitType_MinAttackRange,tolua_set_CUnitType_MinAttackRange);
20178 tolua_variable(tolua_S,"MaxEnergyUtilizationRate",tolua_get_CUnitType_MaxEnergyUtilizationRate,tolua_set_CUnitType_MaxEnergyUtilizationRate);
20179 tolua_variable(tolua_S,"MaxMagmaUtilizationRate",tolua_get_CUnitType_MaxMagmaUtilizationRate,tolua_set_CUnitType_MaxMagmaUtilizationRate);
20180 tolua_variable(tolua_S,"EnergyProductionRate",tolua_get_CUnitType_EnergyProductionRate,tolua_set_CUnitType_EnergyProductionRate);
20181 tolua_variable(tolua_S,"MagmaProductionRate",tolua_get_CUnitType_MagmaProductionRate,tolua_set_CUnitType_MagmaProductionRate);
20182 tolua_variable(tolua_S,"EnergyValue",tolua_get_CUnitType_EnergyValue,tolua_set_CUnitType_EnergyValue);
20183 tolua_variable(tolua_S,"MagmaValue",tolua_get_CUnitType_MagmaValue,tolua_set_CUnitType_MagmaValue);
20184 tolua_variable(tolua_S,"EnergyStorageCapacity",tolua_get_CUnitType_EnergyStorageCapacity,tolua_set_CUnitType_EnergyStorageCapacity);
20185 tolua_variable(tolua_S,"MagmaStorageCapacity",tolua_get_CUnitType_MagmaStorageCapacity,tolua_set_CUnitType_MagmaStorageCapacity);
20186 tolua_endmodule(tolua_S);
20187 tolua_function(tolua_S,"UnitTypeByIdent",tolua_stratagus_UnitTypeByIdent00);
20188 tolua_cclass(tolua_S,"CUnit","CUnit","",NULL);
20189 tolua_beginmodule(tolua_S,"CUnit");
20190 tolua_variable(tolua_S,"Slot",tolua_get_CUnit_Slot,NULL);
20191 tolua_variable(tolua_S,"X",tolua_get_CUnit_X,tolua_set_CUnit_X);
20192 tolua_variable(tolua_S,"Y",tolua_get_CUnit_Y,tolua_set_CUnit_Y);
20193 tolua_variable(tolua_S,"Type",tolua_get_CUnit_Type_ptr,tolua_set_CUnit_Type_ptr);
20194 tolua_variable(tolua_S,"Player",tolua_get_CUnit_Player_ptr,tolua_set_CUnit_Player_ptr);
20195 tolua_endmodule(tolua_S);
20196 tolua_cclass(tolua_S,"CPreference","CPreference","",NULL);
20197 tolua_beginmodule(tolua_S,"CPreference");
20198 tolua_variable(tolua_S,"ShowSightRange",tolua_get_CPreference_ShowSightRange,tolua_set_CPreference_ShowSightRange);
20199 tolua_variable(tolua_S,"ShowReactionRange",tolua_get_CPreference_ShowReactionRange,tolua_set_CPreference_ShowReactionRange);
20200 tolua_variable(tolua_S,"ShowAttackRange",tolua_get_CPreference_ShowAttackRange,tolua_set_CPreference_ShowAttackRange);
20201 tolua_variable(tolua_S,"ShowOrders",tolua_get_CPreference_unsigned_ShowOrders,tolua_set_CPreference_unsigned_ShowOrders);
20202 tolua_endmodule(tolua_S);
20203 tolua_variable(tolua_S,"Preference",tolua_get_Preference,tolua_set_Preference);
20204 tolua_function(tolua_S,"GetEffectsVolume",tolua_stratagus_GetEffectsVolume00);
20205 tolua_function(tolua_S,"SetEffectsVolume",tolua_stratagus_SetEffectsVolume00);
20206 tolua_function(tolua_S,"GetMusicVolume",tolua_stratagus_GetMusicVolume00);
20207 tolua_function(tolua_S,"SetMusicVolume",tolua_stratagus_SetMusicVolume00);
20208 tolua_function(tolua_S,"SetEffectsEnabled",tolua_stratagus_SetEffectsEnabled00);
20209 tolua_function(tolua_S,"IsEffectsEnabled",tolua_stratagus_IsEffectsEnabled00);
20210 tolua_function(tolua_S,"SetMusicEnabled",tolua_stratagus_SetMusicEnabled00);
20211 tolua_function(tolua_S,"IsMusicEnabled",tolua_stratagus_IsMusicEnabled00);
20212 tolua_function(tolua_S,"PlayFile",tolua_stratagus_PlayFile00);
20213
20214 {
20215 int top = lua_gettop(tolua_S);
20216 static unsigned char B[] = {
20217 10,102,117,110, 99,116,105,111,110, 32, 80,108, 97,121, 83,
20218 111,117,110,100, 70,105,108,101, 40,102,105,108,101, 44, 32,
20219 99, 97,108,108, 98, 97, 99,107, 41, 10,114,101,116,117,114,
20220 110, 32, 80,108, 97,121, 70,105,108,101, 40,102,105,108,101,
20221 44, 32, 76,117, 97, 65, 99,116,105,111,110, 76,105,115,116,
20222 101,110,101,114, 58,110,101,119, 40, 99, 97,108,108, 98, 97,
20223 99,107, 41, 41, 10,101,110,100,32
20224 };
20225 tolua_dobuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code 5");
20226 lua_settop(tolua_S, top);
20227 }
20228
20229 tolua_function(tolua_S,"PlayMusic",tolua_stratagus_PlayMusic00);
20230 tolua_function(tolua_S,"StopMusic",tolua_stratagus_StopMusic00);
20231 tolua_function(tolua_S,"SetChannelVolume",tolua_stratagus_SetChannelVolume00);
20232 tolua_function(tolua_S,"SetChannelStereo",tolua_stratagus_SetChannelStereo00);
20233 tolua_function(tolua_S,"StopChannel",tolua_stratagus_StopChannel00);
20234 tolua_function(tolua_S,"StopAllChannels",tolua_stratagus_StopAllChannels00);
20235 tolua_constant(tolua_S,"EditorNotRunning",EditorNotRunning);
20236 tolua_constant(tolua_S,"EditorStarted",EditorStarted);
20237 tolua_constant(tolua_S,"EditorCommandLine",EditorCommandLine);
20238 tolua_constant(tolua_S,"EditorEditing",EditorEditing);
20239 tolua_cclass(tolua_S,"CEditor","CEditor","",NULL);
20240 tolua_beginmodule(tolua_S,"CEditor");
20241 tolua_variable(tolua_S,"UnitTypes",tolua_get_CEditor_UnitTypes,tolua_set_CEditor_UnitTypes);
20242 tolua_variable(tolua_S,"StartUnit",tolua_get_CEditor_StartUnit_ptr,NULL);
20243 tolua_variable(tolua_S,"Running",tolua_get_CEditor_Running,tolua_set_CEditor_Running);
20244 tolua_endmodule(tolua_S);
20245 tolua_function(tolua_S,"SetEditorSelectIcon",tolua_stratagus_SetEditorSelectIcon00);
20246 tolua_function(tolua_S,"SetEditorUnitsIcon",tolua_stratagus_SetEditorUnitsIcon00);
20247 tolua_function(tolua_S,"SetEditorPatchIcon",tolua_stratagus_SetEditorPatchIcon00);
20248 tolua_function(tolua_S,"SetEditorStartUnit",tolua_stratagus_SetEditorStartUnit00);
20249 tolua_variable(tolua_S,"Editor",tolua_get_Editor,tolua_set_Editor);
20250 tolua_function(tolua_S,"StartEditor",tolua_stratagus_StartEditor00);
20251 tolua_function(tolua_S,"EditorSaveMap",tolua_stratagus_EditorSaveMap00);
20252 tolua_function(tolua_S,"StartPatchEditor",tolua_stratagus_StartPatchEditor00);
20253 tolua_function(tolua_S,"IsReplayGame",tolua_stratagus_IsReplayGame00);
20254 tolua_function(tolua_S,"StartMap",tolua_stratagus_StartMap00);
20255 tolua_function(tolua_S,"StartReplay",tolua_stratagus_StartReplay00);
20256 tolua_function(tolua_S,"StartSavedGame",tolua_stratagus_StartSavedGame00);
20257 tolua_function(tolua_S,"SaveReplay",tolua_stratagus_SaveReplay00);
20258 tolua_constant(tolua_S,"GameNoResult",GameNoResult);
20259 tolua_constant(tolua_S,"GameVictory",GameVictory);
20260 tolua_constant(tolua_S,"GameDefeat",GameDefeat);
20261 tolua_constant(tolua_S,"GameDraw",GameDraw);
20262 tolua_constant(tolua_S,"GameQuitToMenu",GameQuitToMenu);
20263 tolua_constant(tolua_S,"GameRestart",GameRestart);
20264 tolua_variable(tolua_S,"GameResult",tolua_get_GameResult,tolua_set_GameResult);
20265 tolua_function(tolua_S,"StopGame",tolua_stratagus_StopGame00);
20266 tolua_variable(tolua_S,"GameRunning",tolua_get_GameRunning,tolua_set_GameRunning);
20267 tolua_function(tolua_S,"SetGamePaused",tolua_stratagus_SetGamePaused00);
20268 tolua_function(tolua_S,"GetGamePaused",tolua_stratagus_GetGamePaused00);
20269 tolua_variable(tolua_S,"GamePaused",tolua_get_GamePaused,tolua_set_GamePaused);
20270 tolua_function(tolua_S,"SetGameSpeed",tolua_stratagus_SetGameSpeed00);
20271 tolua_function(tolua_S,"GetGameSpeed",tolua_stratagus_GetGameSpeed00);
20272 tolua_variable(tolua_S,"GameSpeed",tolua_get_GameSpeed,tolua_set_GameSpeed);
20273 tolua_variable(tolua_S,"GameObserve",tolua_get_GameObserve,tolua_set_GameObserve);
20274 tolua_variable(tolua_S,"GameCycle",tolua_get_unsigned_GameCycle,tolua_set_unsigned_GameCycle);
20275 #ifdef __cplusplus
20276 tolua_cclass(tolua_S,"SettingsPresets","SettingsPresets","",tolua_collect_SettingsPresets);
20277 #else
20278 tolua_cclass(tolua_S,"SettingsPresets","SettingsPresets","",NULL);
20279 #endif
20280 tolua_beginmodule(tolua_S,"SettingsPresets");
20281 tolua_variable(tolua_S,"Team",tolua_get_SettingsPresets_Team,tolua_set_SettingsPresets_Team);
20282 tolua_variable(tolua_S,"Type",tolua_get_SettingsPresets_Type,tolua_set_SettingsPresets_Type);
20283 tolua_endmodule(tolua_S);
20284 tolua_cclass(tolua_S,"Settings","Settings","",NULL);
20285 tolua_beginmodule(tolua_S,"Settings");
20286 tolua_variable(tolua_S,"NetGameType",tolua_get_Settings_NetGameType,tolua_set_Settings_NetGameType);
20287 tolua_array(tolua_S,"Presets",tolua_get_stratagus_Settings_Presets,tolua_set_stratagus_Settings_Presets);
20288 tolua_variable(tolua_S,"Resources",tolua_get_Settings_Resources,tolua_set_Settings_Resources);
20289 tolua_variable(tolua_S,"NumUnits",tolua_get_Settings_NumUnits,tolua_set_Settings_NumUnits);
20290 tolua_variable(tolua_S,"Opponents",tolua_get_Settings_Opponents,tolua_set_Settings_Opponents);
20291 tolua_variable(tolua_S,"Difficulty",tolua_get_Settings_Difficulty,tolua_set_Settings_Difficulty);
20292 tolua_variable(tolua_S,"GameType",tolua_get_Settings_GameType,tolua_set_Settings_GameType);
20293 tolua_variable(tolua_S,"NoFogOfWar",tolua_get_Settings_NoFogOfWar,tolua_set_Settings_NoFogOfWar);
20294 tolua_variable(tolua_S,"RevealMap",tolua_get_Settings_RevealMap,tolua_set_Settings_RevealMap);
20295 tolua_variable(tolua_S,"MapRichness",tolua_get_Settings_MapRichness,tolua_set_Settings_MapRichness);
20296 tolua_endmodule(tolua_S);
20297 tolua_variable(tolua_S,"GameSettings",tolua_get_GameSettings,tolua_set_GameSettings);
20298 tolua_constant(tolua_S,"SettingsPresetMapDefault",SettingsPresetMapDefault);
20299 tolua_constant(tolua_S,"SettingsGameTypeMapDefault",SettingsGameTypeMapDefault);
20300 tolua_constant(tolua_S,"SettingsGameTypeMelee",SettingsGameTypeMelee);
20301 tolua_constant(tolua_S,"SettingsGameTypeFreeForAll",SettingsGameTypeFreeForAll);
20302 tolua_constant(tolua_S,"SettingsGameTypeTopVsBottom",SettingsGameTypeTopVsBottom);
20303 tolua_constant(tolua_S,"SettingsGameTypeLeftVsRight",SettingsGameTypeLeftVsRight);
20304 tolua_constant(tolua_S,"SettingsGameTypeManVsMachine",SettingsGameTypeManVsMachine);
20305 tolua_constant(tolua_S,"SettingsGameTypeManTeamVsMachine",SettingsGameTypeManTeamVsMachine);
20306 tolua_array(tolua_S,"AlliedUnitRecyclingEfficiency",tolua_get_stratagus_AlliedUnitRecyclingEfficiency,tolua_set_stratagus_AlliedUnitRecyclingEfficiency);
20307 tolua_array(tolua_S,"EnemyUnitRecyclingEfficiency",tolua_get_stratagus_EnemyUnitRecyclingEfficiency,tolua_set_stratagus_EnemyUnitRecyclingEfficiency);
20308 tolua_cclass(tolua_S,"CMapInfo","CMapInfo","",NULL);
20309 tolua_beginmodule(tolua_S,"CMapInfo");
20310 tolua_variable(tolua_S,"Description",tolua_get_CMapInfo_Description,tolua_set_CMapInfo_Description);
20311 tolua_variable(tolua_S,"MapWidth",tolua_get_CMapInfo_MapWidth,tolua_set_CMapInfo_MapWidth);
20312 tolua_variable(tolua_S,"MapHeight",tolua_get_CMapInfo_MapHeight,tolua_set_CMapInfo_MapHeight);
20313 tolua_array(tolua_S,"PlayerType",tolua_get_stratagus_CMapInfo_PlayerType,tolua_set_stratagus_CMapInfo_PlayerType);
20314 tolua_endmodule(tolua_S);
20315 tolua_cclass(tolua_S,"CMap","CMap","",NULL);
20316 tolua_beginmodule(tolua_S,"CMap");
20317 tolua_variable(tolua_S,"Info",tolua_get_CMap_Info,tolua_set_CMap_Info);
20318 tolua_variable(tolua_S,"PatchManager",tolua_get_CMap_PatchManager,tolua_set_CMap_PatchManager);
20319 tolua_endmodule(tolua_S);
20320 tolua_variable(tolua_S,"Map",tolua_get_Map,tolua_set_Map);
20321 tolua_cclass(tolua_S,"CPatchType","CPatchType","",NULL);
20322 tolua_beginmodule(tolua_S,"CPatchType");
20323 tolua_function(tolua_S,"getGraphic",tolua_stratagus_CPatchType_getGraphic00);
20324 tolua_function(tolua_S,"getTileWidth",tolua_stratagus_CPatchType_getTileWidth00);
20325 tolua_function(tolua_S,"getTileHeight",tolua_stratagus_CPatchType_getTileHeight00);
20326 tolua_function(tolua_S,"getFlag",tolua_stratagus_CPatchType_getFlag00);
20327 tolua_endmodule(tolua_S);
20328 tolua_cclass(tolua_S,"CPatch","CPatch","",NULL);
20329 tolua_beginmodule(tolua_S,"CPatch");
20330 tolua_function(tolua_S,"getType",tolua_stratagus_CPatch_getType00);
20331 tolua_function(tolua_S,"setPos",tolua_stratagus_CPatch_setPos00);
20332 tolua_function(tolua_S,"setX",tolua_stratagus_CPatch_setX00);
20333 tolua_function(tolua_S,"getX",tolua_stratagus_CPatch_getX00);
20334 tolua_function(tolua_S,"setY",tolua_stratagus_CPatch_setY00);
20335 tolua_function(tolua_S,"getY",tolua_stratagus_CPatch_getY00);
20336 tolua_endmodule(tolua_S);
20337 tolua_cclass(tolua_S,"CPatchManager","CPatchManager","",NULL);
20338 tolua_beginmodule(tolua_S,"CPatchManager");
20339 tolua_function(tolua_S,"add",tolua_stratagus_CPatchManager_add00);
20340 tolua_function(tolua_S,"moveToTop",tolua_stratagus_CPatchManager_moveToTop00);
20341 tolua_function(tolua_S,"moveToBottom",tolua_stratagus_CPatchManager_moveToBottom00);
20342 tolua_function(tolua_S,"getPatch",tolua_stratagus_CPatchManager_getPatch00);
20343 tolua_function(tolua_S,"getPatchTypeNames",tolua_stratagus_CPatchManager_getPatchTypeNames00);
20344 tolua_function(tolua_S,"newPatchType",tolua_stratagus_CPatchManager_newPatchType00);
20345 tolua_endmodule(tolua_S);
20346 tolua_variable(tolua_S,"AStarFixedUnitCrossingCost",tolua_get_AStarFixedUnitCrossingCost,tolua_set_AStarFixedUnitCrossingCost);
20347 tolua_variable(tolua_S,"AStarMovingUnitCrossingCost",tolua_get_AStarMovingUnitCrossingCost,tolua_set_AStarMovingUnitCrossingCost);
20348 tolua_variable(tolua_S,"AStarKnowUnseenTerrain",tolua_get_AStarKnowUnseenTerrain,tolua_set_AStarKnowUnseenTerrain);
20349 tolua_variable(tolua_S,"AStarUnknownTerrainCost",tolua_get_AStarUnknownTerrainCost,tolua_set_AStarUnknownTerrainCost);
20350 tolua_function(tolua_S,"GetNumOpponents",tolua_stratagus_GetNumOpponents00);
20351 tolua_function(tolua_S,"GetTimer",tolua_stratagus_GetTimer00);
20352 tolua_function(tolua_S,"ActionVictory",tolua_stratagus_ActionVictory00);
20353 tolua_function(tolua_S,"ActionDefeat",tolua_stratagus_ActionDefeat00);
20354 tolua_function(tolua_S,"ActionDraw",tolua_stratagus_ActionDraw00);
20355 tolua_function(tolua_S,"ActionSetTimer",tolua_stratagus_ActionSetTimer00);
20356 tolua_function(tolua_S,"ActionStartTimer",tolua_stratagus_ActionStartTimer00);
20357 tolua_function(tolua_S,"ActionStopTimer",tolua_stratagus_ActionStopTimer00);
20358 tolua_function(tolua_S,"SetTrigger",tolua_stratagus_SetTrigger00);
20359 #ifdef __cplusplus
20360 tolua_cclass(tolua_S,"CPosition","CPosition","",tolua_collect_CPosition);
20361 #else
20362 tolua_cclass(tolua_S,"CPosition","CPosition","",NULL);
20363 #endif
20364 tolua_beginmodule(tolua_S,"CPosition");
20365 tolua_function(tolua_S,"new",tolua_stratagus_CPosition_new00);
20366 tolua_function(tolua_S,"new_local",tolua_stratagus_CPosition_new00_local);
20367 tolua_function(tolua_S,".call",tolua_stratagus_CPosition_new00_local);
20368 tolua_variable(tolua_S,"x",tolua_get_CPosition_x,tolua_set_CPosition_x);
20369 tolua_variable(tolua_S,"y",tolua_get_CPosition_y,tolua_set_CPosition_y);
20370 tolua_endmodule(tolua_S);
20371 #ifdef __cplusplus
20372 tolua_cclass(tolua_S,"GraphicAnimation","GraphicAnimation","Animation",tolua_collect_GraphicAnimation);
20373 #else
20374 tolua_cclass(tolua_S,"GraphicAnimation","GraphicAnimation","Animation",NULL);
20375 #endif
20376 tolua_beginmodule(tolua_S,"GraphicAnimation");
20377 tolua_function(tolua_S,"new",tolua_stratagus_GraphicAnimation_new00);
20378 tolua_function(tolua_S,"new_local",tolua_stratagus_GraphicAnimation_new00_local);
20379 tolua_function(tolua_S,".call",tolua_stratagus_GraphicAnimation_new00_local);
20380 tolua_function(tolua_S,"clone",tolua_stratagus_GraphicAnimation_clone00);
20381 tolua_endmodule(tolua_S);
20382 tolua_cclass(tolua_S,"CParticle","CParticle","",NULL);
20383 tolua_beginmodule(tolua_S,"CParticle");
20384 tolua_function(tolua_S,"clone",tolua_stratagus_CParticle_clone00);
20385 tolua_endmodule(tolua_S);
20386 #ifdef __cplusplus
20387 tolua_cclass(tolua_S,"StaticParticle","StaticParticle","CParticle",tolua_collect_StaticParticle);
20388 #else
20389 tolua_cclass(tolua_S,"StaticParticle","StaticParticle","CParticle",NULL);
20390 #endif
20391 tolua_beginmodule(tolua_S,"StaticParticle");
20392 tolua_function(tolua_S,"new",tolua_stratagus_StaticParticle_new00);
20393 tolua_function(tolua_S,"new_local",tolua_stratagus_StaticParticle_new00_local);
20394 tolua_function(tolua_S,".call",tolua_stratagus_StaticParticle_new00_local);
20395 tolua_endmodule(tolua_S);
20396 #ifdef __cplusplus
20397 tolua_cclass(tolua_S,"CChunkParticle","CChunkParticle","CParticle",tolua_collect_CChunkParticle);
20398 #else
20399 tolua_cclass(tolua_S,"CChunkParticle","CChunkParticle","CParticle",NULL);
20400 #endif
20401 tolua_beginmodule(tolua_S,"CChunkParticle");
20402 tolua_function(tolua_S,"new",tolua_stratagus_CChunkParticle_new00);
20403 tolua_function(tolua_S,"new_local",tolua_stratagus_CChunkParticle_new00_local);
20404 tolua_function(tolua_S,".call",tolua_stratagus_CChunkParticle_new00_local);
20405 tolua_endmodule(tolua_S);
20406 tolua_cclass(tolua_S,"CSmokeParticle","CSmokeParticle","CParticle",NULL);
20407 tolua_beginmodule(tolua_S,"CSmokeParticle");
20408 tolua_endmodule(tolua_S);
20409 #ifdef __cplusplus
20410 tolua_cclass(tolua_S,"CParticleManager","CParticleManager","",tolua_collect_CParticleManager);
20411 #else
20412 tolua_cclass(tolua_S,"CParticleManager","CParticleManager","",NULL);
20413 #endif
20414 tolua_beginmodule(tolua_S,"CParticleManager");
20415 tolua_function(tolua_S,"new",tolua_stratagus_CParticleManager_new00);
20416 tolua_function(tolua_S,"new_local",tolua_stratagus_CParticleManager_new00_local);
20417 tolua_function(tolua_S,".call",tolua_stratagus_CParticleManager_new00_local);
20418 tolua_function(tolua_S,"delete",tolua_stratagus_CParticleManager_delete00);
20419 tolua_function(tolua_S,"add",tolua_stratagus_CParticleManager_add00);
20420 tolua_endmodule(tolua_S);
20421 tolua_variable(tolua_S,"ParticleManager",tolua_get_ParticleManager,tolua_set_ParticleManager);
20422 tolua_function(tolua_S,"Translate",tolua_stratagus_Translate00);
20423 tolua_function(tolua_S,"AddTranslation",tolua_stratagus_AddTranslation00);
20424 tolua_function(tolua_S,"LoadPO",tolua_stratagus_LoadPO00);
20425 tolua_function(tolua_S,"SetTranslationsFiles",tolua_stratagus_SetTranslationsFiles00);
20426 tolua_variable(tolua_S,"StratagusTranslation",tolua_get_StratagusTranslation,tolua_set_StratagusTranslation);
20427 tolua_variable(tolua_S,"GameTranslation",tolua_get_GameTranslation,tolua_set_GameTranslation);
20428 tolua_function(tolua_S,"SaveGame",tolua_stratagus_SaveGame00);
20429 tolua_function(tolua_S,"_",tolua_stratagus__00);
20430 tolua_function(tolua_S,"SyncRand",tolua_stratagus_SyncRand00);
20431 tolua_function(tolua_S,"SyncRand",tolua_stratagus_SyncRand01);
20432 tolua_function(tolua_S,"Exit",tolua_stratagus_Exit00);
20433 tolua_variable(tolua_S,"CliMapName",tolua_get_CliMapName,tolua_set_CliMapName);
20434 tolua_endmodule(tolua_S);
20435 return 1;
20436 }
20437
20438
20439 #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
20440 TOLUA_API int luaopen_stratagus (lua_State* tolua_S) {
20441 return tolua_stratagus_open(tolua_S);
20442 };
20443 #endif
20444