mirror of https://github.com/axmolengine/axmol.git
[AUTO]: updating luabinding automatically
This commit is contained in:
parent
caf308f061
commit
66fcba02b1
|
@ -49,12 +49,13 @@
|
||||||
-- @return BlendFunc#BlendFunc ret (return value: cc.BlendFunc)
|
-- @return BlendFunc#BlendFunc ret (return value: cc.BlendFunc)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- @overload self, char
|
||||||
-- @function [parent=#SkeletonRenderer] setSkin
|
-- @overload self, string
|
||||||
|
-- @function [parent=#SkeletonRenderer] setSkin
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #string skinName
|
-- @param #string skinName
|
||||||
-- @return bool#bool ret (return value: bool)
|
-- @return bool#bool ret (return value: bool)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
--
|
||||||
-- @function [parent=#SkeletonRenderer] setToSetupPose
|
-- @function [parent=#SkeletonRenderer] setToSetupPose
|
||||||
|
@ -116,4 +117,16 @@
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @return rect_table#rect_table ret (return value: rect_table)
|
-- @return rect_table#rect_table ret (return value: rect_table)
|
||||||
|
|
||||||
|
--------------------------------
|
||||||
|
--
|
||||||
|
-- @function [parent=#SkeletonRenderer] onEnter
|
||||||
|
-- @param self
|
||||||
|
-- @return SkeletonRenderer#SkeletonRenderer self (return value: sp.SkeletonRenderer)
|
||||||
|
|
||||||
|
--------------------------------
|
||||||
|
--
|
||||||
|
-- @function [parent=#SkeletonRenderer] onExit
|
||||||
|
-- @param self
|
||||||
|
-- @return SkeletonRenderer#SkeletonRenderer self (return value: sp.SkeletonRenderer)
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
|
@ -345,42 +345,47 @@ int lua_cocos2dx_spine_SkeletonRenderer_setSkin(lua_State* tolua_S)
|
||||||
int argc = 0;
|
int argc = 0;
|
||||||
spine::SkeletonRenderer* cobj = nullptr;
|
spine::SkeletonRenderer* cobj = nullptr;
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
|
|
||||||
#if COCOS2D_DEBUG >= 1
|
#if COCOS2D_DEBUG >= 1
|
||||||
tolua_Error tolua_err;
|
tolua_Error tolua_err;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if COCOS2D_DEBUG >= 1
|
#if COCOS2D_DEBUG >= 1
|
||||||
if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror;
|
if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0);
|
cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0);
|
||||||
|
|
||||||
#if COCOS2D_DEBUG >= 1
|
#if COCOS2D_DEBUG >= 1
|
||||||
if (!cobj)
|
if (!cobj)
|
||||||
{
|
{
|
||||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_setSkin'", nullptr);
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_setSkin'", nullptr);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
argc = lua_gettop(tolua_S)-1;
|
argc = lua_gettop(tolua_S)-1;
|
||||||
if (argc == 1)
|
do{
|
||||||
{
|
if (argc == 1) {
|
||||||
std::string arg0;
|
const char* arg0;
|
||||||
|
std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "sp.SkeletonRenderer:setSkin"); arg0 = arg0_tmp.c_str();
|
||||||
|
|
||||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:setSkin");
|
if (!ok) { break; }
|
||||||
if(!ok)
|
bool ret = cobj->setSkin(arg0);
|
||||||
{
|
tolua_pushboolean(tolua_S,(bool)ret);
|
||||||
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonRenderer_setSkin'", nullptr);
|
return 1;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
bool ret = cobj->setSkin(arg0);
|
}while(0);
|
||||||
tolua_pushboolean(tolua_S,(bool)ret);
|
ok = true;
|
||||||
return 1;
|
do{
|
||||||
}
|
if (argc == 1) {
|
||||||
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setSkin",argc, 1);
|
std::string arg0;
|
||||||
|
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:setSkin");
|
||||||
|
|
||||||
|
if (!ok) { break; }
|
||||||
|
bool ret = cobj->setSkin(arg0);
|
||||||
|
tolua_pushboolean(tolua_S,(bool)ret);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
}while(0);
|
||||||
|
ok = true;
|
||||||
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setSkin",argc, 1);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
#if COCOS2D_DEBUG >= 1
|
#if COCOS2D_DEBUG >= 1
|
||||||
|
|
Loading…
Reference in New Issue