int lua_cocos2dx_TalkingDataGA_setLocation(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,"TalkingDataGA",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; double arg1; ok &= luaval_to_number(tolua_S, 2,&arg0); ok &= luaval_to_number(tolua_S, 3,&arg1); if(!ok) return 0; TDCCTalkingDataGA::setLatitude(arg0, arg1); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "setLocation",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TalkingDataGA_setLocation'.",&tolua_err); #endif return 0; }
int lua_PluginTuneLua_PluginTune_setLatitude(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.PluginTune",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 3) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "sdkbox.PluginTune:setLatitude"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "sdkbox.PluginTune:setLatitude"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "sdkbox.PluginTune:setLatitude"); if (!ok) { break; } sdkbox::PluginTune::setLatitude(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } } while (0); ok = true; do { if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "sdkbox.PluginTune:setLatitude"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "sdkbox.PluginTune:setLatitude"); if (!ok) { break; } sdkbox::PluginTune::setLatitude(arg0, arg1); 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.PluginTune:setLatitude",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_PluginTuneLua_PluginTune_setLatitude'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_tui_TuiManager_createParticle(lua_State* tolua_S) { int argc = 0; cocos2d::tui::TuiManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"tui.TuiManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::tui::TuiManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_tui_TuiManager_createParticle'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { double arg0; const char* arg1; double arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0); std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp); arg1 = arg1_tmp.c_str(); ok &= luaval_to_number(tolua_S, 4,&arg2); ok &= luaval_to_number(tolua_S, 5,&arg3); if(!ok) return 0; cocos2d::ParticleSystemQuad* ret = cobj->createParticle(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::ParticleSystemQuad>(tolua_S, "cc.ParticleSystemQuad",(cocos2d::ParticleSystemQuad*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "createParticle",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_tui_TuiManager_createParticle'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_tui_TuiManager_setAdaptResolution(lua_State* tolua_S) { int argc = 0; cocos2d::tui::TuiManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "tui.TuiManager", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::tui::TuiManager*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_cocos2dx_tui_TuiManager_setAdaptResolution'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S) - 1; if (argc == 3) { bool arg0; double arg1; double arg2; ok &= luaval_to_boolean(tolua_S, 2, &arg0); ok &= luaval_to_number(tolua_S, 3, &arg1); ok &= luaval_to_number(tolua_S, 4, &arg2); if (!ok) return 0; cobj->setAdaptResolution(arg0,arg1,arg2); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setAdaptResolution", argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_cocos2dx_tui_TuiManager_setAdaptResolution'.", &tolua_err); #endif return 0; }
int lua_cocos2dx_TDGAVirtualCurrency_onReward(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,"TDGAVirtualCurrency",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; const char* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0); std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp); arg1 = arg1_tmp.c_str(); if(!ok) return 0; TDCCVirtualCurrency::onReward(arg0, arg1); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "onReward",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TDGAVirtualCurrency_onReward'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_spine_SkeletonAnimation_setMix(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_setMix'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { std::string arg0; std::string arg1; double arg2; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonAnimation:setMix"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonAnimation:setMix"); ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonAnimation:setMix"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonAnimation_setMix'", nullptr); return 0; } cobj->setMix(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setMix",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonAnimation_setMix'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_TDGAVirtualCurrency_onChargeRequest(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,"TDGAVirtualCurrency",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 6) { const char* arg0; const char* arg1; double arg2; const char* arg3; double arg4; const char* arg5; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp); arg0 = arg0_tmp.c_str(); std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp); arg1 = arg1_tmp.c_str(); ok &= luaval_to_number(tolua_S, 4,&arg2); std::string arg3_tmp; ok &= luaval_to_std_string(tolua_S, 5, &arg3_tmp); arg3 = arg3_tmp.c_str(); ok &= luaval_to_number(tolua_S, 6,&arg4); std::string arg5_tmp; ok &= luaval_to_std_string(tolua_S, 7, &arg5_tmp); arg5 = arg5_tmp.c_str(); if(!ok) return 0; TDCCVirtualCurrency::onChargeRequest(arg0, arg1, arg2, arg3, arg4, arg5); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "onChargeRequest",argc, 6); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TDGAVirtualCurrency_onChargeRequest'.",&tolua_err); #endif return 0; }
int lua_Blur_Action_RedFilter_create(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,"RedFilter",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 3) { double arg0; double arg1; double arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "RedFilter:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "RedFilter:create"); ok &= luaval_to_number(tolua_S, 4,&arg2, "RedFilter:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_Blur_Action_RedFilter_create'", nullptr); return 0; } RedFilter* ret = RedFilter::create(arg0, arg1, arg2); object_to_luaval<RedFilter>(tolua_S, "RedFilter",(RedFilter*)ret); return 1; } if (argc == 4) { double arg0; double arg1; double arg2; bool arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "RedFilter:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "RedFilter:create"); ok &= luaval_to_number(tolua_S, 4,&arg2, "RedFilter:create"); ok &= luaval_to_boolean(tolua_S, 5,&arg3, "RedFilter:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_Blur_Action_RedFilter_create'", nullptr); return 0; } RedFilter* ret = RedFilter::create(arg0, arg1, arg2, arg3); object_to_luaval<RedFilter>(tolua_S, "RedFilter",(RedFilter*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "RedFilter:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_Blur_Action_RedFilter_create'.",&tolua_err); #endif return 0; }
int lua_PluginFyberLua_PluginFyber_setLocation(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.PluginFyber",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; double arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "sdkbox.PluginFyber:setLocation"); ok &= luaval_to_number(tolua_S, 3,&arg1, "sdkbox.PluginFyber:setLocation"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_PluginFyberLua_PluginFyber_setLocation'", nullptr); return 0; } sdkbox::PluginFyber::setLocation(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "sdkbox.PluginFyber:setLocation",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_PluginFyberLua_PluginFyber_setLocation'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_cocosdenshion_SimpleAudioEngine_setEffectsVolume(lua_State* tolua_S) { int argc = 0; CocosDenshion::SimpleAudioEngine* 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.SimpleAudioEngine",0,&tolua_err)) goto tolua_lerror; #endif cobj = (CocosDenshion::SimpleAudioEngine*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_cocosdenshion_SimpleAudioEngine_setEffectsVolume'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.SimpleAudioEngine:setEffectsVolume"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_cocosdenshion_SimpleAudioEngine_setEffectsVolume'", nullptr); return 0; } cobj->setEffectsVolume(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SimpleAudioEngine:setEffectsVolume",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_cocosdenshion_SimpleAudioEngine_setEffectsVolume'.",&tolua_err); #endif return 0; }
int lua_Blur_Action_BoxfilterAct_update(lua_State* tolua_S) { int argc = 0; BoxfilterAct* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"BoxfilterAct",0,&tolua_err)) goto tolua_lerror; #endif cobj = (BoxfilterAct*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_Blur_Action_BoxfilterAct_update'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "BoxfilterAct:update"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_Blur_Action_BoxfilterAct_update'", nullptr); return 0; } cobj->update(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "BoxfilterAct:update",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_Blur_Action_BoxfilterAct_update'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_spine_SkeletonRenderer_setTimeScale(lua_State* tolua_S) { int argc = 0; spine::SkeletonRenderer* 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.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_setTimeScale'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "sp.SkeletonRenderer:setTimeScale"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonRenderer_setTimeScale'", nullptr); return 0; } cobj->setTimeScale(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setTimeScale",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_setTimeScale'.",&tolua_err); #endif return 0; }
int lua_glue_auto_InputDelegate_setMousePos(lua_State* L) { input::InputDelegate* cobj = (input::InputDelegate*)tolua_tousertype(L, 1, 0); bool ok = true; int windowHandle; double xPos; double yPos; ok &= luaval_to_int32(L, 2, (int *)&windowHandle, "input.InputDelegate:setMousePos"); ok &= luaval_to_number(L, 3, &xPos, "input.InputDelegate:setMousePos"); ok &= luaval_to_number(L, 4, &yPos, "input.InputDelegate:setMousePos"); if (!ok) { tolua_error(L, "invalid arguments in function 'lua_glue_auto_InputDelegate_setMousePos'", nullptr); return 0; } cobj->setMousePos(windowHandle, xPos, yPos); lua_settop(L, 1); return 1; }
int lua_PluginAdColonyLua_PluginAdColony_notifyIAPComplete(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.PluginAdColony",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 5) { std::string arg0; std::string arg1; int arg2; double arg3; std::string arg4; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sdkbox.PluginAdColony:notifyIAPComplete"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sdkbox.PluginAdColony:notifyIAPComplete"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "sdkbox.PluginAdColony:notifyIAPComplete"); ok &= luaval_to_number(tolua_S, 5,&arg3, "sdkbox.PluginAdColony:notifyIAPComplete"); ok &= luaval_to_std_string(tolua_S, 6,&arg4, "sdkbox.PluginAdColony:notifyIAPComplete"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_PluginAdColonyLua_PluginAdColony_notifyIAPComplete'", nullptr); return 0; } sdkbox::PluginAdColony::notifyIAPComplete(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.PluginAdColony:notifyIAPComplete",argc, 5); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_PluginAdColonyLua_PluginAdColony_notifyIAPComplete'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_tui_TuiUtil_createAnimWithNameAndNum(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,"tui.TuiUtil",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 4) { const char* arg0; int arg1; double arg2; unsigned int arg3; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp); arg0 = arg0_tmp.c_str(); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); ok &= luaval_to_number(tolua_S, 4,&arg2); ok &= luaval_to_uint32(tolua_S, 5,&arg3); if(!ok) return 0; cocos2d::Animation* ret = cocos2d::tui::TuiUtil::createAnimWithNameAndNum(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::Animation>(tolua_S, "cc.Animation",(cocos2d::Animation*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "createAnimWithNameAndNum",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_tui_TuiUtil_createAnimWithNameAndNum'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_audioengine_AudioEngine_setCurrentTime(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; double arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccexp.AudioEngine:setCurrentTime"); ok &= luaval_to_number(tolua_S, 3,&arg1, "ccexp.AudioEngine:setCurrentTime"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_setCurrentTime'", nullptr); return 0; } bool ret = cocos2d::experimental::AudioEngine::setCurrentTime(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 ", "ccexp.AudioEngine:setCurrentTime",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_audioengine_AudioEngine_setCurrentTime'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_experimental_SpritePolygon_create(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.SpritePolygon",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 3) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.SpritePolygon:create"); if (!ok) { break; } std::vector<cocos2d::Vec2> arg1; if (isVectorV3FC4BT2F(tolua_S, 3)) break; ok &= luaval_to_std_vector_vec2(tolua_S, 3, &arg1); if (!ok) { break; } std::vector<unsigned short> arg2; ok &= luaval_to_std_vector_ushort(tolua_S, 4, &arg2, "ccexp.SpritePolygon:create"); if (!ok) { break; } cocos2d::experimental::SpritePolygon* ret = cocos2d::experimental::SpritePolygon::create(arg0, arg1, arg2); object_to_luaval<cocos2d::experimental::SpritePolygon>(tolua_S, "ccexp.SpritePolygon",(cocos2d::experimental::SpritePolygon*)ret); return 1; } } while (0); ok = true; do { if (argc == 4) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.SpritePolygon:create"); if (!ok) { break; } std::vector<cocos2d::Vec2> arg1; ok &= luaval_to_std_vector_vec2(tolua_S, 3, &arg1); if (!ok) { break; } std::vector<unsigned short> arg2; ok &= luaval_to_std_vector_ushort(tolua_S, 4, &arg2, "ccexp.SpritePolygon:create"); if (!ok) { break; } cocos2d::Rect arg3; ok &= luaval_to_rect(tolua_S, 5, &arg3, "ccexp.SpritePolygon:create"); if (!ok) { break; } cocos2d::experimental::SpritePolygon* ret = cocos2d::experimental::SpritePolygon::create(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::experimental::SpritePolygon>(tolua_S, "ccexp.SpritePolygon",(cocos2d::experimental::SpritePolygon*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.SpritePolygon:create"); if (!ok) { break; } std::vector<cocos2d::V3F_C4B_T2F> arg1; if (!isVectorV3FC4BT2F(tolua_S, 3)) break; ok &= luaval_to_std_vector_v3f_c4b_t2f(tolua_S, 3, &arg1); if (!ok) { break; } std::vector<unsigned short> arg2; ok &= luaval_to_std_vector_ushort(tolua_S, 4, &arg2, "ccexp.SpritePolygon:create"); if (!ok) { break; } cocos2d::experimental::SpritePolygon* ret = cocos2d::experimental::SpritePolygon::create(arg0, arg1, arg2); object_to_luaval<cocos2d::experimental::SpritePolygon>(tolua_S, "ccexp.SpritePolygon",(cocos2d::experimental::SpritePolygon*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.SpritePolygon:create"); if (!ok) { break; } std::vector<cocos2d::Vec2> arg1; ok &= luaval_to_std_vector_vec2(tolua_S, 3, &arg1); if (!ok) { break; } cocos2d::experimental::SpritePolygon* ret = cocos2d::experimental::SpritePolygon::create(arg0, arg1); object_to_luaval<cocos2d::experimental::SpritePolygon>(tolua_S, "ccexp.SpritePolygon",(cocos2d::experimental::SpritePolygon*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.SpritePolygon:create"); if (!ok) { break; } std::vector<cocos2d::Vec2> arg1; if (isVectorV3FC4BT2F(tolua_S, 3)) break; ok &= luaval_to_std_vector_vec2(tolua_S, 3, &arg1); if (!ok) { break; } cocos2d::Rect arg2; ok &= luaval_to_rect(tolua_S, 4, &arg2, "ccexp.SpritePolygon:create"); if (!ok) { break; } cocos2d::experimental::SpritePolygon* ret = cocos2d::experimental::SpritePolygon::create(arg0, arg1, arg2); object_to_luaval<cocos2d::experimental::SpritePolygon>(tolua_S, "ccexp.SpritePolygon",(cocos2d::experimental::SpritePolygon*)ret); return 1; } } while (0); ok = true; do { if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.SpritePolygon:create"); if (!ok) { break; } cocos2d::experimental::SpritePolygon* ret = cocos2d::experimental::SpritePolygon::create(arg0); object_to_luaval<cocos2d::experimental::SpritePolygon>(tolua_S, "ccexp.SpritePolygon",(cocos2d::experimental::SpritePolygon*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.SpritePolygon:create"); if (!ok) { break; } cocos2d::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "ccexp.SpritePolygon:create"); if (!ok) { break; } cocos2d::experimental::SpritePolygon* ret = cocos2d::experimental::SpritePolygon::create(arg0, arg1); object_to_luaval<cocos2d::experimental::SpritePolygon>(tolua_S, "ccexp.SpritePolygon",(cocos2d::experimental::SpritePolygon*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.SpritePolygon:create"); if (!ok) { break; } cocos2d::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "ccexp.SpritePolygon:create"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "ccexp.SpritePolygon:create"); if (!ok) { break; } cocos2d::experimental::SpritePolygon* ret = cocos2d::experimental::SpritePolygon::create(arg0, arg1, arg2); object_to_luaval<cocos2d::experimental::SpritePolygon>(tolua_S, "ccexp.SpritePolygon",(cocos2d::experimental::SpritePolygon*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "ccexp.SpritePolygon:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_SpritePolygon_create'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_tui_TuiManager_createControl(lua_State* tolua_S) { int argc = 0; cocos2d::tui::TuiManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"tui.TuiManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::tui::TuiManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_tui_TuiManager_createControl'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 6) { double arg0; const char* arg1; const char* arg2; double arg3; double arg4; double arg5; double arg6; ok &= luaval_to_number(tolua_S, 2,&arg0); std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp); arg1 = arg1_tmp.c_str(); std::string arg2_tmp; ok &= luaval_to_std_string(tolua_S, 4, &arg2_tmp); arg2 = arg2_tmp.c_str(); ok &= luaval_to_number(tolua_S, 5,&arg3); ok &= luaval_to_number(tolua_S, 6,&arg4); ok &= luaval_to_number(tolua_S, 7,&arg5); ok &= luaval_to_number(tolua_S, 8, &arg6); if(!ok) return 0; cocos2d::cocoswidget::CControlView* ret = cobj->createControl(arg0, arg1, arg2, arg3, arg4, arg5, arg6); object_to_luaval<cocos2d::cocoswidget::CControlView>(tolua_S, "ccw.CControlView",(cocos2d::cocoswidget::CControlView*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "createControl",argc, 6); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_tui_TuiManager_createControl'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_audioengine_AudioEngine_play2d(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 == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.AudioEngine:play2d"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_play2d'", nullptr); return 0; } int ret = cocos2d::experimental::AudioEngine::play2d(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } if (argc == 2) { std::string arg0; bool arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.AudioEngine:play2d"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ccexp.AudioEngine:play2d"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_play2d'", nullptr); return 0; } int ret = cocos2d::experimental::AudioEngine::play2d(arg0, arg1); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } if (argc == 3) { std::string arg0; bool arg1; double arg2; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.AudioEngine:play2d"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ccexp.AudioEngine:play2d"); ok &= luaval_to_number(tolua_S, 4,&arg2, "ccexp.AudioEngine:play2d"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_play2d'", nullptr); return 0; } int ret = cocos2d::experimental::AudioEngine::play2d(arg0, arg1, arg2); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } if (argc == 4) { std::string arg0; bool arg1; double arg2; const cocos2d::experimental::AudioProfile* arg3; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.AudioEngine:play2d"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ccexp.AudioEngine:play2d"); ok &= luaval_to_number(tolua_S, 4,&arg2, "ccexp.AudioEngine:play2d"); ok &= luaval_to_object<const cocos2d::experimental::AudioProfile>(tolua_S, 5, "ccexp.AudioProfile",&arg3, "ccexp.AudioEngine:play2d"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_play2d'", nullptr); return 0; } int ret = cocos2d::experimental::AudioEngine::play2d(arg0, arg1, arg2, arg3); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccexp.AudioEngine:play2d",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_audioengine_AudioEngine_play2d'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_tui_TuiManager_createArmature(lua_State* tolua_S) { int argc = 0; cocos2d::tui::TuiManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"tui.TuiManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::tui::TuiManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_tui_TuiManager_createArmature'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 8) { double arg0; const char* arg1; const char* arg2; const char* arg3; const char* arg4; const char* arg5; double arg6; double arg7; double arg8; ok &= luaval_to_number(tolua_S, 2,&arg0); std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp); arg1 = arg1_tmp.c_str(); std::string arg2_tmp; ok &= luaval_to_std_string(tolua_S, 4, &arg2_tmp); arg2 = arg2_tmp.c_str(); std::string arg3_tmp; ok &= luaval_to_std_string(tolua_S, 5, &arg3_tmp); arg3 = arg3_tmp.c_str(); std::string arg4_tmp; ok &= luaval_to_std_string(tolua_S, 6, &arg4_tmp); arg4 = arg4_tmp.c_str(); std::string arg5_tmp; ok &= luaval_to_std_string(tolua_S, 7, &arg5_tmp); arg5 = arg5_tmp.c_str(); ok &= luaval_to_number(tolua_S, 8,&arg6); ok &= luaval_to_number(tolua_S, 9,&arg7); ok &= luaval_to_number(tolua_S, 10,&arg8); if(!ok) return 0; cocostudio::Armature* ret = cobj->createArmature(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7,arg8); object_to_luaval<cocostudio::Armature>(tolua_S, "ccs.Armature",(cocostudio::Armature*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "createArmature",argc, 8); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_tui_TuiManager_createArmature'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_cocosdenshion_SimpleAudioEngine_playEffect(lua_State* tolua_S) { int argc = 0; CocosDenshion::SimpleAudioEngine* 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.SimpleAudioEngine",0,&tolua_err)) goto tolua_lerror; #endif cobj = (CocosDenshion::SimpleAudioEngine*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_cocosdenshion_SimpleAudioEngine_playEffect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.SimpleAudioEngine:playEffect"); arg0 = arg0_tmp.c_str(); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_cocosdenshion_SimpleAudioEngine_playEffect'", nullptr); return 0; } unsigned int ret = cobj->playEffect(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } if (argc == 2) { const char* arg0; bool arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.SimpleAudioEngine:playEffect"); arg0 = arg0_tmp.c_str(); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.SimpleAudioEngine:playEffect"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_cocosdenshion_SimpleAudioEngine_playEffect'", nullptr); return 0; } unsigned int ret = cobj->playEffect(arg0, arg1); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } if (argc == 3) { const char* arg0; bool arg1; double arg2; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.SimpleAudioEngine:playEffect"); arg0 = arg0_tmp.c_str(); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.SimpleAudioEngine:playEffect"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.SimpleAudioEngine:playEffect"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_cocosdenshion_SimpleAudioEngine_playEffect'", nullptr); return 0; } unsigned int ret = cobj->playEffect(arg0, arg1, arg2); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } if (argc == 4) { const char* arg0; bool arg1; double arg2; double arg3; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.SimpleAudioEngine:playEffect"); arg0 = arg0_tmp.c_str(); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.SimpleAudioEngine:playEffect"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.SimpleAudioEngine:playEffect"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.SimpleAudioEngine:playEffect"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_cocosdenshion_SimpleAudioEngine_playEffect'", nullptr); return 0; } unsigned int ret = cobj->playEffect(arg0, arg1, arg2, arg3); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } if (argc == 5) { const char* arg0; bool arg1; double arg2; double arg3; double arg4; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.SimpleAudioEngine:playEffect"); arg0 = arg0_tmp.c_str(); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.SimpleAudioEngine:playEffect"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.SimpleAudioEngine:playEffect"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.SimpleAudioEngine:playEffect"); ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.SimpleAudioEngine:playEffect"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_cocosdenshion_SimpleAudioEngine_playEffect'", nullptr); return 0; } unsigned int ret = cobj->playEffect(arg0, arg1, arg2, arg3, arg4); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SimpleAudioEngine:playEffect",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_cocosdenshion_SimpleAudioEngine_playEffect'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_physics_PhysicsBody_createEdgeChain(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,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::Point* arg0; int arg1; do { ok = luaval_to_array_of_Point(tolua_S, 2, &arg0, &arg1); if (nullptr == arg0){ LUA_PRECONDITION( arg0, "Invalid Native Object"); }} while (0); if(!ok) { CC_SAFE_FREE(arg0); return 0; } cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createEdgeChain(arg0, arg1); CC_SAFE_FREE(arg0); do { if (nullptr != ret) { int ID = ret->_ID; int* luaID = &ret->_luaID; toluafix_pushusertype_ccobject(tolua_S,ID, luaID, (void*)ret, "cc.PhysicsBody"); } else { lua_pushnil(tolua_S); } } while (0); return 1; } if (argc == 2) { cocos2d::Point* arg0; int arg1; cocos2d::PhysicsMaterial arg2; do { ok = luaval_to_array_of_Point(tolua_S, 2, &arg0, &arg1); if (nullptr == arg0){ LUA_PRECONDITION( arg0, "Invalid Native Object"); }} while (0); ok &= luaval_to_physics_material(tolua_S, 3, &arg2); if(!ok) { CC_SAFE_FREE(arg0); return 0; } cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createEdgeChain(arg0, arg1, arg2); CC_SAFE_FREE(arg0); do { if (nullptr != ret) { int ID = ret->_ID; int* luaID = &ret->_luaID; toluafix_pushusertype_ccobject(tolua_S,ID, luaID, (void*)ret, "cc.PhysicsBody"); } else { lua_pushnil(tolua_S); } } while (0); return 1; } if (argc == 3) { cocos2d::Point* arg0; int arg1; cocos2d::PhysicsMaterial arg2; double arg3; do { ok = luaval_to_array_of_Point(tolua_S, 2, &arg0, &arg1); if (nullptr == arg0){ LUA_PRECONDITION( arg0, "Invalid Native Object"); }} while (0); ok &= luaval_to_physics_material(tolua_S, 3, &arg2); ok &= luaval_to_number(tolua_S, 4,&arg3); if(!ok) { CC_SAFE_FREE(arg0); return 0; } cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createEdgeChain(arg0, arg1, arg2, arg3); CC_SAFE_FREE(arg0); do { if (nullptr != ret) { int ID = ret->_ID; int* luaID = &ret->_luaID; toluafix_pushusertype_ccobject(tolua_S,ID, luaID, (void*)ret, "cc.PhysicsBody"); } else { lua_pushnil(tolua_S); } } while (0); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "createEdgeChain",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_physics_PhysicsBody_createEdgeChain'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_physics_PhysicsShapeEdgeChain_create(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,"cc.PhysicsShapeEdgeChain",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::Point* arg0; int arg1 = 0; do { ok = luaval_to_array_of_Point(tolua_S, 2, &arg0, &arg1); if (nullptr == arg0){ LUA_PRECONDITION( arg0, "Invalid Native Object"); }} while (0); if(!ok) { CC_SAFE_FREE(arg0); return 0; } cocos2d::PhysicsShapeEdgeChain* ret = cocos2d::PhysicsShapeEdgeChain::create(arg0, arg1); CC_SAFE_FREE(arg0); object_to_luaval<cocos2d::PhysicsShapeEdgeChain>(tolua_S, "cc.PhysicsShapeEdgeChain",(cocos2d::PhysicsShapeEdgeChain*)ret); return 1; } if (argc == 2) { cocos2d::Point* arg0; int arg1 = 0; cocos2d::PhysicsMaterial arg2; do { ok = luaval_to_array_of_Point(tolua_S, 2, &arg0, &arg1); if (nullptr == arg0){ LUA_PRECONDITION( arg0, "Invalid Native Object"); }} while (0); ok &= luaval_to_physics_material(tolua_S, 3, &arg2); if(!ok) { CC_SAFE_FREE(arg0); return 0; } cocos2d::PhysicsShapeEdgeChain* ret = cocos2d::PhysicsShapeEdgeChain::create(arg0, arg1, arg2); CC_SAFE_FREE(arg0); object_to_luaval<cocos2d::PhysicsShapeEdgeChain>(tolua_S, "cc.PhysicsShapeEdgeChain",(cocos2d::PhysicsShapeEdgeChain*)ret); return 1; } if (argc == 3) { cocos2d::Point* arg0; int arg1 = 0; cocos2d::PhysicsMaterial arg2; double arg3; do { ok = luaval_to_array_of_Point(tolua_S, 2, &arg0, &arg1); if (nullptr == arg0){ LUA_PRECONDITION( arg0, "Invalid Native Object"); }} while (0); ok &= luaval_to_physics_material(tolua_S, 3, &arg2); ok &= luaval_to_number(tolua_S, 4,&arg3); if(!ok) { CC_SAFE_FREE(arg0); return 0; } cocos2d::PhysicsShapeEdgeChain* ret = cocos2d::PhysicsShapeEdgeChain::create(arg0, arg1, arg2, arg3); CC_SAFE_FREE(arg0); object_to_luaval<cocos2d::PhysicsShapeEdgeChain>(tolua_S, "cc.PhysicsShapeEdgeChain",(cocos2d::PhysicsShapeEdgeChain*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_physics_PhysicsShapeEdgeChain_create'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_custom_ClipperOffset_execute(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_Clipper_execute'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0 = 0; if(!luaval_to_number(tolua_S,2,&arg0,"cc.ClipperOffset:execute")) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_custom_ClipperOffset_execute'", nullptr); return 0; } std::vector<std::vector<Vec2> > output; cobj->execute(output,arg0); lua_newtable(tolua_S); if (output.empty()) return 1; int index = 1; for (const std::vector<Vec2> v : output) { lua_pushnumber(tolua_S, (lua_Number)index); vec2_array_to_luaval(tolua_S,&v[0],v.size()); lua_rawset(tolua_S, -3); index++; } return 1; // One value returned } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClipperOffset:execute",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_custom_ClipperOffset_execute'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_tui_TuiManager_createLabel(lua_State* tolua_S) { int argc = 0; cocos2d::tui::TuiManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"tui.TuiManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::tui::TuiManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_tui_TuiManager_createLabel'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 19) { double arg0; const char* arg1; const char* arg2; int arg3; double arg4; int arg5; int arg6; int arg7; double arg8; double arg9; double arg10; double arg11; int arg12; int arg13; int arg14; double arg15; int arg16; double arg17; double arg18; ok &= luaval_to_number(tolua_S, 2,&arg0); std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp); arg1 = arg1_tmp.c_str(); std::string arg2_tmp; ok &= luaval_to_std_string(tolua_S, 4, &arg2_tmp); arg2 = arg2_tmp.c_str(); ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3); ok &= luaval_to_number(tolua_S, 6,&arg4); ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5); ok &= luaval_to_int32(tolua_S, 8,(int *)&arg6); ok &= luaval_to_int32(tolua_S, 9,(int *)&arg7); ok &= luaval_to_number(tolua_S, 10,&arg8); ok &= luaval_to_number(tolua_S, 11,&arg9); ok &= luaval_to_number(tolua_S, 12,&arg10); ok &= luaval_to_number(tolua_S, 13,&arg11); ok &= luaval_to_int32(tolua_S, 14,(int *)&arg12); ok &= luaval_to_int32(tolua_S, 15,(int *)&arg13); ok &= luaval_to_int32(tolua_S, 16,(int *)&arg14); ok &= luaval_to_number(tolua_S, 17,&arg15); ok &= luaval_to_int32(tolua_S, 18,(int *)&arg16); ok &= luaval_to_number(tolua_S, 19,&arg17); ok &= luaval_to_number(tolua_S, 20,&arg18); if(!ok) return 0; cocos2d::cocoswidget::CLabel* ret = cobj->createLabel(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18); object_to_luaval<cocos2d::cocoswidget::CLabel>(tolua_S, "ccw.CLabel",(cocos2d::cocoswidget::CLabel*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "createLabel",argc, 19); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_tui_TuiManager_createLabel'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_physics3d_Physics3DShape_createHeightfield(lua_State* L) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(L,1,"cc.Physics3DShape",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(L) - 1; if (argc == 8) { int arg0; int arg1; std::vector<float> arg2; double arg3; double arg4; double arg5; bool arg6; bool arg7; ok &= luaval_to_int32(L, 2,(int *)&arg0, "cc.Physics3DShape:createHeightfield"); ok &= luaval_to_int32(L, 3,(int *)&arg1, "cc.Physics3DShape:createHeightfield"); ok &= luaval_to_std_vector_float(L, 4, &arg2,"cc.Physics3DShape:createHeightfield"); ok &= luaval_to_number(L, 5,&arg3, "cc.Physics3DShape:createHeightfield"); ok &= luaval_to_number(L, 6,&arg4, "cc.Physics3DShape:createHeightfield"); ok &= luaval_to_number(L, 7,&arg5, "cc.Physics3DShape:createHeightfield"); ok &= luaval_to_boolean(L, 8,&arg6, "cc.Physics3DShape:createHeightfield"); ok &= luaval_to_boolean(L, 9,&arg7, "cc.Physics3DShape:createHeightfield"); if(!ok) { tolua_error(L,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DShape_createHeightfield'", nullptr); return 0; } cocos2d::Physics3DShape* ret = cocos2d::Physics3DShape::createHeightfield(arg0, arg1, &arg2[0], arg3, arg4, arg5, arg6, arg7); object_to_luaval<cocos2d::Physics3DShape>(L, "cc.Physics3DShape",(cocos2d::Physics3DShape*)ret); return 1; } if (argc == 9) { int arg0; int arg1; std::vector<float> arg2; double arg3; double arg4; double arg5; bool arg6; bool arg7; bool arg8; ok &= luaval_to_int32(L, 2,(int *)&arg0, "cc.Physics3DShape:createHeightfield"); ok &= luaval_to_int32(L, 3,(int *)&arg1, "cc.Physics3DShape:createHeightfield"); ok &= luaval_to_std_vector_float(L, 4, &arg2,"cc.Physics3DShape:createHeightfield"); ok &= luaval_to_number(L, 5,&arg3, "cc.Physics3DShape:createHeightfield"); ok &= luaval_to_number(L, 6,&arg4, "cc.Physics3DShape:createHeightfield"); ok &= luaval_to_number(L, 7,&arg5, "cc.Physics3DShape:createHeightfield"); ok &= luaval_to_boolean(L, 8,&arg6, "cc.Physics3DShape:createHeightfield"); ok &= luaval_to_boolean(L, 9,&arg7, "cc.Physics3DShape:createHeightfield"); ok &= luaval_to_boolean(L, 10,&arg8, "cc.Physics3DShape:createHeightfield"); if(!ok) { tolua_error(L,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DShape_createHeightfield'", nullptr); return 0; } cocos2d::Physics3DShape* ret = cocos2d::Physics3DShape::createHeightfield(arg0, arg1, &arg2[0], arg3, arg4, arg5, arg6, arg7, arg8); object_to_luaval<cocos2d::Physics3DShape>(L, "cc.Physics3DShape",(cocos2d::Physics3DShape*)ret); return 1; } luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Physics3DShape:createHeightfield",argc, 8); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(L,"#ferror in function 'lua_cocos2dx_physics3d_Physics3DShape_createHeightfield'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_physics_PhysicsShapePolygon_calculateMoment(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,"cc.PhysicsShapePolygon",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Point* arg1; int arg2 = 0; ok &= luaval_to_number(tolua_S, 2,&arg0); do { ok = luaval_to_array_of_Point(tolua_S, 3, &arg1, &arg2); if (nullptr == arg1){ LUA_PRECONDITION( arg1, "Invalid Native Object"); }} while (0); if(!ok) { CC_SAFE_FREE(arg1); return 0; } double ret = cocos2d::PhysicsShapePolygon::calculateMoment(arg0, arg1, arg2); CC_SAFE_FREE(arg1); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } if (argc == 2) { double arg0; cocos2d::Point* arg1; int arg2 = 0; cocos2d::Point arg3; ok &= luaval_to_number(tolua_S, 2,&arg0); do { ok = luaval_to_array_of_Point(tolua_S, 3, &arg1, &arg2); if (nullptr == arg1){ LUA_PRECONDITION( arg1, "Invalid Native Object"); }} while (0); ok &= luaval_to_point(tolua_S, 4, &arg3); if(!ok) { CC_SAFE_FREE(arg1); return 0; } double ret = cocos2d::PhysicsShapePolygon::calculateMoment(arg0, arg1, arg2, arg3); CC_SAFE_FREE(arg1); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "calculateMoment",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_physics_PhysicsShapePolygon_calculateMoment'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_spine_SkeletonAnimation_addAnimation(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_addAnimation'", 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->addAnimation(arg0, arg1, arg2); #pragma warning NO CONVERSION FROM NATIVE FOR spTrackEntry*; return 1; } if (argc == 4) { int arg0; const char* arg1; bool arg2; double arg3; 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); ok &= luaval_to_number(tolua_S, 5,&arg3); if(!ok) return 0; spTrackEntry* ret = cobj->addAnimation(arg0, arg1, arg2, arg3); #pragma warning NO CONVERSION FROM NATIVE FOR spTrackEntry*; return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "addAnimation",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonAnimation_addAnimation'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_spine_SkeletonRenderer_createWithFile(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,"sp.SkeletonRenderer",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, "sp.SkeletonRenderer:createWithFile"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonRenderer:createWithFile"); if (!ok) { break; } spine::SkeletonRenderer* ret = spine::SkeletonRenderer::createWithFile(arg0, arg1); object_to_luaval<spine::SkeletonRenderer>(tolua_S, "sp.SkeletonRenderer",(spine::SkeletonRenderer*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:createWithFile"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonRenderer:createWithFile"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonRenderer:createWithFile"); if (!ok) { break; } spine::SkeletonRenderer* ret = spine::SkeletonRenderer::createWithFile(arg0, arg1, arg2); object_to_luaval<spine::SkeletonRenderer>(tolua_S, "sp.SkeletonRenderer",(spine::SkeletonRenderer*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:createWithFile"); if (!ok) { break; } spAtlas* arg1; #pragma warning NO CONVERSION TO NATIVE FOR spAtlas* ok = false; if (!ok) { break; } spine::SkeletonRenderer* ret = spine::SkeletonRenderer::createWithFile(arg0, arg1); object_to_luaval<spine::SkeletonRenderer>(tolua_S, "sp.SkeletonRenderer",(spine::SkeletonRenderer*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:createWithFile"); if (!ok) { break; } spAtlas* arg1; #pragma warning NO CONVERSION TO NATIVE FOR spAtlas* ok = false; if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonRenderer:createWithFile"); if (!ok) { break; } spine::SkeletonRenderer* ret = spine::SkeletonRenderer::createWithFile(arg0, arg1, arg2); object_to_luaval<spine::SkeletonRenderer>(tolua_S, "sp.SkeletonRenderer",(spine::SkeletonRenderer*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "sp.SkeletonRenderer:createWithFile",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_createWithFile'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_tui_TuiManager_createLayout(lua_State* tolua_S) { int argc = 0; cocos2d::tui::TuiManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"tui.TuiManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::tui::TuiManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_tui_TuiManager_createLayout'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 6) { double arg0; double arg1; double arg2; double arg3; double arg4; double arg5; ok &= luaval_to_number(tolua_S, 2,&arg0); ok &= luaval_to_number(tolua_S, 3,&arg1); ok &= luaval_to_number(tolua_S, 4,&arg2); ok &= luaval_to_number(tolua_S, 5,&arg3); ok &= luaval_to_number(tolua_S, 6,&arg4); ok &= luaval_to_number(tolua_S, 7,&arg5); if(!ok) return 0; cocos2d::cocoswidget::CLayout* ret = cobj->createLayout(arg0, arg1, arg2, arg3, arg4, arg5); object_to_luaval<cocos2d::cocoswidget::CLayout>(tolua_S, "ccw.CLayout",(cocos2d::cocoswidget::CLayout*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "createLayout",argc, 6); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_tui_TuiManager_createLayout'.",&tolua_err); #endif return 0; }