mirror of https://github.com/axmolengine/axmol.git
[ci skip][AUTO]: updating luabinding & jsbinding automatically (#16370)
This commit is contained in:
parent
b1a64ae730
commit
7540a64fd8
|
@ -16858,9 +16858,9 @@ getBarChangeRate : function (
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @method setReverseDirection
|
* @method setReverseDirection
|
||||||
* @param {bool|bool} bool
|
* @param {bool} arg0
|
||||||
*/
|
*/
|
||||||
setReverseDirection : function(
|
setReverseDirection : function (
|
||||||
bool
|
bool
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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 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::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||||
JS::RootedObject obj(cx);
|
bool ok = true;
|
||||||
obj.set(args.thisv().toObjectOrNull());
|
JS::RootedObject obj(cx, args.thisv().toObjectOrNull());
|
||||||
js_proxy_t *proxy = jsb_get_js_proxy(obj);
|
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");
|
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ProgressTimer_setReverseDirection : Invalid Native Object");
|
||||||
do {
|
if (argc == 1) {
|
||||||
if (argc == 1) {
|
bool arg0;
|
||||||
bool arg0;
|
arg0 = JS::ToBoolean(args.get(0));
|
||||||
arg0 = JS::ToBoolean(args.get(0));
|
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ProgressTimer_setReverseDirection : Error processing arguments");
|
||||||
cobj->setReverseDirection(arg0);
|
cobj->setReverseDirection(arg0);
|
||||||
args.rval().setUndefined();
|
args.rval().setUndefined();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} while(0);
|
|
||||||
|
|
||||||
do {
|
JS_ReportError(cx, "js_cocos2dx_ProgressTimer_setReverseDirection : wrong number of arguments: %d, was expecting %d", argc, 1);
|
||||||
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");
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
bool js_cocos2dx_ProgressTimer_getMidpoint(JSContext *cx, uint32_t argc, jsval *vp)
|
bool js_cocos2dx_ProgressTimer_getMidpoint(JSContext *cx, uint32_t argc, jsval *vp)
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
-- @return bool#bool ret (return value: bool)
|
-- @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.
|
-- return If the direction is Anti-clockwise,it will return true.
|
||||||
-- @function [parent=#ProgressTimer] isReverseDirection
|
-- @function [parent=#ProgressTimer] isReverseDirection
|
||||||
-- @param self
|
-- @param self
|
||||||
|
@ -81,13 +81,13 @@
|
||||||
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- @overload self, bool
|
-- Set the Reverse direction.<br>
|
||||||
-- @overload self, bool
|
-- param value If value is false it will clockwise,if is true it will Anti-clockwise.
|
||||||
-- @function [parent=#ProgressTimer] setReverseDirection
|
-- @function [parent=#ProgressTimer] setReverseDirection
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #bool reverse
|
-- @param #bool value
|
||||||
-- @return ProgressTimer#ProgressTimer self (return value: cc.ProgressTimer)
|
-- @return ProgressTimer#ProgressTimer self (return value: cc.ProgressTimer)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- Returns the Midpoint. <br>
|
-- Returns the Midpoint. <br>
|
||||||
-- return A Vec2.
|
-- return A Vec2.
|
||||||
|
|
|
@ -71407,47 +71407,42 @@ int lua_cocos2dx_ProgressTimer_setReverseDirection(lua_State* tolua_S)
|
||||||
int argc = 0;
|
int argc = 0;
|
||||||
cocos2d::ProgressTimer* cobj = nullptr;
|
cocos2d::ProgressTimer* cobj = nullptr;
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
|
|
||||||
#if COCOS2D_DEBUG >= 1
|
#if COCOS2D_DEBUG >= 1
|
||||||
tolua_Error tolua_err;
|
tolua_Error tolua_err;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if COCOS2D_DEBUG >= 1
|
#if COCOS2D_DEBUG >= 1
|
||||||
if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror;
|
if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0);
|
cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0);
|
||||||
|
|
||||||
#if COCOS2D_DEBUG >= 1
|
#if COCOS2D_DEBUG >= 1
|
||||||
if (!cobj)
|
if (!cobj)
|
||||||
{
|
{
|
||||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_setReverseDirection'", nullptr);
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_setReverseDirection'", nullptr);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
argc = lua_gettop(tolua_S)-1;
|
argc = lua_gettop(tolua_S)-1;
|
||||||
do{
|
if (argc == 1)
|
||||||
if (argc == 1) {
|
{
|
||||||
bool arg0;
|
bool arg0;
|
||||||
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ProgressTimer:setReverseDirection");
|
|
||||||
|
|
||||||
if (!ok) { break; }
|
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ProgressTimer:setReverseDirection");
|
||||||
cobj->setReverseDirection(arg0);
|
if(!ok)
|
||||||
lua_settop(tolua_S, 1);
|
{
|
||||||
return 1;
|
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_setReverseDirection'", nullptr);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}while(0);
|
cobj->setReverseDirection(arg0);
|
||||||
ok = true;
|
lua_settop(tolua_S, 1);
|
||||||
do{
|
return 1;
|
||||||
if (argc == 1) {
|
}
|
||||||
bool arg0;
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:setReverseDirection",argc, 1);
|
||||||
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);
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
#if COCOS2D_DEBUG >= 1
|
#if COCOS2D_DEBUG >= 1
|
||||||
|
|
Loading…
Reference in New Issue