[ci skip][AUTO]: updating luabinding & jsbinding automatically (#16370)

This commit is contained in:
CocosRobot 2016-08-16 16:56:06 +08:00 committed by minggo
parent b1a64ae730
commit 7540a64fd8
4 changed files with 40 additions and 59 deletions

View File

@ -16858,9 +16858,9 @@ getBarChangeRate : function (
/**
* @method setReverseDirection
* @param {bool|bool} bool
*/
setReverseDirection : function(
* @param {bool} arg0
*/
setReverseDirection : function (
bool
)
{

View File

@ -45761,36 +45761,22 @@ bool js_cocos2dx_ProgressTimer_getBarChangeRate(JSContext *cx, uint32_t argc, js
}
bool js_cocos2dx_ProgressTimer_setReverseDirection(JSContext *cx, uint32_t argc, jsval *vp)
{
bool ok = true;
cocos2d::ProgressTimer* cobj = nullptr;
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
JS::RootedObject obj(cx);
obj.set(args.thisv().toObjectOrNull());
bool ok = true;
JS::RootedObject obj(cx, args.thisv().toObjectOrNull());
js_proxy_t *proxy = jsb_get_js_proxy(obj);
cobj = (cocos2d::ProgressTimer *)(proxy ? proxy->ptr : nullptr);
cocos2d::ProgressTimer* cobj = (cocos2d::ProgressTimer *)(proxy ? proxy->ptr : NULL);
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ProgressTimer_setReverseDirection : Invalid Native Object");
do {
if (argc == 1) {
bool arg0;
arg0 = JS::ToBoolean(args.get(0));
cobj->setReverseDirection(arg0);
args.rval().setUndefined();
return true;
}
} while(0);
if (argc == 1) {
bool arg0;
arg0 = JS::ToBoolean(args.get(0));
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ProgressTimer_setReverseDirection : Error processing arguments");
cobj->setReverseDirection(arg0);
args.rval().setUndefined();
return true;
}
do {
if (argc == 1) {
bool arg0;
arg0 = JS::ToBoolean(args.get(0));
cobj->setReverseProgress(arg0);
args.rval().setUndefined();
return true;
}
} while(0);
JS_ReportError(cx, "js_cocos2dx_ProgressTimer_setReverseDirection : wrong number of arguments");
JS_ReportError(cx, "js_cocos2dx_ProgressTimer_setReverseDirection : wrong number of arguments: %d, was expecting %d", argc, 1);
return false;
}
bool js_cocos2dx_ProgressTimer_getMidpoint(JSContext *cx, uint32_t argc, jsval *vp)

View File

@ -12,7 +12,7 @@
-- @return bool#bool ret (return value: bool)
--------------------------------
-- Return the Reverse direction. <br>
-- Return the Reverse direction.<br>
-- return If the direction is Anti-clockwise,it will return true.
-- @function [parent=#ProgressTimer] isReverseDirection
-- @param self
@ -81,11 +81,11 @@
-- @return vec2_table#vec2_table ret (return value: vec2_table)
--------------------------------
-- @overload self, bool
-- @overload self, bool
-- Set the Reverse direction.<br>
-- param value If value is false it will clockwise,if is true it will Anti-clockwise.
-- @function [parent=#ProgressTimer] setReverseDirection
-- @param self
-- @param #bool reverse
-- @param #bool value
-- @return ProgressTimer#ProgressTimer self (return value: cc.ProgressTimer)
--------------------------------

View File

@ -71407,14 +71407,18 @@ int lua_cocos2dx_ProgressTimer_setReverseDirection(lua_State* tolua_S)
int argc = 0;
cocos2d::ProgressTimer* 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.ProgressTimer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
@ -71422,32 +71426,23 @@ int lua_cocos2dx_ProgressTimer_setReverseDirection(lua_State* tolua_S)
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
do{
if (argc == 1) {
bool arg0;
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ProgressTimer:setReverseDirection");
if (argc == 1)
{
bool arg0;
if (!ok) { break; }
cobj->setReverseDirection(arg0);
lua_settop(tolua_S, 1);
return 1;
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ProgressTimer:setReverseDirection");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_setReverseDirection'", nullptr);
return 0;
}
}while(0);
ok = true;
do{
if (argc == 1) {
bool arg0;
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ProgressTimer:setReverseDirection");
if (!ok) { break; }
cobj->setReverseProgress(arg0);
lua_settop(tolua_S, 1);
return 1;
}
}while(0);
ok = true;
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:setReverseProgress",argc, 1);
cobj->setReverseDirection(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:setReverseDirection",argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1