mirror of https://github.com/axmolengine/axmol.git
[AUTO]: updating luabinding automatically
This commit is contained in:
parent
5a4c4c61af
commit
3d327deb6d
|
@ -15,6 +15,12 @@
|
|||
-- @function [parent=#EventFrame] init
|
||||
-- @param self
|
||||
|
||||
--------------------------------
|
||||
--
|
||||
-- @function [parent=#EventFrame] setNode
|
||||
-- @param self
|
||||
-- @param #cc.Node node
|
||||
|
||||
--------------------------------
|
||||
--
|
||||
-- @function [parent=#EventFrame] getEvent
|
||||
|
|
|
@ -18845,6 +18845,55 @@ int lua_cocos2dx_studio_EventFrame_init(lua_State* tolua_S)
|
|||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_studio_EventFrame_setNode(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
cocostudio::timeline::EventFrame* 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.EventFrame",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
cobj = (cocostudio::timeline::EventFrame*)tolua_tousertype(tolua_S,1,0);
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_EventFrame_setNode'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
if (argc == 1)
|
||||
{
|
||||
cocos2d::Node* arg0;
|
||||
|
||||
ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0);
|
||||
if(!ok)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_EventFrame_setNode'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
cobj->setNode(arg0);
|
||||
return 0;
|
||||
}
|
||||
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.EventFrame:setNode",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_EventFrame_setNode'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_studio_EventFrame_getEvent(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -18978,6 +19027,7 @@ int lua_register_cocos2dx_studio_EventFrame(lua_State* tolua_S)
|
|||
tolua_function(tolua_S,"new",lua_cocos2dx_studio_EventFrame_constructor);
|
||||
tolua_function(tolua_S,"setEvent",lua_cocos2dx_studio_EventFrame_setEvent);
|
||||
tolua_function(tolua_S,"init",lua_cocos2dx_studio_EventFrame_init);
|
||||
tolua_function(tolua_S,"setNode",lua_cocos2dx_studio_EventFrame_setNode);
|
||||
tolua_function(tolua_S,"getEvent",lua_cocos2dx_studio_EventFrame_getEvent);
|
||||
tolua_function(tolua_S,"create", lua_cocos2dx_studio_EventFrame_create);
|
||||
tolua_endmodule(tolua_S);
|
||||
|
|
|
@ -486,6 +486,7 @@ int register_all_cocos2dx_studio(lua_State* tolua_S);
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // __cocos2dx_studio_h__
|
||||
|
|
Loading…
Reference in New Issue