Merge pull request #781 from CocosRobot/update_js_bindings_1503907648

[ci skip][AUTO]: updating jsbinding automatically
This commit is contained in:
Wang Nan
2017-08-28 17:09:26 +08:00
committed by GitHub
3 changed files with 25 additions and 0 deletions
@@ -3254,6 +3254,14 @@ int
{
},
/**
* @method removeAllFunctionsToBePerformedInCocosThread
*/
removeAllFunctionsToBePerformedInCocosThread : function (
)
{
},
/**
* @method Scheduler
* @constructor
@@ -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<cocos2d::Scheduler>(cls);
@@ -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;