00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __cplusplus
00020 #include "stdlib.h"
00021 #endif
00022 #include "string.h"
00023
00024 #include "tolua++.h"
00025
00026
00027 TOLUA_API int tolua_interfaces_GameStateInterface_open (lua_State* tolua_S);
00028
00029 #include <interfaces/GameStateInterface.h>
00030 using namespace fawkes;
00031
00032
00033 #ifdef __cplusplus
00034
00035 static int tolua_collect_fawkes__GameStateInterface__SetStateTeamMessage (lua_State* tolua_S)
00036 {
00037 fawkes::GameStateInterface::SetStateTeamMessage* self = (fawkes::GameStateInterface::SetStateTeamMessage*) tolua_tousertype(tolua_S,1,0);
00038 delete self;
00039 return 0;
00040 }
00041
00042 static int tolua_collect_fawkes__GameStateInterface__SetTeamColorMessage (lua_State* tolua_S)
00043 {
00044 fawkes::GameStateInterface::SetTeamColorMessage* self = (fawkes::GameStateInterface::SetTeamColorMessage*) tolua_tousertype(tolua_S,1,0);
00045 delete self;
00046 return 0;
00047 }
00048
00049 static int tolua_collect_fawkes__GameStateInterface__SetKickoffMessage (lua_State* tolua_S)
00050 {
00051 fawkes::GameStateInterface::SetKickoffMessage* self = (fawkes::GameStateInterface::SetKickoffMessage*) tolua_tousertype(tolua_S,1,0);
00052 delete self;
00053 return 0;
00054 }
00055 #endif
00056
00057
00058
00059 static void tolua_reg_types (lua_State* tolua_S)
00060 {
00061 tolua_usertype(tolua_S,"Message");
00062 tolua_usertype(tolua_S,"fawkes::GameStateInterface::SetKickoffMessage");
00063 tolua_usertype(tolua_S,"fawkes::GameStateInterface::SetStateTeamMessage");
00064 tolua_usertype(tolua_S,"fawkes::GameStateInterface::SetTeamColorMessage");
00065 tolua_usertype(tolua_S,"fawkes::GameStateInterface");
00066 tolua_usertype(tolua_S,"Interface");
00067 }
00068
00069
00070 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_FROZEN
00071 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_FROZEN(lua_State* tolua_S)
00072 {
00073 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_FROZEN);
00074 return 1;
00075 }
00076 #endif //#ifndef TOLUA_DISABLE
00077
00078
00079 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_PLAY
00080 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_PLAY(lua_State* tolua_S)
00081 {
00082 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_PLAY);
00083 return 1;
00084 }
00085 #endif //#ifndef TOLUA_DISABLE
00086
00087
00088 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_KICK_OFF
00089 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_KICK_OFF(lua_State* tolua_S)
00090 {
00091 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_KICK_OFF);
00092 return 1;
00093 }
00094 #endif //#ifndef TOLUA_DISABLE
00095
00096
00097 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_DROP_BALL
00098 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_DROP_BALL(lua_State* tolua_S)
00099 {
00100 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_DROP_BALL);
00101 return 1;
00102 }
00103 #endif //#ifndef TOLUA_DISABLE
00104
00105
00106 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_PENALTY
00107 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_PENALTY(lua_State* tolua_S)
00108 {
00109 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_PENALTY);
00110 return 1;
00111 }
00112 #endif //#ifndef TOLUA_DISABLE
00113
00114
00115 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_CORNER_KICK
00116 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_CORNER_KICK(lua_State* tolua_S)
00117 {
00118 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_CORNER_KICK);
00119 return 1;
00120 }
00121 #endif //#ifndef TOLUA_DISABLE
00122
00123
00124 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_THROW_IN
00125 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_THROW_IN(lua_State* tolua_S)
00126 {
00127 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_THROW_IN);
00128 return 1;
00129 }
00130 #endif //#ifndef TOLUA_DISABLE
00131
00132
00133 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_FREE_KICK
00134 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_FREE_KICK(lua_State* tolua_S)
00135 {
00136 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_FREE_KICK);
00137 return 1;
00138 }
00139 #endif //#ifndef TOLUA_DISABLE
00140
00141
00142 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_GOAL_KICK
00143 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_GOAL_KICK(lua_State* tolua_S)
00144 {
00145 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_GOAL_KICK);
00146 return 1;
00147 }
00148 #endif //#ifndef TOLUA_DISABLE
00149
00150
00151 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_HALF_TIME
00152 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_HALF_TIME(lua_State* tolua_S)
00153 {
00154 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_HALF_TIME);
00155 return 1;
00156 }
00157 #endif //#ifndef TOLUA_DISABLE
00158
00159
00160 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_INITIAL
00161 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_INITIAL(lua_State* tolua_S)
00162 {
00163 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_SPL_INITIAL);
00164 return 1;
00165 }
00166 #endif //#ifndef TOLUA_DISABLE
00167
00168
00169 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_READY
00170 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_READY(lua_State* tolua_S)
00171 {
00172 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_SPL_READY);
00173 return 1;
00174 }
00175 #endif //#ifndef TOLUA_DISABLE
00176
00177
00178 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_SET
00179 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_SET(lua_State* tolua_S)
00180 {
00181 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_SPL_SET);
00182 return 1;
00183 }
00184 #endif //#ifndef TOLUA_DISABLE
00185
00186
00187 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_PLAY
00188 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_PLAY(lua_State* tolua_S)
00189 {
00190 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_SPL_PLAY);
00191 return 1;
00192 }
00193 #endif //#ifndef TOLUA_DISABLE
00194
00195
00196 #ifndef TOLUA_DISABLE_tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_FINISHED
00197 static int tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_FINISHED(lua_State* tolua_S)
00198 {
00199 tolua_pushnumber(tolua_S,(lua_Number)fawkes::GameStateInterface::GS_SPL_FINISHED);
00200 return 1;
00201 }
00202 #endif //#ifndef TOLUA_DISABLE
00203
00204
00205 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new00
00206 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new00(lua_State* tolua_S)
00207 {
00208 #ifndef TOLUA_RELEASE
00209 tolua_Error tolua_err;
00210 if (
00211 !tolua_isusertable(tolua_S,1,"fawkes::GameStateInterface::SetTeamColorMessage",0,&tolua_err) ||
00212 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
00213 !tolua_isnoobj(tolua_S,3,&tolua_err)
00214 )
00215 goto tolua_lerror;
00216 else
00217 #endif
00218 {
00219 fawkes::GameStateInterface::if_gamestate_team_t ini_our_team = ((fawkes::GameStateInterface::if_gamestate_team_t) (int) tolua_tonumber(tolua_S,2,0));
00220 {
00221 fawkes::GameStateInterface::SetTeamColorMessage* tolua_ret = (fawkes::GameStateInterface::SetTeamColorMessage*) new fawkes::GameStateInterface::SetTeamColorMessage(ini_our_team);
00222 tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::GameStateInterface::SetTeamColorMessage");
00223 }
00224 }
00225 return 1;
00226 #ifndef TOLUA_RELEASE
00227 tolua_lerror:
00228 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
00229 return 0;
00230 #endif
00231 }
00232 #endif //#ifndef TOLUA_DISABLE
00233
00234
00235 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new00_local
00236 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new00_local(lua_State* tolua_S)
00237 {
00238 #ifndef TOLUA_RELEASE
00239 tolua_Error tolua_err;
00240 if (
00241 !tolua_isusertable(tolua_S,1,"fawkes::GameStateInterface::SetTeamColorMessage",0,&tolua_err) ||
00242 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
00243 !tolua_isnoobj(tolua_S,3,&tolua_err)
00244 )
00245 goto tolua_lerror;
00246 else
00247 #endif
00248 {
00249 fawkes::GameStateInterface::if_gamestate_team_t ini_our_team = ((fawkes::GameStateInterface::if_gamestate_team_t) (int) tolua_tonumber(tolua_S,2,0));
00250 {
00251 fawkes::GameStateInterface::SetTeamColorMessage* tolua_ret = (fawkes::GameStateInterface::SetTeamColorMessage*) new fawkes::GameStateInterface::SetTeamColorMessage(ini_our_team);
00252 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"fawkes::GameStateInterface::SetTeamColorMessage");
00253 }
00254 }
00255 return 1;
00256 #ifndef TOLUA_RELEASE
00257 tolua_lerror:
00258 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
00259 return 0;
00260 #endif
00261 }
00262 #endif //#ifndef TOLUA_DISABLE
00263
00264
00265 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new01
00266 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new01(lua_State* tolua_S)
00267 {
00268 tolua_Error tolua_err;
00269 if (
00270 !tolua_isusertable(tolua_S,1,"fawkes::GameStateInterface::SetTeamColorMessage",0,&tolua_err) ||
00271 !tolua_isnoobj(tolua_S,2,&tolua_err)
00272 )
00273 goto tolua_lerror;
00274 else
00275 {
00276 {
00277 fawkes::GameStateInterface::SetTeamColorMessage* tolua_ret = (fawkes::GameStateInterface::SetTeamColorMessage*) new fawkes::GameStateInterface::SetTeamColorMessage();
00278 tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::GameStateInterface::SetTeamColorMessage");
00279 }
00280 }
00281 return 1;
00282 tolua_lerror:
00283 return tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new00(tolua_S);
00284 }
00285 #endif //#ifndef TOLUA_DISABLE
00286
00287
00288 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new01_local
00289 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new01_local(lua_State* tolua_S)
00290 {
00291 tolua_Error tolua_err;
00292 if (
00293 !tolua_isusertable(tolua_S,1,"fawkes::GameStateInterface::SetTeamColorMessage",0,&tolua_err) ||
00294 !tolua_isnoobj(tolua_S,2,&tolua_err)
00295 )
00296 goto tolua_lerror;
00297 else
00298 {
00299 {
00300 fawkes::GameStateInterface::SetTeamColorMessage* tolua_ret = (fawkes::GameStateInterface::SetTeamColorMessage*) new fawkes::GameStateInterface::SetTeamColorMessage();
00301 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"fawkes::GameStateInterface::SetTeamColorMessage");
00302 }
00303 }
00304 return 1;
00305 tolua_lerror:
00306 return tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new00_local(tolua_S);
00307 }
00308 #endif //#ifndef TOLUA_DISABLE
00309
00310
00311 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_delete00
00312 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_delete00(lua_State* tolua_S)
00313 {
00314 #ifndef TOLUA_RELEASE
00315 tolua_Error tolua_err;
00316 if (
00317 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface::SetTeamColorMessage",0,&tolua_err) ||
00318 !tolua_isnoobj(tolua_S,2,&tolua_err)
00319 )
00320 goto tolua_lerror;
00321 else
00322 #endif
00323 {
00324 fawkes::GameStateInterface::SetTeamColorMessage* self = (fawkes::GameStateInterface::SetTeamColorMessage*) tolua_tousertype(tolua_S,1,0);
00325 #ifndef TOLUA_RELEASE
00326 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'",NULL);
00327 #endif
00328 delete self;
00329 }
00330 return 0;
00331 #ifndef TOLUA_RELEASE
00332 tolua_lerror:
00333 tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
00334 return 0;
00335 #endif
00336 }
00337 #endif //#ifndef TOLUA_DISABLE
00338
00339
00340 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_our_team00
00341 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_our_team00(lua_State* tolua_S)
00342 {
00343 #ifndef TOLUA_RELEASE
00344 tolua_Error tolua_err;
00345 if (
00346 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface::SetTeamColorMessage",0,&tolua_err) ||
00347 !tolua_isnoobj(tolua_S,2,&tolua_err)
00348 )
00349 goto tolua_lerror;
00350 else
00351 #endif
00352 {
00353 fawkes::GameStateInterface::SetTeamColorMessage* self = (fawkes::GameStateInterface::SetTeamColorMessage*) tolua_tousertype(tolua_S,1,0);
00354 #ifndef TOLUA_RELEASE
00355 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'our_team'",NULL);
00356 #endif
00357 {
00358 fawkes::GameStateInterface::if_gamestate_team_t tolua_ret = (fawkes::GameStateInterface::if_gamestate_team_t) self->our_team();
00359 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
00360 }
00361 }
00362 return 1;
00363 #ifndef TOLUA_RELEASE
00364 tolua_lerror:
00365 tolua_error(tolua_S,"#ferror in function 'our_team'.",&tolua_err);
00366 return 0;
00367 #endif
00368 }
00369 #endif //#ifndef TOLUA_DISABLE
00370
00371
00372 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_set_our_team00
00373 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_set_our_team00(lua_State* tolua_S)
00374 {
00375 #ifndef TOLUA_RELEASE
00376 tolua_Error tolua_err;
00377 if (
00378 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface::SetTeamColorMessage",0,&tolua_err) ||
00379 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
00380 !tolua_isnoobj(tolua_S,3,&tolua_err)
00381 )
00382 goto tolua_lerror;
00383 else
00384 #endif
00385 {
00386 fawkes::GameStateInterface::SetTeamColorMessage* self = (fawkes::GameStateInterface::SetTeamColorMessage*) tolua_tousertype(tolua_S,1,0);
00387 const fawkes::GameStateInterface::if_gamestate_team_t new_our_team = ((const fawkes::GameStateInterface::if_gamestate_team_t) tolua_tonumber(tolua_S,2,0));
00388 #ifndef TOLUA_RELEASE
00389 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_our_team'",NULL);
00390 #endif
00391 {
00392 self->set_our_team(new_our_team);
00393 }
00394 }
00395 return 0;
00396 #ifndef TOLUA_RELEASE
00397 tolua_lerror:
00398 tolua_error(tolua_S,"#ferror in function 'set_our_team'.",&tolua_err);
00399 return 0;
00400 #endif
00401 }
00402 #endif //#ifndef TOLUA_DISABLE
00403
00404
00405 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_maxlenof_our_team00
00406 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_maxlenof_our_team00(lua_State* tolua_S)
00407 {
00408 #ifndef TOLUA_RELEASE
00409 tolua_Error tolua_err;
00410 if (
00411 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface::SetTeamColorMessage",0,&tolua_err) ||
00412 !tolua_isnoobj(tolua_S,2,&tolua_err)
00413 )
00414 goto tolua_lerror;
00415 else
00416 #endif
00417 {
00418 const fawkes::GameStateInterface::SetTeamColorMessage* self = (const fawkes::GameStateInterface::SetTeamColorMessage*) tolua_tousertype(tolua_S,1,0);
00419 #ifndef TOLUA_RELEASE
00420 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_our_team'",NULL);
00421 #endif
00422 {
00423 int tolua_ret = (int) self->maxlenof_our_team();
00424 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
00425 }
00426 }
00427 return 1;
00428 #ifndef TOLUA_RELEASE
00429 tolua_lerror:
00430 tolua_error(tolua_S,"#ferror in function 'maxlenof_our_team'.",&tolua_err);
00431 return 0;
00432 #endif
00433 }
00434 #endif //#ifndef TOLUA_DISABLE
00435
00436
00437 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new00
00438 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new00(lua_State* tolua_S)
00439 {
00440 #ifndef TOLUA_RELEASE
00441 tolua_Error tolua_err;
00442 if (
00443 !tolua_isusertable(tolua_S,1,"fawkes::GameStateInterface::SetKickoffMessage",0,&tolua_err) ||
00444 !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
00445 !tolua_isnoobj(tolua_S,3,&tolua_err)
00446 )
00447 goto tolua_lerror;
00448 else
00449 #endif
00450 {
00451 bool ini_kickoff = ((bool) tolua_toboolean(tolua_S,2,0));
00452 {
00453 fawkes::GameStateInterface::SetKickoffMessage* tolua_ret = (fawkes::GameStateInterface::SetKickoffMessage*) new fawkes::GameStateInterface::SetKickoffMessage(ini_kickoff);
00454 tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::GameStateInterface::SetKickoffMessage");
00455 }
00456 }
00457 return 1;
00458 #ifndef TOLUA_RELEASE
00459 tolua_lerror:
00460 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
00461 return 0;
00462 #endif
00463 }
00464 #endif //#ifndef TOLUA_DISABLE
00465
00466
00467 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new00_local
00468 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new00_local(lua_State* tolua_S)
00469 {
00470 #ifndef TOLUA_RELEASE
00471 tolua_Error tolua_err;
00472 if (
00473 !tolua_isusertable(tolua_S,1,"fawkes::GameStateInterface::SetKickoffMessage",0,&tolua_err) ||
00474 !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
00475 !tolua_isnoobj(tolua_S,3,&tolua_err)
00476 )
00477 goto tolua_lerror;
00478 else
00479 #endif
00480 {
00481 bool ini_kickoff = ((bool) tolua_toboolean(tolua_S,2,0));
00482 {
00483 fawkes::GameStateInterface::SetKickoffMessage* tolua_ret = (fawkes::GameStateInterface::SetKickoffMessage*) new fawkes::GameStateInterface::SetKickoffMessage(ini_kickoff);
00484 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"fawkes::GameStateInterface::SetKickoffMessage");
00485 }
00486 }
00487 return 1;
00488 #ifndef TOLUA_RELEASE
00489 tolua_lerror:
00490 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
00491 return 0;
00492 #endif
00493 }
00494 #endif //#ifndef TOLUA_DISABLE
00495
00496
00497 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new01
00498 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new01(lua_State* tolua_S)
00499 {
00500 tolua_Error tolua_err;
00501 if (
00502 !tolua_isusertable(tolua_S,1,"fawkes::GameStateInterface::SetKickoffMessage",0,&tolua_err) ||
00503 !tolua_isnoobj(tolua_S,2,&tolua_err)
00504 )
00505 goto tolua_lerror;
00506 else
00507 {
00508 {
00509 fawkes::GameStateInterface::SetKickoffMessage* tolua_ret = (fawkes::GameStateInterface::SetKickoffMessage*) new fawkes::GameStateInterface::SetKickoffMessage();
00510 tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::GameStateInterface::SetKickoffMessage");
00511 }
00512 }
00513 return 1;
00514 tolua_lerror:
00515 return tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new00(tolua_S);
00516 }
00517 #endif //#ifndef TOLUA_DISABLE
00518
00519
00520 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new01_local
00521 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new01_local(lua_State* tolua_S)
00522 {
00523 tolua_Error tolua_err;
00524 if (
00525 !tolua_isusertable(tolua_S,1,"fawkes::GameStateInterface::SetKickoffMessage",0,&tolua_err) ||
00526 !tolua_isnoobj(tolua_S,2,&tolua_err)
00527 )
00528 goto tolua_lerror;
00529 else
00530 {
00531 {
00532 fawkes::GameStateInterface::SetKickoffMessage* tolua_ret = (fawkes::GameStateInterface::SetKickoffMessage*) new fawkes::GameStateInterface::SetKickoffMessage();
00533 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"fawkes::GameStateInterface::SetKickoffMessage");
00534 }
00535 }
00536 return 1;
00537 tolua_lerror:
00538 return tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new00_local(tolua_S);
00539 }
00540 #endif //#ifndef TOLUA_DISABLE
00541
00542
00543 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_delete00
00544 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_delete00(lua_State* tolua_S)
00545 {
00546 #ifndef TOLUA_RELEASE
00547 tolua_Error tolua_err;
00548 if (
00549 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface::SetKickoffMessage",0,&tolua_err) ||
00550 !tolua_isnoobj(tolua_S,2,&tolua_err)
00551 )
00552 goto tolua_lerror;
00553 else
00554 #endif
00555 {
00556 fawkes::GameStateInterface::SetKickoffMessage* self = (fawkes::GameStateInterface::SetKickoffMessage*) tolua_tousertype(tolua_S,1,0);
00557 #ifndef TOLUA_RELEASE
00558 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'",NULL);
00559 #endif
00560 delete self;
00561 }
00562 return 0;
00563 #ifndef TOLUA_RELEASE
00564 tolua_lerror:
00565 tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
00566 return 0;
00567 #endif
00568 }
00569 #endif //#ifndef TOLUA_DISABLE
00570
00571
00572 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_is_kickoff00
00573 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_is_kickoff00(lua_State* tolua_S)
00574 {
00575 #ifndef TOLUA_RELEASE
00576 tolua_Error tolua_err;
00577 if (
00578 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface::SetKickoffMessage",0,&tolua_err) ||
00579 !tolua_isnoobj(tolua_S,2,&tolua_err)
00580 )
00581 goto tolua_lerror;
00582 else
00583 #endif
00584 {
00585 fawkes::GameStateInterface::SetKickoffMessage* self = (fawkes::GameStateInterface::SetKickoffMessage*) tolua_tousertype(tolua_S,1,0);
00586 #ifndef TOLUA_RELEASE
00587 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'is_kickoff'",NULL);
00588 #endif
00589 {
00590 bool tolua_ret = (bool) self->is_kickoff();
00591 tolua_pushboolean(tolua_S,(bool)tolua_ret);
00592 }
00593 }
00594 return 1;
00595 #ifndef TOLUA_RELEASE
00596 tolua_lerror:
00597 tolua_error(tolua_S,"#ferror in function 'is_kickoff'.",&tolua_err);
00598 return 0;
00599 #endif
00600 }
00601 #endif //#ifndef TOLUA_DISABLE
00602
00603
00604 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_set_kickoff00
00605 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_set_kickoff00(lua_State* tolua_S)
00606 {
00607 #ifndef TOLUA_RELEASE
00608 tolua_Error tolua_err;
00609 if (
00610 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface::SetKickoffMessage",0,&tolua_err) ||
00611 !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
00612 !tolua_isnoobj(tolua_S,3,&tolua_err)
00613 )
00614 goto tolua_lerror;
00615 else
00616 #endif
00617 {
00618 fawkes::GameStateInterface::SetKickoffMessage* self = (fawkes::GameStateInterface::SetKickoffMessage*) tolua_tousertype(tolua_S,1,0);
00619 const bool new_kickoff = ((const bool) tolua_toboolean(tolua_S,2,0));
00620 #ifndef TOLUA_RELEASE
00621 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_kickoff'",NULL);
00622 #endif
00623 {
00624 self->set_kickoff(new_kickoff);
00625 }
00626 }
00627 return 0;
00628 #ifndef TOLUA_RELEASE
00629 tolua_lerror:
00630 tolua_error(tolua_S,"#ferror in function 'set_kickoff'.",&tolua_err);
00631 return 0;
00632 #endif
00633 }
00634 #endif //#ifndef TOLUA_DISABLE
00635
00636
00637 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_maxlenof_kickoff00
00638 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_maxlenof_kickoff00(lua_State* tolua_S)
00639 {
00640 #ifndef TOLUA_RELEASE
00641 tolua_Error tolua_err;
00642 if (
00643 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface::SetKickoffMessage",0,&tolua_err) ||
00644 !tolua_isnoobj(tolua_S,2,&tolua_err)
00645 )
00646 goto tolua_lerror;
00647 else
00648 #endif
00649 {
00650 const fawkes::GameStateInterface::SetKickoffMessage* self = (const fawkes::GameStateInterface::SetKickoffMessage*) tolua_tousertype(tolua_S,1,0);
00651 #ifndef TOLUA_RELEASE
00652 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_kickoff'",NULL);
00653 #endif
00654 {
00655 int tolua_ret = (int) self->maxlenof_kickoff();
00656 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
00657 }
00658 }
00659 return 1;
00660 #ifndef TOLUA_RELEASE
00661 tolua_lerror:
00662 tolua_error(tolua_S,"#ferror in function 'maxlenof_kickoff'.",&tolua_err);
00663 return 0;
00664 #endif
00665 }
00666 #endif //#ifndef TOLUA_DISABLE
00667
00668
00669 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new00
00670 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new00(lua_State* tolua_S)
00671 {
00672 #ifndef TOLUA_RELEASE
00673 tolua_Error tolua_err;
00674 if (
00675 !tolua_isusertable(tolua_S,1,"fawkes::GameStateInterface::SetStateTeamMessage",0,&tolua_err) ||
00676 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
00677 !tolua_isnoobj(tolua_S,3,&tolua_err)
00678 )
00679 goto tolua_lerror;
00680 else
00681 #endif
00682 {
00683 fawkes::GameStateInterface::if_gamestate_team_t ini_state_team = ((fawkes::GameStateInterface::if_gamestate_team_t) (int) tolua_tonumber(tolua_S,2,0));
00684 {
00685 fawkes::GameStateInterface::SetStateTeamMessage* tolua_ret = (fawkes::GameStateInterface::SetStateTeamMessage*) new fawkes::GameStateInterface::SetStateTeamMessage(ini_state_team);
00686 tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::GameStateInterface::SetStateTeamMessage");
00687 }
00688 }
00689 return 1;
00690 #ifndef TOLUA_RELEASE
00691 tolua_lerror:
00692 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
00693 return 0;
00694 #endif
00695 }
00696 #endif //#ifndef TOLUA_DISABLE
00697
00698
00699 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new00_local
00700 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new00_local(lua_State* tolua_S)
00701 {
00702 #ifndef TOLUA_RELEASE
00703 tolua_Error tolua_err;
00704 if (
00705 !tolua_isusertable(tolua_S,1,"fawkes::GameStateInterface::SetStateTeamMessage",0,&tolua_err) ||
00706 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
00707 !tolua_isnoobj(tolua_S,3,&tolua_err)
00708 )
00709 goto tolua_lerror;
00710 else
00711 #endif
00712 {
00713 fawkes::GameStateInterface::if_gamestate_team_t ini_state_team = ((fawkes::GameStateInterface::if_gamestate_team_t) (int) tolua_tonumber(tolua_S,2,0));
00714 {
00715 fawkes::GameStateInterface::SetStateTeamMessage* tolua_ret = (fawkes::GameStateInterface::SetStateTeamMessage*) new fawkes::GameStateInterface::SetStateTeamMessage(ini_state_team);
00716 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"fawkes::GameStateInterface::SetStateTeamMessage");
00717 }
00718 }
00719 return 1;
00720 #ifndef TOLUA_RELEASE
00721 tolua_lerror:
00722 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
00723 return 0;
00724 #endif
00725 }
00726 #endif //#ifndef TOLUA_DISABLE
00727
00728
00729 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new01
00730 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new01(lua_State* tolua_S)
00731 {
00732 tolua_Error tolua_err;
00733 if (
00734 !tolua_isusertable(tolua_S,1,"fawkes::GameStateInterface::SetStateTeamMessage",0,&tolua_err) ||
00735 !tolua_isnoobj(tolua_S,2,&tolua_err)
00736 )
00737 goto tolua_lerror;
00738 else
00739 {
00740 {
00741 fawkes::GameStateInterface::SetStateTeamMessage* tolua_ret = (fawkes::GameStateInterface::SetStateTeamMessage*) new fawkes::GameStateInterface::SetStateTeamMessage();
00742 tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::GameStateInterface::SetStateTeamMessage");
00743 }
00744 }
00745 return 1;
00746 tolua_lerror:
00747 return tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new00(tolua_S);
00748 }
00749 #endif //#ifndef TOLUA_DISABLE
00750
00751
00752 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new01_local
00753 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new01_local(lua_State* tolua_S)
00754 {
00755 tolua_Error tolua_err;
00756 if (
00757 !tolua_isusertable(tolua_S,1,"fawkes::GameStateInterface::SetStateTeamMessage",0,&tolua_err) ||
00758 !tolua_isnoobj(tolua_S,2,&tolua_err)
00759 )
00760 goto tolua_lerror;
00761 else
00762 {
00763 {
00764 fawkes::GameStateInterface::SetStateTeamMessage* tolua_ret = (fawkes::GameStateInterface::SetStateTeamMessage*) new fawkes::GameStateInterface::SetStateTeamMessage();
00765 tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"fawkes::GameStateInterface::SetStateTeamMessage");
00766 }
00767 }
00768 return 1;
00769 tolua_lerror:
00770 return tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new00_local(tolua_S);
00771 }
00772 #endif //#ifndef TOLUA_DISABLE
00773
00774
00775 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_delete00
00776 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_delete00(lua_State* tolua_S)
00777 {
00778 #ifndef TOLUA_RELEASE
00779 tolua_Error tolua_err;
00780 if (
00781 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface::SetStateTeamMessage",0,&tolua_err) ||
00782 !tolua_isnoobj(tolua_S,2,&tolua_err)
00783 )
00784 goto tolua_lerror;
00785 else
00786 #endif
00787 {
00788 fawkes::GameStateInterface::SetStateTeamMessage* self = (fawkes::GameStateInterface::SetStateTeamMessage*) tolua_tousertype(tolua_S,1,0);
00789 #ifndef TOLUA_RELEASE
00790 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'",NULL);
00791 #endif
00792 delete self;
00793 }
00794 return 0;
00795 #ifndef TOLUA_RELEASE
00796 tolua_lerror:
00797 tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
00798 return 0;
00799 #endif
00800 }
00801 #endif //#ifndef TOLUA_DISABLE
00802
00803
00804 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_state_team00
00805 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_state_team00(lua_State* tolua_S)
00806 {
00807 #ifndef TOLUA_RELEASE
00808 tolua_Error tolua_err;
00809 if (
00810 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface::SetStateTeamMessage",0,&tolua_err) ||
00811 !tolua_isnoobj(tolua_S,2,&tolua_err)
00812 )
00813 goto tolua_lerror;
00814 else
00815 #endif
00816 {
00817 fawkes::GameStateInterface::SetStateTeamMessage* self = (fawkes::GameStateInterface::SetStateTeamMessage*) tolua_tousertype(tolua_S,1,0);
00818 #ifndef TOLUA_RELEASE
00819 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'state_team'",NULL);
00820 #endif
00821 {
00822 fawkes::GameStateInterface::if_gamestate_team_t tolua_ret = (fawkes::GameStateInterface::if_gamestate_team_t) self->state_team();
00823 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
00824 }
00825 }
00826 return 1;
00827 #ifndef TOLUA_RELEASE
00828 tolua_lerror:
00829 tolua_error(tolua_S,"#ferror in function 'state_team'.",&tolua_err);
00830 return 0;
00831 #endif
00832 }
00833 #endif //#ifndef TOLUA_DISABLE
00834
00835
00836 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_set_state_team00
00837 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_set_state_team00(lua_State* tolua_S)
00838 {
00839 #ifndef TOLUA_RELEASE
00840 tolua_Error tolua_err;
00841 if (
00842 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface::SetStateTeamMessage",0,&tolua_err) ||
00843 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
00844 !tolua_isnoobj(tolua_S,3,&tolua_err)
00845 )
00846 goto tolua_lerror;
00847 else
00848 #endif
00849 {
00850 fawkes::GameStateInterface::SetStateTeamMessage* self = (fawkes::GameStateInterface::SetStateTeamMessage*) tolua_tousertype(tolua_S,1,0);
00851 const fawkes::GameStateInterface::if_gamestate_team_t new_state_team = ((const fawkes::GameStateInterface::if_gamestate_team_t) tolua_tonumber(tolua_S,2,0));
00852 #ifndef TOLUA_RELEASE
00853 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_state_team'",NULL);
00854 #endif
00855 {
00856 self->set_state_team(new_state_team);
00857 }
00858 }
00859 return 0;
00860 #ifndef TOLUA_RELEASE
00861 tolua_lerror:
00862 tolua_error(tolua_S,"#ferror in function 'set_state_team'.",&tolua_err);
00863 return 0;
00864 #endif
00865 }
00866 #endif //#ifndef TOLUA_DISABLE
00867
00868
00869 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_maxlenof_state_team00
00870 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_maxlenof_state_team00(lua_State* tolua_S)
00871 {
00872 #ifndef TOLUA_RELEASE
00873 tolua_Error tolua_err;
00874 if (
00875 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface::SetStateTeamMessage",0,&tolua_err) ||
00876 !tolua_isnoobj(tolua_S,2,&tolua_err)
00877 )
00878 goto tolua_lerror;
00879 else
00880 #endif
00881 {
00882 const fawkes::GameStateInterface::SetStateTeamMessage* self = (const fawkes::GameStateInterface::SetStateTeamMessage*) tolua_tousertype(tolua_S,1,0);
00883 #ifndef TOLUA_RELEASE
00884 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_state_team'",NULL);
00885 #endif
00886 {
00887 int tolua_ret = (int) self->maxlenof_state_team();
00888 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
00889 }
00890 }
00891 return 1;
00892 #ifndef TOLUA_RELEASE
00893 tolua_lerror:
00894 tolua_error(tolua_S,"#ferror in function 'maxlenof_state_team'.",&tolua_err);
00895 return 0;
00896 #endif
00897 }
00898 #endif //#ifndef TOLUA_DISABLE
00899
00900
00901 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_game_state00
00902 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_game_state00(lua_State* tolua_S)
00903 {
00904 #ifndef TOLUA_RELEASE
00905 tolua_Error tolua_err;
00906 if (
00907 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
00908 !tolua_isnoobj(tolua_S,2,&tolua_err)
00909 )
00910 goto tolua_lerror;
00911 else
00912 #endif
00913 {
00914 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
00915 #ifndef TOLUA_RELEASE
00916 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'game_state'",NULL);
00917 #endif
00918 {
00919 unsigned int tolua_ret = (unsigned int) self->game_state();
00920 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
00921 }
00922 }
00923 return 1;
00924 #ifndef TOLUA_RELEASE
00925 tolua_lerror:
00926 tolua_error(tolua_S,"#ferror in function 'game_state'.",&tolua_err);
00927 return 0;
00928 #endif
00929 }
00930 #endif //#ifndef TOLUA_DISABLE
00931
00932
00933 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_game_state00
00934 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_game_state00(lua_State* tolua_S)
00935 {
00936 #ifndef TOLUA_RELEASE
00937 tolua_Error tolua_err;
00938 if (
00939 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
00940 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
00941 !tolua_isnoobj(tolua_S,3,&tolua_err)
00942 )
00943 goto tolua_lerror;
00944 else
00945 #endif
00946 {
00947 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
00948 unsigned const int new_game_state = ((unsigned const int) tolua_tonumber(tolua_S,2,0));
00949 #ifndef TOLUA_RELEASE
00950 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_game_state'",NULL);
00951 #endif
00952 {
00953 self->set_game_state(new_game_state);
00954 }
00955 }
00956 return 0;
00957 #ifndef TOLUA_RELEASE
00958 tolua_lerror:
00959 tolua_error(tolua_S,"#ferror in function 'set_game_state'.",&tolua_err);
00960 return 0;
00961 #endif
00962 }
00963 #endif //#ifndef TOLUA_DISABLE
00964
00965
00966 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_game_state00
00967 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_game_state00(lua_State* tolua_S)
00968 {
00969 #ifndef TOLUA_RELEASE
00970 tolua_Error tolua_err;
00971 if (
00972 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
00973 !tolua_isnoobj(tolua_S,2,&tolua_err)
00974 )
00975 goto tolua_lerror;
00976 else
00977 #endif
00978 {
00979 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
00980 #ifndef TOLUA_RELEASE
00981 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_game_state'",NULL);
00982 #endif
00983 {
00984 int tolua_ret = (int) self->maxlenof_game_state();
00985 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
00986 }
00987 }
00988 return 1;
00989 #ifndef TOLUA_RELEASE
00990 tolua_lerror:
00991 tolua_error(tolua_S,"#ferror in function 'maxlenof_game_state'.",&tolua_err);
00992 return 0;
00993 #endif
00994 }
00995 #endif //#ifndef TOLUA_DISABLE
00996
00997
00998 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_state_team00
00999 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_state_team00(lua_State* tolua_S)
01000 {
01001 #ifndef TOLUA_RELEASE
01002 tolua_Error tolua_err;
01003 if (
01004 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
01005 !tolua_isnoobj(tolua_S,2,&tolua_err)
01006 )
01007 goto tolua_lerror;
01008 else
01009 #endif
01010 {
01011 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01012 #ifndef TOLUA_RELEASE
01013 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'state_team'",NULL);
01014 #endif
01015 {
01016 fawkes::GameStateInterface::if_gamestate_team_t tolua_ret = (fawkes::GameStateInterface::if_gamestate_team_t) self->state_team();
01017 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01018 }
01019 }
01020 return 1;
01021 #ifndef TOLUA_RELEASE
01022 tolua_lerror:
01023 tolua_error(tolua_S,"#ferror in function 'state_team'.",&tolua_err);
01024 return 0;
01025 #endif
01026 }
01027 #endif //#ifndef TOLUA_DISABLE
01028
01029
01030 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_state_team00
01031 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_state_team00(lua_State* tolua_S)
01032 {
01033 #ifndef TOLUA_RELEASE
01034 tolua_Error tolua_err;
01035 if (
01036 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
01037 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
01038 !tolua_isnoobj(tolua_S,3,&tolua_err)
01039 )
01040 goto tolua_lerror;
01041 else
01042 #endif
01043 {
01044 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01045 const fawkes::GameStateInterface::if_gamestate_team_t new_state_team = ((const fawkes::GameStateInterface::if_gamestate_team_t) tolua_tonumber(tolua_S,2,0));
01046 #ifndef TOLUA_RELEASE
01047 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_state_team'",NULL);
01048 #endif
01049 {
01050 self->set_state_team(new_state_team);
01051 }
01052 }
01053 return 0;
01054 #ifndef TOLUA_RELEASE
01055 tolua_lerror:
01056 tolua_error(tolua_S,"#ferror in function 'set_state_team'.",&tolua_err);
01057 return 0;
01058 #endif
01059 }
01060 #endif //#ifndef TOLUA_DISABLE
01061
01062
01063 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_state_team00
01064 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_state_team00(lua_State* tolua_S)
01065 {
01066 #ifndef TOLUA_RELEASE
01067 tolua_Error tolua_err;
01068 if (
01069 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
01070 !tolua_isnoobj(tolua_S,2,&tolua_err)
01071 )
01072 goto tolua_lerror;
01073 else
01074 #endif
01075 {
01076 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01077 #ifndef TOLUA_RELEASE
01078 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_state_team'",NULL);
01079 #endif
01080 {
01081 int tolua_ret = (int) self->maxlenof_state_team();
01082 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01083 }
01084 }
01085 return 1;
01086 #ifndef TOLUA_RELEASE
01087 tolua_lerror:
01088 tolua_error(tolua_S,"#ferror in function 'maxlenof_state_team'.",&tolua_err);
01089 return 0;
01090 #endif
01091 }
01092 #endif //#ifndef TOLUA_DISABLE
01093
01094
01095 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_our_team00
01096 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_our_team00(lua_State* tolua_S)
01097 {
01098 #ifndef TOLUA_RELEASE
01099 tolua_Error tolua_err;
01100 if (
01101 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
01102 !tolua_isnoobj(tolua_S,2,&tolua_err)
01103 )
01104 goto tolua_lerror;
01105 else
01106 #endif
01107 {
01108 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01109 #ifndef TOLUA_RELEASE
01110 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'our_team'",NULL);
01111 #endif
01112 {
01113 fawkes::GameStateInterface::if_gamestate_team_t tolua_ret = (fawkes::GameStateInterface::if_gamestate_team_t) self->our_team();
01114 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01115 }
01116 }
01117 return 1;
01118 #ifndef TOLUA_RELEASE
01119 tolua_lerror:
01120 tolua_error(tolua_S,"#ferror in function 'our_team'.",&tolua_err);
01121 return 0;
01122 #endif
01123 }
01124 #endif //#ifndef TOLUA_DISABLE
01125
01126
01127 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_our_team00
01128 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_our_team00(lua_State* tolua_S)
01129 {
01130 #ifndef TOLUA_RELEASE
01131 tolua_Error tolua_err;
01132 if (
01133 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
01134 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
01135 !tolua_isnoobj(tolua_S,3,&tolua_err)
01136 )
01137 goto tolua_lerror;
01138 else
01139 #endif
01140 {
01141 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01142 const fawkes::GameStateInterface::if_gamestate_team_t new_our_team = ((const fawkes::GameStateInterface::if_gamestate_team_t) tolua_tonumber(tolua_S,2,0));
01143 #ifndef TOLUA_RELEASE
01144 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_our_team'",NULL);
01145 #endif
01146 {
01147 self->set_our_team(new_our_team);
01148 }
01149 }
01150 return 0;
01151 #ifndef TOLUA_RELEASE
01152 tolua_lerror:
01153 tolua_error(tolua_S,"#ferror in function 'set_our_team'.",&tolua_err);
01154 return 0;
01155 #endif
01156 }
01157 #endif //#ifndef TOLUA_DISABLE
01158
01159
01160 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_our_team00
01161 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_our_team00(lua_State* tolua_S)
01162 {
01163 #ifndef TOLUA_RELEASE
01164 tolua_Error tolua_err;
01165 if (
01166 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
01167 !tolua_isnoobj(tolua_S,2,&tolua_err)
01168 )
01169 goto tolua_lerror;
01170 else
01171 #endif
01172 {
01173 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01174 #ifndef TOLUA_RELEASE
01175 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_our_team'",NULL);
01176 #endif
01177 {
01178 int tolua_ret = (int) self->maxlenof_our_team();
01179 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01180 }
01181 }
01182 return 1;
01183 #ifndef TOLUA_RELEASE
01184 tolua_lerror:
01185 tolua_error(tolua_S,"#ferror in function 'maxlenof_our_team'.",&tolua_err);
01186 return 0;
01187 #endif
01188 }
01189 #endif //#ifndef TOLUA_DISABLE
01190
01191
01192 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_our_goal_color00
01193 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_our_goal_color00(lua_State* tolua_S)
01194 {
01195 #ifndef TOLUA_RELEASE
01196 tolua_Error tolua_err;
01197 if (
01198 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
01199 !tolua_isnoobj(tolua_S,2,&tolua_err)
01200 )
01201 goto tolua_lerror;
01202 else
01203 #endif
01204 {
01205 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01206 #ifndef TOLUA_RELEASE
01207 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'our_goal_color'",NULL);
01208 #endif
01209 {
01210 fawkes::GameStateInterface::if_gamestate_goalcolor_t tolua_ret = (fawkes::GameStateInterface::if_gamestate_goalcolor_t) self->our_goal_color();
01211 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01212 }
01213 }
01214 return 1;
01215 #ifndef TOLUA_RELEASE
01216 tolua_lerror:
01217 tolua_error(tolua_S,"#ferror in function 'our_goal_color'.",&tolua_err);
01218 return 0;
01219 #endif
01220 }
01221 #endif //#ifndef TOLUA_DISABLE
01222
01223
01224 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_our_goal_color00
01225 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_our_goal_color00(lua_State* tolua_S)
01226 {
01227 #ifndef TOLUA_RELEASE
01228 tolua_Error tolua_err;
01229 if (
01230 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
01231 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
01232 !tolua_isnoobj(tolua_S,3,&tolua_err)
01233 )
01234 goto tolua_lerror;
01235 else
01236 #endif
01237 {
01238 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01239 const fawkes::GameStateInterface::if_gamestate_goalcolor_t new_our_goal_color = ((const fawkes::GameStateInterface::if_gamestate_goalcolor_t) tolua_tonumber(tolua_S,2,0));
01240 #ifndef TOLUA_RELEASE
01241 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_our_goal_color'",NULL);
01242 #endif
01243 {
01244 self->set_our_goal_color(new_our_goal_color);
01245 }
01246 }
01247 return 0;
01248 #ifndef TOLUA_RELEASE
01249 tolua_lerror:
01250 tolua_error(tolua_S,"#ferror in function 'set_our_goal_color'.",&tolua_err);
01251 return 0;
01252 #endif
01253 }
01254 #endif //#ifndef TOLUA_DISABLE
01255
01256
01257 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_our_goal_color00
01258 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_our_goal_color00(lua_State* tolua_S)
01259 {
01260 #ifndef TOLUA_RELEASE
01261 tolua_Error tolua_err;
01262 if (
01263 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
01264 !tolua_isnoobj(tolua_S,2,&tolua_err)
01265 )
01266 goto tolua_lerror;
01267 else
01268 #endif
01269 {
01270 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01271 #ifndef TOLUA_RELEASE
01272 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_our_goal_color'",NULL);
01273 #endif
01274 {
01275 int tolua_ret = (int) self->maxlenof_our_goal_color();
01276 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01277 }
01278 }
01279 return 1;
01280 #ifndef TOLUA_RELEASE
01281 tolua_lerror:
01282 tolua_error(tolua_S,"#ferror in function 'maxlenof_our_goal_color'.",&tolua_err);
01283 return 0;
01284 #endif
01285 }
01286 #endif //#ifndef TOLUA_DISABLE
01287
01288
01289 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_half00
01290 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_half00(lua_State* tolua_S)
01291 {
01292 #ifndef TOLUA_RELEASE
01293 tolua_Error tolua_err;
01294 if (
01295 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
01296 !tolua_isnoobj(tolua_S,2,&tolua_err)
01297 )
01298 goto tolua_lerror;
01299 else
01300 #endif
01301 {
01302 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01303 #ifndef TOLUA_RELEASE
01304 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'half'",NULL);
01305 #endif
01306 {
01307 fawkes::GameStateInterface::if_gamestate_half_t tolua_ret = (fawkes::GameStateInterface::if_gamestate_half_t) self->half();
01308 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01309 }
01310 }
01311 return 1;
01312 #ifndef TOLUA_RELEASE
01313 tolua_lerror:
01314 tolua_error(tolua_S,"#ferror in function 'half'.",&tolua_err);
01315 return 0;
01316 #endif
01317 }
01318 #endif //#ifndef TOLUA_DISABLE
01319
01320
01321 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_half00
01322 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_half00(lua_State* tolua_S)
01323 {
01324 #ifndef TOLUA_RELEASE
01325 tolua_Error tolua_err;
01326 if (
01327 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
01328 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
01329 !tolua_isnoobj(tolua_S,3,&tolua_err)
01330 )
01331 goto tolua_lerror;
01332 else
01333 #endif
01334 {
01335 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01336 const fawkes::GameStateInterface::if_gamestate_half_t new_half = ((const fawkes::GameStateInterface::if_gamestate_half_t) tolua_tonumber(tolua_S,2,0));
01337 #ifndef TOLUA_RELEASE
01338 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_half'",NULL);
01339 #endif
01340 {
01341 self->set_half(new_half);
01342 }
01343 }
01344 return 0;
01345 #ifndef TOLUA_RELEASE
01346 tolua_lerror:
01347 tolua_error(tolua_S,"#ferror in function 'set_half'.",&tolua_err);
01348 return 0;
01349 #endif
01350 }
01351 #endif //#ifndef TOLUA_DISABLE
01352
01353
01354 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_half00
01355 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_half00(lua_State* tolua_S)
01356 {
01357 #ifndef TOLUA_RELEASE
01358 tolua_Error tolua_err;
01359 if (
01360 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
01361 !tolua_isnoobj(tolua_S,2,&tolua_err)
01362 )
01363 goto tolua_lerror;
01364 else
01365 #endif
01366 {
01367 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01368 #ifndef TOLUA_RELEASE
01369 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_half'",NULL);
01370 #endif
01371 {
01372 int tolua_ret = (int) self->maxlenof_half();
01373 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01374 }
01375 }
01376 return 1;
01377 #ifndef TOLUA_RELEASE
01378 tolua_lerror:
01379 tolua_error(tolua_S,"#ferror in function 'maxlenof_half'.",&tolua_err);
01380 return 0;
01381 #endif
01382 }
01383 #endif //#ifndef TOLUA_DISABLE
01384
01385
01386 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_is_kickoff00
01387 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_is_kickoff00(lua_State* tolua_S)
01388 {
01389 #ifndef TOLUA_RELEASE
01390 tolua_Error tolua_err;
01391 if (
01392 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
01393 !tolua_isnoobj(tolua_S,2,&tolua_err)
01394 )
01395 goto tolua_lerror;
01396 else
01397 #endif
01398 {
01399 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01400 #ifndef TOLUA_RELEASE
01401 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'is_kickoff'",NULL);
01402 #endif
01403 {
01404 bool tolua_ret = (bool) self->is_kickoff();
01405 tolua_pushboolean(tolua_S,(bool)tolua_ret);
01406 }
01407 }
01408 return 1;
01409 #ifndef TOLUA_RELEASE
01410 tolua_lerror:
01411 tolua_error(tolua_S,"#ferror in function 'is_kickoff'.",&tolua_err);
01412 return 0;
01413 #endif
01414 }
01415 #endif //#ifndef TOLUA_DISABLE
01416
01417
01418 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_kickoff00
01419 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_kickoff00(lua_State* tolua_S)
01420 {
01421 #ifndef TOLUA_RELEASE
01422 tolua_Error tolua_err;
01423 if (
01424 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
01425 !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
01426 !tolua_isnoobj(tolua_S,3,&tolua_err)
01427 )
01428 goto tolua_lerror;
01429 else
01430 #endif
01431 {
01432 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01433 const bool new_kickoff = ((const bool) tolua_toboolean(tolua_S,2,0));
01434 #ifndef TOLUA_RELEASE
01435 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_kickoff'",NULL);
01436 #endif
01437 {
01438 self->set_kickoff(new_kickoff);
01439 }
01440 }
01441 return 0;
01442 #ifndef TOLUA_RELEASE
01443 tolua_lerror:
01444 tolua_error(tolua_S,"#ferror in function 'set_kickoff'.",&tolua_err);
01445 return 0;
01446 #endif
01447 }
01448 #endif //#ifndef TOLUA_DISABLE
01449
01450
01451 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_kickoff00
01452 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_kickoff00(lua_State* tolua_S)
01453 {
01454 #ifndef TOLUA_RELEASE
01455 tolua_Error tolua_err;
01456 if (
01457 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
01458 !tolua_isnoobj(tolua_S,2,&tolua_err)
01459 )
01460 goto tolua_lerror;
01461 else
01462 #endif
01463 {
01464 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01465 #ifndef TOLUA_RELEASE
01466 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_kickoff'",NULL);
01467 #endif
01468 {
01469 int tolua_ret = (int) self->maxlenof_kickoff();
01470 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01471 }
01472 }
01473 return 1;
01474 #ifndef TOLUA_RELEASE
01475 tolua_lerror:
01476 tolua_error(tolua_S,"#ferror in function 'maxlenof_kickoff'.",&tolua_err);
01477 return 0;
01478 #endif
01479 }
01480 #endif //#ifndef TOLUA_DISABLE
01481
01482
01483 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_role00
01484 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_role00(lua_State* tolua_S)
01485 {
01486 #ifndef TOLUA_RELEASE
01487 tolua_Error tolua_err;
01488 if (
01489 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
01490 !tolua_isnoobj(tolua_S,2,&tolua_err)
01491 )
01492 goto tolua_lerror;
01493 else
01494 #endif
01495 {
01496 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01497 #ifndef TOLUA_RELEASE
01498 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'role'",NULL);
01499 #endif
01500 {
01501 fawkes::GameStateInterface::if_gamestate_role_t tolua_ret = (fawkes::GameStateInterface::if_gamestate_role_t) self->role();
01502 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01503 }
01504 }
01505 return 1;
01506 #ifndef TOLUA_RELEASE
01507 tolua_lerror:
01508 tolua_error(tolua_S,"#ferror in function 'role'.",&tolua_err);
01509 return 0;
01510 #endif
01511 }
01512 #endif //#ifndef TOLUA_DISABLE
01513
01514
01515 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_role00
01516 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_role00(lua_State* tolua_S)
01517 {
01518 #ifndef TOLUA_RELEASE
01519 tolua_Error tolua_err;
01520 if (
01521 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
01522 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
01523 !tolua_isnoobj(tolua_S,3,&tolua_err)
01524 )
01525 goto tolua_lerror;
01526 else
01527 #endif
01528 {
01529 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01530 const fawkes::GameStateInterface::if_gamestate_role_t new_role = ((const fawkes::GameStateInterface::if_gamestate_role_t) tolua_tonumber(tolua_S,2,0));
01531 #ifndef TOLUA_RELEASE
01532 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_role'",NULL);
01533 #endif
01534 {
01535 self->set_role(new_role);
01536 }
01537 }
01538 return 0;
01539 #ifndef TOLUA_RELEASE
01540 tolua_lerror:
01541 tolua_error(tolua_S,"#ferror in function 'set_role'.",&tolua_err);
01542 return 0;
01543 #endif
01544 }
01545 #endif //#ifndef TOLUA_DISABLE
01546
01547
01548 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_role00
01549 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_role00(lua_State* tolua_S)
01550 {
01551 #ifndef TOLUA_RELEASE
01552 tolua_Error tolua_err;
01553 if (
01554 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
01555 !tolua_isnoobj(tolua_S,2,&tolua_err)
01556 )
01557 goto tolua_lerror;
01558 else
01559 #endif
01560 {
01561 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01562 #ifndef TOLUA_RELEASE
01563 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_role'",NULL);
01564 #endif
01565 {
01566 int tolua_ret = (int) self->maxlenof_role();
01567 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01568 }
01569 }
01570 return 1;
01571 #ifndef TOLUA_RELEASE
01572 tolua_lerror:
01573 tolua_error(tolua_S,"#ferror in function 'maxlenof_role'.",&tolua_err);
01574 return 0;
01575 #endif
01576 }
01577 #endif //#ifndef TOLUA_DISABLE
01578
01579
01580 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_score_cyan00
01581 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_score_cyan00(lua_State* tolua_S)
01582 {
01583 #ifndef TOLUA_RELEASE
01584 tolua_Error tolua_err;
01585 if (
01586 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
01587 !tolua_isnoobj(tolua_S,2,&tolua_err)
01588 )
01589 goto tolua_lerror;
01590 else
01591 #endif
01592 {
01593 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01594 #ifndef TOLUA_RELEASE
01595 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'score_cyan'",NULL);
01596 #endif
01597 {
01598 unsigned int tolua_ret = (unsigned int) self->score_cyan();
01599 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01600 }
01601 }
01602 return 1;
01603 #ifndef TOLUA_RELEASE
01604 tolua_lerror:
01605 tolua_error(tolua_S,"#ferror in function 'score_cyan'.",&tolua_err);
01606 return 0;
01607 #endif
01608 }
01609 #endif //#ifndef TOLUA_DISABLE
01610
01611
01612 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_score_cyan00
01613 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_score_cyan00(lua_State* tolua_S)
01614 {
01615 #ifndef TOLUA_RELEASE
01616 tolua_Error tolua_err;
01617 if (
01618 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
01619 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
01620 !tolua_isnoobj(tolua_S,3,&tolua_err)
01621 )
01622 goto tolua_lerror;
01623 else
01624 #endif
01625 {
01626 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01627 unsigned const int new_score_cyan = ((unsigned const int) tolua_tonumber(tolua_S,2,0));
01628 #ifndef TOLUA_RELEASE
01629 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_score_cyan'",NULL);
01630 #endif
01631 {
01632 self->set_score_cyan(new_score_cyan);
01633 }
01634 }
01635 return 0;
01636 #ifndef TOLUA_RELEASE
01637 tolua_lerror:
01638 tolua_error(tolua_S,"#ferror in function 'set_score_cyan'.",&tolua_err);
01639 return 0;
01640 #endif
01641 }
01642 #endif //#ifndef TOLUA_DISABLE
01643
01644
01645 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_score_cyan00
01646 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_score_cyan00(lua_State* tolua_S)
01647 {
01648 #ifndef TOLUA_RELEASE
01649 tolua_Error tolua_err;
01650 if (
01651 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
01652 !tolua_isnoobj(tolua_S,2,&tolua_err)
01653 )
01654 goto tolua_lerror;
01655 else
01656 #endif
01657 {
01658 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01659 #ifndef TOLUA_RELEASE
01660 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_score_cyan'",NULL);
01661 #endif
01662 {
01663 int tolua_ret = (int) self->maxlenof_score_cyan();
01664 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01665 }
01666 }
01667 return 1;
01668 #ifndef TOLUA_RELEASE
01669 tolua_lerror:
01670 tolua_error(tolua_S,"#ferror in function 'maxlenof_score_cyan'.",&tolua_err);
01671 return 0;
01672 #endif
01673 }
01674 #endif //#ifndef TOLUA_DISABLE
01675
01676
01677 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_score_magenta00
01678 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_score_magenta00(lua_State* tolua_S)
01679 {
01680 #ifndef TOLUA_RELEASE
01681 tolua_Error tolua_err;
01682 if (
01683 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
01684 !tolua_isnoobj(tolua_S,2,&tolua_err)
01685 )
01686 goto tolua_lerror;
01687 else
01688 #endif
01689 {
01690 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01691 #ifndef TOLUA_RELEASE
01692 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'score_magenta'",NULL);
01693 #endif
01694 {
01695 unsigned int tolua_ret = (unsigned int) self->score_magenta();
01696 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01697 }
01698 }
01699 return 1;
01700 #ifndef TOLUA_RELEASE
01701 tolua_lerror:
01702 tolua_error(tolua_S,"#ferror in function 'score_magenta'.",&tolua_err);
01703 return 0;
01704 #endif
01705 }
01706 #endif //#ifndef TOLUA_DISABLE
01707
01708
01709 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_score_magenta00
01710 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_score_magenta00(lua_State* tolua_S)
01711 {
01712 #ifndef TOLUA_RELEASE
01713 tolua_Error tolua_err;
01714 if (
01715 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
01716 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
01717 !tolua_isnoobj(tolua_S,3,&tolua_err)
01718 )
01719 goto tolua_lerror;
01720 else
01721 #endif
01722 {
01723 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01724 unsigned const int new_score_magenta = ((unsigned const int) tolua_tonumber(tolua_S,2,0));
01725 #ifndef TOLUA_RELEASE
01726 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_score_magenta'",NULL);
01727 #endif
01728 {
01729 self->set_score_magenta(new_score_magenta);
01730 }
01731 }
01732 return 0;
01733 #ifndef TOLUA_RELEASE
01734 tolua_lerror:
01735 tolua_error(tolua_S,"#ferror in function 'set_score_magenta'.",&tolua_err);
01736 return 0;
01737 #endif
01738 }
01739 #endif //#ifndef TOLUA_DISABLE
01740
01741
01742 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_score_magenta00
01743 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_score_magenta00(lua_State* tolua_S)
01744 {
01745 #ifndef TOLUA_RELEASE
01746 tolua_Error tolua_err;
01747 if (
01748 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
01749 !tolua_isnoobj(tolua_S,2,&tolua_err)
01750 )
01751 goto tolua_lerror;
01752 else
01753 #endif
01754 {
01755 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01756 #ifndef TOLUA_RELEASE
01757 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_score_magenta'",NULL);
01758 #endif
01759 {
01760 int tolua_ret = (int) self->maxlenof_score_magenta();
01761 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01762 }
01763 }
01764 return 1;
01765 #ifndef TOLUA_RELEASE
01766 tolua_lerror:
01767 tolua_error(tolua_S,"#ferror in function 'maxlenof_score_magenta'.",&tolua_err);
01768 return 0;
01769 #endif
01770 }
01771 #endif //#ifndef TOLUA_DISABLE
01772
01773
01774 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_oftype00
01775 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_oftype00(lua_State* tolua_S)
01776 {
01777 #ifndef TOLUA_RELEASE
01778 tolua_Error tolua_err;
01779 if (
01780 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
01781 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
01782 !tolua_isnoobj(tolua_S,3,&tolua_err)
01783 )
01784 goto tolua_lerror;
01785 else
01786 #endif
01787 {
01788 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01789 const char* interface_type = ((const char*) tolua_tostring(tolua_S,2,0));
01790 #ifndef TOLUA_RELEASE
01791 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'oftype'",NULL);
01792 #endif
01793 {
01794 bool tolua_ret = (bool) self->oftype(interface_type);
01795 tolua_pushboolean(tolua_S,(bool)tolua_ret);
01796 }
01797 }
01798 return 1;
01799 #ifndef TOLUA_RELEASE
01800 tolua_lerror:
01801 tolua_error(tolua_S,"#ferror in function 'oftype'.",&tolua_err);
01802 return 0;
01803 #endif
01804 }
01805 #endif //#ifndef TOLUA_DISABLE
01806
01807
01808 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_datachunk00
01809 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_datachunk00(lua_State* tolua_S)
01810 {
01811 #ifndef TOLUA_RELEASE
01812 tolua_Error tolua_err;
01813 if (
01814 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
01815 !tolua_isnoobj(tolua_S,2,&tolua_err)
01816 )
01817 goto tolua_lerror;
01818 else
01819 #endif
01820 {
01821 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01822 #ifndef TOLUA_RELEASE
01823 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'datachunk'",NULL);
01824 #endif
01825 {
01826 const void* tolua_ret = (const void*) self->datachunk();
01827 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
01828 }
01829 }
01830 return 1;
01831 #ifndef TOLUA_RELEASE
01832 tolua_lerror:
01833 tolua_error(tolua_S,"#ferror in function 'datachunk'.",&tolua_err);
01834 return 0;
01835 #endif
01836 }
01837 #endif //#ifndef TOLUA_DISABLE
01838
01839
01840 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_datasize00
01841 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_datasize00(lua_State* tolua_S)
01842 {
01843 #ifndef TOLUA_RELEASE
01844 tolua_Error tolua_err;
01845 if (
01846 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
01847 !tolua_isnoobj(tolua_S,2,&tolua_err)
01848 )
01849 goto tolua_lerror;
01850 else
01851 #endif
01852 {
01853 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01854 #ifndef TOLUA_RELEASE
01855 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'datasize'",NULL);
01856 #endif
01857 {
01858 unsigned int tolua_ret = (unsigned int) self->datasize();
01859 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01860 }
01861 }
01862 return 1;
01863 #ifndef TOLUA_RELEASE
01864 tolua_lerror:
01865 tolua_error(tolua_S,"#ferror in function 'datasize'.",&tolua_err);
01866 return 0;
01867 #endif
01868 }
01869 #endif //#ifndef TOLUA_DISABLE
01870
01871
01872 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_type00
01873 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_type00(lua_State* tolua_S)
01874 {
01875 #ifndef TOLUA_RELEASE
01876 tolua_Error tolua_err;
01877 if (
01878 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
01879 !tolua_isnoobj(tolua_S,2,&tolua_err)
01880 )
01881 goto tolua_lerror;
01882 else
01883 #endif
01884 {
01885 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01886 #ifndef TOLUA_RELEASE
01887 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'type'",NULL);
01888 #endif
01889 {
01890 const char* tolua_ret = (const char*) self->type();
01891 tolua_pushstring(tolua_S,(const char*)tolua_ret);
01892 }
01893 }
01894 return 1;
01895 #ifndef TOLUA_RELEASE
01896 tolua_lerror:
01897 tolua_error(tolua_S,"#ferror in function 'type'.",&tolua_err);
01898 return 0;
01899 #endif
01900 }
01901 #endif //#ifndef TOLUA_DISABLE
01902
01903
01904 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_id00
01905 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_id00(lua_State* tolua_S)
01906 {
01907 #ifndef TOLUA_RELEASE
01908 tolua_Error tolua_err;
01909 if (
01910 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
01911 !tolua_isnoobj(tolua_S,2,&tolua_err)
01912 )
01913 goto tolua_lerror;
01914 else
01915 #endif
01916 {
01917 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01918 #ifndef TOLUA_RELEASE
01919 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'id'",NULL);
01920 #endif
01921 {
01922 const char* tolua_ret = (const char*) self->id();
01923 tolua_pushstring(tolua_S,(const char*)tolua_ret);
01924 }
01925 }
01926 return 1;
01927 #ifndef TOLUA_RELEASE
01928 tolua_lerror:
01929 tolua_error(tolua_S,"#ferror in function 'id'.",&tolua_err);
01930 return 0;
01931 #endif
01932 }
01933 #endif //#ifndef TOLUA_DISABLE
01934
01935
01936 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_uid00
01937 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_uid00(lua_State* tolua_S)
01938 {
01939 #ifndef TOLUA_RELEASE
01940 tolua_Error tolua_err;
01941 if (
01942 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
01943 !tolua_isnoobj(tolua_S,2,&tolua_err)
01944 )
01945 goto tolua_lerror;
01946 else
01947 #endif
01948 {
01949 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01950 #ifndef TOLUA_RELEASE
01951 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'uid'",NULL);
01952 #endif
01953 {
01954 const char* tolua_ret = (const char*) self->uid();
01955 tolua_pushstring(tolua_S,(const char*)tolua_ret);
01956 }
01957 }
01958 return 1;
01959 #ifndef TOLUA_RELEASE
01960 tolua_lerror:
01961 tolua_error(tolua_S,"#ferror in function 'uid'.",&tolua_err);
01962 return 0;
01963 #endif
01964 }
01965 #endif //#ifndef TOLUA_DISABLE
01966
01967
01968 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_serial00
01969 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_serial00(lua_State* tolua_S)
01970 {
01971 #ifndef TOLUA_RELEASE
01972 tolua_Error tolua_err;
01973 if (
01974 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
01975 !tolua_isnoobj(tolua_S,2,&tolua_err)
01976 )
01977 goto tolua_lerror;
01978 else
01979 #endif
01980 {
01981 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
01982 #ifndef TOLUA_RELEASE
01983 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'serial'",NULL);
01984 #endif
01985 {
01986 unsigned int tolua_ret = (unsigned int) self->serial();
01987 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
01988 }
01989 }
01990 return 1;
01991 #ifndef TOLUA_RELEASE
01992 tolua_lerror:
01993 tolua_error(tolua_S,"#ferror in function 'serial'.",&tolua_err);
01994 return 0;
01995 #endif
01996 }
01997 #endif //#ifndef TOLUA_DISABLE
01998
01999
02000 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_mem_serial00
02001 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_mem_serial00(lua_State* tolua_S)
02002 {
02003 #ifndef TOLUA_RELEASE
02004 tolua_Error tolua_err;
02005 if (
02006 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
02007 !tolua_isnoobj(tolua_S,2,&tolua_err)
02008 )
02009 goto tolua_lerror;
02010 else
02011 #endif
02012 {
02013 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
02014 #ifndef TOLUA_RELEASE
02015 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'mem_serial'",NULL);
02016 #endif
02017 {
02018 unsigned int tolua_ret = (unsigned int) self->mem_serial();
02019 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
02020 }
02021 }
02022 return 1;
02023 #ifndef TOLUA_RELEASE
02024 tolua_lerror:
02025 tolua_error(tolua_S,"#ferror in function 'mem_serial'.",&tolua_err);
02026 return 0;
02027 #endif
02028 }
02029 #endif //#ifndef TOLUA_DISABLE
02030
02031
02032 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface__eq00
02033 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface__eq00(lua_State* tolua_S)
02034 {
02035 #ifndef TOLUA_RELEASE
02036 tolua_Error tolua_err;
02037 if (
02038 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
02039 !tolua_isusertype(tolua_S,2,"Interface",0,&tolua_err) ||
02040 !tolua_isnoobj(tolua_S,3,&tolua_err)
02041 )
02042 goto tolua_lerror;
02043 else
02044 #endif
02045 {
02046 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
02047 Interface* comp = ((Interface*) tolua_tousertype(tolua_S,2,0));
02048 #ifndef TOLUA_RELEASE
02049 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='",NULL);
02050 #endif
02051 {
02052 bool tolua_ret = (bool) self->operator==(*comp);
02053 tolua_pushboolean(tolua_S,(bool)tolua_ret);
02054 }
02055 }
02056 return 1;
02057 #ifndef TOLUA_RELEASE
02058 tolua_lerror:
02059 tolua_error(tolua_S,"#ferror in function '.eq'.",&tolua_err);
02060 return 0;
02061 #endif
02062 }
02063 #endif //#ifndef TOLUA_DISABLE
02064
02065
02066 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_hash00
02067 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_hash00(lua_State* tolua_S)
02068 {
02069 #ifndef TOLUA_RELEASE
02070 tolua_Error tolua_err;
02071 if (
02072 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
02073 !tolua_isnoobj(tolua_S,2,&tolua_err)
02074 )
02075 goto tolua_lerror;
02076 else
02077 #endif
02078 {
02079 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
02080 #ifndef TOLUA_RELEASE
02081 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'hash'",NULL);
02082 #endif
02083 {
02084 unsigned const char* tolua_ret = ( unsigned const char*) self->hash();
02085 tolua_pushstring(tolua_S,(const char*)tolua_ret);
02086 }
02087 }
02088 return 1;
02089 #ifndef TOLUA_RELEASE
02090 tolua_lerror:
02091 tolua_error(tolua_S,"#ferror in function 'hash'.",&tolua_err);
02092 return 0;
02093 #endif
02094 }
02095 #endif //#ifndef TOLUA_DISABLE
02096
02097
02098 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_hash_size00
02099 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_hash_size00(lua_State* tolua_S)
02100 {
02101 #ifndef TOLUA_RELEASE
02102 tolua_Error tolua_err;
02103 if (
02104 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
02105 !tolua_isnoobj(tolua_S,2,&tolua_err)
02106 )
02107 goto tolua_lerror;
02108 else
02109 #endif
02110 {
02111 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
02112 #ifndef TOLUA_RELEASE
02113 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'hash_size'",NULL);
02114 #endif
02115 {
02116 int tolua_ret = (int) self->hash_size();
02117 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
02118 }
02119 }
02120 return 1;
02121 #ifndef TOLUA_RELEASE
02122 tolua_lerror:
02123 tolua_error(tolua_S,"#ferror in function 'hash_size'.",&tolua_err);
02124 return 0;
02125 #endif
02126 }
02127 #endif //#ifndef TOLUA_DISABLE
02128
02129
02130 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_hash_printable00
02131 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_hash_printable00(lua_State* tolua_S)
02132 {
02133 #ifndef TOLUA_RELEASE
02134 tolua_Error tolua_err;
02135 if (
02136 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
02137 !tolua_isnoobj(tolua_S,2,&tolua_err)
02138 )
02139 goto tolua_lerror;
02140 else
02141 #endif
02142 {
02143 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
02144 #ifndef TOLUA_RELEASE
02145 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'hash_printable'",NULL);
02146 #endif
02147 {
02148 const char* tolua_ret = (const char*) self->hash_printable();
02149 tolua_pushstring(tolua_S,(const char*)tolua_ret);
02150 }
02151 }
02152 return 1;
02153 #ifndef TOLUA_RELEASE
02154 tolua_lerror:
02155 tolua_error(tolua_S,"#ferror in function 'hash_printable'.",&tolua_err);
02156 return 0;
02157 #endif
02158 }
02159 #endif //#ifndef TOLUA_DISABLE
02160
02161
02162 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_is_writer00
02163 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_is_writer00(lua_State* tolua_S)
02164 {
02165 #ifndef TOLUA_RELEASE
02166 tolua_Error tolua_err;
02167 if (
02168 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
02169 !tolua_isnoobj(tolua_S,2,&tolua_err)
02170 )
02171 goto tolua_lerror;
02172 else
02173 #endif
02174 {
02175 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
02176 #ifndef TOLUA_RELEASE
02177 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'is_writer'",NULL);
02178 #endif
02179 {
02180 bool tolua_ret = (bool) self->is_writer();
02181 tolua_pushboolean(tolua_S,(bool)tolua_ret);
02182 }
02183 }
02184 return 1;
02185 #ifndef TOLUA_RELEASE
02186 tolua_lerror:
02187 tolua_error(tolua_S,"#ferror in function 'is_writer'.",&tolua_err);
02188 return 0;
02189 #endif
02190 }
02191 #endif //#ifndef TOLUA_DISABLE
02192
02193
02194 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_from_chunk00
02195 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_from_chunk00(lua_State* tolua_S)
02196 {
02197 #ifndef TOLUA_RELEASE
02198 tolua_Error tolua_err;
02199 if (
02200 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
02201 !tolua_isuserdata(tolua_S,2,0,&tolua_err) ||
02202 !tolua_isnoobj(tolua_S,3,&tolua_err)
02203 )
02204 goto tolua_lerror;
02205 else
02206 #endif
02207 {
02208 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
02209 void* chunk = ((void*) tolua_touserdata(tolua_S,2,0));
02210 #ifndef TOLUA_RELEASE
02211 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_from_chunk'",NULL);
02212 #endif
02213 {
02214 self->set_from_chunk(chunk);
02215 }
02216 }
02217 return 0;
02218 #ifndef TOLUA_RELEASE
02219 tolua_lerror:
02220 tolua_error(tolua_S,"#ferror in function 'set_from_chunk'.",&tolua_err);
02221 return 0;
02222 #endif
02223 }
02224 #endif //#ifndef TOLUA_DISABLE
02225
02226
02227 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_create_message00
02228 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_create_message00(lua_State* tolua_S)
02229 {
02230 #ifndef TOLUA_RELEASE
02231 tolua_Error tolua_err;
02232 if (
02233 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
02234 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
02235 !tolua_isnoobj(tolua_S,3,&tolua_err)
02236 )
02237 goto tolua_lerror;
02238 else
02239 #endif
02240 {
02241 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
02242 const char* type = ((const char*) tolua_tostring(tolua_S,2,0));
02243 #ifndef TOLUA_RELEASE
02244 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'create_message'",NULL);
02245 #endif
02246 {
02247 Message* tolua_ret = (Message*) self->create_message(type);
02248 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Message");
02249 }
02250 }
02251 return 1;
02252 #ifndef TOLUA_RELEASE
02253 tolua_lerror:
02254 tolua_error(tolua_S,"#ferror in function 'create_message'.",&tolua_err);
02255 return 0;
02256 #endif
02257 }
02258 #endif //#ifndef TOLUA_DISABLE
02259
02260
02261 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_read00
02262 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_read00(lua_State* tolua_S)
02263 {
02264 #ifndef TOLUA_RELEASE
02265 tolua_Error tolua_err;
02266 if (
02267 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
02268 !tolua_isnoobj(tolua_S,2,&tolua_err)
02269 )
02270 goto tolua_lerror;
02271 else
02272 #endif
02273 {
02274 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
02275 #ifndef TOLUA_RELEASE
02276 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'read'",NULL);
02277 #endif
02278 {
02279 self->read();
02280 }
02281 }
02282 return 0;
02283 #ifndef TOLUA_RELEASE
02284 tolua_lerror:
02285 tolua_error(tolua_S,"#ferror in function 'read'.",&tolua_err);
02286 return 0;
02287 #endif
02288 }
02289 #endif //#ifndef TOLUA_DISABLE
02290
02291
02292 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_write00
02293 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_write00(lua_State* tolua_S)
02294 {
02295 #ifndef TOLUA_RELEASE
02296 tolua_Error tolua_err;
02297 if (
02298 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
02299 !tolua_isnoobj(tolua_S,2,&tolua_err)
02300 )
02301 goto tolua_lerror;
02302 else
02303 #endif
02304 {
02305 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
02306 #ifndef TOLUA_RELEASE
02307 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'write'",NULL);
02308 #endif
02309 {
02310 self->write();
02311 }
02312 }
02313 return 0;
02314 #ifndef TOLUA_RELEASE
02315 tolua_lerror:
02316 tolua_error(tolua_S,"#ferror in function 'write'.",&tolua_err);
02317 return 0;
02318 #endif
02319 }
02320 #endif //#ifndef TOLUA_DISABLE
02321
02322
02323 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_has_writer00
02324 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_has_writer00(lua_State* tolua_S)
02325 {
02326 #ifndef TOLUA_RELEASE
02327 tolua_Error tolua_err;
02328 if (
02329 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
02330 !tolua_isnoobj(tolua_S,2,&tolua_err)
02331 )
02332 goto tolua_lerror;
02333 else
02334 #endif
02335 {
02336 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
02337 #ifndef TOLUA_RELEASE
02338 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'has_writer'",NULL);
02339 #endif
02340 {
02341 bool tolua_ret = (bool) self->has_writer();
02342 tolua_pushboolean(tolua_S,(bool)tolua_ret);
02343 }
02344 }
02345 return 1;
02346 #ifndef TOLUA_RELEASE
02347 tolua_lerror:
02348 tolua_error(tolua_S,"#ferror in function 'has_writer'.",&tolua_err);
02349 return 0;
02350 #endif
02351 }
02352 #endif //#ifndef TOLUA_DISABLE
02353
02354
02355 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_num_readers00
02356 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_num_readers00(lua_State* tolua_S)
02357 {
02358 #ifndef TOLUA_RELEASE
02359 tolua_Error tolua_err;
02360 if (
02361 !tolua_isusertype(tolua_S,1,"const fawkes::GameStateInterface",0,&tolua_err) ||
02362 !tolua_isnoobj(tolua_S,2,&tolua_err)
02363 )
02364 goto tolua_lerror;
02365 else
02366 #endif
02367 {
02368 const fawkes::GameStateInterface* self = (const fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
02369 #ifndef TOLUA_RELEASE
02370 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'num_readers'",NULL);
02371 #endif
02372 {
02373 unsigned int tolua_ret = (unsigned int) self->num_readers();
02374 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
02375 }
02376 }
02377 return 1;
02378 #ifndef TOLUA_RELEASE
02379 tolua_lerror:
02380 tolua_error(tolua_S,"#ferror in function 'num_readers'.",&tolua_err);
02381 return 0;
02382 #endif
02383 }
02384 #endif //#ifndef TOLUA_DISABLE
02385
02386
02387 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_enqueue_copy00
02388 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_enqueue_copy00(lua_State* tolua_S)
02389 {
02390 #ifndef TOLUA_RELEASE
02391 tolua_Error tolua_err;
02392 if (
02393 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
02394 !tolua_isusertype(tolua_S,2,"Message",0,&tolua_err) ||
02395 !tolua_isnoobj(tolua_S,3,&tolua_err)
02396 )
02397 goto tolua_lerror;
02398 else
02399 #endif
02400 {
02401 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
02402 Message* message = ((Message*) tolua_tousertype(tolua_S,2,0));
02403 #ifndef TOLUA_RELEASE
02404 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_enqueue_copy'",NULL);
02405 #endif
02406 {
02407 unsigned int tolua_ret = (unsigned int) self->msgq_enqueue_copy(message);
02408 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
02409 }
02410 }
02411 return 1;
02412 #ifndef TOLUA_RELEASE
02413 tolua_lerror:
02414 tolua_error(tolua_S,"#ferror in function 'msgq_enqueue_copy'.",&tolua_err);
02415 return 0;
02416 #endif
02417 }
02418 #endif //#ifndef TOLUA_DISABLE
02419
02420
02421 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_remove00
02422 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_remove00(lua_State* tolua_S)
02423 {
02424 #ifndef TOLUA_RELEASE
02425 tolua_Error tolua_err;
02426 if (
02427 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
02428 !tolua_isusertype(tolua_S,2,"Message",0,&tolua_err) ||
02429 !tolua_isnoobj(tolua_S,3,&tolua_err)
02430 )
02431 goto tolua_lerror;
02432 else
02433 #endif
02434 {
02435 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
02436 Message* message = ((Message*) tolua_tousertype(tolua_S,2,0));
02437 #ifndef TOLUA_RELEASE
02438 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_remove'",NULL);
02439 #endif
02440 {
02441 self->msgq_remove(message);
02442 }
02443 }
02444 return 0;
02445 #ifndef TOLUA_RELEASE
02446 tolua_lerror:
02447 tolua_error(tolua_S,"#ferror in function 'msgq_remove'.",&tolua_err);
02448 return 0;
02449 #endif
02450 }
02451 #endif //#ifndef TOLUA_DISABLE
02452
02453
02454 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_remove01
02455 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_remove01(lua_State* tolua_S)
02456 {
02457 tolua_Error tolua_err;
02458 if (
02459 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
02460 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
02461 !tolua_isnoobj(tolua_S,3,&tolua_err)
02462 )
02463 goto tolua_lerror;
02464 else
02465 {
02466 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
02467 unsigned int message_id = ((unsigned int) tolua_tonumber(tolua_S,2,0));
02468 #ifndef TOLUA_RELEASE
02469 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_remove'",NULL);
02470 #endif
02471 {
02472 self->msgq_remove(message_id);
02473 }
02474 }
02475 return 0;
02476 tolua_lerror:
02477 return tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_remove00(tolua_S);
02478 }
02479 #endif //#ifndef TOLUA_DISABLE
02480
02481
02482 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_size00
02483 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_size00(lua_State* tolua_S)
02484 {
02485 #ifndef TOLUA_RELEASE
02486 tolua_Error tolua_err;
02487 if (
02488 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
02489 !tolua_isnoobj(tolua_S,2,&tolua_err)
02490 )
02491 goto tolua_lerror;
02492 else
02493 #endif
02494 {
02495 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
02496 #ifndef TOLUA_RELEASE
02497 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_size'",NULL);
02498 #endif
02499 {
02500 unsigned int tolua_ret = (unsigned int) self->msgq_size();
02501 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
02502 }
02503 }
02504 return 1;
02505 #ifndef TOLUA_RELEASE
02506 tolua_lerror:
02507 tolua_error(tolua_S,"#ferror in function 'msgq_size'.",&tolua_err);
02508 return 0;
02509 #endif
02510 }
02511 #endif //#ifndef TOLUA_DISABLE
02512
02513
02514 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_flush00
02515 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_flush00(lua_State* tolua_S)
02516 {
02517 #ifndef TOLUA_RELEASE
02518 tolua_Error tolua_err;
02519 if (
02520 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
02521 !tolua_isnoobj(tolua_S,2,&tolua_err)
02522 )
02523 goto tolua_lerror;
02524 else
02525 #endif
02526 {
02527 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
02528 #ifndef TOLUA_RELEASE
02529 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_flush'",NULL);
02530 #endif
02531 {
02532 self->msgq_flush();
02533 }
02534 }
02535 return 0;
02536 #ifndef TOLUA_RELEASE
02537 tolua_lerror:
02538 tolua_error(tolua_S,"#ferror in function 'msgq_flush'.",&tolua_err);
02539 return 0;
02540 #endif
02541 }
02542 #endif //#ifndef TOLUA_DISABLE
02543
02544
02545 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_lock00
02546 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_lock00(lua_State* tolua_S)
02547 {
02548 #ifndef TOLUA_RELEASE
02549 tolua_Error tolua_err;
02550 if (
02551 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
02552 !tolua_isnoobj(tolua_S,2,&tolua_err)
02553 )
02554 goto tolua_lerror;
02555 else
02556 #endif
02557 {
02558 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
02559 #ifndef TOLUA_RELEASE
02560 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_lock'",NULL);
02561 #endif
02562 {
02563 self->msgq_lock();
02564 }
02565 }
02566 return 0;
02567 #ifndef TOLUA_RELEASE
02568 tolua_lerror:
02569 tolua_error(tolua_S,"#ferror in function 'msgq_lock'.",&tolua_err);
02570 return 0;
02571 #endif
02572 }
02573 #endif //#ifndef TOLUA_DISABLE
02574
02575
02576 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_try_lock00
02577 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_try_lock00(lua_State* tolua_S)
02578 {
02579 #ifndef TOLUA_RELEASE
02580 tolua_Error tolua_err;
02581 if (
02582 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
02583 !tolua_isnoobj(tolua_S,2,&tolua_err)
02584 )
02585 goto tolua_lerror;
02586 else
02587 #endif
02588 {
02589 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
02590 #ifndef TOLUA_RELEASE
02591 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_try_lock'",NULL);
02592 #endif
02593 {
02594 bool tolua_ret = (bool) self->msgq_try_lock();
02595 tolua_pushboolean(tolua_S,(bool)tolua_ret);
02596 }
02597 }
02598 return 1;
02599 #ifndef TOLUA_RELEASE
02600 tolua_lerror:
02601 tolua_error(tolua_S,"#ferror in function 'msgq_try_lock'.",&tolua_err);
02602 return 0;
02603 #endif
02604 }
02605 #endif //#ifndef TOLUA_DISABLE
02606
02607
02608 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_unlock00
02609 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_unlock00(lua_State* tolua_S)
02610 {
02611 #ifndef TOLUA_RELEASE
02612 tolua_Error tolua_err;
02613 if (
02614 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
02615 !tolua_isnoobj(tolua_S,2,&tolua_err)
02616 )
02617 goto tolua_lerror;
02618 else
02619 #endif
02620 {
02621 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
02622 #ifndef TOLUA_RELEASE
02623 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_unlock'",NULL);
02624 #endif
02625 {
02626 self->msgq_unlock();
02627 }
02628 }
02629 return 0;
02630 #ifndef TOLUA_RELEASE
02631 tolua_lerror:
02632 tolua_error(tolua_S,"#ferror in function 'msgq_unlock'.",&tolua_err);
02633 return 0;
02634 #endif
02635 }
02636 #endif //#ifndef TOLUA_DISABLE
02637
02638
02639 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_pop00
02640 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_pop00(lua_State* tolua_S)
02641 {
02642 #ifndef TOLUA_RELEASE
02643 tolua_Error tolua_err;
02644 if (
02645 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
02646 !tolua_isnoobj(tolua_S,2,&tolua_err)
02647 )
02648 goto tolua_lerror;
02649 else
02650 #endif
02651 {
02652 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
02653 #ifndef TOLUA_RELEASE
02654 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_pop'",NULL);
02655 #endif
02656 {
02657 self->msgq_pop();
02658 }
02659 }
02660 return 0;
02661 #ifndef TOLUA_RELEASE
02662 tolua_lerror:
02663 tolua_error(tolua_S,"#ferror in function 'msgq_pop'.",&tolua_err);
02664 return 0;
02665 #endif
02666 }
02667 #endif //#ifndef TOLUA_DISABLE
02668
02669
02670 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_first00
02671 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_first00(lua_State* tolua_S)
02672 {
02673 #ifndef TOLUA_RELEASE
02674 tolua_Error tolua_err;
02675 if (
02676 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
02677 !tolua_isnoobj(tolua_S,2,&tolua_err)
02678 )
02679 goto tolua_lerror;
02680 else
02681 #endif
02682 {
02683 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
02684 #ifndef TOLUA_RELEASE
02685 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_first'",NULL);
02686 #endif
02687 {
02688 Message* tolua_ret = (Message*) self->msgq_first();
02689 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Message");
02690 }
02691 }
02692 return 1;
02693 #ifndef TOLUA_RELEASE
02694 tolua_lerror:
02695 tolua_error(tolua_S,"#ferror in function 'msgq_first'.",&tolua_err);
02696 return 0;
02697 #endif
02698 }
02699 #endif //#ifndef TOLUA_DISABLE
02700
02701
02702 #ifndef TOLUA_DISABLE_tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_empty00
02703 static int tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_empty00(lua_State* tolua_S)
02704 {
02705 #ifndef TOLUA_RELEASE
02706 tolua_Error tolua_err;
02707 if (
02708 !tolua_isusertype(tolua_S,1,"fawkes::GameStateInterface",0,&tolua_err) ||
02709 !tolua_isnoobj(tolua_S,2,&tolua_err)
02710 )
02711 goto tolua_lerror;
02712 else
02713 #endif
02714 {
02715 fawkes::GameStateInterface* self = (fawkes::GameStateInterface*) tolua_tousertype(tolua_S,1,0);
02716 #ifndef TOLUA_RELEASE
02717 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_empty'",NULL);
02718 #endif
02719 {
02720 bool tolua_ret = (bool) self->msgq_empty();
02721 tolua_pushboolean(tolua_S,(bool)tolua_ret);
02722 }
02723 }
02724 return 1;
02725 #ifndef TOLUA_RELEASE
02726 tolua_lerror:
02727 tolua_error(tolua_S,"#ferror in function 'msgq_empty'.",&tolua_err);
02728 return 0;
02729 #endif
02730 }
02731 #endif //#ifndef TOLUA_DISABLE
02732
02733
02734 TOLUA_API int tolua_interfaces_GameStateInterface_open (lua_State* tolua_S)
02735 {
02736 tolua_open(tolua_S);
02737 tolua_reg_types(tolua_S);
02738 tolua_module(tolua_S,NULL,0);
02739 tolua_beginmodule(tolua_S,NULL);
02740 tolua_module(tolua_S,"fawkes",0);
02741 tolua_beginmodule(tolua_S,"fawkes");
02742 tolua_cclass(tolua_S,"GameStateInterface","fawkes::GameStateInterface","Interface",NULL);
02743 tolua_beginmodule(tolua_S,"GameStateInterface");
02744 tolua_variable(tolua_S,"GS_FROZEN",tolua_get_fawkes__GameStateInterface_unsigned_GS_FROZEN,NULL);
02745 tolua_variable(tolua_S,"GS_PLAY",tolua_get_fawkes__GameStateInterface_unsigned_GS_PLAY,NULL);
02746 tolua_variable(tolua_S,"GS_KICK_OFF",tolua_get_fawkes__GameStateInterface_unsigned_GS_KICK_OFF,NULL);
02747 tolua_variable(tolua_S,"GS_DROP_BALL",tolua_get_fawkes__GameStateInterface_unsigned_GS_DROP_BALL,NULL);
02748 tolua_variable(tolua_S,"GS_PENALTY",tolua_get_fawkes__GameStateInterface_unsigned_GS_PENALTY,NULL);
02749 tolua_variable(tolua_S,"GS_CORNER_KICK",tolua_get_fawkes__GameStateInterface_unsigned_GS_CORNER_KICK,NULL);
02750 tolua_variable(tolua_S,"GS_THROW_IN",tolua_get_fawkes__GameStateInterface_unsigned_GS_THROW_IN,NULL);
02751 tolua_variable(tolua_S,"GS_FREE_KICK",tolua_get_fawkes__GameStateInterface_unsigned_GS_FREE_KICK,NULL);
02752 tolua_variable(tolua_S,"GS_GOAL_KICK",tolua_get_fawkes__GameStateInterface_unsigned_GS_GOAL_KICK,NULL);
02753 tolua_variable(tolua_S,"GS_HALF_TIME",tolua_get_fawkes__GameStateInterface_unsigned_GS_HALF_TIME,NULL);
02754 tolua_variable(tolua_S,"GS_SPL_INITIAL",tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_INITIAL,NULL);
02755 tolua_variable(tolua_S,"GS_SPL_READY",tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_READY,NULL);
02756 tolua_variable(tolua_S,"GS_SPL_SET",tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_SET,NULL);
02757 tolua_variable(tolua_S,"GS_SPL_PLAY",tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_PLAY,NULL);
02758 tolua_variable(tolua_S,"GS_SPL_FINISHED",tolua_get_fawkes__GameStateInterface_unsigned_GS_SPL_FINISHED,NULL);
02759 tolua_constant(tolua_S,"TEAM_NONE",fawkes::GameStateInterface::TEAM_NONE);
02760 tolua_constant(tolua_S,"TEAM_CYAN",fawkes::GameStateInterface::TEAM_CYAN);
02761 tolua_constant(tolua_S,"TEAM_MAGENTA",fawkes::GameStateInterface::TEAM_MAGENTA);
02762 tolua_constant(tolua_S,"TEAM_BOTH",fawkes::GameStateInterface::TEAM_BOTH);
02763 tolua_constant(tolua_S,"GOAL_BLUE",fawkes::GameStateInterface::GOAL_BLUE);
02764 tolua_constant(tolua_S,"GOAL_YELLOW",fawkes::GameStateInterface::GOAL_YELLOW);
02765 tolua_constant(tolua_S,"HALF_FIRST",fawkes::GameStateInterface::HALF_FIRST);
02766 tolua_constant(tolua_S,"HALF_SECOND",fawkes::GameStateInterface::HALF_SECOND);
02767 tolua_constant(tolua_S,"ROLE_GOALIE",fawkes::GameStateInterface::ROLE_GOALIE);
02768 tolua_constant(tolua_S,"ROLE_DEFENDER",fawkes::GameStateInterface::ROLE_DEFENDER);
02769 tolua_constant(tolua_S,"ROLE_MID_LEFT",fawkes::GameStateInterface::ROLE_MID_LEFT);
02770 tolua_constant(tolua_S,"ROLE_MID_RIGHT",fawkes::GameStateInterface::ROLE_MID_RIGHT);
02771 tolua_constant(tolua_S,"ROLE_ATTACKER",fawkes::GameStateInterface::ROLE_ATTACKER);
02772 #ifdef __cplusplus
02773 tolua_cclass(tolua_S,"SetTeamColorMessage","fawkes::GameStateInterface::SetTeamColorMessage","Message",tolua_collect_fawkes__GameStateInterface__SetTeamColorMessage);
02774 #else
02775 tolua_cclass(tolua_S,"SetTeamColorMessage","fawkes::GameStateInterface::SetTeamColorMessage","Message",NULL);
02776 #endif
02777 tolua_beginmodule(tolua_S,"SetTeamColorMessage");
02778 tolua_function(tolua_S,"new",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new00);
02779 tolua_function(tolua_S,"new_local",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new00_local);
02780 tolua_function(tolua_S,".call",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new00_local);
02781 tolua_function(tolua_S,"new",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new01);
02782 tolua_function(tolua_S,"new_local",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new01_local);
02783 tolua_function(tolua_S,".call",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_new01_local);
02784 tolua_function(tolua_S,"delete",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_delete00);
02785 tolua_function(tolua_S,"our_team",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_our_team00);
02786 tolua_function(tolua_S,"set_our_team",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_set_our_team00);
02787 tolua_function(tolua_S,"maxlenof_our_team",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetTeamColorMessage_maxlenof_our_team00);
02788 tolua_endmodule(tolua_S);
02789 #ifdef __cplusplus
02790 tolua_cclass(tolua_S,"SetKickoffMessage","fawkes::GameStateInterface::SetKickoffMessage","Message",tolua_collect_fawkes__GameStateInterface__SetKickoffMessage);
02791 #else
02792 tolua_cclass(tolua_S,"SetKickoffMessage","fawkes::GameStateInterface::SetKickoffMessage","Message",NULL);
02793 #endif
02794 tolua_beginmodule(tolua_S,"SetKickoffMessage");
02795 tolua_function(tolua_S,"new",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new00);
02796 tolua_function(tolua_S,"new_local",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new00_local);
02797 tolua_function(tolua_S,".call",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new00_local);
02798 tolua_function(tolua_S,"new",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new01);
02799 tolua_function(tolua_S,"new_local",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new01_local);
02800 tolua_function(tolua_S,".call",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_new01_local);
02801 tolua_function(tolua_S,"delete",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_delete00);
02802 tolua_function(tolua_S,"is_kickoff",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_is_kickoff00);
02803 tolua_function(tolua_S,"set_kickoff",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_set_kickoff00);
02804 tolua_function(tolua_S,"maxlenof_kickoff",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetKickoffMessage_maxlenof_kickoff00);
02805 tolua_endmodule(tolua_S);
02806 #ifdef __cplusplus
02807 tolua_cclass(tolua_S,"SetStateTeamMessage","fawkes::GameStateInterface::SetStateTeamMessage","Message",tolua_collect_fawkes__GameStateInterface__SetStateTeamMessage);
02808 #else
02809 tolua_cclass(tolua_S,"SetStateTeamMessage","fawkes::GameStateInterface::SetStateTeamMessage","Message",NULL);
02810 #endif
02811 tolua_beginmodule(tolua_S,"SetStateTeamMessage");
02812 tolua_function(tolua_S,"new",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new00);
02813 tolua_function(tolua_S,"new_local",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new00_local);
02814 tolua_function(tolua_S,".call",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new00_local);
02815 tolua_function(tolua_S,"new",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new01);
02816 tolua_function(tolua_S,"new_local",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new01_local);
02817 tolua_function(tolua_S,".call",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_new01_local);
02818 tolua_function(tolua_S,"delete",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_delete00);
02819 tolua_function(tolua_S,"state_team",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_state_team00);
02820 tolua_function(tolua_S,"set_state_team",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_set_state_team00);
02821 tolua_function(tolua_S,"maxlenof_state_team",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_SetStateTeamMessage_maxlenof_state_team00);
02822 tolua_endmodule(tolua_S);
02823 tolua_function(tolua_S,"game_state",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_game_state00);
02824 tolua_function(tolua_S,"set_game_state",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_game_state00);
02825 tolua_function(tolua_S,"maxlenof_game_state",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_game_state00);
02826 tolua_function(tolua_S,"state_team",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_state_team00);
02827 tolua_function(tolua_S,"set_state_team",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_state_team00);
02828 tolua_function(tolua_S,"maxlenof_state_team",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_state_team00);
02829 tolua_function(tolua_S,"our_team",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_our_team00);
02830 tolua_function(tolua_S,"set_our_team",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_our_team00);
02831 tolua_function(tolua_S,"maxlenof_our_team",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_our_team00);
02832 tolua_function(tolua_S,"our_goal_color",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_our_goal_color00);
02833 tolua_function(tolua_S,"set_our_goal_color",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_our_goal_color00);
02834 tolua_function(tolua_S,"maxlenof_our_goal_color",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_our_goal_color00);
02835 tolua_function(tolua_S,"half",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_half00);
02836 tolua_function(tolua_S,"set_half",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_half00);
02837 tolua_function(tolua_S,"maxlenof_half",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_half00);
02838 tolua_function(tolua_S,"is_kickoff",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_is_kickoff00);
02839 tolua_function(tolua_S,"set_kickoff",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_kickoff00);
02840 tolua_function(tolua_S,"maxlenof_kickoff",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_kickoff00);
02841 tolua_function(tolua_S,"role",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_role00);
02842 tolua_function(tolua_S,"set_role",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_role00);
02843 tolua_function(tolua_S,"maxlenof_role",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_role00);
02844 tolua_function(tolua_S,"score_cyan",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_score_cyan00);
02845 tolua_function(tolua_S,"set_score_cyan",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_score_cyan00);
02846 tolua_function(tolua_S,"maxlenof_score_cyan",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_score_cyan00);
02847 tolua_function(tolua_S,"score_magenta",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_score_magenta00);
02848 tolua_function(tolua_S,"set_score_magenta",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_score_magenta00);
02849 tolua_function(tolua_S,"maxlenof_score_magenta",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_maxlenof_score_magenta00);
02850 tolua_function(tolua_S,"oftype",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_oftype00);
02851 tolua_function(tolua_S,"datachunk",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_datachunk00);
02852 tolua_function(tolua_S,"datasize",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_datasize00);
02853 tolua_function(tolua_S,"type",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_type00);
02854 tolua_function(tolua_S,"id",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_id00);
02855 tolua_function(tolua_S,"uid",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_uid00);
02856 tolua_function(tolua_S,"serial",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_serial00);
02857 tolua_function(tolua_S,"mem_serial",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_mem_serial00);
02858 tolua_function(tolua_S,".eq",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface__eq00);
02859 tolua_function(tolua_S,"hash",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_hash00);
02860 tolua_function(tolua_S,"hash_size",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_hash_size00);
02861 tolua_function(tolua_S,"hash_printable",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_hash_printable00);
02862 tolua_function(tolua_S,"is_writer",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_is_writer00);
02863 tolua_function(tolua_S,"set_from_chunk",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_set_from_chunk00);
02864 tolua_function(tolua_S,"create_message",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_create_message00);
02865 tolua_function(tolua_S,"read",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_read00);
02866 tolua_function(tolua_S,"write",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_write00);
02867 tolua_function(tolua_S,"has_writer",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_has_writer00);
02868 tolua_function(tolua_S,"num_readers",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_num_readers00);
02869 tolua_function(tolua_S,"msgq_enqueue_copy",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_enqueue_copy00);
02870 tolua_function(tolua_S,"msgq_remove",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_remove00);
02871 tolua_function(tolua_S,"msgq_remove",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_remove01);
02872 tolua_function(tolua_S,"msgq_size",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_size00);
02873 tolua_function(tolua_S,"msgq_flush",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_flush00);
02874 tolua_function(tolua_S,"msgq_lock",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_lock00);
02875 tolua_function(tolua_S,"msgq_try_lock",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_try_lock00);
02876 tolua_function(tolua_S,"msgq_unlock",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_unlock00);
02877 tolua_function(tolua_S,"msgq_pop",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_pop00);
02878 tolua_function(tolua_S,"msgq_first",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_first00);
02879 tolua_function(tolua_S,"msgq_empty",tolua_interfaces_GameStateInterface_fawkes_GameStateInterface_msgq_empty00);
02880 tolua_endmodule(tolua_S);
02881 tolua_endmodule(tolua_S);
02882 tolua_endmodule(tolua_S);
02883 return 1;
02884 }
02885
02886
02887 extern "C" {
02888 #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
02889 TOLUA_API int luaopen_interfaces_GameStateInterface (lua_State* tolua_S) {
02890 return tolua_interfaces_GameStateInterface_open(tolua_S);
02891 };
02892 #endif
02893 }
02894
02895