#include "lua_cocos2dx_studio_auto.hpp" #include "CocoStudio.h" #include "tolua_fix.h" #include "LuaBasicConversions.h" int lua_cocos2dx_studio_ActionObject_setCurrentTime(lua_State* tolua_S) { int argc = 0; cocostudio::ActionObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionObject_setCurrentTime'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0); if(!ok) return 0; cobj->setCurrentTime(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setCurrentTime",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionObject_setCurrentTime'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ActionObject_pause(lua_State* tolua_S) { int argc = 0; cocostudio::ActionObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionObject_pause'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj->pause(); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "pause",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionObject_pause'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ActionObject_setName(lua_State* tolua_S) { int argc = 0; cocostudio::ActionObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionObject_setName'", 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); arg0 = arg0_tmp.c_str(); if(!ok) return 0; cobj->setName(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionObject_setName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ActionObject_setUnitTime(lua_State* tolua_S) { int argc = 0; cocostudio::ActionObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionObject_setUnitTime'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0); if(!ok) return 0; cobj->setUnitTime(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setUnitTime",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionObject_setUnitTime'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ActionObject_getTotalTime(lua_State* tolua_S) { int argc = 0; cocostudio::ActionObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionObject_getTotalTime'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; double ret = cobj->getTotalTime(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getTotalTime",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionObject_getTotalTime'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ActionObject_getName(lua_State* tolua_S) { int argc = 0; cocostudio::ActionObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionObject_getName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; const char* ret = cobj->getName(); tolua_pushstring(tolua_S,(const char*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getName",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionObject_getName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ActionObject_stop(lua_State* tolua_S) { int argc = 0; cocostudio::ActionObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionObject_stop'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj->stop(); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "stop",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionObject_stop'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ActionObject_play(lua_State* tolua_S) { int argc = 0; cocostudio::ActionObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionObject_play'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { cocos2d::CallFunc* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.CallFunc",&arg0); if (!ok) { break; } cobj->play(arg0); return 0; } }while(0); ok = true; do{ if (argc == 0) { cobj->play(); return 0; } }while(0); ok = true; CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "play",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionObject_play'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ActionObject_getCurrentTime(lua_State* tolua_S) { int argc = 0; cocostudio::ActionObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionObject_getCurrentTime'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; double ret = cobj->getCurrentTime(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getCurrentTime",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionObject_getCurrentTime'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ActionObject_removeActionNode(lua_State* tolua_S) { int argc = 0; cocostudio::ActionObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionObject_removeActionNode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::ActionNode* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.ActionNode",&arg0); if(!ok) return 0; cobj->removeActionNode(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "removeActionNode",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionObject_removeActionNode'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ActionObject_getLoop(lua_State* tolua_S) { int argc = 0; cocostudio::ActionObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionObject_getLoop'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; bool ret = cobj->getLoop(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getLoop",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionObject_getLoop'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ActionObject_addActionNode(lua_State* tolua_S) { int argc = 0; cocostudio::ActionObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionObject_addActionNode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::ActionNode* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.ActionNode",&arg0); if(!ok) return 0; cobj->addActionNode(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "addActionNode",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionObject_addActionNode'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ActionObject_getUnitTime(lua_State* tolua_S) { int argc = 0; cocostudio::ActionObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionObject_getUnitTime'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; double ret = cobj->getUnitTime(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getUnitTime",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionObject_getUnitTime'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ActionObject_isPlaying(lua_State* tolua_S) { int argc = 0; cocostudio::ActionObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionObject_isPlaying'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; bool ret = cobj->isPlaying(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "isPlaying",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionObject_isPlaying'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ActionObject_updateToFrameByTime(lua_State* tolua_S) { int argc = 0; cocostudio::ActionObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionObject_updateToFrameByTime'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0); if(!ok) return 0; cobj->updateToFrameByTime(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "updateToFrameByTime",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionObject_updateToFrameByTime'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ActionObject_setLoop(lua_State* tolua_S) { int argc = 0; cocostudio::ActionObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionObject_setLoop'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0); if(!ok) return 0; cobj->setLoop(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setLoop",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionObject_setLoop'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ActionObject_simulationActionUpdate(lua_State* tolua_S) { int argc = 0; cocostudio::ActionObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionObject_simulationActionUpdate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0); if(!ok) return 0; cobj->simulationActionUpdate(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "simulationActionUpdate",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionObject_simulationActionUpdate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ActionObject_constructor(lua_State* tolua_S) { int argc = 0; cocostudio::ActionObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj = new cocostudio::ActionObject(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.ActionObject"); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ActionObject",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionObject_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_ActionObject_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ActionObject)"); return 0; } int lua_register_cocos2dx_studio_ActionObject(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.ActionObject"); tolua_cclass(tolua_S,"ActionObject","ccs.ActionObject","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"ActionObject"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_ActionObject_constructor); tolua_function(tolua_S,"setCurrentTime",lua_cocos2dx_studio_ActionObject_setCurrentTime); tolua_function(tolua_S,"pause",lua_cocos2dx_studio_ActionObject_pause); tolua_function(tolua_S,"setName",lua_cocos2dx_studio_ActionObject_setName); tolua_function(tolua_S,"setUnitTime",lua_cocos2dx_studio_ActionObject_setUnitTime); tolua_function(tolua_S,"getTotalTime",lua_cocos2dx_studio_ActionObject_getTotalTime); tolua_function(tolua_S,"getName",lua_cocos2dx_studio_ActionObject_getName); tolua_function(tolua_S,"stop",lua_cocos2dx_studio_ActionObject_stop); tolua_function(tolua_S,"play",lua_cocos2dx_studio_ActionObject_play); tolua_function(tolua_S,"getCurrentTime",lua_cocos2dx_studio_ActionObject_getCurrentTime); tolua_function(tolua_S,"removeActionNode",lua_cocos2dx_studio_ActionObject_removeActionNode); tolua_function(tolua_S,"getLoop",lua_cocos2dx_studio_ActionObject_getLoop); tolua_function(tolua_S,"addActionNode",lua_cocos2dx_studio_ActionObject_addActionNode); tolua_function(tolua_S,"getUnitTime",lua_cocos2dx_studio_ActionObject_getUnitTime); tolua_function(tolua_S,"isPlaying",lua_cocos2dx_studio_ActionObject_isPlaying); tolua_function(tolua_S,"updateToFrameByTime",lua_cocos2dx_studio_ActionObject_updateToFrameByTime); tolua_function(tolua_S,"setLoop",lua_cocos2dx_studio_ActionObject_setLoop); tolua_function(tolua_S,"simulationActionUpdate",lua_cocos2dx_studio_ActionObject_simulationActionUpdate); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::ActionObject).name(); g_luaType[typeName] = "ccs.ActionObject"; g_typeCast["ActionObject"] = "ccs.ActionObject"; return 1; } int lua_cocos2dx_studio_ActionManagerEx_playActionByName(lua_State* tolua_S) { int argc = 0; cocostudio::ActionManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ActionManagerEx",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ActionManagerEx*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionManagerEx_playActionByName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp); arg0 = arg0_tmp.c_str(); if (!ok) { break; } const char* arg1; std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp); arg1 = arg1_tmp.c_str(); if (!ok) { break; } cocos2d::CallFunc* arg2; ok &= luaval_to_object(tolua_S, 4, "cc.CallFunc",&arg2); if (!ok) { break; } cocostudio::ActionObject* ret = cobj->playActionByName(arg0, arg1, arg2); object_to_luaval(tolua_S, "ccs.ActionObject",(cocostudio::ActionObject*)ret); return 1; } }while(0); ok = true; do{ if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp); arg0 = arg0_tmp.c_str(); if (!ok) { break; } const char* arg1; std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp); arg1 = arg1_tmp.c_str(); if (!ok) { break; } cocostudio::ActionObject* ret = cobj->playActionByName(arg0, arg1); object_to_luaval(tolua_S, "ccs.ActionObject",(cocostudio::ActionObject*)ret); return 1; } }while(0); ok = true; CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "playActionByName",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionManagerEx_playActionByName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ActionManagerEx_getActionByName(lua_State* tolua_S) { int argc = 0; cocostudio::ActionManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ActionManagerEx",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ActionManagerEx*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionManagerEx_getActionByName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { const char* arg0; const char* arg1; 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(); if(!ok) return 0; cocostudio::ActionObject* ret = cobj->getActionByName(arg0, arg1); object_to_luaval(tolua_S, "ccs.ActionObject",(cocostudio::ActionObject*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getActionByName",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionManagerEx_getActionByName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ActionManagerEx_releaseActions(lua_State* tolua_S) { int argc = 0; cocostudio::ActionManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ActionManagerEx",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ActionManagerEx*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionManagerEx_releaseActions'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj->releaseActions(); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "releaseActions",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionManagerEx_releaseActions'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ActionManagerEx_destroyInstance(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,"ccs.ActionManagerEx",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::ActionManagerEx::destroyInstance(); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "destroyInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionManagerEx_destroyInstance'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ActionManagerEx_getInstance(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,"ccs.ActionManagerEx",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::ActionManagerEx* ret = cocostudio::ActionManagerEx::getInstance(); object_to_luaval(tolua_S, "ccs.ActionManagerEx",(cocostudio::ActionManagerEx*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "getInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionManagerEx_getInstance'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_ActionManagerEx_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ActionManagerEx)"); return 0; } int lua_register_cocos2dx_studio_ActionManagerEx(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.ActionManagerEx"); tolua_cclass(tolua_S,"ActionManagerEx","ccs.ActionManagerEx","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"ActionManagerEx"); tolua_function(tolua_S,"playActionByName",lua_cocos2dx_studio_ActionManagerEx_playActionByName); tolua_function(tolua_S,"getActionByName",lua_cocos2dx_studio_ActionManagerEx_getActionByName); tolua_function(tolua_S,"releaseActions",lua_cocos2dx_studio_ActionManagerEx_releaseActions); tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_studio_ActionManagerEx_destroyInstance); tolua_function(tolua_S,"getInstance", lua_cocos2dx_studio_ActionManagerEx_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::ActionManagerEx).name(); g_luaType[typeName] = "ccs.ActionManagerEx"; g_typeCast["ActionManagerEx"] = "ccs.ActionManagerEx"; return 1; } int lua_cocos2dx_studio_BaseData_getColor(lua_State* tolua_S) { int argc = 0; cocostudio::BaseData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.BaseData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::BaseData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_BaseData_getColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocos2d::Color4B ret = cobj->getColor(); color4b_to_luaval(tolua_S, ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getColor",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_BaseData_getColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_BaseData_setColor(lua_State* tolua_S) { int argc = 0; cocostudio::BaseData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.BaseData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::BaseData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_BaseData_setColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0); if(!ok) return 0; cobj->setColor(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setColor",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_BaseData_setColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_BaseData_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,"ccs.BaseData",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::BaseData* ret = cocostudio::BaseData::create(); object_to_luaval(tolua_S, "ccs.BaseData",(cocostudio::BaseData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_BaseData_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_BaseData_constructor(lua_State* tolua_S) { int argc = 0; cocostudio::BaseData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj = new cocostudio::BaseData(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.BaseData"); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "BaseData",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_BaseData_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_BaseData_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (BaseData)"); return 0; } int lua_register_cocos2dx_studio_BaseData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.BaseData"); tolua_cclass(tolua_S,"BaseData","ccs.BaseData","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"BaseData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_BaseData_constructor); tolua_function(tolua_S,"getColor",lua_cocos2dx_studio_BaseData_getColor); tolua_function(tolua_S,"setColor",lua_cocos2dx_studio_BaseData_setColor); tolua_function(tolua_S,"create", lua_cocos2dx_studio_BaseData_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::BaseData).name(); g_luaType[typeName] = "ccs.BaseData"; g_typeCast["BaseData"] = "ccs.BaseData"; return 1; } int lua_cocos2dx_studio_DisplayData_copy(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.DisplayData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::DisplayData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_DisplayData_copy'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::DisplayData* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.DisplayData",&arg0); if(!ok) return 0; cobj->copy(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "copy",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_DisplayData_copy'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_DisplayData_changeDisplayToTexture(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,"ccs.DisplayData",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); if(!ok) return 0; const std::string ret = cocostudio::DisplayData::changeDisplayToTexture(arg0); tolua_pushcppstring(tolua_S,ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "changeDisplayToTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_DisplayData_changeDisplayToTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_DisplayData_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,"ccs.DisplayData",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::DisplayData* ret = cocostudio::DisplayData::create(); object_to_luaval(tolua_S, "ccs.DisplayData",(cocostudio::DisplayData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_DisplayData_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_DisplayData_constructor(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj = new cocostudio::DisplayData(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.DisplayData"); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "DisplayData",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_DisplayData_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_DisplayData_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (DisplayData)"); return 0; } int lua_register_cocos2dx_studio_DisplayData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.DisplayData"); tolua_cclass(tolua_S,"DisplayData","ccs.DisplayData","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"DisplayData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_DisplayData_constructor); tolua_function(tolua_S,"copy",lua_cocos2dx_studio_DisplayData_copy); tolua_function(tolua_S,"changeDisplayToTexture", lua_cocos2dx_studio_DisplayData_changeDisplayToTexture); tolua_function(tolua_S,"create", lua_cocos2dx_studio_DisplayData_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::DisplayData).name(); g_luaType[typeName] = "ccs.DisplayData"; g_typeCast["DisplayData"] = "ccs.DisplayData"; return 1; } int lua_cocos2dx_studio_SpriteDisplayData_copy(lua_State* tolua_S) { int argc = 0; cocostudio::SpriteDisplayData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.SpriteDisplayData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::SpriteDisplayData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_SpriteDisplayData_copy'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::DisplayData* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.DisplayData",&arg0); if(!ok) return 0; cobj->copy(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "copy",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_SpriteDisplayData_copy'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_SpriteDisplayData_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,"ccs.SpriteDisplayData",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::SpriteDisplayData* ret = cocostudio::SpriteDisplayData::create(); object_to_luaval(tolua_S, "ccs.SpriteDisplayData",(cocostudio::SpriteDisplayData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_SpriteDisplayData_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_SpriteDisplayData_constructor(lua_State* tolua_S) { int argc = 0; cocostudio::SpriteDisplayData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj = new cocostudio::SpriteDisplayData(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.SpriteDisplayData"); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "SpriteDisplayData",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_SpriteDisplayData_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_SpriteDisplayData_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (SpriteDisplayData)"); return 0; } int lua_register_cocos2dx_studio_SpriteDisplayData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.SpriteDisplayData"); tolua_cclass(tolua_S,"SpriteDisplayData","ccs.SpriteDisplayData","ccs.DisplayData",nullptr); tolua_beginmodule(tolua_S,"SpriteDisplayData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_SpriteDisplayData_constructor); tolua_function(tolua_S,"copy",lua_cocos2dx_studio_SpriteDisplayData_copy); tolua_function(tolua_S,"create", lua_cocos2dx_studio_SpriteDisplayData_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::SpriteDisplayData).name(); g_luaType[typeName] = "ccs.SpriteDisplayData"; g_typeCast["SpriteDisplayData"] = "ccs.SpriteDisplayData"; return 1; } int lua_cocos2dx_studio_ArmatureDisplayData_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,"ccs.ArmatureDisplayData",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::ArmatureDisplayData* ret = cocostudio::ArmatureDisplayData::create(); object_to_luaval(tolua_S, "ccs.ArmatureDisplayData",(cocostudio::ArmatureDisplayData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureDisplayData_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureDisplayData_constructor(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureDisplayData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj = new cocostudio::ArmatureDisplayData(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.ArmatureDisplayData"); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ArmatureDisplayData",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureDisplayData_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_ArmatureDisplayData_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ArmatureDisplayData)"); return 0; } int lua_register_cocos2dx_studio_ArmatureDisplayData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.ArmatureDisplayData"); tolua_cclass(tolua_S,"ArmatureDisplayData","ccs.ArmatureDisplayData","ccs.DisplayData",nullptr); tolua_beginmodule(tolua_S,"ArmatureDisplayData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_ArmatureDisplayData_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_studio_ArmatureDisplayData_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::ArmatureDisplayData).name(); g_luaType[typeName] = "ccs.ArmatureDisplayData"; g_typeCast["ArmatureDisplayData"] = "ccs.ArmatureDisplayData"; return 1; } int lua_cocos2dx_studio_ParticleDisplayData_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,"ccs.ParticleDisplayData",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::ParticleDisplayData* ret = cocostudio::ParticleDisplayData::create(); object_to_luaval(tolua_S, "ccs.ParticleDisplayData",(cocostudio::ParticleDisplayData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ParticleDisplayData_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ParticleDisplayData_constructor(lua_State* tolua_S) { int argc = 0; cocostudio::ParticleDisplayData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj = new cocostudio::ParticleDisplayData(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.ParticleDisplayData"); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ParticleDisplayData",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ParticleDisplayData_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_ParticleDisplayData_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleDisplayData)"); return 0; } int lua_register_cocos2dx_studio_ParticleDisplayData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.ParticleDisplayData"); tolua_cclass(tolua_S,"ParticleDisplayData","ccs.ParticleDisplayData","ccs.DisplayData",nullptr); tolua_beginmodule(tolua_S,"ParticleDisplayData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_ParticleDisplayData_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_studio_ParticleDisplayData_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::ParticleDisplayData).name(); g_luaType[typeName] = "ccs.ParticleDisplayData"; g_typeCast["ParticleDisplayData"] = "ccs.ParticleDisplayData"; return 1; } int lua_cocos2dx_studio_BoneData_getDisplayData(lua_State* tolua_S) { int argc = 0; cocostudio::BoneData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.BoneData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::BoneData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_BoneData_getDisplayData'", 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; cocostudio::DisplayData* ret = cobj->getDisplayData(arg0); object_to_luaval(tolua_S, "ccs.DisplayData",(cocostudio::DisplayData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getDisplayData",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_BoneData_getDisplayData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_BoneData_init(lua_State* tolua_S) { int argc = 0; cocostudio::BoneData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.BoneData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::BoneData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_BoneData_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_BoneData_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_BoneData_addDisplayData(lua_State* tolua_S) { int argc = 0; cocostudio::BoneData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.BoneData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::BoneData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_BoneData_addDisplayData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::DisplayData* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.DisplayData",&arg0); if(!ok) return 0; cobj->addDisplayData(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "addDisplayData",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_BoneData_addDisplayData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_BoneData_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,"ccs.BoneData",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::BoneData* ret = cocostudio::BoneData::create(); object_to_luaval(tolua_S, "ccs.BoneData",(cocostudio::BoneData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_BoneData_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_BoneData_constructor(lua_State* tolua_S) { int argc = 0; cocostudio::BoneData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj = new cocostudio::BoneData(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.BoneData"); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "BoneData",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_BoneData_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_BoneData_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (BoneData)"); return 0; } int lua_register_cocos2dx_studio_BoneData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.BoneData"); tolua_cclass(tolua_S,"BoneData","ccs.BoneData","ccs.BaseData",nullptr); tolua_beginmodule(tolua_S,"BoneData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_BoneData_constructor); tolua_function(tolua_S,"getDisplayData",lua_cocos2dx_studio_BoneData_getDisplayData); tolua_function(tolua_S,"init",lua_cocos2dx_studio_BoneData_init); tolua_function(tolua_S,"addDisplayData",lua_cocos2dx_studio_BoneData_addDisplayData); tolua_function(tolua_S,"create", lua_cocos2dx_studio_BoneData_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::BoneData).name(); g_luaType[typeName] = "ccs.BoneData"; g_typeCast["BoneData"] = "ccs.BoneData"; return 1; } int lua_cocos2dx_studio_ArmatureData_addBoneData(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureData_addBoneData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::BoneData* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.BoneData",&arg0); if(!ok) return 0; cobj->addBoneData(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "addBoneData",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureData_addBoneData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureData_init(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureData_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureData_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureData_getBoneData(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureData_getBoneData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if(!ok) return 0; cocostudio::BoneData* ret = cobj->getBoneData(arg0); object_to_luaval(tolua_S, "ccs.BoneData",(cocostudio::BoneData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getBoneData",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureData_getBoneData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureData_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,"ccs.ArmatureData",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::ArmatureData* ret = cocostudio::ArmatureData::create(); object_to_luaval(tolua_S, "ccs.ArmatureData",(cocostudio::ArmatureData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureData_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureData_constructor(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj = new cocostudio::ArmatureData(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.ArmatureData"); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ArmatureData",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureData_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_ArmatureData_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ArmatureData)"); return 0; } int lua_register_cocos2dx_studio_ArmatureData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.ArmatureData"); tolua_cclass(tolua_S,"ArmatureData","ccs.ArmatureData","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"ArmatureData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_ArmatureData_constructor); tolua_function(tolua_S,"addBoneData",lua_cocos2dx_studio_ArmatureData_addBoneData); tolua_function(tolua_S,"init",lua_cocos2dx_studio_ArmatureData_init); tolua_function(tolua_S,"getBoneData",lua_cocos2dx_studio_ArmatureData_getBoneData); tolua_function(tolua_S,"create", lua_cocos2dx_studio_ArmatureData_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::ArmatureData).name(); g_luaType[typeName] = "ccs.ArmatureData"; g_typeCast["ArmatureData"] = "ccs.ArmatureData"; return 1; } int lua_cocos2dx_studio_FrameData_copy(lua_State* tolua_S) { int argc = 0; cocostudio::FrameData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.FrameData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::FrameData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_FrameData_copy'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { const cocostudio::BaseData* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.BaseData",&arg0); if(!ok) return 0; cobj->copy(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "copy",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_FrameData_copy'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_FrameData_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,"ccs.FrameData",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::FrameData* ret = cocostudio::FrameData::create(); object_to_luaval(tolua_S, "ccs.FrameData",(cocostudio::FrameData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_FrameData_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_FrameData_constructor(lua_State* tolua_S) { int argc = 0; cocostudio::FrameData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj = new cocostudio::FrameData(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.FrameData"); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "FrameData",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_FrameData_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_FrameData_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FrameData)"); return 0; } int lua_register_cocos2dx_studio_FrameData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.FrameData"); tolua_cclass(tolua_S,"FrameData","ccs.FrameData","ccs.BaseData",nullptr); tolua_beginmodule(tolua_S,"FrameData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_FrameData_constructor); tolua_function(tolua_S,"copy",lua_cocos2dx_studio_FrameData_copy); tolua_function(tolua_S,"create", lua_cocos2dx_studio_FrameData_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::FrameData).name(); g_luaType[typeName] = "ccs.FrameData"; g_typeCast["FrameData"] = "ccs.FrameData"; return 1; } int lua_cocos2dx_studio_MovementBoneData_init(lua_State* tolua_S) { int argc = 0; cocostudio::MovementBoneData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.MovementBoneData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::MovementBoneData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_MovementBoneData_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_MovementBoneData_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_MovementBoneData_getFrameData(lua_State* tolua_S) { int argc = 0; cocostudio::MovementBoneData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.MovementBoneData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::MovementBoneData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_MovementBoneData_getFrameData'", 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; cocostudio::FrameData* ret = cobj->getFrameData(arg0); object_to_luaval(tolua_S, "ccs.FrameData",(cocostudio::FrameData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getFrameData",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_MovementBoneData_getFrameData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_MovementBoneData_addFrameData(lua_State* tolua_S) { int argc = 0; cocostudio::MovementBoneData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.MovementBoneData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::MovementBoneData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_MovementBoneData_addFrameData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::FrameData* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.FrameData",&arg0); if(!ok) return 0; cobj->addFrameData(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "addFrameData",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_MovementBoneData_addFrameData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_MovementBoneData_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,"ccs.MovementBoneData",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::MovementBoneData* ret = cocostudio::MovementBoneData::create(); object_to_luaval(tolua_S, "ccs.MovementBoneData",(cocostudio::MovementBoneData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_MovementBoneData_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_MovementBoneData_constructor(lua_State* tolua_S) { int argc = 0; cocostudio::MovementBoneData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj = new cocostudio::MovementBoneData(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.MovementBoneData"); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "MovementBoneData",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_MovementBoneData_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_MovementBoneData_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (MovementBoneData)"); return 0; } int lua_register_cocos2dx_studio_MovementBoneData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.MovementBoneData"); tolua_cclass(tolua_S,"MovementBoneData","ccs.MovementBoneData","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"MovementBoneData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_MovementBoneData_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_studio_MovementBoneData_init); tolua_function(tolua_S,"getFrameData",lua_cocos2dx_studio_MovementBoneData_getFrameData); tolua_function(tolua_S,"addFrameData",lua_cocos2dx_studio_MovementBoneData_addFrameData); tolua_function(tolua_S,"create", lua_cocos2dx_studio_MovementBoneData_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::MovementBoneData).name(); g_luaType[typeName] = "ccs.MovementBoneData"; g_typeCast["MovementBoneData"] = "ccs.MovementBoneData"; return 1; } int lua_cocos2dx_studio_MovementData_getMovementBoneData(lua_State* tolua_S) { int argc = 0; cocostudio::MovementData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.MovementData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::MovementData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_MovementData_getMovementBoneData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if(!ok) return 0; cocostudio::MovementBoneData* ret = cobj->getMovementBoneData(arg0); object_to_luaval(tolua_S, "ccs.MovementBoneData",(cocostudio::MovementBoneData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getMovementBoneData",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_MovementData_getMovementBoneData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_MovementData_addMovementBoneData(lua_State* tolua_S) { int argc = 0; cocostudio::MovementData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.MovementData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::MovementData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_MovementData_addMovementBoneData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::MovementBoneData* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.MovementBoneData",&arg0); if(!ok) return 0; cobj->addMovementBoneData(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "addMovementBoneData",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_MovementData_addMovementBoneData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_MovementData_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,"ccs.MovementData",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::MovementData* ret = cocostudio::MovementData::create(); object_to_luaval(tolua_S, "ccs.MovementData",(cocostudio::MovementData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_MovementData_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_MovementData_constructor(lua_State* tolua_S) { int argc = 0; cocostudio::MovementData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj = new cocostudio::MovementData(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.MovementData"); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "MovementData",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_MovementData_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_MovementData_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (MovementData)"); return 0; } int lua_register_cocos2dx_studio_MovementData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.MovementData"); tolua_cclass(tolua_S,"MovementData","ccs.MovementData","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"MovementData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_MovementData_constructor); tolua_function(tolua_S,"getMovementBoneData",lua_cocos2dx_studio_MovementData_getMovementBoneData); tolua_function(tolua_S,"addMovementBoneData",lua_cocos2dx_studio_MovementData_addMovementBoneData); tolua_function(tolua_S,"create", lua_cocos2dx_studio_MovementData_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::MovementData).name(); g_luaType[typeName] = "ccs.MovementData"; g_typeCast["MovementData"] = "ccs.MovementData"; return 1; } int lua_cocos2dx_studio_AnimationData_getMovement(lua_State* tolua_S) { int argc = 0; cocostudio::AnimationData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.AnimationData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::AnimationData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_AnimationData_getMovement'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if(!ok) return 0; cocostudio::MovementData* ret = cobj->getMovement(arg0); object_to_luaval(tolua_S, "ccs.MovementData",(cocostudio::MovementData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getMovement",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_AnimationData_getMovement'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_AnimationData_getMovementCount(lua_State* tolua_S) { int argc = 0; cocostudio::AnimationData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.AnimationData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::AnimationData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_AnimationData_getMovementCount'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; ssize_t ret = cobj->getMovementCount(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getMovementCount",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_AnimationData_getMovementCount'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_AnimationData_addMovement(lua_State* tolua_S) { int argc = 0; cocostudio::AnimationData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.AnimationData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::AnimationData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_AnimationData_addMovement'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::MovementData* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.MovementData",&arg0); if(!ok) return 0; cobj->addMovement(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "addMovement",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_AnimationData_addMovement'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_AnimationData_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,"ccs.AnimationData",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::AnimationData* ret = cocostudio::AnimationData::create(); object_to_luaval(tolua_S, "ccs.AnimationData",(cocostudio::AnimationData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_AnimationData_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_AnimationData_constructor(lua_State* tolua_S) { int argc = 0; cocostudio::AnimationData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj = new cocostudio::AnimationData(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.AnimationData"); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "AnimationData",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_AnimationData_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_AnimationData_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (AnimationData)"); return 0; } int lua_register_cocos2dx_studio_AnimationData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.AnimationData"); tolua_cclass(tolua_S,"AnimationData","ccs.AnimationData","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"AnimationData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_AnimationData_constructor); tolua_function(tolua_S,"getMovement",lua_cocos2dx_studio_AnimationData_getMovement); tolua_function(tolua_S,"getMovementCount",lua_cocos2dx_studio_AnimationData_getMovementCount); tolua_function(tolua_S,"addMovement",lua_cocos2dx_studio_AnimationData_addMovement); tolua_function(tolua_S,"create", lua_cocos2dx_studio_AnimationData_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::AnimationData).name(); g_luaType[typeName] = "ccs.AnimationData"; g_typeCast["AnimationData"] = "ccs.AnimationData"; return 1; } int lua_cocos2dx_studio_ContourData_init(lua_State* tolua_S) { int argc = 0; cocostudio::ContourData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ContourData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ContourData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ContourData_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ContourData_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ContourData_addVertex(lua_State* tolua_S) { int argc = 0; cocostudio::ContourData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ContourData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ContourData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ContourData_addVertex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0); if(!ok) return 0; cobj->addVertex(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "addVertex",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ContourData_addVertex'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ContourData_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,"ccs.ContourData",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::ContourData* ret = cocostudio::ContourData::create(); object_to_luaval(tolua_S, "ccs.ContourData",(cocostudio::ContourData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ContourData_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ContourData_constructor(lua_State* tolua_S) { int argc = 0; cocostudio::ContourData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj = new cocostudio::ContourData(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.ContourData"); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ContourData",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ContourData_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_ContourData_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ContourData)"); return 0; } int lua_register_cocos2dx_studio_ContourData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.ContourData"); tolua_cclass(tolua_S,"ContourData","ccs.ContourData","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"ContourData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_ContourData_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_studio_ContourData_init); tolua_function(tolua_S,"addVertex",lua_cocos2dx_studio_ContourData_addVertex); tolua_function(tolua_S,"create", lua_cocos2dx_studio_ContourData_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::ContourData).name(); g_luaType[typeName] = "ccs.ContourData"; g_typeCast["ContourData"] = "ccs.ContourData"; return 1; } int lua_cocos2dx_studio_TextureData_getContourData(lua_State* tolua_S) { int argc = 0; cocostudio::TextureData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.TextureData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::TextureData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_TextureData_getContourData'", 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; cocostudio::ContourData* ret = cobj->getContourData(arg0); object_to_luaval(tolua_S, "ccs.ContourData",(cocostudio::ContourData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getContourData",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_TextureData_getContourData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_TextureData_init(lua_State* tolua_S) { int argc = 0; cocostudio::TextureData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.TextureData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::TextureData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_TextureData_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_TextureData_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_TextureData_addContourData(lua_State* tolua_S) { int argc = 0; cocostudio::TextureData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.TextureData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::TextureData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_TextureData_addContourData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::ContourData* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.ContourData",&arg0); if(!ok) return 0; cobj->addContourData(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "addContourData",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_TextureData_addContourData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_TextureData_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,"ccs.TextureData",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::TextureData* ret = cocostudio::TextureData::create(); object_to_luaval(tolua_S, "ccs.TextureData",(cocostudio::TextureData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_TextureData_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_TextureData_constructor(lua_State* tolua_S) { int argc = 0; cocostudio::TextureData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj = new cocostudio::TextureData(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.TextureData"); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "TextureData",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_TextureData_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_TextureData_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TextureData)"); return 0; } int lua_register_cocos2dx_studio_TextureData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.TextureData"); tolua_cclass(tolua_S,"TextureData","ccs.TextureData","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"TextureData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_TextureData_constructor); tolua_function(tolua_S,"getContourData",lua_cocos2dx_studio_TextureData_getContourData); tolua_function(tolua_S,"init",lua_cocos2dx_studio_TextureData_init); tolua_function(tolua_S,"addContourData",lua_cocos2dx_studio_TextureData_addContourData); tolua_function(tolua_S,"create", lua_cocos2dx_studio_TextureData_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::TextureData).name(); g_luaType[typeName] = "ccs.TextureData"; g_typeCast["TextureData"] = "ccs.TextureData"; return 1; } int lua_cocos2dx_studio_Tween_getAnimation(lua_State* tolua_S) { int argc = 0; cocostudio::Tween* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Tween",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Tween*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Tween_getAnimation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocostudio::ArmatureAnimation* ret = cobj->getAnimation(); object_to_luaval(tolua_S, "ccs.ArmatureAnimation",(cocostudio::ArmatureAnimation*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getAnimation",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Tween_getAnimation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Tween_gotoAndPause(lua_State* tolua_S) { int argc = 0; cocostudio::Tween* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Tween",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Tween*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Tween_gotoAndPause'", 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->gotoAndPause(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "gotoAndPause",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Tween_gotoAndPause'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Tween_play(lua_State* tolua_S) { int argc = 0; cocostudio::Tween* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Tween",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Tween*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Tween_play'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 5) { cocostudio::MovementBoneData* arg0; int arg1; int arg2; int arg3; int arg4; ok &= luaval_to_object(tolua_S, 2, "ccs.MovementBoneData",&arg0); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2); ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3); ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4); if(!ok) return 0; cobj->play(arg0, arg1, arg2, arg3, arg4); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "play",argc, 5); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Tween_play'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Tween_gotoAndPlay(lua_State* tolua_S) { int argc = 0; cocostudio::Tween* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Tween",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Tween*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Tween_gotoAndPlay'", 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->gotoAndPlay(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "gotoAndPlay",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Tween_gotoAndPlay'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Tween_init(lua_State* tolua_S) { int argc = 0; cocostudio::Tween* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Tween",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Tween*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Tween_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::Bone* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.Bone",&arg0); if(!ok) return 0; bool ret = cobj->init(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "init",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Tween_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Tween_setAnimation(lua_State* tolua_S) { int argc = 0; cocostudio::Tween* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Tween",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Tween*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Tween_setAnimation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::ArmatureAnimation* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.ArmatureAnimation",&arg0); if(!ok) return 0; cobj->setAnimation(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setAnimation",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Tween_setAnimation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Tween_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,"ccs.Tween",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocostudio::Bone* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.Bone",&arg0); if(!ok) return 0; cocostudio::Tween* ret = cocostudio::Tween::create(arg0); object_to_luaval(tolua_S, "ccs.Tween",(cocostudio::Tween*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Tween_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Tween_constructor(lua_State* tolua_S) { int argc = 0; cocostudio::Tween* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj = new cocostudio::Tween(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.Tween"); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "Tween",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Tween_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_Tween_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Tween)"); return 0; } int lua_register_cocos2dx_studio_Tween(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.Tween"); tolua_cclass(tolua_S,"Tween","ccs.Tween","ccs.ProcessBase",nullptr); tolua_beginmodule(tolua_S,"Tween"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_Tween_constructor); tolua_function(tolua_S,"getAnimation",lua_cocos2dx_studio_Tween_getAnimation); tolua_function(tolua_S,"gotoAndPause",lua_cocos2dx_studio_Tween_gotoAndPause); tolua_function(tolua_S,"play",lua_cocos2dx_studio_Tween_play); tolua_function(tolua_S,"gotoAndPlay",lua_cocos2dx_studio_Tween_gotoAndPlay); tolua_function(tolua_S,"init",lua_cocos2dx_studio_Tween_init); tolua_function(tolua_S,"setAnimation",lua_cocos2dx_studio_Tween_setAnimation); tolua_function(tolua_S,"create", lua_cocos2dx_studio_Tween_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::Tween).name(); g_luaType[typeName] = "ccs.Tween"; g_typeCast["Tween"] = "ccs.Tween"; return 1; } int lua_cocos2dx_studio_DisplayManager_getDisplayRenderNode(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_DisplayManager_getDisplayRenderNode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocos2d::Node* ret = cobj->getDisplayRenderNode(); object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getDisplayRenderNode",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_DisplayManager_getDisplayRenderNode'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_DisplayManager_getAnchorPointInPoints(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_DisplayManager_getAnchorPointInPoints'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocos2d::Vec2 ret = cobj->getAnchorPointInPoints(); vec2_to_luaval(tolua_S, ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getAnchorPointInPoints",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_DisplayManager_getAnchorPointInPoints'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_DisplayManager_getDisplayRenderNodeType(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_DisplayManager_getDisplayRenderNodeType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; int ret = (int)cobj->getDisplayRenderNodeType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getDisplayRenderNodeType",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_DisplayManager_getDisplayRenderNodeType'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_DisplayManager_removeDisplay(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_DisplayManager_removeDisplay'", 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->removeDisplay(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "removeDisplay",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_DisplayManager_removeDisplay'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_DisplayManager_setForceChangeDisplay(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_DisplayManager_setForceChangeDisplay'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0); if(!ok) return 0; cobj->setForceChangeDisplay(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setForceChangeDisplay",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_DisplayManager_setForceChangeDisplay'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_DisplayManager_init(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_DisplayManager_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::Bone* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.Bone",&arg0); if(!ok) return 0; bool ret = cobj->init(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "init",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_DisplayManager_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_DisplayManager_getContentSize(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_DisplayManager_getContentSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocos2d::Size ret = cobj->getContentSize(); size_to_luaval(tolua_S, ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getContentSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_DisplayManager_getContentSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_DisplayManager_getBoundingBox(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_DisplayManager_getBoundingBox'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocos2d::Rect ret = cobj->getBoundingBox(); rect_to_luaval(tolua_S, ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getBoundingBox",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_DisplayManager_getBoundingBox'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_DisplayManager_addDisplay(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_DisplayManager_addDisplay'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { cocos2d::Node* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); if (!ok) { break; } cobj->addDisplay(arg0, arg1); return 0; } }while(0); ok = true; do{ if (argc == 2) { cocostudio::DisplayData* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.DisplayData",&arg0); if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); if (!ok) { break; } cobj->addDisplay(arg0, arg1); return 0; } }while(0); ok = true; CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "addDisplay",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_DisplayManager_addDisplay'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_DisplayManager_containPoint(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_DisplayManager_containPoint'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1); if (!ok) { break; } bool ret = cobj->containPoint(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0); if (!ok) { break; } bool ret = cobj->containPoint(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "containPoint",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_DisplayManager_containPoint'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_DisplayManager_changeDisplayWithIndex(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_DisplayManager_changeDisplayWithIndex'", 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); ok &= luaval_to_boolean(tolua_S, 3,&arg1); if(!ok) return 0; cobj->changeDisplayWithIndex(arg0, arg1); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "changeDisplayWithIndex",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_DisplayManager_changeDisplayWithIndex'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_DisplayManager_changeDisplayWithName(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_DisplayManager_changeDisplayWithName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string arg0; bool arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0); ok &= luaval_to_boolean(tolua_S, 3,&arg1); if(!ok) return 0; cobj->changeDisplayWithName(arg0, arg1); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "changeDisplayWithName",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_DisplayManager_changeDisplayWithName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_DisplayManager_isForceChangeDisplay(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_DisplayManager_isForceChangeDisplay'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; bool ret = cobj->isForceChangeDisplay(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "isForceChangeDisplay",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_DisplayManager_isForceChangeDisplay'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_DisplayManager_getCurrentDisplayIndex(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_DisplayManager_getCurrentDisplayIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; int ret = cobj->getCurrentDisplayIndex(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getCurrentDisplayIndex",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_DisplayManager_getCurrentDisplayIndex'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_DisplayManager_getAnchorPoint(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_DisplayManager_getAnchorPoint'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocos2d::Vec2 ret = cobj->getAnchorPoint(); vec2_to_luaval(tolua_S, ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getAnchorPoint",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_DisplayManager_getAnchorPoint'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_DisplayManager_getDecorativeDisplayList(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_DisplayManager_getDecorativeDisplayList'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; const cocos2d::Vector& ret = cobj->getDecorativeDisplayList(); ccvector_to_luaval(tolua_S, ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getDecorativeDisplayList",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_DisplayManager_getDecorativeDisplayList'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_DisplayManager_isVisible(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_DisplayManager_isVisible'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; bool ret = cobj->isVisible(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "isVisible",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_DisplayManager_isVisible'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_DisplayManager_setVisible(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_DisplayManager_setVisible'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0); if(!ok) return 0; cobj->setVisible(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setVisible",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_DisplayManager_setVisible'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_DisplayManager_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,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocostudio::Bone* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.Bone",&arg0); if(!ok) return 0; cocostudio::DisplayManager* ret = cocostudio::DisplayManager::create(arg0); object_to_luaval(tolua_S, "ccs.DisplayManager",(cocostudio::DisplayManager*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_DisplayManager_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_DisplayManager_constructor(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj = new cocostudio::DisplayManager(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.DisplayManager"); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "DisplayManager",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_DisplayManager_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_DisplayManager_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (DisplayManager)"); return 0; } int lua_register_cocos2dx_studio_DisplayManager(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.DisplayManager"); tolua_cclass(tolua_S,"DisplayManager","ccs.DisplayManager","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"DisplayManager"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_DisplayManager_constructor); tolua_function(tolua_S,"getDisplayRenderNode",lua_cocos2dx_studio_DisplayManager_getDisplayRenderNode); tolua_function(tolua_S,"getAnchorPointInPoints",lua_cocos2dx_studio_DisplayManager_getAnchorPointInPoints); tolua_function(tolua_S,"getDisplayRenderNodeType",lua_cocos2dx_studio_DisplayManager_getDisplayRenderNodeType); tolua_function(tolua_S,"removeDisplay",lua_cocos2dx_studio_DisplayManager_removeDisplay); tolua_function(tolua_S,"setForceChangeDisplay",lua_cocos2dx_studio_DisplayManager_setForceChangeDisplay); tolua_function(tolua_S,"init",lua_cocos2dx_studio_DisplayManager_init); tolua_function(tolua_S,"getContentSize",lua_cocos2dx_studio_DisplayManager_getContentSize); tolua_function(tolua_S,"getBoundingBox",lua_cocos2dx_studio_DisplayManager_getBoundingBox); tolua_function(tolua_S,"addDisplay",lua_cocos2dx_studio_DisplayManager_addDisplay); tolua_function(tolua_S,"containPoint",lua_cocos2dx_studio_DisplayManager_containPoint); tolua_function(tolua_S,"changeDisplayWithIndex",lua_cocos2dx_studio_DisplayManager_changeDisplayWithIndex); tolua_function(tolua_S,"changeDisplayWithName",lua_cocos2dx_studio_DisplayManager_changeDisplayWithName); tolua_function(tolua_S,"isForceChangeDisplay",lua_cocos2dx_studio_DisplayManager_isForceChangeDisplay); tolua_function(tolua_S,"getCurrentDisplayIndex",lua_cocos2dx_studio_DisplayManager_getCurrentDisplayIndex); tolua_function(tolua_S,"getAnchorPoint",lua_cocos2dx_studio_DisplayManager_getAnchorPoint); tolua_function(tolua_S,"getDecorativeDisplayList",lua_cocos2dx_studio_DisplayManager_getDecorativeDisplayList); tolua_function(tolua_S,"isVisible",lua_cocos2dx_studio_DisplayManager_isVisible); tolua_function(tolua_S,"setVisible",lua_cocos2dx_studio_DisplayManager_setVisible); tolua_function(tolua_S,"create", lua_cocos2dx_studio_DisplayManager_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::DisplayManager).name(); g_luaType[typeName] = "ccs.DisplayManager"; g_typeCast["DisplayManager"] = "ccs.DisplayManager"; return 1; } int lua_cocos2dx_studio_Bone_isTransformDirty(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_isTransformDirty'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; bool ret = cobj->isTransformDirty(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "isTransformDirty",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_isTransformDirty'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_isIgnoreMovementBoneData(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_isIgnoreMovementBoneData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; bool ret = cobj->isIgnoreMovementBoneData(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "isIgnoreMovementBoneData",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_isIgnoreMovementBoneData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_updateZOrder(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_updateZOrder'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj->updateZOrder(); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "updateZOrder",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_updateZOrder'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_getDisplayRenderNode(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_getDisplayRenderNode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocos2d::Node* ret = cobj->getDisplayRenderNode(); object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getDisplayRenderNode",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_getDisplayRenderNode'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_isBlendDirty(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_isBlendDirty'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; bool ret = cobj->isBlendDirty(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "isBlendDirty",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_isBlendDirty'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_addChildBone(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_addChildBone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::Bone* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.Bone",&arg0); if(!ok) return 0; cobj->addChildBone(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "addChildBone",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_addChildBone'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_getWorldInfo(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_getWorldInfo'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocostudio::BaseData* ret = cobj->getWorldInfo(); object_to_luaval(tolua_S, "ccs.BaseData",(cocostudio::BaseData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getWorldInfo",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_getWorldInfo'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_getTween(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_getTween'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocostudio::Tween* ret = cobj->getTween(); object_to_luaval(tolua_S, "ccs.Tween",(cocostudio::Tween*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getTween",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_getTween'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_getParentBone(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_getParentBone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocostudio::Bone* ret = cobj->getParentBone(); object_to_luaval(tolua_S, "ccs.Bone",(cocostudio::Bone*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getParentBone",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_getParentBone'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_updateColor(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_updateColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj->updateColor(); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "updateColor",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_updateColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_getName(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_getName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; const std::string ret = cobj->getName(); tolua_pushcppstring(tolua_S,ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getName",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_getName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_setTransformDirty(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_setTransformDirty'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0); if(!ok) return 0; cobj->setTransformDirty(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setTransformDirty",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_setTransformDirty'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_getDisplayRenderNodeType(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_getDisplayRenderNodeType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; int ret = (int)cobj->getDisplayRenderNodeType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getDisplayRenderNodeType",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_getDisplayRenderNodeType'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_removeDisplay(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_removeDisplay'", 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->removeDisplay(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "removeDisplay",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_removeDisplay'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_setBoneData(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_setBoneData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::BoneData* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.BoneData",&arg0); if(!ok) return 0; cobj->setBoneData(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setBoneData",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_setBoneData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_init(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if (!ok) { break; } bool ret = cobj->init(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_setParentBone(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_setParentBone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::Bone* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.Bone",&arg0); if(!ok) return 0; cobj->setParentBone(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setParentBone",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_setParentBone'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_addDisplay(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_addDisplay'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { cocos2d::Node* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); if (!ok) { break; } cobj->addDisplay(arg0, arg1); return 0; } }while(0); ok = true; do{ if (argc == 2) { cocostudio::DisplayData* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.DisplayData",&arg0); if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); if (!ok) { break; } cobj->addDisplay(arg0, arg1); return 0; } }while(0); ok = true; CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "addDisplay",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_addDisplay'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_setName(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_setName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if(!ok) return 0; cobj->setName(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_setName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_removeFromParent(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_removeFromParent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0); if(!ok) return 0; cobj->removeFromParent(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "removeFromParent",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_removeFromParent'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_getColliderDetector(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_getColliderDetector'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocostudio::ColliderDetector* ret = cobj->getColliderDetector(); object_to_luaval(tolua_S, "ccs.ColliderDetector",(cocostudio::ColliderDetector*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getColliderDetector",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_getColliderDetector'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_getChildArmature(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_getChildArmature'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocostudio::Armature* ret = cobj->getChildArmature(); object_to_luaval(tolua_S, "ccs.Armature",(cocostudio::Armature*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getChildArmature",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_getChildArmature'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_getTweenData(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_getTweenData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocostudio::FrameData* ret = cobj->getTweenData(); object_to_luaval(tolua_S, "ccs.FrameData",(cocostudio::FrameData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getTweenData",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_getTweenData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_changeDisplayWithIndex(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_changeDisplayWithIndex'", 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); ok &= luaval_to_boolean(tolua_S, 3,&arg1); if(!ok) return 0; cobj->changeDisplayWithIndex(arg0, arg1); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "changeDisplayWithIndex",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_changeDisplayWithIndex'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_changeDisplayWithName(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_changeDisplayWithName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string arg0; bool arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0); ok &= luaval_to_boolean(tolua_S, 3,&arg1); if(!ok) return 0; cobj->changeDisplayWithName(arg0, arg1); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "changeDisplayWithName",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_changeDisplayWithName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_setArmature(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_setArmature'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::Armature* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.Armature",&arg0); if(!ok) return 0; cobj->setArmature(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setArmature",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_setArmature'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_setBlendDirty(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_setBlendDirty'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0); if(!ok) return 0; cobj->setBlendDirty(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setBlendDirty",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_setBlendDirty'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_removeChildBone(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_removeChildBone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocostudio::Bone* arg0; bool arg1; ok &= luaval_to_object(tolua_S, 2, "ccs.Bone",&arg0); ok &= luaval_to_boolean(tolua_S, 3,&arg1); if(!ok) return 0; cobj->removeChildBone(arg0, arg1); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "removeChildBone",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_removeChildBone'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_setChildArmature(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_setChildArmature'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::Armature* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.Armature",&arg0); if(!ok) return 0; cobj->setChildArmature(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setChildArmature",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_setChildArmature'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_getNodeToArmatureTransform(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_getNodeToArmatureTransform'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocos2d::Mat4 ret = cobj->getNodeToArmatureTransform(); mat4_to_luaval(tolua_S, ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getNodeToArmatureTransform",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_getNodeToArmatureTransform'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_getDisplayManager(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_getDisplayManager'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocostudio::DisplayManager* ret = cobj->getDisplayManager(); object_to_luaval(tolua_S, "ccs.DisplayManager",(cocostudio::DisplayManager*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getDisplayManager",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_getDisplayManager'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_getArmature(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_getArmature'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocostudio::Armature* ret = cobj->getArmature(); object_to_luaval(tolua_S, "ccs.Armature",(cocostudio::Armature*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getArmature",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_getArmature'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_getBoneData(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_getBoneData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocostudio::BoneData* ret = cobj->getBoneData(); object_to_luaval(tolua_S, "ccs.BoneData",(cocostudio::BoneData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getBoneData",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_getBoneData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_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,"ccs.Bone",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); if (!ok) { break; } cocostudio::Bone* ret = cocostudio::Bone::create(arg0); object_to_luaval(tolua_S, "ccs.Bone",(cocostudio::Bone*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { cocostudio::Bone* ret = cocostudio::Bone::create(); object_to_luaval(tolua_S, "ccs.Bone",(cocostudio::Bone*)ret); return 1; } } while (0); ok = true; CCLOG("%s has wrong number of arguments: %d, was expecting %d", "create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Bone_constructor(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj = new cocostudio::Bone(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.Bone"); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "Bone",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_Bone_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Bone)"); return 0; } int lua_register_cocos2dx_studio_Bone(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.Bone"); tolua_cclass(tolua_S,"Bone","ccs.Bone","cc.Node",nullptr); tolua_beginmodule(tolua_S,"Bone"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_Bone_constructor); tolua_function(tolua_S,"isTransformDirty",lua_cocos2dx_studio_Bone_isTransformDirty); tolua_function(tolua_S,"isIgnoreMovementBoneData",lua_cocos2dx_studio_Bone_isIgnoreMovementBoneData); tolua_function(tolua_S,"updateZOrder",lua_cocos2dx_studio_Bone_updateZOrder); tolua_function(tolua_S,"getDisplayRenderNode",lua_cocos2dx_studio_Bone_getDisplayRenderNode); tolua_function(tolua_S,"isBlendDirty",lua_cocos2dx_studio_Bone_isBlendDirty); tolua_function(tolua_S,"addChildBone",lua_cocos2dx_studio_Bone_addChildBone); tolua_function(tolua_S,"getWorldInfo",lua_cocos2dx_studio_Bone_getWorldInfo); tolua_function(tolua_S,"getTween",lua_cocos2dx_studio_Bone_getTween); tolua_function(tolua_S,"getParentBone",lua_cocos2dx_studio_Bone_getParentBone); tolua_function(tolua_S,"updateColor",lua_cocos2dx_studio_Bone_updateColor); tolua_function(tolua_S,"getName",lua_cocos2dx_studio_Bone_getName); tolua_function(tolua_S,"setTransformDirty",lua_cocos2dx_studio_Bone_setTransformDirty); tolua_function(tolua_S,"getDisplayRenderNodeType",lua_cocos2dx_studio_Bone_getDisplayRenderNodeType); tolua_function(tolua_S,"removeDisplay",lua_cocos2dx_studio_Bone_removeDisplay); tolua_function(tolua_S,"setBoneData",lua_cocos2dx_studio_Bone_setBoneData); tolua_function(tolua_S,"init",lua_cocos2dx_studio_Bone_init); tolua_function(tolua_S,"setParentBone",lua_cocos2dx_studio_Bone_setParentBone); tolua_function(tolua_S,"addDisplay",lua_cocos2dx_studio_Bone_addDisplay); tolua_function(tolua_S,"setName",lua_cocos2dx_studio_Bone_setName); tolua_function(tolua_S,"removeFromParent",lua_cocos2dx_studio_Bone_removeFromParent); tolua_function(tolua_S,"getColliderDetector",lua_cocos2dx_studio_Bone_getColliderDetector); tolua_function(tolua_S,"getChildArmature",lua_cocos2dx_studio_Bone_getChildArmature); tolua_function(tolua_S,"getTweenData",lua_cocos2dx_studio_Bone_getTweenData); tolua_function(tolua_S,"changeDisplayWithIndex",lua_cocos2dx_studio_Bone_changeDisplayWithIndex); tolua_function(tolua_S,"changeDisplayWithName",lua_cocos2dx_studio_Bone_changeDisplayWithName); tolua_function(tolua_S,"setArmature",lua_cocos2dx_studio_Bone_setArmature); tolua_function(tolua_S,"setBlendDirty",lua_cocos2dx_studio_Bone_setBlendDirty); tolua_function(tolua_S,"removeChildBone",lua_cocos2dx_studio_Bone_removeChildBone); tolua_function(tolua_S,"setChildArmature",lua_cocos2dx_studio_Bone_setChildArmature); tolua_function(tolua_S,"getNodeToArmatureTransform",lua_cocos2dx_studio_Bone_getNodeToArmatureTransform); tolua_function(tolua_S,"getDisplayManager",lua_cocos2dx_studio_Bone_getDisplayManager); tolua_function(tolua_S,"getArmature",lua_cocos2dx_studio_Bone_getArmature); tolua_function(tolua_S,"getBoneData",lua_cocos2dx_studio_Bone_getBoneData); tolua_function(tolua_S,"create", lua_cocos2dx_studio_Bone_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::Bone).name(); g_luaType[typeName] = "ccs.Bone"; g_typeCast["Bone"] = "ccs.Bone"; return 1; } int lua_cocos2dx_studio_BatchNode_init(lua_State* tolua_S) { int argc = 0; cocostudio::BatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.BatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::BatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_BatchNode_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_BatchNode_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_BatchNode_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,"ccs.BatchNode",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::BatchNode* ret = cocostudio::BatchNode::create(); object_to_luaval(tolua_S, "ccs.BatchNode",(cocostudio::BatchNode*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_BatchNode_create'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_BatchNode_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (BatchNode)"); return 0; } int lua_register_cocos2dx_studio_BatchNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.BatchNode"); tolua_cclass(tolua_S,"BatchNode","ccs.BatchNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"BatchNode"); tolua_function(tolua_S,"init",lua_cocos2dx_studio_BatchNode_init); tolua_function(tolua_S,"create", lua_cocos2dx_studio_BatchNode_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::BatchNode).name(); g_luaType[typeName] = "ccs.BatchNode"; g_typeCast["BatchNode"] = "ccs.BatchNode"; return 1; } int lua_cocos2dx_studio_ArmatureAnimation_getSpeedScale(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureAnimation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_getSpeedScale'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; double ret = cobj->getSpeedScale(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getSpeedScale",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_getSpeedScale'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureAnimation_pause(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureAnimation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_pause'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj->pause(); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "pause",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_pause'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureAnimation_setSpeedScale(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureAnimation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_setSpeedScale'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0); if(!ok) return 0; cobj->setSpeedScale(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setSpeedScale",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_setSpeedScale'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureAnimation_init(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureAnimation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::Armature* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.Armature",&arg0); if(!ok) return 0; bool ret = cobj->init(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "init",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureAnimation_playWithIndexes(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureAnimation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithIndexes'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::vector arg0; ok &= luaval_to_std_vector_int(tolua_S, 2, &arg0); if(!ok) return 0; cobj->playWithIndexes(arg0); return 0; } if (argc == 2) { std::vector arg0; int arg1; ok &= luaval_to_std_vector_int(tolua_S, 2, &arg0); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); if(!ok) return 0; cobj->playWithIndexes(arg0, arg1); return 0; } if (argc == 3) { std::vector arg0; int arg1; bool arg2; ok &= luaval_to_std_vector_int(tolua_S, 2, &arg0); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); ok &= luaval_to_boolean(tolua_S, 4,&arg2); if(!ok) return 0; cobj->playWithIndexes(arg0, arg1, arg2); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "playWithIndexes",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithIndexes'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureAnimation_play(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureAnimation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_play'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if(!ok) return 0; cobj->play(arg0); return 0; } if (argc == 2) { std::string arg0; int arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); if(!ok) return 0; cobj->play(arg0, arg1); return 0; } if (argc == 3) { std::string arg0; int arg1; int arg2; ok &= luaval_to_std_string(tolua_S, 2,&arg0); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2); if(!ok) return 0; cobj->play(arg0, arg1, arg2); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "play",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_play'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureAnimation_gotoAndPause(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureAnimation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_gotoAndPause'", 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->gotoAndPause(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "gotoAndPause",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_gotoAndPause'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureAnimation_resume(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureAnimation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_resume'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj->resume(); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "resume",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_resume'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureAnimation_stop(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureAnimation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_stop'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj->stop(); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "stop",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_stop'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureAnimation_update(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureAnimation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_update'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0); if(!ok) return 0; cobj->update(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "update",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_update'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureAnimation_getAnimationData(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureAnimation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_getAnimationData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocostudio::AnimationData* ret = cobj->getAnimationData(); object_to_luaval(tolua_S, "ccs.AnimationData",(cocostudio::AnimationData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getAnimationData",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_getAnimationData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureAnimation_playWithIndex(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureAnimation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithIndex'", 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->playWithIndex(arg0); return 0; } if (argc == 2) { int arg0; int arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); if(!ok) return 0; cobj->playWithIndex(arg0, arg1); return 0; } if (argc == 3) { int arg0; int arg1; int arg2; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2); if(!ok) return 0; cobj->playWithIndex(arg0, arg1, arg2); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "playWithIndex",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithIndex'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureAnimation_getCurrentMovementID(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureAnimation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_getCurrentMovementID'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; std::string ret = cobj->getCurrentMovementID(); tolua_pushcppstring(tolua_S,ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getCurrentMovementID",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_getCurrentMovementID'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureAnimation_setAnimationData(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureAnimation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_setAnimationData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::AnimationData* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.AnimationData",&arg0); if(!ok) return 0; cobj->setAnimationData(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setAnimationData",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_setAnimationData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureAnimation_gotoAndPlay(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureAnimation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_gotoAndPlay'", 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->gotoAndPlay(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "gotoAndPlay",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_gotoAndPlay'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureAnimation_playWithNames(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureAnimation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithNames'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::vector arg0; ok &= luaval_to_std_vector_string(tolua_S, 2, &arg0); if(!ok) return 0; cobj->playWithNames(arg0); return 0; } if (argc == 2) { std::vector arg0; int arg1; ok &= luaval_to_std_vector_string(tolua_S, 2, &arg0); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); if(!ok) return 0; cobj->playWithNames(arg0, arg1); return 0; } if (argc == 3) { std::vector arg0; int arg1; bool arg2; ok &= luaval_to_std_vector_string(tolua_S, 2, &arg0); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); ok &= luaval_to_boolean(tolua_S, 4,&arg2); if(!ok) return 0; cobj->playWithNames(arg0, arg1, arg2); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "playWithNames",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithNames'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureAnimation_getMovementCount(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureAnimation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_getMovementCount'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; ssize_t ret = cobj->getMovementCount(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getMovementCount",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_getMovementCount'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureAnimation_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,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocostudio::Armature* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.Armature",&arg0); if(!ok) return 0; cocostudio::ArmatureAnimation* ret = cocostudio::ArmatureAnimation::create(arg0); object_to_luaval(tolua_S, "ccs.ArmatureAnimation",(cocostudio::ArmatureAnimation*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureAnimation_constructor(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureAnimation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj = new cocostudio::ArmatureAnimation(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.ArmatureAnimation"); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ArmatureAnimation",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_ArmatureAnimation_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ArmatureAnimation)"); return 0; } int lua_register_cocos2dx_studio_ArmatureAnimation(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.ArmatureAnimation"); tolua_cclass(tolua_S,"ArmatureAnimation","ccs.ArmatureAnimation","ccs.ProcessBase",nullptr); tolua_beginmodule(tolua_S,"ArmatureAnimation"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_ArmatureAnimation_constructor); tolua_function(tolua_S,"getSpeedScale",lua_cocos2dx_studio_ArmatureAnimation_getSpeedScale); tolua_function(tolua_S,"pause",lua_cocos2dx_studio_ArmatureAnimation_pause); tolua_function(tolua_S,"setSpeedScale",lua_cocos2dx_studio_ArmatureAnimation_setSpeedScale); tolua_function(tolua_S,"init",lua_cocos2dx_studio_ArmatureAnimation_init); tolua_function(tolua_S,"playWithIndexes",lua_cocos2dx_studio_ArmatureAnimation_playWithIndexes); tolua_function(tolua_S,"play",lua_cocos2dx_studio_ArmatureAnimation_play); tolua_function(tolua_S,"gotoAndPause",lua_cocos2dx_studio_ArmatureAnimation_gotoAndPause); tolua_function(tolua_S,"resume",lua_cocos2dx_studio_ArmatureAnimation_resume); tolua_function(tolua_S,"stop",lua_cocos2dx_studio_ArmatureAnimation_stop); tolua_function(tolua_S,"update",lua_cocos2dx_studio_ArmatureAnimation_update); tolua_function(tolua_S,"getAnimationData",lua_cocos2dx_studio_ArmatureAnimation_getAnimationData); tolua_function(tolua_S,"playWithIndex",lua_cocos2dx_studio_ArmatureAnimation_playWithIndex); tolua_function(tolua_S,"getCurrentMovementID",lua_cocos2dx_studio_ArmatureAnimation_getCurrentMovementID); tolua_function(tolua_S,"setAnimationData",lua_cocos2dx_studio_ArmatureAnimation_setAnimationData); tolua_function(tolua_S,"gotoAndPlay",lua_cocos2dx_studio_ArmatureAnimation_gotoAndPlay); tolua_function(tolua_S,"playWithNames",lua_cocos2dx_studio_ArmatureAnimation_playWithNames); tolua_function(tolua_S,"getMovementCount",lua_cocos2dx_studio_ArmatureAnimation_getMovementCount); tolua_function(tolua_S,"create", lua_cocos2dx_studio_ArmatureAnimation_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::ArmatureAnimation).name(); g_luaType[typeName] = "ccs.ArmatureAnimation"; g_typeCast["ArmatureAnimation"] = "ccs.ArmatureAnimation"; return 1; } int lua_cocos2dx_studio_ArmatureDataManager_getAnimationDatas(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureDataManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureDataManager_getAnimationDatas'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; const cocos2d::Map& ret = cobj->getAnimationDatas(); ccmap_string_key_to_luaval(tolua_S, ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getAnimationDatas",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureDataManager_getAnimationDatas'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureDataManager_removeAnimationData(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureDataManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureDataManager_removeAnimationData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if(!ok) return 0; cobj->removeAnimationData(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "removeAnimationData",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureDataManager_removeAnimationData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureDataManager_addArmatureData(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureDataManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureDataManager_addArmatureData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string arg0; cocostudio::ArmatureData* arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0); ok &= luaval_to_object(tolua_S, 3, "ccs.ArmatureData",&arg1); if(!ok) return 0; cobj->addArmatureData(arg0, arg1); return 0; } if (argc == 3) { std::string arg0; cocostudio::ArmatureData* arg1; std::string arg2; ok &= luaval_to_std_string(tolua_S, 2,&arg0); ok &= luaval_to_object(tolua_S, 3, "ccs.ArmatureData",&arg1); ok &= luaval_to_std_string(tolua_S, 4,&arg2); if(!ok) return 0; cobj->addArmatureData(arg0, arg1, arg2); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "addArmatureData",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureDataManager_addArmatureData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureDataManager_addArmatureFileInfo(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureDataManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureDataManager_addArmatureFileInfo'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1); if (!ok) { break; } std::string arg2; ok &= luaval_to_std_string(tolua_S, 4,&arg2); if (!ok) { break; } cobj->addArmatureFileInfo(arg0, arg1, arg2); return 0; } }while(0); ok = true; do{ if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if (!ok) { break; } cobj->addArmatureFileInfo(arg0); return 0; } }while(0); ok = true; CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "addArmatureFileInfo",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureDataManager_addArmatureFileInfo'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureDataManager_removeArmatureFileInfo(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureDataManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureDataManager_removeArmatureFileInfo'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if(!ok) return 0; cobj->removeArmatureFileInfo(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "removeArmatureFileInfo",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureDataManager_removeArmatureFileInfo'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureDataManager_getTextureDatas(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureDataManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureDataManager_getTextureDatas'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; const cocos2d::Map& ret = cobj->getTextureDatas(); ccmap_string_key_to_luaval(tolua_S, ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getTextureDatas",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureDataManager_getTextureDatas'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureDataManager_getTextureData(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureDataManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureDataManager_getTextureData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if(!ok) return 0; cocostudio::TextureData* ret = cobj->getTextureData(arg0); object_to_luaval(tolua_S, "ccs.TextureData",(cocostudio::TextureData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getTextureData",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureDataManager_getTextureData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureDataManager_getArmatureData(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureDataManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureDataManager_getArmatureData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if(!ok) return 0; cocostudio::ArmatureData* ret = cobj->getArmatureData(arg0); object_to_luaval(tolua_S, "ccs.ArmatureData",(cocostudio::ArmatureData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getArmatureData",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureDataManager_getArmatureData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureDataManager_getAnimationData(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureDataManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureDataManager_getAnimationData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if(!ok) return 0; cocostudio::AnimationData* ret = cobj->getAnimationData(arg0); object_to_luaval(tolua_S, "ccs.AnimationData",(cocostudio::AnimationData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getAnimationData",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureDataManager_getAnimationData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureDataManager_addAnimationData(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureDataManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureDataManager_addAnimationData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string arg0; cocostudio::AnimationData* arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0); ok &= luaval_to_object(tolua_S, 3, "ccs.AnimationData",&arg1); if(!ok) return 0; cobj->addAnimationData(arg0, arg1); return 0; } if (argc == 3) { std::string arg0; cocostudio::AnimationData* arg1; std::string arg2; ok &= luaval_to_std_string(tolua_S, 2,&arg0); ok &= luaval_to_object(tolua_S, 3, "ccs.AnimationData",&arg1); ok &= luaval_to_std_string(tolua_S, 4,&arg2); if(!ok) return 0; cobj->addAnimationData(arg0, arg1, arg2); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "addAnimationData",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureDataManager_addAnimationData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureDataManager_init(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureDataManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureDataManager_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureDataManager_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureDataManager_removeArmatureData(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureDataManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureDataManager_removeArmatureData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if(!ok) return 0; cobj->removeArmatureData(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "removeArmatureData",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureDataManager_removeArmatureData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureDataManager_getArmatureDatas(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureDataManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureDataManager_getArmatureDatas'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; const cocos2d::Map& ret = cobj->getArmatureDatas(); ccmap_string_key_to_luaval(tolua_S, ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getArmatureDatas",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureDataManager_getArmatureDatas'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureDataManager_removeTextureData(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureDataManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureDataManager_removeTextureData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if(!ok) return 0; cobj->removeTextureData(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "removeTextureData",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureDataManager_removeTextureData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureDataManager_addTextureData(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureDataManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureDataManager_addTextureData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string arg0; cocostudio::TextureData* arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0); ok &= luaval_to_object(tolua_S, 3, "ccs.TextureData",&arg1); if(!ok) return 0; cobj->addTextureData(arg0, arg1); return 0; } if (argc == 3) { std::string arg0; cocostudio::TextureData* arg1; std::string arg2; ok &= luaval_to_std_string(tolua_S, 2,&arg0); ok &= luaval_to_object(tolua_S, 3, "ccs.TextureData",&arg1); ok &= luaval_to_std_string(tolua_S, 4,&arg2); if(!ok) return 0; cobj->addTextureData(arg0, arg1, arg2); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "addTextureData",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureDataManager_addTextureData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureDataManager_isAutoLoadSpriteFile(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureDataManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureDataManager_isAutoLoadSpriteFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; bool ret = cobj->isAutoLoadSpriteFile(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "isAutoLoadSpriteFile",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureDataManager_isAutoLoadSpriteFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureDataManager_addSpriteFrameFromFile(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureDataManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureDataManager_addSpriteFrameFromFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string arg0; std::string arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0); ok &= luaval_to_std_string(tolua_S, 3,&arg1); if(!ok) return 0; cobj->addSpriteFrameFromFile(arg0, arg1); return 0; } if (argc == 3) { std::string arg0; std::string arg1; std::string arg2; ok &= luaval_to_std_string(tolua_S, 2,&arg0); ok &= luaval_to_std_string(tolua_S, 3,&arg1); ok &= luaval_to_std_string(tolua_S, 4,&arg2); if(!ok) return 0; cobj->addSpriteFrameFromFile(arg0, arg1, arg2); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "addSpriteFrameFromFile",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureDataManager_addSpriteFrameFromFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureDataManager_destroyInstance(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,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::ArmatureDataManager::destroyInstance(); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "destroyInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureDataManager_destroyInstance'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ArmatureDataManager_getInstance(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,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::ArmatureDataManager* ret = cocostudio::ArmatureDataManager::getInstance(); object_to_luaval(tolua_S, "ccs.ArmatureDataManager",(cocostudio::ArmatureDataManager*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "getInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureDataManager_getInstance'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_ArmatureDataManager_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ArmatureDataManager)"); return 0; } int lua_register_cocos2dx_studio_ArmatureDataManager(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.ArmatureDataManager"); tolua_cclass(tolua_S,"ArmatureDataManager","ccs.ArmatureDataManager","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"ArmatureDataManager"); tolua_function(tolua_S,"getAnimationDatas",lua_cocos2dx_studio_ArmatureDataManager_getAnimationDatas); tolua_function(tolua_S,"removeAnimationData",lua_cocos2dx_studio_ArmatureDataManager_removeAnimationData); tolua_function(tolua_S,"addArmatureData",lua_cocos2dx_studio_ArmatureDataManager_addArmatureData); tolua_function(tolua_S,"addArmatureFileInfo",lua_cocos2dx_studio_ArmatureDataManager_addArmatureFileInfo); tolua_function(tolua_S,"removeArmatureFileInfo",lua_cocos2dx_studio_ArmatureDataManager_removeArmatureFileInfo); tolua_function(tolua_S,"getTextureDatas",lua_cocos2dx_studio_ArmatureDataManager_getTextureDatas); tolua_function(tolua_S,"getTextureData",lua_cocos2dx_studio_ArmatureDataManager_getTextureData); tolua_function(tolua_S,"getArmatureData",lua_cocos2dx_studio_ArmatureDataManager_getArmatureData); tolua_function(tolua_S,"getAnimationData",lua_cocos2dx_studio_ArmatureDataManager_getAnimationData); tolua_function(tolua_S,"addAnimationData",lua_cocos2dx_studio_ArmatureDataManager_addAnimationData); tolua_function(tolua_S,"init",lua_cocos2dx_studio_ArmatureDataManager_init); tolua_function(tolua_S,"removeArmatureData",lua_cocos2dx_studio_ArmatureDataManager_removeArmatureData); tolua_function(tolua_S,"getArmatureDatas",lua_cocos2dx_studio_ArmatureDataManager_getArmatureDatas); tolua_function(tolua_S,"removeTextureData",lua_cocos2dx_studio_ArmatureDataManager_removeTextureData); tolua_function(tolua_S,"addTextureData",lua_cocos2dx_studio_ArmatureDataManager_addTextureData); tolua_function(tolua_S,"isAutoLoadSpriteFile",lua_cocos2dx_studio_ArmatureDataManager_isAutoLoadSpriteFile); tolua_function(tolua_S,"addSpriteFrameFromFile",lua_cocos2dx_studio_ArmatureDataManager_addSpriteFrameFromFile); tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_studio_ArmatureDataManager_destroyInstance); tolua_function(tolua_S,"getInstance", lua_cocos2dx_studio_ArmatureDataManager_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::ArmatureDataManager).name(); g_luaType[typeName] = "ccs.ArmatureDataManager"; g_typeCast["ArmatureDataManager"] = "ccs.ArmatureDataManager"; return 1; } int lua_cocos2dx_studio_Armature_getBone(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_getBone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if(!ok) return 0; cocostudio::Bone* ret = cobj->getBone(arg0); object_to_luaval(tolua_S, "ccs.Bone",(cocostudio::Bone*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getBone",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_getBone'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Armature_changeBoneParent(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_changeBoneParent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocostudio::Bone* arg0; std::string arg1; ok &= luaval_to_object(tolua_S, 2, "ccs.Bone",&arg0); ok &= luaval_to_std_string(tolua_S, 3,&arg1); if(!ok) return 0; cobj->changeBoneParent(arg0, arg1); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "changeBoneParent",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_changeBoneParent'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Armature_setAnimation(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_setAnimation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::ArmatureAnimation* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.ArmatureAnimation",&arg0); if(!ok) return 0; cobj->setAnimation(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setAnimation",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_setAnimation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Armature_getBoneAtPoint(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_getBoneAtPoint'", nullptr); return 0; } #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; cocostudio::Bone* ret = cobj->getBoneAtPoint(arg0, arg1); object_to_luaval(tolua_S, "ccs.Bone",(cocostudio::Bone*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getBoneAtPoint",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_getBoneAtPoint'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Armature_getArmatureTransformDirty(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_getArmatureTransformDirty'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; bool ret = cobj->getArmatureTransformDirty(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getArmatureTransformDirty",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_getArmatureTransformDirty'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Armature_setVersion(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_setVersion'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0); if(!ok) return 0; cobj->setVersion(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setVersion",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_setVersion'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Armature_updateOffsetPoint(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_updateOffsetPoint'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj->updateOffsetPoint(); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "updateOffsetPoint",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_updateOffsetPoint'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Armature_getParentBone(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_getParentBone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocostudio::Bone* ret = cobj->getParentBone(); object_to_luaval(tolua_S, "ccs.Bone",(cocostudio::Bone*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getParentBone",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_getParentBone'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Armature_setArmatureData(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_setArmatureData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::ArmatureData* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.ArmatureData",&arg0); if(!ok) return 0; cobj->setArmatureData(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setArmatureData",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_setArmatureData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Armature_removeBone(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_removeBone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocostudio::Bone* arg0; bool arg1; ok &= luaval_to_object(tolua_S, 2, "ccs.Bone",&arg0); ok &= luaval_to_boolean(tolua_S, 3,&arg1); if(!ok) return 0; cobj->removeBone(arg0, arg1); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "removeBone",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_removeBone'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Armature_getBatchNode(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_getBatchNode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocostudio::BatchNode* ret = cobj->getBatchNode(); object_to_luaval(tolua_S, "ccs.BatchNode",(cocostudio::BatchNode*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getBatchNode",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_getBatchNode'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Armature_getName(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_getName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; const std::string& ret = cobj->getName(); tolua_pushcppstring(tolua_S,ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getName",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_getName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Armature_init(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if (!ok) { break; } bool ret = cobj->init(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if (!ok) { break; } cocostudio::Bone* arg1; ok &= luaval_to_object(tolua_S, 3, "ccs.Bone",&arg1); if (!ok) { break; } bool ret = cobj->init(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "init",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Armature_setParentBone(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_setParentBone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::Bone* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.Bone",&arg0); if(!ok) return 0; cobj->setParentBone(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setParentBone",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_setParentBone'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Armature_drawContour(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_drawContour'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj->drawContour(); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "drawContour",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_drawContour'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Armature_setBatchNode(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_setBatchNode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::BatchNode* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.BatchNode",&arg0); if(!ok) return 0; cobj->setBatchNode(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setBatchNode",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_setBatchNode'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Armature_setName(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_setName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if(!ok) return 0; cobj->setName(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_setName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Armature_addBone(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_addBone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocostudio::Bone* arg0; std::string arg1; ok &= luaval_to_object(tolua_S, 2, "ccs.Bone",&arg0); ok &= luaval_to_std_string(tolua_S, 3,&arg1); if(!ok) return 0; cobj->addBone(arg0, arg1); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "addBone",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_addBone'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Armature_getArmatureData(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_getArmatureData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocostudio::ArmatureData* ret = cobj->getArmatureData(); object_to_luaval(tolua_S, "ccs.ArmatureData",(cocostudio::ArmatureData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getArmatureData",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_getArmatureData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Armature_getVersion(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_getVersion'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; double ret = cobj->getVersion(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getVersion",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_getVersion'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Armature_getAnimation(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_getAnimation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocostudio::ArmatureAnimation* ret = cobj->getAnimation(); object_to_luaval(tolua_S, "ccs.ArmatureAnimation",(cocostudio::ArmatureAnimation*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getAnimation",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_getAnimation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Armature_getBoneDic(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_getBoneDic'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; const cocos2d::Map& ret = cobj->getBoneDic(); ccmap_string_key_to_luaval(tolua_S, ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getBoneDic",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_getBoneDic'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Armature_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,"ccs.Armature",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); if (!ok) { break; } cocostudio::Armature* ret = cocostudio::Armature::create(arg0); object_to_luaval(tolua_S, "ccs.Armature",(cocostudio::Armature*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { cocostudio::Armature* ret = cocostudio::Armature::create(); object_to_luaval(tolua_S, "ccs.Armature",(cocostudio::Armature*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if (!ok) { break; } cocostudio::Bone* arg1; ok &= luaval_to_object(tolua_S, 3, "ccs.Bone",&arg1); if (!ok) { break; } cocostudio::Armature* ret = cocostudio::Armature::create(arg0, arg1); object_to_luaval(tolua_S, "ccs.Armature",(cocostudio::Armature*)ret); return 1; } } while (0); ok = true; CCLOG("%s has wrong number of arguments: %d, was expecting %d", "create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Armature_constructor(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj = new cocostudio::Armature(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.Armature"); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "Armature",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_Armature_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Armature)"); return 0; } int lua_register_cocos2dx_studio_Armature(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.Armature"); tolua_cclass(tolua_S,"Armature","ccs.Armature","cc.Node",nullptr); tolua_beginmodule(tolua_S,"Armature"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_Armature_constructor); tolua_function(tolua_S,"getBone",lua_cocos2dx_studio_Armature_getBone); tolua_function(tolua_S,"changeBoneParent",lua_cocos2dx_studio_Armature_changeBoneParent); tolua_function(tolua_S,"setAnimation",lua_cocos2dx_studio_Armature_setAnimation); tolua_function(tolua_S,"getBoneAtPoint",lua_cocos2dx_studio_Armature_getBoneAtPoint); tolua_function(tolua_S,"getArmatureTransformDirty",lua_cocos2dx_studio_Armature_getArmatureTransformDirty); tolua_function(tolua_S,"setVersion",lua_cocos2dx_studio_Armature_setVersion); tolua_function(tolua_S,"updateOffsetPoint",lua_cocos2dx_studio_Armature_updateOffsetPoint); tolua_function(tolua_S,"getParentBone",lua_cocos2dx_studio_Armature_getParentBone); tolua_function(tolua_S,"setArmatureData",lua_cocos2dx_studio_Armature_setArmatureData); tolua_function(tolua_S,"removeBone",lua_cocos2dx_studio_Armature_removeBone); tolua_function(tolua_S,"getBatchNode",lua_cocos2dx_studio_Armature_getBatchNode); tolua_function(tolua_S,"getName",lua_cocos2dx_studio_Armature_getName); tolua_function(tolua_S,"init",lua_cocos2dx_studio_Armature_init); tolua_function(tolua_S,"setParentBone",lua_cocos2dx_studio_Armature_setParentBone); tolua_function(tolua_S,"drawContour",lua_cocos2dx_studio_Armature_drawContour); tolua_function(tolua_S,"setBatchNode",lua_cocos2dx_studio_Armature_setBatchNode); tolua_function(tolua_S,"setName",lua_cocos2dx_studio_Armature_setName); tolua_function(tolua_S,"addBone",lua_cocos2dx_studio_Armature_addBone); tolua_function(tolua_S,"getArmatureData",lua_cocos2dx_studio_Armature_getArmatureData); tolua_function(tolua_S,"getVersion",lua_cocos2dx_studio_Armature_getVersion); tolua_function(tolua_S,"getAnimation",lua_cocos2dx_studio_Armature_getAnimation); tolua_function(tolua_S,"getBoneDic",lua_cocos2dx_studio_Armature_getBoneDic); tolua_function(tolua_S,"create", lua_cocos2dx_studio_Armature_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::Armature).name(); g_luaType[typeName] = "ccs.Armature"; g_typeCast["Armature"] = "ccs.Armature"; return 1; } int lua_cocos2dx_studio_Skin_getBone(lua_State* tolua_S) { int argc = 0; cocostudio::Skin* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Skin",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Skin*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Skin_getBone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocostudio::Bone* ret = cobj->getBone(); object_to_luaval(tolua_S, "ccs.Bone",(cocostudio::Bone*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getBone",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Skin_getBone'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Skin_getNodeToWorldTransformAR(lua_State* tolua_S) { int argc = 0; cocostudio::Skin* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Skin",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Skin*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Skin_getNodeToWorldTransformAR'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocos2d::Mat4 ret = cobj->getNodeToWorldTransformAR(); mat4_to_luaval(tolua_S, ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getNodeToWorldTransformAR",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Skin_getNodeToWorldTransformAR'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Skin_initWithFile(lua_State* tolua_S) { int argc = 0; cocostudio::Skin* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Skin",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Skin*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Skin_initWithFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if(!ok) return 0; bool ret = cobj->initWithFile(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "initWithFile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Skin_initWithFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Skin_getDisplayName(lua_State* tolua_S) { int argc = 0; cocostudio::Skin* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Skin",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Skin*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Skin_getDisplayName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; const std::string& ret = cobj->getDisplayName(); tolua_pushcppstring(tolua_S,ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getDisplayName",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Skin_getDisplayName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Skin_updateArmatureTransform(lua_State* tolua_S) { int argc = 0; cocostudio::Skin* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Skin",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Skin*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Skin_updateArmatureTransform'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj->updateArmatureTransform(); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "updateArmatureTransform",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Skin_updateArmatureTransform'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Skin_initWithSpriteFrameName(lua_State* tolua_S) { int argc = 0; cocostudio::Skin* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Skin",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Skin*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Skin_initWithSpriteFrameName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if(!ok) return 0; bool ret = cobj->initWithSpriteFrameName(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "initWithSpriteFrameName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Skin_initWithSpriteFrameName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Skin_setBone(lua_State* tolua_S) { int argc = 0; cocostudio::Skin* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Skin",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::Skin*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Skin_setBone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocostudio::Bone* arg0; ok &= luaval_to_object(tolua_S, 2, "ccs.Bone",&arg0); if(!ok) return 0; cobj->setBone(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setBone",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Skin_setBone'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Skin_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,"ccs.Skin",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); if (!ok) { break; } cocostudio::Skin* ret = cocostudio::Skin::create(arg0); object_to_luaval(tolua_S, "ccs.Skin",(cocostudio::Skin*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { cocostudio::Skin* ret = cocostudio::Skin::create(); object_to_luaval(tolua_S, "ccs.Skin",(cocostudio::Skin*)ret); return 1; } } while (0); ok = true; CCLOG("%s has wrong number of arguments: %d, was expecting %d", "create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Skin_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Skin_createWithSpriteFrameName(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,"ccs.Skin",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); if(!ok) return 0; cocostudio::Skin* ret = cocostudio::Skin::createWithSpriteFrameName(arg0); object_to_luaval(tolua_S, "ccs.Skin",(cocostudio::Skin*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "createWithSpriteFrameName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Skin_createWithSpriteFrameName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_Skin_constructor(lua_State* tolua_S) { int argc = 0; cocostudio::Skin* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj = new cocostudio::Skin(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.Skin"); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "Skin",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Skin_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_Skin_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Skin)"); return 0; } int lua_register_cocos2dx_studio_Skin(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.Skin"); tolua_cclass(tolua_S,"Skin","ccs.Skin","cc.Sprite",nullptr); tolua_beginmodule(tolua_S,"Skin"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_Skin_constructor); tolua_function(tolua_S,"getBone",lua_cocos2dx_studio_Skin_getBone); tolua_function(tolua_S,"getNodeToWorldTransformAR",lua_cocos2dx_studio_Skin_getNodeToWorldTransformAR); tolua_function(tolua_S,"initWithFile",lua_cocos2dx_studio_Skin_initWithFile); tolua_function(tolua_S,"getDisplayName",lua_cocos2dx_studio_Skin_getDisplayName); tolua_function(tolua_S,"updateArmatureTransform",lua_cocos2dx_studio_Skin_updateArmatureTransform); tolua_function(tolua_S,"initWithSpriteFrameName",lua_cocos2dx_studio_Skin_initWithSpriteFrameName); tolua_function(tolua_S,"setBone",lua_cocos2dx_studio_Skin_setBone); tolua_function(tolua_S,"create", lua_cocos2dx_studio_Skin_create); tolua_function(tolua_S,"createWithSpriteFrameName", lua_cocos2dx_studio_Skin_createWithSpriteFrameName); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::Skin).name(); g_luaType[typeName] = "ccs.Skin"; g_typeCast["Skin"] = "ccs.Skin"; return 1; } int lua_cocos2dx_studio_ComAttribute_getFloat(lua_State* tolua_S) { int argc = 0; cocostudio::ComAttribute* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAttribute",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAttribute*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAttribute_getFloat'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if(!ok) return 0; double ret = cobj->getFloat(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } if (argc == 2) { std::string arg0; double arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0); ok &= luaval_to_number(tolua_S, 3,&arg1); if(!ok) return 0; double ret = cobj->getFloat(arg0, arg1); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getFloat",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAttribute_getFloat'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAttribute_getString(lua_State* tolua_S) { int argc = 0; cocostudio::ComAttribute* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAttribute",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAttribute*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAttribute_getString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if(!ok) return 0; std::string ret = cobj->getString(arg0); tolua_pushcppstring(tolua_S,ret); return 1; } if (argc == 2) { std::string arg0; std::string arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0); ok &= luaval_to_std_string(tolua_S, 3,&arg1); if(!ok) return 0; std::string ret = cobj->getString(arg0, arg1); tolua_pushcppstring(tolua_S,ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getString",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAttribute_getString'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAttribute_setFloat(lua_State* tolua_S) { int argc = 0; cocostudio::ComAttribute* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAttribute",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAttribute*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAttribute_setFloat'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string arg0; double arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0); ok &= luaval_to_number(tolua_S, 3,&arg1); if(!ok) return 0; cobj->setFloat(arg0, arg1); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setFloat",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAttribute_setFloat'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAttribute_setString(lua_State* tolua_S) { int argc = 0; cocostudio::ComAttribute* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAttribute",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAttribute*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAttribute_setString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string arg0; std::string arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0); ok &= luaval_to_std_string(tolua_S, 3,&arg1); if(!ok) return 0; cobj->setString(arg0, arg1); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setString",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAttribute_setString'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAttribute_getBool(lua_State* tolua_S) { int argc = 0; cocostudio::ComAttribute* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAttribute",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAttribute*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAttribute_getBool'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if(!ok) return 0; bool ret = cobj->getBool(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 2) { std::string arg0; bool arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0); ok &= luaval_to_boolean(tolua_S, 3,&arg1); if(!ok) return 0; bool ret = cobj->getBool(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getBool",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAttribute_getBool'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAttribute_setInt(lua_State* tolua_S) { int argc = 0; cocostudio::ComAttribute* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAttribute",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAttribute*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAttribute_setInt'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string arg0; int arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); if(!ok) return 0; cobj->setInt(arg0, arg1); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setInt",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAttribute_setInt'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAttribute_parse(lua_State* tolua_S) { int argc = 0; cocostudio::ComAttribute* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAttribute",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAttribute*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAttribute_parse'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if(!ok) return 0; bool ret = cobj->parse(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "parse",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAttribute_parse'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAttribute_getInt(lua_State* tolua_S) { int argc = 0; cocostudio::ComAttribute* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAttribute",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAttribute*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAttribute_getInt'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if(!ok) return 0; int ret = cobj->getInt(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } if (argc == 2) { std::string arg0; int arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); if(!ok) return 0; int ret = cobj->getInt(arg0, arg1); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getInt",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAttribute_getInt'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAttribute_setBool(lua_State* tolua_S) { int argc = 0; cocostudio::ComAttribute* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAttribute",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAttribute*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAttribute_setBool'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string arg0; bool arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0); ok &= luaval_to_boolean(tolua_S, 3,&arg1); if(!ok) return 0; cobj->setBool(arg0, arg1); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setBool",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAttribute_setBool'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAttribute_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,"ccs.ComAttribute",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::ComAttribute* ret = cocostudio::ComAttribute::create(); object_to_luaval(tolua_S, "ccs.ComAttribute",(cocostudio::ComAttribute*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAttribute_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAttribute_createInstance(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,"ccs.ComAttribute",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocos2d::Ref* ret = cocostudio::ComAttribute::createInstance(); object_to_luaval(tolua_S, "cc.Ref",(cocos2d::Ref*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "createInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAttribute_createInstance'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_ComAttribute_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ComAttribute)"); return 0; } int lua_register_cocos2dx_studio_ComAttribute(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.ComAttribute"); tolua_cclass(tolua_S,"ComAttribute","ccs.ComAttribute","cc.Component",nullptr); tolua_beginmodule(tolua_S,"ComAttribute"); tolua_function(tolua_S,"getFloat",lua_cocos2dx_studio_ComAttribute_getFloat); tolua_function(tolua_S,"getString",lua_cocos2dx_studio_ComAttribute_getString); tolua_function(tolua_S,"setFloat",lua_cocos2dx_studio_ComAttribute_setFloat); tolua_function(tolua_S,"setString",lua_cocos2dx_studio_ComAttribute_setString); tolua_function(tolua_S,"getBool",lua_cocos2dx_studio_ComAttribute_getBool); tolua_function(tolua_S,"setInt",lua_cocos2dx_studio_ComAttribute_setInt); tolua_function(tolua_S,"parse",lua_cocos2dx_studio_ComAttribute_parse); tolua_function(tolua_S,"getInt",lua_cocos2dx_studio_ComAttribute_getInt); tolua_function(tolua_S,"setBool",lua_cocos2dx_studio_ComAttribute_setBool); tolua_function(tolua_S,"create", lua_cocos2dx_studio_ComAttribute_create); tolua_function(tolua_S,"createInstance", lua_cocos2dx_studio_ComAttribute_createInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::ComAttribute).name(); g_luaType[typeName] = "ccs.ComAttribute"; g_typeCast["ComAttribute"] = "ccs.ComAttribute"; return 1; } int lua_cocos2dx_studio_ComAudio_stopAllEffects(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_stopAllEffects'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj->stopAllEffects(); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "stopAllEffects",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_stopAllEffects'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_getEffectsVolume(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_getEffectsVolume'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; double ret = cobj->getEffectsVolume(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getEffectsVolume",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_getEffectsVolume'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_stopEffect(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_stopEffect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { unsigned int arg0; ok &= luaval_to_uint32(tolua_S, 2,&arg0); if(!ok) return 0; cobj->stopEffect(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "stopEffect",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_stopEffect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_getBackgroundMusicVolume(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_getBackgroundMusicVolume'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; double ret = cobj->getBackgroundMusicVolume(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getBackgroundMusicVolume",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_getBackgroundMusicVolume'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_willPlayBackgroundMusic(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_willPlayBackgroundMusic'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; bool ret = cobj->willPlayBackgroundMusic(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "willPlayBackgroundMusic",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_willPlayBackgroundMusic'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_setBackgroundMusicVolume(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_setBackgroundMusicVolume'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0); if(!ok) return 0; cobj->setBackgroundMusicVolume(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setBackgroundMusicVolume",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_setBackgroundMusicVolume'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_end(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_end'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj->end(); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "end",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_end'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_stopBackgroundMusic(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_stopBackgroundMusic'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { cobj->stopBackgroundMusic(); return 0; } }while(0); ok = true; do{ if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0); if (!ok) { break; } cobj->stopBackgroundMusic(arg0); return 0; } }while(0); ok = true; CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "stopBackgroundMusic",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_stopBackgroundMusic'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_pauseBackgroundMusic(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_pauseBackgroundMusic'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj->pauseBackgroundMusic(); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "pauseBackgroundMusic",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_pauseBackgroundMusic'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_isBackgroundMusicPlaying(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_isBackgroundMusicPlaying'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; bool ret = cobj->isBackgroundMusicPlaying(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "isBackgroundMusicPlaying",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_isBackgroundMusicPlaying'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_isLoop(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_isLoop'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; bool ret = cobj->isLoop(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "isLoop",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_isLoop'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_resumeAllEffects(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_resumeAllEffects'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj->resumeAllEffects(); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "resumeAllEffects",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_resumeAllEffects'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_pauseAllEffects(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_pauseAllEffects'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj->pauseAllEffects(); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "pauseAllEffects",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_pauseAllEffects'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_preloadBackgroundMusic(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_preloadBackgroundMusic'", 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); arg0 = arg0_tmp.c_str(); if(!ok) return 0; cobj->preloadBackgroundMusic(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "preloadBackgroundMusic",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_preloadBackgroundMusic'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_playBackgroundMusic(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_playBackgroundMusic'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp); arg0 = arg0_tmp.c_str(); if (!ok) { break; } cobj->playBackgroundMusic(arg0); return 0; } }while(0); ok = true; do{ if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp); arg0 = arg0_tmp.c_str(); if (!ok) { break; } bool arg1; ok &= luaval_to_boolean(tolua_S, 3,&arg1); if (!ok) { break; } cobj->playBackgroundMusic(arg0, arg1); return 0; } }while(0); ok = true; do{ if (argc == 0) { cobj->playBackgroundMusic(); return 0; } }while(0); ok = true; CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "playBackgroundMusic",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_playBackgroundMusic'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_playEffect(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_playEffect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp); arg0 = arg0_tmp.c_str(); if (!ok) { break; } unsigned int ret = cobj->playEffect(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } }while(0); ok = true; do{ if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp); arg0 = arg0_tmp.c_str(); if (!ok) { break; } bool arg1; ok &= luaval_to_boolean(tolua_S, 3,&arg1); if (!ok) { break; } unsigned int ret = cobj->playEffect(arg0, arg1); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { unsigned int ret = cobj->playEffect(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } }while(0); ok = true; CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "playEffect",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_playEffect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_preloadEffect(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_preloadEffect'", 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); arg0 = arg0_tmp.c_str(); if(!ok) return 0; cobj->preloadEffect(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "preloadEffect",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_preloadEffect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_setLoop(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_setLoop'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0); if(!ok) return 0; cobj->setLoop(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setLoop",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_setLoop'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_unloadEffect(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_unloadEffect'", 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); arg0 = arg0_tmp.c_str(); if(!ok) return 0; cobj->unloadEffect(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "unloadEffect",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_unloadEffect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_rewindBackgroundMusic(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_rewindBackgroundMusic'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj->rewindBackgroundMusic(); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "rewindBackgroundMusic",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_rewindBackgroundMusic'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_pauseEffect(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_pauseEffect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { unsigned int arg0; ok &= luaval_to_uint32(tolua_S, 2,&arg0); if(!ok) return 0; cobj->pauseEffect(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "pauseEffect",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_pauseEffect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_resumeBackgroundMusic(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_resumeBackgroundMusic'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj->resumeBackgroundMusic(); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "resumeBackgroundMusic",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_resumeBackgroundMusic'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_setFile(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_setFile'", 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); arg0 = arg0_tmp.c_str(); if(!ok) return 0; cobj->setFile(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setFile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_setFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_setEffectsVolume(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_setEffectsVolume'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0); if(!ok) return 0; cobj->setEffectsVolume(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setEffectsVolume",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_setEffectsVolume'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_getFile(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_getFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; const char* ret = cobj->getFile(); tolua_pushstring(tolua_S,(const char*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getFile",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_getFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_resumeEffect(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComAudio_resumeEffect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { unsigned int arg0; ok &= luaval_to_uint32(tolua_S, 2,&arg0); if(!ok) return 0; cobj->resumeEffect(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "resumeEffect",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_resumeEffect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_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,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::ComAudio* ret = cocostudio::ComAudio::create(); object_to_luaval(tolua_S, "ccs.ComAudio",(cocostudio::ComAudio*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComAudio_createInstance(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,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocos2d::Ref* ret = cocostudio::ComAudio::createInstance(); object_to_luaval(tolua_S, "cc.Ref",(cocos2d::Ref*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "createInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComAudio_createInstance'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_ComAudio_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ComAudio)"); return 0; } int lua_register_cocos2dx_studio_ComAudio(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.ComAudio"); tolua_cclass(tolua_S,"ComAudio","ccs.ComAudio","cc.Component",nullptr); tolua_beginmodule(tolua_S,"ComAudio"); tolua_function(tolua_S,"stopAllEffects",lua_cocos2dx_studio_ComAudio_stopAllEffects); tolua_function(tolua_S,"getEffectsVolume",lua_cocos2dx_studio_ComAudio_getEffectsVolume); tolua_function(tolua_S,"stopEffect",lua_cocos2dx_studio_ComAudio_stopEffect); tolua_function(tolua_S,"getBackgroundMusicVolume",lua_cocos2dx_studio_ComAudio_getBackgroundMusicVolume); tolua_function(tolua_S,"willPlayBackgroundMusic",lua_cocos2dx_studio_ComAudio_willPlayBackgroundMusic); tolua_function(tolua_S,"setBackgroundMusicVolume",lua_cocos2dx_studio_ComAudio_setBackgroundMusicVolume); tolua_function(tolua_S,"end",lua_cocos2dx_studio_ComAudio_end); tolua_function(tolua_S,"stopBackgroundMusic",lua_cocos2dx_studio_ComAudio_stopBackgroundMusic); tolua_function(tolua_S,"pauseBackgroundMusic",lua_cocos2dx_studio_ComAudio_pauseBackgroundMusic); tolua_function(tolua_S,"isBackgroundMusicPlaying",lua_cocos2dx_studio_ComAudio_isBackgroundMusicPlaying); tolua_function(tolua_S,"isLoop",lua_cocos2dx_studio_ComAudio_isLoop); tolua_function(tolua_S,"resumeAllEffects",lua_cocos2dx_studio_ComAudio_resumeAllEffects); tolua_function(tolua_S,"pauseAllEffects",lua_cocos2dx_studio_ComAudio_pauseAllEffects); tolua_function(tolua_S,"preloadBackgroundMusic",lua_cocos2dx_studio_ComAudio_preloadBackgroundMusic); tolua_function(tolua_S,"playBackgroundMusic",lua_cocos2dx_studio_ComAudio_playBackgroundMusic); tolua_function(tolua_S,"playEffect",lua_cocos2dx_studio_ComAudio_playEffect); tolua_function(tolua_S,"preloadEffect",lua_cocos2dx_studio_ComAudio_preloadEffect); tolua_function(tolua_S,"setLoop",lua_cocos2dx_studio_ComAudio_setLoop); tolua_function(tolua_S,"unloadEffect",lua_cocos2dx_studio_ComAudio_unloadEffect); tolua_function(tolua_S,"rewindBackgroundMusic",lua_cocos2dx_studio_ComAudio_rewindBackgroundMusic); tolua_function(tolua_S,"pauseEffect",lua_cocos2dx_studio_ComAudio_pauseEffect); tolua_function(tolua_S,"resumeBackgroundMusic",lua_cocos2dx_studio_ComAudio_resumeBackgroundMusic); tolua_function(tolua_S,"setFile",lua_cocos2dx_studio_ComAudio_setFile); tolua_function(tolua_S,"setEffectsVolume",lua_cocos2dx_studio_ComAudio_setEffectsVolume); tolua_function(tolua_S,"getFile",lua_cocos2dx_studio_ComAudio_getFile); tolua_function(tolua_S,"resumeEffect",lua_cocos2dx_studio_ComAudio_resumeEffect); tolua_function(tolua_S,"create", lua_cocos2dx_studio_ComAudio_create); tolua_function(tolua_S,"createInstance", lua_cocos2dx_studio_ComAudio_createInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::ComAudio).name(); g_luaType[typeName] = "ccs.ComAudio"; g_typeCast["ComAudio"] = "ccs.ComAudio"; return 1; } int lua_cocos2dx_studio_ComController_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,"ccs.ComController",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::ComController* ret = cocostudio::ComController::create(); object_to_luaval(tolua_S, "ccs.ComController",(cocostudio::ComController*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComController_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComController_createInstance(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,"ccs.ComController",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocos2d::Ref* ret = cocostudio::ComController::createInstance(); object_to_luaval(tolua_S, "cc.Ref",(cocos2d::Ref*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "createInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComController_createInstance'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComController_constructor(lua_State* tolua_S) { int argc = 0; cocostudio::ComController* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cobj = new cocostudio::ComController(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.ComController"); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ComController",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComController_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_ComController_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ComController)"); return 0; } int lua_register_cocos2dx_studio_ComController(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.ComController"); tolua_cclass(tolua_S,"ComController","ccs.ComController","cc.Component",nullptr); tolua_beginmodule(tolua_S,"ComController"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_ComController_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_studio_ComController_create); tolua_function(tolua_S,"createInstance", lua_cocos2dx_studio_ComController_createInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::ComController).name(); g_luaType[typeName] = "ccs.ComController"; g_typeCast["ComController"] = "ccs.ComController"; return 1; } int lua_cocos2dx_studio_ComRender_setNode(lua_State* tolua_S) { int argc = 0; cocostudio::ComRender* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComRender",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComRender*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComRender_setNode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) return 0; cobj->setNode(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setNode",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComRender_setNode'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComRender_getNode(lua_State* tolua_S) { int argc = 0; cocostudio::ComRender* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComRender",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::ComRender*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ComRender_getNode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; cocos2d::Node* ret = cobj->getNode(); object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getNode",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComRender_getNode'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComRender_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,"ccs.ComRender",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 2) { cocos2d::Node* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if (!ok) { break; } const char* arg1; std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp); arg1 = arg1_tmp.c_str(); if (!ok) { break; } cocostudio::ComRender* ret = cocostudio::ComRender::create(arg0, arg1); object_to_luaval(tolua_S, "ccs.ComRender",(cocostudio::ComRender*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { cocostudio::ComRender* ret = cocostudio::ComRender::create(); object_to_luaval(tolua_S, "ccs.ComRender",(cocostudio::ComRender*)ret); return 1; } } while (0); ok = true; CCLOG("%s has wrong number of arguments: %d, was expecting %d", "create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComRender_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_ComRender_createInstance(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,"ccs.ComRender",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocos2d::Ref* ret = cocostudio::ComRender::createInstance(); object_to_luaval(tolua_S, "cc.Ref",(cocos2d::Ref*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "createInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ComRender_createInstance'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_ComRender_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ComRender)"); return 0; } int lua_register_cocos2dx_studio_ComRender(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.ComRender"); tolua_cclass(tolua_S,"ComRender","ccs.ComRender","cc.Component",nullptr); tolua_beginmodule(tolua_S,"ComRender"); tolua_function(tolua_S,"setNode",lua_cocos2dx_studio_ComRender_setNode); tolua_function(tolua_S,"getNode",lua_cocos2dx_studio_ComRender_getNode); tolua_function(tolua_S,"create", lua_cocos2dx_studio_ComRender_create); tolua_function(tolua_S,"createInstance", lua_cocos2dx_studio_ComRender_createInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::ComRender).name(); g_luaType[typeName] = "ccs.ComRender"; g_typeCast["ComRender"] = "ccs.ComRender"; return 1; } int lua_cocos2dx_studio_GUIReader_widgetFromJsonFile(lua_State* tolua_S) { int argc = 0; cocostudio::GUIReader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.GUIReader",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::GUIReader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_GUIReader_widgetFromJsonFile'", 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); arg0 = arg0_tmp.c_str(); if(!ok) return 0; cocos2d::ui::Widget* ret = cobj->widgetFromJsonFile(arg0); object_to_luaval(tolua_S, "ccui.Widget",(cocos2d::ui::Widget*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "widgetFromJsonFile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_GUIReader_widgetFromJsonFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_GUIReader_getFilePath(lua_State* tolua_S) { int argc = 0; cocostudio::GUIReader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.GUIReader",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::GUIReader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_GUIReader_getFilePath'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; const std::string& ret = cobj->getFilePath(); tolua_pushcppstring(tolua_S,ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getFilePath",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_GUIReader_getFilePath'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_GUIReader_getVersionInteger(lua_State* tolua_S) { int argc = 0; cocostudio::GUIReader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.GUIReader",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::GUIReader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_GUIReader_getVersionInteger'", 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); arg0 = arg0_tmp.c_str(); if(!ok) return 0; int ret = cobj->getVersionInteger(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getVersionInteger",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_GUIReader_getVersionInteger'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_GUIReader_destroyInstance(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,"ccs.GUIReader",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::GUIReader::destroyInstance(); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "destroyInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_GUIReader_destroyInstance'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_GUIReader_getInstance(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,"ccs.GUIReader",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::GUIReader* ret = cocostudio::GUIReader::getInstance(); object_to_luaval(tolua_S, "ccs.GUIReader",(cocostudio::GUIReader*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "getInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_GUIReader_getInstance'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_GUIReader_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (GUIReader)"); return 0; } int lua_register_cocos2dx_studio_GUIReader(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.GUIReader"); tolua_cclass(tolua_S,"GUIReader","ccs.GUIReader","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"GUIReader"); tolua_function(tolua_S,"widgetFromJsonFile",lua_cocos2dx_studio_GUIReader_widgetFromJsonFile); tolua_function(tolua_S,"getFilePath",lua_cocos2dx_studio_GUIReader_getFilePath); tolua_function(tolua_S,"getVersionInteger",lua_cocos2dx_studio_GUIReader_getVersionInteger); tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_studio_GUIReader_destroyInstance); tolua_function(tolua_S,"getInstance", lua_cocos2dx_studio_GUIReader_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::GUIReader).name(); g_luaType[typeName] = "ccs.GUIReader"; g_typeCast["GUIReader"] = "ccs.GUIReader"; return 1; } int lua_cocos2dx_studio_SceneReader_setTarget(lua_State* tolua_S) { int argc = 0; cocostudio::SceneReader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.SceneReader",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::SceneReader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_SceneReader_setTarget'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::function arg0; do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) return 0; cobj->setTarget(arg0); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setTarget",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_SceneReader_setTarget'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_SceneReader_createNodeWithSceneFile(lua_State* tolua_S) { int argc = 0; cocostudio::SceneReader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.SceneReader",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::SceneReader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_SceneReader_createNodeWithSceneFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0); if(!ok) return 0; cocos2d::Node* ret = cobj->createNodeWithSceneFile(arg0); object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } if (argc == 2) { std::string arg0; cocostudio::SceneReader::AttachComponentType arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); if(!ok) return 0; cocos2d::Node* ret = cobj->createNodeWithSceneFile(arg0, arg1); object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "createNodeWithSceneFile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_SceneReader_createNodeWithSceneFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_SceneReader_getAttachComponentType(lua_State* tolua_S) { int argc = 0; cocostudio::SceneReader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.SceneReader",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::SceneReader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_SceneReader_getAttachComponentType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) return 0; int ret = (int)cobj->getAttachComponentType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getAttachComponentType",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_SceneReader_getAttachComponentType'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_SceneReader_getNodeByTag(lua_State* tolua_S) { int argc = 0; cocostudio::SceneReader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.SceneReader",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::SceneReader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_SceneReader_getNodeByTag'", 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::Node* ret = cobj->getNodeByTag(arg0); object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getNodeByTag",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_SceneReader_getNodeByTag'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_SceneReader_destroyInstance(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,"ccs.SceneReader",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::SceneReader::destroyInstance(); return 0; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "destroyInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_SceneReader_destroyInstance'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_SceneReader_sceneReaderVersion(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,"ccs.SceneReader",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; const char* ret = cocostudio::SceneReader::sceneReaderVersion(); tolua_pushstring(tolua_S,(const char*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "sceneReaderVersion",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_SceneReader_sceneReaderVersion'.",&tolua_err); #endif return 0; } int lua_cocos2dx_studio_SceneReader_getInstance(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,"ccs.SceneReader",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) return 0; cocostudio::SceneReader* ret = cocostudio::SceneReader::getInstance(); object_to_luaval(tolua_S, "ccs.SceneReader",(cocostudio::SceneReader*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "getInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_SceneReader_getInstance'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_studio_SceneReader_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (SceneReader)"); return 0; } int lua_register_cocos2dx_studio_SceneReader(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.SceneReader"); tolua_cclass(tolua_S,"SceneReader","ccs.SceneReader","",nullptr); tolua_beginmodule(tolua_S,"SceneReader"); tolua_function(tolua_S,"setTarget",lua_cocos2dx_studio_SceneReader_setTarget); tolua_function(tolua_S,"createNodeWithSceneFile",lua_cocos2dx_studio_SceneReader_createNodeWithSceneFile); tolua_function(tolua_S,"getAttachComponentType",lua_cocos2dx_studio_SceneReader_getAttachComponentType); tolua_function(tolua_S,"getNodeByTag",lua_cocos2dx_studio_SceneReader_getNodeByTag); tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_studio_SceneReader_destroyInstance); tolua_function(tolua_S,"sceneReaderVersion", lua_cocos2dx_studio_SceneReader_sceneReaderVersion); tolua_function(tolua_S,"getInstance", lua_cocos2dx_studio_SceneReader_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::SceneReader).name(); g_luaType[typeName] = "ccs.SceneReader"; g_typeCast["SceneReader"] = "ccs.SceneReader"; return 1; } TOLUA_API int register_all_cocos2dx_studio(lua_State* tolua_S) { tolua_open(tolua_S); tolua_module(tolua_S,"ccs",0); tolua_beginmodule(tolua_S,"ccs"); lua_register_cocos2dx_studio_Tween(tolua_S); lua_register_cocos2dx_studio_ContourData(tolua_S); lua_register_cocos2dx_studio_SceneReader(tolua_S); lua_register_cocos2dx_studio_ComAudio(tolua_S); lua_register_cocos2dx_studio_DisplayData(tolua_S); lua_register_cocos2dx_studio_ArmatureDisplayData(tolua_S); lua_register_cocos2dx_studio_MovementData(tolua_S); lua_register_cocos2dx_studio_ArmatureDataManager(tolua_S); lua_register_cocos2dx_studio_ArmatureData(tolua_S); lua_register_cocos2dx_studio_BaseData(tolua_S); lua_register_cocos2dx_studio_FrameData(tolua_S); lua_register_cocos2dx_studio_ComController(tolua_S); lua_register_cocos2dx_studio_BoneData(tolua_S); lua_register_cocos2dx_studio_ComRender(tolua_S); lua_register_cocos2dx_studio_ParticleDisplayData(tolua_S); lua_register_cocos2dx_studio_BatchNode(tolua_S); lua_register_cocos2dx_studio_ActionObject(tolua_S); lua_register_cocos2dx_studio_Skin(tolua_S); lua_register_cocos2dx_studio_MovementBoneData(tolua_S); lua_register_cocos2dx_studio_DisplayManager(tolua_S); lua_register_cocos2dx_studio_GUIReader(tolua_S); lua_register_cocos2dx_studio_ArmatureAnimation(tolua_S); lua_register_cocos2dx_studio_Armature(tolua_S); lua_register_cocos2dx_studio_SpriteDisplayData(tolua_S); lua_register_cocos2dx_studio_ActionManagerEx(tolua_S); lua_register_cocos2dx_studio_Bone(tolua_S); lua_register_cocos2dx_studio_ComAttribute(tolua_S); lua_register_cocos2dx_studio_TextureData(tolua_S); lua_register_cocos2dx_studio_AnimationData(tolua_S); tolua_endmodule(tolua_S); return 1; }