[AUTO]: updating luabinding automatically

This commit is contained in:
CocosRobot 2014-07-11 05:46:37 +00:00
parent 65404066ec
commit 563386a777
3 changed files with 53 additions and 0 deletions

View File

@ -15,6 +15,11 @@
-- @param #cc.Texture2D texture2d
-- @param #rect_table rect
--------------------------------
-- @function [parent=#ParticleSystemQuad] listenRendererRecreated
-- @param self
-- @param #cc.EventCustom eventcustom
--------------------------------
-- overload function: create(string)
--

View File

@ -51948,6 +51948,52 @@ int lua_cocos2dx_ParticleSystemQuad_setTextureWithRect(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated(lua_State* tolua_S)
{
int argc = 0;
cocos2d::ParticleSystemQuad* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystemQuad",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::ParticleSystemQuad*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
cocos2d::EventCustom* arg0;
ok &= luaval_to_object<cocos2d::EventCustom>(tolua_S, 2, "cc.EventCustom",&arg0);
if(!ok)
return 0;
cobj->listenRendererRecreated(arg0);
return 0;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "listenRendererRecreated",argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_ParticleSystemQuad_create(lua_State* tolua_S)
{
int argc = 0;
@ -52053,6 +52099,7 @@ int lua_register_cocos2dx_ParticleSystemQuad(lua_State* tolua_S)
tolua_beginmodule(tolua_S,"ParticleSystemQuad");
tolua_function(tolua_S,"setDisplayFrame",lua_cocos2dx_ParticleSystemQuad_setDisplayFrame);
tolua_function(tolua_S,"setTextureWithRect",lua_cocos2dx_ParticleSystemQuad_setTextureWithRect);
tolua_function(tolua_S,"listenRendererRecreated",lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated);
tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSystemQuad_create);
tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSystemQuad_createWithTotalParticles);
tolua_endmodule(tolua_S);

View File

@ -1593,6 +1593,7 @@ int register_all_cocos2dx(lua_State* tolua_S);
#endif // __cocos2dx_h__