From f4c9ea390294af5129efaaa4531f5cc59c1a9b07 Mon Sep 17 00:00:00 2001 From: CocosRobot Date: Thu, 21 Apr 2016 01:54:49 +0000 Subject: [PATCH] [ci skip][AUTO]: updating luabinding & jsbinding automatically --- cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_auto_api.js | 4 ++-- cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp | 4 ++-- cocos/scripting/lua-bindings/auto/api/Node.lua | 2 +- cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_auto_api.js b/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_auto_api.js index 868074446f..41e5af17be 100644 --- a/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_auto_api.js +++ b/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_auto_api.js @@ -755,10 +755,10 @@ str /** * @method setPhysicsBody - * @param {cc.Component} arg0 + * @param {cc.PhysicsBody} arg0 */ setPhysicsBody : function ( -component +physicsbody ) { }, diff --git a/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp b/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp index b87369a111..0c227963bf 100644 --- a/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp +++ b/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp @@ -1997,14 +1997,14 @@ bool js_cocos2dx_Node_setPhysicsBody(JSContext *cx, uint32_t argc, jsval *vp) cocos2d::Node* cobj = (cocos2d::Node *)(proxy ? proxy->ptr : NULL); JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_Node_setPhysicsBody : Invalid Native Object"); if (argc == 1) { - cocos2d::Component* arg0 = nullptr; + cocos2d::PhysicsBody* arg0 = nullptr; do { if (args.get(0).isNull()) { arg0 = nullptr; break; } if (!args.get(0).isObject()) { ok = false; break; } js_proxy_t *jsProxy; JS::RootedObject tmpObj(cx, args.get(0).toObjectOrNull()); jsProxy = jsb_get_js_proxy(tmpObj); - arg0 = (cocos2d::Component*)(jsProxy ? jsProxy->ptr : NULL); + arg0 = (cocos2d::PhysicsBody*)(jsProxy ? jsProxy->ptr : NULL); JSB_PRECONDITION2( arg0, cx, false, "Invalid Native Object"); } while (0); JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_Node_setPhysicsBody : Error processing arguments"); diff --git a/cocos/scripting/lua-bindings/auto/api/Node.lua b/cocos/scripting/lua-bindings/auto/api/Node.lua index 680e3f4c0f..ca2b99431c 100644 --- a/cocos/scripting/lua-bindings/auto/api/Node.lua +++ b/cocos/scripting/lua-bindings/auto/api/Node.lua @@ -28,7 +28,7 @@ -- -- @function [parent=#Node] setPhysicsBody -- @param self --- @param #cc.Component physicsBody +-- @param #cc.PhysicsBody physicsBody -- @return Node#Node self (return value: cc.Node) -------------------------------- diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp index 2612181030..fda3a14c8f 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp @@ -3768,9 +3768,9 @@ int lua_cocos2dx_Node_setPhysicsBody(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Component* arg0; + cocos2d::PhysicsBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Component",&arg0, "cc.Node:setPhysicsBody"); + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.Node:setPhysicsBody"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setPhysicsBody'", nullptr);