int lua_cocos2dx_spine_SkeletonAnimation_onAnimationStateEvent(lua_State* tolua_S) { int argc = 0; spine::SkeletonAnimation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonAnimation_onAnimationStateEvent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { int arg0; spEventType arg1; spEvent* arg2; int arg3; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "sp.SkeletonAnimation:onAnimationStateEvent"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "sp.SkeletonAnimation:onAnimationStateEvent"); #pragma warning NO CONVERSION TO NATIVE FOR spEvent* ok = false; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "sp.SkeletonAnimation:onAnimationStateEvent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonAnimation_onAnimationStateEvent'", nullptr); return 0; } cobj->onAnimationStateEvent(arg0, arg1, arg2, arg3); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:onAnimationStateEvent",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonAnimation_onAnimationStateEvent'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_custom_ClipperOffset_addPath(lua_State* tolua_S) { int argc = 0; cocos2d::ClipperOffset* cobj = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClipperOffset",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ClipperOffset*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_custom_ClipperOffset_addPath'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { std::vector<Vec2> arg0; int arg1 = 0; int arg2 = 0; if(!getVec2Array(tolua_S, 2, "cc.ClipperOffset:addPath", arg0)) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_custom_ClipperOffset_addPath'", nullptr); return 0; } if(!luaval_to_int32(tolua_S,3,&arg1,"cc.ClipperOffset:addPath")) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_custom_ClipperOffset_addPath'", nullptr); return 0; } if(!luaval_to_int32(tolua_S,4,&arg2,"cc.ClipperOffset:addPath")) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_custom_ClipperOffset_addPath'", nullptr); return 0; } cobj->addPath(arg0,arg1,arg2); return 0; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClipperOffset:addPath",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_custom_ClipperOffset_addPath'.",&tolua_err); #endif return 0; }
int lua_DecalsFactory_DecalsFactory_createDecal(lua_State* tolua_S) { int argc = 0; bubble_second::DecalsFactory* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"bs.DecalsFactory",0,&tolua_err)) goto tolua_lerror; #endif cobj = (bubble_second::DecalsFactory*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_DecalsFactory_DecalsFactory_createDecal'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { std::string arg0; int arg1; int arg2; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "bs.DecalsFactory:createDecal"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "bs.DecalsFactory:createDecal"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "bs.DecalsFactory:createDecal"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_DecalsFactory_DecalsFactory_createDecal'", nullptr); return 0; } cocos2d::Sprite* ret = cobj->createDecal(arg0, arg1, arg2); object_to_luaval<cocos2d::Sprite>(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "bs.DecalsFactory:createDecal",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_DecalsFactory_DecalsFactory_createDecal'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_threadmanager_ThreadManager_startThread(lua_State* tolua_S) { int argc = 0; ThreadManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ThreadManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ThreadManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_threadmanager_ThreadManager_startThread'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { int arg0; int arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ThreadManager:startThread"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ThreadManager:startThread"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_threadmanager_ThreadManager_startThread'", nullptr); return 0; } bool ret = cobj->startThread(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ThreadManager:startThread",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_threadmanager_ThreadManager_startThread'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_DrawNode3D_setBlendFunc(lua_State* L) { int argc = 0; cocos2d::DrawNode3D* cobj = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(L,1,"cc.DrawNode3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::DrawNode3D*)tolua_tousertype(L,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(L,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode3D_setBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(L)-1; if (argc == 2) { GLenum src, dst; if (!luaval_to_int32(L, 2, (int32_t*)&src, "cc.DrawNode3D:setBlendFunc")) return 0; if (!luaval_to_int32(L, 3, (int32_t*)&dst, "cc.DrawNode3D:setBlendFunc")) return 0; BlendFunc blendFunc = {src, dst}; cobj->setBlendFunc(blendFunc); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode3D:setBlendFunc",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(L,"#ferror in function 'lua_cocos2dx_DrawNode3D_setBlendFunc'.",&tolua_err); #endif return 0; }
int lua_PluginYoutubeLua_PluginYoutube_playPlayList(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"sdkbox.PluginYoutube",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 5) { std::string arg0; int arg1; int arg2; bool arg3; bool arg4; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sdkbox.PluginYoutube:playPlayList"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "sdkbox.PluginYoutube:playPlayList"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "sdkbox.PluginYoutube:playPlayList"); ok &= luaval_to_boolean(tolua_S, 5,&arg3, "sdkbox.PluginYoutube:playPlayList"); ok &= luaval_to_boolean(tolua_S, 6,&arg4, "sdkbox.PluginYoutube:playPlayList"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_PluginYoutubeLua_PluginYoutube_playPlayList'", nullptr); return 0; } sdkbox::PluginYoutube::playPlayList(arg0, arg1, arg2, arg3, arg4); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "sdkbox.PluginYoutube:playPlayList",argc, 5); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_PluginYoutubeLua_PluginYoutube_playPlayList'.",&tolua_err); #endif return 0; }
CC_DEPRECATED_ATTRIBUTE int lua_cocos2dx_DrawNode3D_setBlendFunc01(lua_State* L) { int argc = 0; cocos2d::DrawNode3D* cobj = nullptr; tolua_Error tolua_err; if (!tolua_isusertype(L,1,"cc.DrawNode3D",0,&tolua_err)) goto tolua_lerror; cobj = (cocos2d::DrawNode3D*)tolua_tousertype(L,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(L,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode3D_setBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(L)-1; if (argc != 2) { goto tolua_lerror; } else { CCLOG("setBlendFunc of cc.DrawNode3D will deprecate two int parameter form,please pass a table like {src = xx, dst = xx} as a parameter"); GLenum src, dst; if (!luaval_to_int32(L, 2, (int32_t*)&src, "cc.DrawNode3D:setBlendFunc")) return 0; if (!luaval_to_int32(L, 3, (int32_t*)&dst, "cc.DrawNode3D:setBlendFunc")) return 0; BlendFunc blendFunc = {src, dst}; cobj->setBlendFunc(blendFunc); lua_settop(L, 1); return 1; } tolua_lerror: return lua_cocos2dx_DrawNode3D_setBlendFunc(L); }
int lua_cocos2dx_spine_SkeletonAnimation_getCurrent(lua_State* tolua_S) { int argc = 0; spine::SkeletonAnimation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonAnimation_getCurrent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; spTrackEntry* ret = cobj->getCurrent(); #pragma warning NO CONVERSION FROM NATIVE FOR spTrackEntry*; return 1; } if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); if(!ok) return 0; spTrackEntry* ret = cobj->getCurrent(arg0); #pragma warning NO CONVERSION FROM NATIVE FOR spTrackEntry*; return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getCurrent",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonAnimation_getCurrent'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_spine_SkeletonAnimation_setAnimation(lua_State* tolua_S) { int argc = 0; spine::SkeletonAnimation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonAnimation_setAnimation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { int arg0; const char* arg1; bool arg2; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp); arg1 = arg1_tmp.c_str(); ok &= luaval_to_boolean(tolua_S, 4,&arg2); if(!ok) return 0; spTrackEntry* ret = cobj->setAnimation(arg0, arg1, arg2); #pragma warning NO CONVERSION FROM NATIVE FOR spTrackEntry*; return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setAnimation",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonAnimation_setAnimation'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_spine_SkeletonAnimation_clearTrack(lua_State* tolua_S) { int argc = 0; spine::SkeletonAnimation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonAnimation_clearTrack'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj->clearTrack(); return 0; } if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); if(!ok) return 0; cobj->clearTrack(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "clearTrack",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonAnimation_clearTrack'.",&tolua_err); #endif return 0; }
int lua_DecalsFactory_DecalsFactory_convertDecalNumbleToIndex(lua_State* tolua_S) { int argc = 0; bubble_second::DecalsFactory* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"bs.DecalsFactory",0,&tolua_err)) goto tolua_lerror; #endif cobj = (bubble_second::DecalsFactory*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_DecalsFactory_DecalsFactory_convertDecalNumbleToIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { int arg0; std::string arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "bs.DecalsFactory:convertDecalNumbleToIndex"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "bs.DecalsFactory:convertDecalNumbleToIndex"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_DecalsFactory_DecalsFactory_convertDecalNumbleToIndex'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->convertDecalNumbleToIndex(arg0, arg1); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "bs.DecalsFactory:convertDecalNumbleToIndex",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_DecalsFactory_DecalsFactory_convertDecalNumbleToIndex'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_experimental_TMXLayer_setupTileSprite(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXLayer_setupTileSprite'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { cocos2d::Sprite* arg0; cocos2d::Vec2 arg1; int arg2; ok &= luaval_to_object<cocos2d::Sprite>(tolua_S, 2, "cc.Sprite",&arg0); ok &= luaval_to_vec2(tolua_S, 3, &arg1); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2); if(!ok) return 0; cobj->setupTileSprite(arg0, arg1, arg2); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setupTileSprite",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXLayer_setupTileSprite'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_controller_Controller_receiveExternalKeyEvent(lua_State* tolua_S) { int argc = 0; cocos2d::Controller* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Controller",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Controller*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_controller_Controller_receiveExternalKeyEvent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { int arg0; bool arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Controller:receiveExternalKeyEvent"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Controller:receiveExternalKeyEvent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_controller_Controller_receiveExternalKeyEvent'", nullptr); return 0; } cobj->receiveExternalKeyEvent(arg0, arg1); return 0; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Controller:receiveExternalKeyEvent",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_controller_Controller_receiveExternalKeyEvent'.",&tolua_err); #endif return 0; }
int lua_PluginApteligentLua_PluginApteligent_beginUserflow(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"sdkbox.PluginApteligent",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sdkbox.PluginApteligent:beginUserflow"); if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "sdkbox.PluginApteligent:beginUserflow"); if (!ok) { break; } sdkbox::PluginApteligent::beginUserflow(arg0, arg1); lua_settop(tolua_S, 1); return 1; } } while (0); ok = true; do { if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sdkbox.PluginApteligent:beginUserflow"); if (!ok) { break; } sdkbox::PluginApteligent::beginUserflow(arg0); lua_settop(tolua_S, 1); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "sdkbox.PluginApteligent:beginUserflow",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_PluginApteligentLua_PluginApteligent_beginUserflow'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_mycustomclass_MyCustomClass_addTest(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"MyCustomClass",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { int arg0; int arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "MyCustomClass:addTest"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "MyCustomClass:addTest"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_mycustomclass_MyCustomClass_addTest'", nullptr); return 0; } int ret = MyCustomClass::addTest(arg0, arg1); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "MyCustomClass:addTest",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_mycustomclass_MyCustomClass_addTest'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_threadmanager_ThreadManager_getThreadByID(lua_State* tolua_S) { int argc = 0; ThreadManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ThreadManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ThreadManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_threadmanager_ThreadManager_getThreadByID'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ThreadManager:getThreadByID"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_threadmanager_ThreadManager_getThreadByID'", nullptr); return 0; } TaskThread* ret = cobj->getThreadByID(arg0); object_to_luaval<TaskThread>(tolua_S, "TaskThread",(TaskThread*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ThreadManager:getThreadByID",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_threadmanager_ThreadManager_getThreadByID'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_audioengine_AudioEngine_setFinishCallback(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"ccexp.AudioEngine",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccexp.AudioEngine:setFinishCallback"); #if COCOS2D_DEBUG >= 1 if (!toluafix_isfunction(tolua_S,3,"LUA_FUNCTION",0,&tolua_err)) { goto tolua_lerror; } #endif LUA_FUNCTION handler = ( toluafix_ref_function(tolua_S,3,0)); cocos2d::experimental::AudioEngine::setFinishCallback(arg0, [handler](int audioID, std::string filePath){ LuaStack* stack = LuaEngine::getInstance()->getLuaStack(); stack->pushInt(audioID); stack->pushString(filePath.c_str()); stack->executeFunctionByHandler(handler, 2); LuaEngine::getInstance()->removeScriptHandler(handler); }); return 0; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccexp.AudioEngine:setFinishCallback",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_audioengine_AudioEngine_setFinishCallback'.",&tolua_err); #endif return 0; }
int lua_binarystream_BinaryStream_writeInt(lua_State* tolua_S) { int argc = 0; cocoslua_ext::BinaryStream* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccluaext.BinaryStream",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocoslua_ext::BinaryStream*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_binarystream_BinaryStream_writeInt'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccluaext.BinaryStream:writeInt"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_binarystream_BinaryStream_writeInt'", nullptr); return 0; } cobj->writeInt(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccluaext.BinaryStream:writeInt",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_binarystream_BinaryStream_writeInt'.",&tolua_err); #endif return 0; }
int lua_qt_Cocos2dxBridge_cocos2dxEvent(lua_State* tolua_S) { int argc = 0; Cocos2dxBridge* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"Cocos2dxBridge",0,&tolua_err)) goto tolua_lerror; #endif cobj = (Cocos2dxBridge*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_qt_Cocos2dxBridge_cocos2dxEvent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { int arg0; std::string arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); ok &= luaval_to_std_string(tolua_S, 3,&arg1); if(!ok) return 0; cobj->cocos2dxEvent(arg0, arg1); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cocos2dxEvent",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_qt_Cocos2dxBridge_cocos2dxEvent'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_controller_EventController_setKeyCode(lua_State* tolua_S) { int argc = 0; cocos2d::EventController* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventController",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventController*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_controller_EventController_setKeyCode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventController:setKeyCode"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_controller_EventController_setKeyCode'", nullptr); return 0; } cobj->setKeyCode(arg0); return 0; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventController:setKeyCode",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_controller_EventController_setKeyCode'.",&tolua_err); #endif return 0; }
int lua_glue_auto_GlDisplayService_createWindow(lua_State* L) { display::GlDisplayService* cobj = (display::GlDisplayService*)tolua_tousertype(L, 1, 0); bool ok = true; int width; int height; const char* title; ok &= luaval_to_int32(L, 2, (int *)&width, "display.GlDisplayService:createWindow"); ok &= luaval_to_int32(L, 3, (int *)&height, "display.GlDisplayService:createWindow"); std::string title_tmp; ok &= luaval_to_std_string(L, 4, &title_tmp, "display.GlDisplayService:createWindow"); title = title_tmp.c_str(); if (!ok) { tolua_error(L, "invalid arguments in function 'lua_glue_auto_GlDisplayService_createWindow'", nullptr); return 0; } int ret = cobj->createWindow(width, height, title); tolua_pushnumber(L, (lua_Number)ret); return 1; }
int lua_cocos2dx_audioengine_AudioEngine_getProfile(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"ccexp.AudioEngine",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.AudioEngine:getProfile"); if (!ok) { break; } cocos2d::experimental::AudioProfile* ret = cocos2d::experimental::AudioEngine::getProfile(arg0); object_to_luaval<cocos2d::experimental::AudioProfile>(tolua_S, "ccexp.AudioProfile",(cocos2d::experimental::AudioProfile*)ret); return 1; } } while (0); ok = true; do { if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccexp.AudioEngine:getProfile"); if (!ok) { break; } cocos2d::experimental::AudioProfile* ret = cocos2d::experimental::AudioEngine::getProfile(arg0); object_to_luaval<cocos2d::experimental::AudioProfile>(tolua_S, "ccexp.AudioProfile",(cocos2d::experimental::AudioProfile*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "ccexp.AudioEngine:getProfile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_audioengine_AudioEngine_getProfile'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_experimental_TMXTiledMap_getPropertiesForGID(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXTiledMap_getPropertiesForGID'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); if(!ok) return 0; cocos2d::Value ret = cobj->getPropertiesForGID(arg0); ccvalue_to_luaval(tolua_S, ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getPropertiesForGID",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXTiledMap_getPropertiesForGID'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_experimental_TMXLayer_setLayerOrientation(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXLayer_setLayerOrientation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); if(!ok) return 0; cobj->setLayerOrientation(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setLayerOrientation",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXLayer_setLayerOrientation'.",&tolua_err); #endif return 0; }
int lua_neo_GameHelper_loadLocalVersion(lua_State* tolua_S) { int argc = 0; neo::GameHelper* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"neo.GameHelper",0,&tolua_err)) goto tolua_lerror; #endif cobj = (neo::GameHelper*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_neo_GameHelper_loadLocalVersion'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); if(!ok) return 0; cobj->loadLocalVersion(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "loadLocalVersion",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_neo_GameHelper_loadLocalVersion'.",&tolua_err); #endif return 0; }
int lua_glue_auto_GlDisplayService_removeWindowSizeListener(lua_State* L) { display::GlDisplayService* cobj = (display::GlDisplayService*)tolua_tousertype(L, 1, 0); bool ok = true; int listenerID; ok &= luaval_to_int32(L, 2, (int *)&listenerID, "display.GlDisplayService:removeWindowSizeListener"); if (!ok) { tolua_error(L, "invalid arguments in function 'lua_glue_auto_GlDisplayService_removeWindowSizeListener'", nullptr); return 0; } bool ret = cobj->removeWindowSizeListener(listenerID); tolua_pushboolean(L, (bool)ret); return 1; }
int lua_glue_auto_GlDisplayService_getWindowPointer(lua_State* L) { display::GlDisplayService* cobj = (display::GlDisplayService*)tolua_tousertype(L, 1, 0); bool ok = true; int windowHandle; ok &= luaval_to_int32(L, 2, (int *)&windowHandle, "display.GlDisplayService:getWindowPointer"); if (!ok) { tolua_error(L, "invalid arguments in function 'lua_glue_auto_GlDisplayService_getWindowPointer'", nullptr); return 0; } GLFWwindow* ret = cobj->getWindowPointer(windowHandle); object_to_luaval<GLFWwindow>(L, "glfw.GLFWwindow", ret); return 1; }
int lua_glue_auto_GlDisplayService_isWindowHandleValid(lua_State* L) { display::GlDisplayService* cobj = (display::GlDisplayService*)tolua_tousertype(L, 1, 0); bool ok = true; int windowHandle; ok &= luaval_to_int32(L, 2, (int *)&windowHandle, "display.GlDisplayService:isWindowHandleValid"); if (!ok) { tolua_error(L, "invalid arguments in function 'lua_glue_auto_GlDisplayService_isWindowHandleValid'", nullptr); return 0; } bool ret = cobj->isWindowHandleValid(windowHandle); tolua_pushboolean(L, (bool)ret); return 1; }
int lua_glue_auto_GlDisplayService_setSwapInterval(lua_State* L) { display::GlDisplayService* cobj = (display::GlDisplayService*)tolua_tousertype(L, 1, 0); bool ok = true; int interval; ok &= luaval_to_int32(L, 2, (int *)&interval, "display.GlDisplayService:setSwapInterval"); if (!ok) { tolua_error(L, "invalid arguments in function 'lua_glue_auto_GlDisplayService_setSwapInterval'", nullptr); return 0; } cobj->setSwapInterval(interval); lua_settop(L, 1); return 1; }
int lua_glue_auto_GlDisplayService_swapBuffers(lua_State* L) { display::GlDisplayService* cobj = (display::GlDisplayService*)tolua_tousertype(L, 1, 0); bool ok = true; int windowHandle; ok &= luaval_to_int32(L, 2, (int *)&windowHandle, "display.GlDisplayService:swapBuffers"); if (!ok) { tolua_error(L, "invalid arguments in function 'lua_glue_auto_GlDisplayService_swapBuffers'", nullptr); return 0; } cobj->swapBuffers(windowHandle); lua_settop(L, 1); return 1; }