mirror of https://github.com/axmolengine/axmol.git
34 lines
1.1 KiB
Lua
34 lines
1.1 KiB
Lua
|
|
--------------------------------
|
|
-- @module Scheduler
|
|
-- @extend Ref
|
|
-- @parent_module cc
|
|
|
|
--------------------------------
|
|
-- 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.
|
|
-- @function [parent=#Scheduler] setTimeScale
|
|
-- @param self
|
|
-- @param #float timeScale
|
|
-- @return Scheduler#Scheduler self (return value: cc.Scheduler)
|
|
|
|
--------------------------------
|
|
-- Gets the time scale of schedule callbacks.<br>
|
|
-- see Scheduler::setTimeScale()
|
|
-- @function [parent=#Scheduler] getTimeScale
|
|
-- @param self
|
|
-- @return float#float ret (return value: float)
|
|
|
|
--------------------------------
|
|
-- Constructor<br>
|
|
-- js ctor
|
|
-- @function [parent=#Scheduler] Scheduler
|
|
-- @param self
|
|
-- @return Scheduler#Scheduler self (return value: cc.Scheduler)
|
|
|
|
return nil
|