/* function: api_utilities_fc_version */ static int tolua_common_a_fc_version00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isnoobj(tolua_S,1,&tolua_err) ) goto tolua_lerror; else #endif { lua_State* L = tolua_S; { const char* tolua_ret = (const char*) api_utilities_fc_version(L); tolua_pushstring(tolua_S,(const char*)tolua_ret); } } return 1; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'fc_version'.",&tolua_err); return 0; #endif }
static int tolua__IntensityCEGUI_luaPopulateEntityList00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isusertype(tolua_S,1,"CEGUI::Window",0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { CEGUI::Window* entityListWindow = ((CEGUI::Window*) tolua_tousertype(tolua_S,1,0)); { IntensityCEGUI::luaPopulateEntityList(entityListWindow); } } return 0; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'luaPopulateEntityList'.",&tolua_err); return 0; #endif }
static int tolua__IntensityCEGUI_luaApplySoundSettings00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isusertype(tolua_S,1,"CEGUI::Window",0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { CEGUI::Window* settingsWindow = ((CEGUI::Window*) tolua_tousertype(tolua_S,1,0)); { IntensityCEGUI::luaApplySoundSettings(settingsWindow); } } return 0; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'luaApplySoundSettings'.",&tolua_err); return 0; #endif }
static int tolua_Level_Level_new00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isusertable(tolua_S,1,"Level",0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { { Level* tolua_ret = (Level*) Mtolua_new((Level)()); tolua_pushusertype(tolua_S,(void*)tolua_ret,"Level"); } } return 1; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err); return 0; #endif }
static int tolua__IntensityCEGUI_luaExecutePythonScript00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_iscppstring(tolua_S,1,0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { std::string script = ((std::string) tolua_tocppstring(tolua_S,1,0)); { IntensityCEGUI::luaExecutePythonScript(script); } } return 0; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'luaExecutePythonScript'.",&tolua_err); return 0; #endif }
static int tolua_MessageHandler_kickOffFromRoom(lua_State *tolua_S) { #ifndef TOLUA_TXGUI_RELEASE tolua_Error tolua_err; if( !tolua_isusertype(tolua_S,1,"MessageHandler",0,&tolua_err) || !tolua_isnumber(tolua_S, 2, 0, &tolua_err) || !tolua_isnoobj(tolua_S,3,&tolua_err) ) { tolua_error(tolua_S,"#ferror in function 'MessageHandler::kickOffFromRoom'",&tolua_err); return 0; } #endif MessageHandler* self = (MessageHandler*)tolua_tousertype(tolua_S,1,0); if (self) { int seat = tolua_tonumber(tolua_S, 2, 0); PPVEMessage::Get()->kickOffGuest(seat); } return 1; }
/* function: music_play_music */ static int toluaI_sound_sound___play_music00(lua_State* tolua_S) { if ( !tolua_istype(tolua_S,1,tolua_tag(tolua_S,"Mix_Music"),0) || !tolua_istype(tolua_S,2,LUA_TNUMBER,0) || !tolua_istype(tolua_S,3,LUA_TNUMBER,0) || !tolua_isnoobj(tolua_S,4) ) goto tolua_lerror; else { Mix_Music* music = ((Mix_Music*) tolua_getusertype(tolua_S,1,0)); s32b loop = ((s32b) tolua_getnumber(tolua_S,2,0)); s32b fade_in_time = ((s32b) tolua_getnumber(tolua_S,3,0)); { bool toluaI_ret = (bool) music_play_music(music,loop,fade_in_time); tolua_pushbool(tolua_S,(int)toluaI_ret); } } return 1; tolua_lerror: tolua_error(tolua_S,"#ferror in function '__play_music'."); return 0; }
static int tolua_CCGUI_CCValue_make00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isusertable(tolua_S,1,"CCValue",0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { { CCValue* tolua_ret = (CCValue*) CCValue::make(); tolua_pushusertype(tolua_S,(void*)tolua_ret,"CCValue"); } } return 1; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'make'.",&tolua_err); return 0; #endif }
static int tolua_CCGUI_CCUtil_emptydata00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isusertable(tolua_S,1,"CCUtil",0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { { void* tolua_ret = (void*) CCUtil::emptydata(); tolua_pushuserdata(tolua_S,(void*)tolua_ret); } } return 1; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'emptydata'.",&tolua_err); return 0; #endif }
/* method: new of class Object */ static int tolua_Object_Object_new00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isusertable(tolua_S,1,"Object",0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { { Object* tolua_ret = (Object*) new Object(); tolua_pushusertype(tolua_S,(void*)tolua_ret,"Object"); } } return 1; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err); return 0; #endif }
static int tolua_list_of_trees_Empty_new00_local(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isusertable(tolua_S,1,"Empty",0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { { Empty* tolua_ret = (Empty*) new Empty(); tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"Empty"); } } return 1; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err); return 0; #endif }
/* method: GetSuperName of class Object */ static int tolua_Object_Object_GetSuperName00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isusertable(tolua_S,1,"Object",0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { { char* tolua_ret = (char*) Object::GetSuperName(); tolua_pushstring(tolua_S,(const char*)tolua_ret); } } return 1; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'GetSuperName'.",&tolua_err); return 0; #endif }
/* method: GetStaticMetaInfo of class Object */ static int tolua_Object_Object_GetStaticMetaInfo00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isusertable(tolua_S,1,"Object",0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { { class MetaInfo* tolua_ret = (class MetaInfo*) Object::GetStaticMetaInfo(); tolua_pushusertype(tolua_S,(void*)tolua_ret,"MetaInfo"); } } return 1; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'GetStaticMetaInfo'.",&tolua_err); return 0; #endif }
static int tolua_CCGLProgram_CCGLProgram_create00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isusertable(tolua_S,1,"CCGLProgram",0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { { CCGLProgram* tolua_ret = (CCGLProgram*) CCGLProgram::create(); tolua_pushusertype(tolua_S,(void*)tolua_ret,"CCGLProgram"); } } return 1; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'create'.",&tolua_err); return 0; #endif }
static int tolua_common_wyDevice_getDeviceId00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isusertable(tolua_S,1,"wyDevice",0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { { const char* tolua_ret = (const char*) wyDevice::getDeviceId(); tolua_pushstring(tolua_S,(const char*)tolua_ret); } } return 1; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'getDeviceId'.",&tolua_err); return 0; #endif }
static int tolua_CCGUI_CCUtil_subject00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isusertable(tolua_S,1,"CCUtil",0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { { Subject* tolua_ret = (Subject*) CCUtil::subject(); tolua_pushusertype(tolua_S,(void*)tolua_ret,"Subject"); } } return 1; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'subject'.",&tolua_err); return 0; #endif }
static int tolua_PushOneLayer(lua_State *tolua_S) { #ifndef TOLUA_TXGUI_RELEASE tolua_Error tolua_err; if( !tolua_isusertype(tolua_S,1,"CCLayer",0,&tolua_err) || !tolua_isstring(tolua_S, 2, 0, &tolua_err) || !tolua_isstring(tolua_S, 3, 0, &tolua_err) || !tolua_isnoobj(tolua_S, 4, &tolua_err) ) { tolua_error(tolua_S,"#ferror in function 'PushOneLayer'",&tolua_err); return 0; } #endif CCLayer* layer = (CCLayer*)(tolua_tousertype(tolua_S, 1, NULL)); std::string param_1 = tolua_tostring(tolua_S,2,NULL); std::string param_2 = tolua_tostring(tolua_S,3,NULL); MainMenuLayer::PushOneLayer(layer,param_1,param_2); return 0; }
static int tolua_CCGUI_MCCUtil_getMacAddress00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isusertable(tolua_S,1,"MCCUtil",0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { { std::string tolua_ret = (std::string) MCCUtil::getMacAddress(); tolua_pushcppstring(tolua_S,(const char*)tolua_ret); } } return 1; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'getMacAddress'.",&tolua_err); return 0; #endif }
static int tolua_MessageHandler_pvp_setReady(lua_State *tolua_S) { #ifndef TOLUA_TXGUI_RELEASE tolua_Error tolua_err; if( !tolua_isusertype(tolua_S,1,"MessageHandler",0,&tolua_err) || !tolua_isboolean(tolua_S, 2, 0, &tolua_err) || !tolua_isnoobj(tolua_S,3,&tolua_err) ) { tolua_error(tolua_S,"#ferror in function 'MessageHandler::setReady'",&tolua_err); return 0; } #endif MessageHandler* self = (MessageHandler*)tolua_tousertype(tolua_S,1,0); if (self) { bool bReady = tolua_toboolean(tolua_S, 2, 0) != 0; /// send get room list request PVPMessage::Get()->pvp_setReady(bReady); } return 1; }
static int tolua_CCGUI_MCCUtil_isEnglish00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isusertable(tolua_S,1,"MCCUtil",0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { { bool tolua_ret = (bool) MCCUtil::isEnglish(); tolua_pushboolean(tolua_S,(bool)tolua_ret); } } return 1; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'isEnglish'.",&tolua_err); return 0; #endif }
static int tolua_Level_Level_addActor01(lua_State* tolua_S) { tolua_Error tolua_err; if ( !tolua_isusertype(tolua_S,1,"Level",0,&tolua_err) || !tolua_isusertype(tolua_S,2,"Ghost",0,&tolua_err) || !tolua_isnoobj(tolua_S,3,&tolua_err) ) goto tolua_lerror; else { Level* self = (Level*) tolua_tousertype(tolua_S,1,0); Ghost* node = ((Ghost*) tolua_tousertype(tolua_S,2,0)); #ifndef TOLUA_RELEASE if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addActor'", NULL); #endif { self->addActor(node); } } return 0; tolua_lerror: return tolua_Level_Level_addActor00(tolua_S); }
static int tolua_CCGUI_MCCUtil_checkNet00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isusertable(tolua_S,1,"MCCUtil",0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { { int tolua_ret = (int) MCCUtil::checkNet(); tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); } } return 1; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'checkNet'.",&tolua_err); return 0; #endif }
static int tolua__IntensityCEGUI_luaSetRightWeaponSparkle00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isnumber(tolua_S,1,0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { int id = ((int) tolua_tonumber(tolua_S,1,0)); { IntensityCEGUI::luaSetRightWeaponSparkle(id); } } return 0; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'luaSetRightWeaponSparkle'.",&tolua_err); return 0; #endif }
static int tolua_gl_gl_glClear00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isnumber(tolua_S,1,0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { unsigned int tolua_var_5 = ((unsigned int) tolua_tonumber(tolua_S,1,0)); { glClear(tolua_var_5); } } return 0; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'glClear'.",&tolua_err); return 0; #endif }
static int tolua__IntensityCEGUI_queueEntityCreation00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_iscppstring(tolua_S,1,0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { std::string _class = ((std::string) tolua_tocppstring(tolua_S,1,0)); { IntensityCEGUI::queueEntityCreation(_class); } } return 0; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'queueEntityCreation'.",&tolua_err); return 0; #endif }
static int tolua_LuaMainAPI_API_LoadLuaFile00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isstring(tolua_S,1,0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { char* szLUAFileName = ((char*) tolua_tostring(tolua_S,1,0)); { API_LoadLuaFile(szLUAFileName); } } return 0; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'API_LoadLuaFile'.",&tolua_err); return 0; #endif }
static int tolua__IntensityCEGUI_luaFocusOnEntity00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isnumber(tolua_S,1,0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { int uniqueId = ((int) tolua_tonumber(tolua_S,1,0)); { IntensityCEGUI::luaFocusOnEntity(uniqueId); } } return 0; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'luaFocusOnEntity'.",&tolua_err); return 0; #endif }
/* method: new of class myClass */ static int tolua_toexport_myClass_new00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isusertable(tolua_S,1,"myClass",0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { { myClass* tolua_ret = (myClass*) new myClass(); tolua_pushusertype(tolua_S,(void*)tolua_ret,"myClass"); } } return 1; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err); return 0; #endif }
static int tolua_Interface_Overseer_getSingleton00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isusertable(tolua_S,1,"Overseer",0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { { Overseer& tolua_ret = (Overseer&) Overseer::getSingleton(); tolua_pushusertype(tolua_S,(void*)&tolua_ret,"Overseer"); } } return 1; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'getSingleton'.",&tolua_err); return 0; #endif }
/* method: getDataRootDirectory of class Global */ static int tolua_LuaAPI_Global_getDataRootDirectory00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isusertype(tolua_S,1,"Global",0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { Global* self = (Global*) tolua_tousertype(tolua_S,1,0); #ifndef TOLUA_RELEASE if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getDataRootDirectory'",NULL); #endif { tstring tolua_ret = self->getDataRootDirectory(); { #ifdef __cplusplus void* tolua_obj = new tstring(tolua_ret); tolua_pushusertype(tolua_S,tolua_clone(tolua_S,tolua_obj,tolua_collect_tstring),"tstring"); #else void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(tstring)); tolua_pushusertype(tolua_S,tolua_clone(tolua_S,tolua_obj,NULL),"tstring"); #endif } } } return 1; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'getDataRootDirectory'.",&tolua_err); return 0; #endif }