mirror of https://github.com/axmolengine/axmol.git
Merge pull request #15579 from CocosRobot/update_lua_bindings_1462513306
[ci skip][AUTO]: updating luabinding & jsbinding automatically
This commit is contained in:
commit
aa51ce463a
|
@ -755,10 +755,10 @@ str
|
|||
|
||||
/**
|
||||
* @method setPhysicsBody
|
||||
* @param {cc.Component} arg0
|
||||
* @param {cc.PhysicsBody} arg0
|
||||
*/
|
||||
setPhysicsBody : function (
|
||||
component
|
||||
physicsbody
|
||||
)
|
||||
{
|
||||
},
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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)
|
||||
|
||||
--------------------------------
|
||||
|
|
|
@ -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<cocos2d::Component>(tolua_S, 2, "cc.Component",&arg0, "cc.Node:setPhysicsBody");
|
||||
ok &= luaval_to_object<cocos2d::PhysicsBody>(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.Node:setPhysicsBody");
|
||||
if(!ok)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setPhysicsBody'", nullptr);
|
||||
|
|
Loading…
Reference in New Issue