Merge pull request #11601 from CocosRobot/update_lua_bindings_1430101389

[AUTO]: updating luabinding automatically
This commit is contained in:
minggo 2015-04-27 11:32:12 +08:00
commit 92b7dcd64b
3 changed files with 51 additions and 0 deletions

View File

@ -19,6 +19,17 @@
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
-- brief Creates the action with the inner action and the rate parameter.<br>
-- param action A given ActionInterval<br>
-- param rate A given rate<br>
-- return An autoreleased EaseRateAction object.
-- @function [parent=#EaseRateAction] create
-- @param self
-- @param #cc.ActionInterval action
-- @param #float rate
-- @return EaseRateAction#EaseRateAction ret (return value: cc.EaseRateAction)
--------------------------------
--
-- @function [parent=#EaseRateAction] clone

View File

@ -26579,6 +26579,44 @@ int lua_cocos2dx_EaseRateAction_getRate(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_EaseRateAction_create(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"cc.EaseRateAction",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 2)
{
cocos2d::ActionInterval* arg0;
double arg1;
ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0);
ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EaseRateAction:create");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseRateAction_create'", nullptr);
return 0;
}
cocos2d::EaseRateAction* ret = cocos2d::EaseRateAction::create(arg0, arg1);
object_to_luaval<cocos2d::EaseRateAction>(tolua_S, "cc.EaseRateAction",(cocos2d::EaseRateAction*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseRateAction:create",argc, 2);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseRateAction_create'.",&tolua_err);
#endif
return 0;
}
static int lua_cocos2dx_EaseRateAction_finalize(lua_State* tolua_S)
{
printf("luabindings: finalizing LUA object (EaseRateAction)");
@ -26593,6 +26631,7 @@ int lua_register_cocos2dx_EaseRateAction(lua_State* tolua_S)
tolua_beginmodule(tolua_S,"EaseRateAction");
tolua_function(tolua_S,"setRate",lua_cocos2dx_EaseRateAction_setRate);
tolua_function(tolua_S,"getRate",lua_cocos2dx_EaseRateAction_getRate);
tolua_function(tolua_S,"create", lua_cocos2dx_EaseRateAction_create);
tolua_endmodule(tolua_S);
std::string typeName = typeid(cocos2d::EaseRateAction).name();
g_luaType[typeName] = "cc.EaseRateAction";

View File

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