axmol/cocos/scripting/lua-bindings/auto/api/Scheduler.lua

44 lines
1.5 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)
--------------------------------
-- 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
-- @function [parent=#Scheduler] removeAllFunctionsToBePerformedInCocosThread
-- @param self
-- @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