From 52097b6ee7cc8f5a770eb851902560b5b8592218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 22 Feb 2021 21:05:36 +0800 Subject: add meta/3rd with acknowledgement --- meta/3rd/Cocos4.0/cc.Scheduler.lua | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 meta/3rd/Cocos4.0/cc.Scheduler.lua (limited to 'meta/3rd/Cocos4.0/cc.Scheduler.lua') diff --git a/meta/3rd/Cocos4.0/cc.Scheduler.lua b/meta/3rd/Cocos4.0/cc.Scheduler.lua new file mode 100644 index 00000000..41aa69c7 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Scheduler.lua @@ -0,0 +1,32 @@ + +---@class cc.Scheduler :cc.Ref +local Scheduler={ } +cc.Scheduler=Scheduler + + + + +---* Modifies the time of all scheduled callbacks.
+---* You can use this property to create a 'slow motion' or 'fast forward' effect.
+---* Default is 1.0. To create a 'slow motion' effect, use values below 1.0.
+---* To create a 'fast forward' effect, use values higher than 1.0.
+---* since v0.8
+---* warning It will affect EVERY scheduled selector / action. +---@param timeScale float +---@return self +function Scheduler:setTimeScale (timeScale) end +---* Remove all pending functions queued to be performed with Scheduler::performFunctionInCocosThread
+---* Functions unscheduled in this manner will not be executed
+---* This function is thread safe
+---* since v3.14
+---* js NA +---@return self +function Scheduler:removeAllFunctionsToBePerformedInCocosThread () end +---* Gets the time scale of schedule callbacks.
+---* see Scheduler::setTimeScale() +---@return float +function Scheduler:getTimeScale () end +---* Constructor
+---* js ctor +---@return self +function Scheduler:Scheduler () end \ No newline at end of file -- cgit v1.2.3