diff --git a/native/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_auto_api.js b/native/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_auto_api.js index b7d315b8ab..d0bedc5034 100644 --- a/native/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_auto_api.js +++ b/native/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_auto_api.js @@ -3254,6 +3254,14 @@ int { }, +/** + * @method removeAllFunctionsToBePerformedInCocosThread + */ +removeAllFunctionsToBePerformedInCocosThread : function ( +) +{ +}, + /** * @method Scheduler * @constructor diff --git a/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp b/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp index 0e4c0fad0f..4ec4a748d2 100644 --- a/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp +++ b/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp @@ -7008,6 +7008,21 @@ static bool js_cocos2dx_Scheduler_unscheduleAllWithMinPriority(se::State& s) } SE_BIND_FUNC(js_cocos2dx_Scheduler_unscheduleAllWithMinPriority) +static bool js_cocos2dx_Scheduler_removeAllFunctionsToBePerformedInCocosThread(se::State& s) +{ + cocos2d::Scheduler* cobj = (cocos2d::Scheduler*)s.nativeThisObject(); + SE_PRECONDITION2(cobj, false, "js_cocos2dx_Scheduler_removeAllFunctionsToBePerformedInCocosThread : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + if (argc == 0) { + cobj->removeAllFunctionsToBePerformedInCocosThread(); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0); + return false; +} +SE_BIND_FUNC(js_cocos2dx_Scheduler_removeAllFunctionsToBePerformedInCocosThread) + SE_DECLARE_FINALIZE_FUNC(js_cocos2d_Scheduler_finalize) static bool js_cocos2dx_Scheduler_constructor(se::State& s) @@ -7044,6 +7059,7 @@ bool js_register_cocos2dx_Scheduler(se::Object* obj) cls->defineFunction("unscheduleAll", _SE(js_cocos2dx_Scheduler_unscheduleAll)); cls->defineFunction("getTimeScale", _SE(js_cocos2dx_Scheduler_getTimeScale)); cls->defineFunction("unscheduleAllWithMinPriority", _SE(js_cocos2dx_Scheduler_unscheduleAllWithMinPriority)); + cls->defineFunction("removeAllFunctionsToBePerformedInCocosThread", _SE(js_cocos2dx_Scheduler_removeAllFunctionsToBePerformedInCocosThread)); cls->defineFinalizeFunction(_SE(js_cocos2d_Scheduler_finalize)); cls->install(); JSBClassType::registerClass(cls); diff --git a/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.hpp b/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.hpp index 788ce39a06..f61fa18f0e 100644 --- a/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.hpp +++ b/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.hpp @@ -384,6 +384,7 @@ SE_DECLARE_FUNC(js_cocos2dx_Scheduler_unscheduleScriptEntry); SE_DECLARE_FUNC(js_cocos2dx_Scheduler_unscheduleAll); SE_DECLARE_FUNC(js_cocos2dx_Scheduler_getTimeScale); SE_DECLARE_FUNC(js_cocos2dx_Scheduler_unscheduleAllWithMinPriority); +SE_DECLARE_FUNC(js_cocos2dx_Scheduler_removeAllFunctionsToBePerformedInCocosThread); SE_DECLARE_FUNC(js_cocos2dx_Scheduler_Scheduler); extern se::Object* __jsb_cocos2d_AsyncTaskPool_proto;