Skip to content

[ci skip][AUTO]: updating luabinding & jsbinding & cocos_file.json automatically #19895

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19069,7 +19069,7 @@ bool js_cocos2dx_FileUtils_getStringFromFile(JSContext *cx, uint32_t argc, jsval
{
JS::RootedObject jstarget(cx, args.thisv().toObjectOrNull());
std::shared_ptr<JSFunctionWrapper> func(new JSFunctionWrapper(cx, jstarget, args.get(1), args.thisv()));
auto lambda = [=](const std::string& larg0) -> void {
auto lambda = [=](std::string larg0) -> void {
JSB_AUTOCOMPARTMENT_WITH_GLOBAL_OBJCET
jsval largv[1];
largv[0] = std_string_to_jsval(cx, larg0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6737,7 +6737,7 @@ bool js_cocos2dx_extension_AssetsManagerEx_setVerifyCallback(JSContext *cx, uint
{
JS::RootedObject jstarget(cx, args.thisv().toObjectOrNull());
std::shared_ptr<JSFunctionWrapper> func(new JSFunctionWrapper(cx, jstarget, args.get(0), args.thisv()));
auto lambda = [=](const std::string& larg0, const cocos2d::extension::ManifestAsset& larg1) -> bool {
auto lambda = [=](const std::string& larg0, cocos2d::extension::ManifestAsset larg1) -> bool {
JSB_AUTOCOMPARTMENT_WITH_GLOBAL_OBJCET
jsval largv[2];
largv[0] = std_string_to_jsval(cx, larg0);
Expand Down
51 changes: 51 additions & 0 deletions cocos/scripting/lua-bindings/auto/lua_cocos2dx_physics_auto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12642,6 +12642,56 @@ int lua_cocos2dx_physics_PhysicsWorld_getShape(lua_State* tolua_S)

return 0;
}
int lua_cocos2dx_physics_PhysicsWorld_setDebugDrawGlobalZOrder(lua_State* tolua_S)
{
int argc = 0;
cocos2d::PhysicsWorld* 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.PhysicsWorld",0,&tolua_err)) goto tolua_lerror;
#endif

cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_physics_PhysicsWorld_setDebugDrawGlobalZOrder'", nullptr);
return 0;
}
#endif

argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
double arg0;

ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.PhysicsWorld:setDebugDrawGlobalZOrder");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsWorld_setDebugDrawGlobalZOrder'", nullptr);
return 0;
}
cobj->setDebugDrawGlobalZOrder(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PhysicsWorld:setDebugDrawGlobalZOrder",argc, 1);
return 0;

#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_physics_PhysicsWorld_setDebugDrawGlobalZOrder'.",&tolua_err);
#endif

return 0;
}
int lua_cocos2dx_physics_PhysicsWorld_getBody(lua_State* tolua_S)
{
int argc = 0;
Expand Down Expand Up @@ -12729,6 +12779,7 @@ int lua_register_cocos2dx_physics_PhysicsWorld(lua_State* tolua_S)
tolua_function(tolua_S,"removeAllBodies",lua_cocos2dx_physics_PhysicsWorld_removeAllBodies);
tolua_function(tolua_S,"setSpeed",lua_cocos2dx_physics_PhysicsWorld_setSpeed);
tolua_function(tolua_S,"getShape",lua_cocos2dx_physics_PhysicsWorld_getShape);
tolua_function(tolua_S,"setDebugDrawGlobalZOrder",lua_cocos2dx_physics_PhysicsWorld_setDebugDrawGlobalZOrder);
tolua_function(tolua_S,"getBody",lua_cocos2dx_physics_PhysicsWorld_getBody);
tolua_endmodule(tolua_S);
std::string typeName = typeid(cocos2d::PhysicsWorld).name();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ int register_all_cocos2dx_physics(lua_State* tolua_S);






#endif // __cocos2dx_physics_h__
Expand Down