Merge pull request #11278 from CocosRobot/update_lua_bindings_1428047459

[AUTO]: updating luabinding automatically
This commit is contained in:
minggo 2015-04-04 07:18:39 +08:00
commit 0f09fd8956
3 changed files with 110 additions and 0 deletions

View File

@ -4,12 +4,24 @@
-- @extend Scene -- @extend Scene
-- @parent_module cc -- @parent_module cc
--------------------------------
--
-- @function [parent=#TransitionScene] getInScene
-- @param self
-- @return Scene#Scene ret (return value: cc.Scene)
-------------------------------- --------------------------------
-- Called after the transition finishes. -- Called after the transition finishes.
-- @function [parent=#TransitionScene] finish -- @function [parent=#TransitionScene] finish
-- @param self -- @param self
-- @return TransitionScene#TransitionScene self (return value: cc.TransitionScene) -- @return TransitionScene#TransitionScene self (return value: cc.TransitionScene)
--------------------------------
--
-- @function [parent=#TransitionScene] getDuration
-- @param self
-- @return float#float ret (return value: float)
-------------------------------- --------------------------------
-- Used by some transitions to hide the outer scene. -- Used by some transitions to hide the outer scene.
-- @function [parent=#TransitionScene] hideOutShowIn -- @function [parent=#TransitionScene] hideOutShowIn

View File

@ -42303,6 +42303,53 @@ int lua_register_cocos2dx_TransitionEaseScene(lua_State* tolua_S)
return 1; return 1;
} }
int lua_cocos2dx_TransitionScene_getInScene(lua_State* tolua_S)
{
int argc = 0;
cocos2d::TransitionScene* 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.TransitionScene",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::TransitionScene*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionScene_getInScene'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionScene_getInScene'", nullptr);
return 0;
}
cocos2d::Scene* ret = cobj->getInScene();
object_to_luaval<cocos2d::Scene>(tolua_S, "cc.Scene",(cocos2d::Scene*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionScene:getInScene",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionScene_getInScene'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_TransitionScene_finish(lua_State* tolua_S) int lua_cocos2dx_TransitionScene_finish(lua_State* tolua_S)
{ {
int argc = 0; int argc = 0;
@ -42350,6 +42397,53 @@ int lua_cocos2dx_TransitionScene_finish(lua_State* tolua_S)
return 0; return 0;
} }
int lua_cocos2dx_TransitionScene_getDuration(lua_State* tolua_S)
{
int argc = 0;
cocos2d::TransitionScene* 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.TransitionScene",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::TransitionScene*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionScene_getDuration'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionScene_getDuration'", nullptr);
return 0;
}
double ret = cobj->getDuration();
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionScene:getDuration",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionScene_getDuration'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_TransitionScene_hideOutShowIn(lua_State* tolua_S) int lua_cocos2dx_TransitionScene_hideOutShowIn(lua_State* tolua_S)
{ {
int argc = 0; int argc = 0;
@ -42447,7 +42541,9 @@ int lua_register_cocos2dx_TransitionScene(lua_State* tolua_S)
tolua_cclass(tolua_S,"TransitionScene","cc.TransitionScene","cc.Scene",nullptr); tolua_cclass(tolua_S,"TransitionScene","cc.TransitionScene","cc.Scene",nullptr);
tolua_beginmodule(tolua_S,"TransitionScene"); tolua_beginmodule(tolua_S,"TransitionScene");
tolua_function(tolua_S,"getInScene",lua_cocos2dx_TransitionScene_getInScene);
tolua_function(tolua_S,"finish",lua_cocos2dx_TransitionScene_finish); tolua_function(tolua_S,"finish",lua_cocos2dx_TransitionScene_finish);
tolua_function(tolua_S,"getDuration",lua_cocos2dx_TransitionScene_getDuration);
tolua_function(tolua_S,"hideOutShowIn",lua_cocos2dx_TransitionScene_hideOutShowIn); tolua_function(tolua_S,"hideOutShowIn",lua_cocos2dx_TransitionScene_hideOutShowIn);
tolua_function(tolua_S,"create", lua_cocos2dx_TransitionScene_create); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionScene_create);
tolua_endmodule(tolua_S); tolua_endmodule(tolua_S);

View File

@ -1632,6 +1632,8 @@ int register_all_cocos2dx(lua_State* tolua_S);