summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/cc.Scheduler.lua
blob: 41aa69c7ceb4ddb5b886e0a5aa71333e643736c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

---@class cc.Scheduler :cc.Ref
local Scheduler={ }
cc.Scheduler=Scheduler




---*  Modifies the time of all scheduled callbacks.<br>
---* You can use this property to create a 'slow motion' or 'fast forward' effect.<br>
---* Default is 1.0. To create a 'slow motion' effect, use values below 1.0.<br>
---* To create a 'fast forward' effect, use values higher than 1.0.<br>
---* since v0.8<br>
---* 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<br>
---* Functions unscheduled in this manner will not be executed<br>
---* This function is thread safe<br>
---* since v3.14<br>
---* js NA
---@return self
function Scheduler:removeAllFunctionsToBePerformedInCocosThread () end
---* Gets the time scale of schedule callbacks.<br>
---* see Scheduler::setTimeScale()
---@return float
function Scheduler:getTimeScale () end
---* Constructor<br>
---* js ctor
---@return self
function Scheduler:Scheduler () end