int lua_DecalsFactory_DecalsFactory_convertDecalNumbleToIndex(lua_State* tolua_S) { int argc = 0; bubble_second::DecalsFactory* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"bs.DecalsFactory",0,&tolua_err)) goto tolua_lerror; #endif cobj = (bubble_second::DecalsFactory*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_DecalsFactory_DecalsFactory_convertDecalNumbleToIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { int arg0; std::string arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "bs.DecalsFactory:convertDecalNumbleToIndex"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "bs.DecalsFactory:convertDecalNumbleToIndex"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_DecalsFactory_DecalsFactory_convertDecalNumbleToIndex'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->convertDecalNumbleToIndex(arg0, arg1); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "bs.DecalsFactory:convertDecalNumbleToIndex",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_DecalsFactory_DecalsFactory_convertDecalNumbleToIndex'.",&tolua_err); #endif return 0; }
int lua_cocos2dx_experimental_TMXLayer_getPositionAt(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXLayer_getPositionAt'", 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; cocos2d::Vec2 ret = cobj->getPositionAt(arg0); vec2_to_luaval(tolua_S, ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getPositionAt",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXLayer_getPositionAt'.",&tolua_err); #endif return 0; }