Static methods

staticaddBreakableFrameTask(task:() ‑> Bool, priority:Int):Int

@:value({ duration : 0, period : 0 })staticaddBreakableTimeTask(task:() ‑> Bool, start:Float, period:Float = 0, duration:Float = 0):Int

@:value({ duration : 0, period : 0 })staticaddBreakableTimeTaskToGroup(groupId:Int, task:() ‑> Bool, start:Float, period:Float = 0, duration:Float = 0):Int

staticaddFrameTask(task:() ‑> Void, priority:Int):Int

@:value({ duration : 0, period : 0 })staticaddTimeTask(task:() ‑> Void, start:Float, period:Float = 0, duration:Float = 0):Int

@:value({ duration : 0, period : 0 })staticaddTimeTaskToGroup(groupId:Int, task:() ‑> Void, start:Float, period:Float = 0, duration:Float = 0):Int

staticexecuteFrame():Void

staticgenerateGroupId():Int

staticinit():Void

staticisStopped():Bool

staticnumTasksInSchedule():Int

staticpauseFrameTask(id:Int, paused:Bool):Void

staticpauseTimeTask(id:Int, paused:Bool):Void

staticpauseTimeTasks(groupId:Int, paused:Bool):Void

staticrealTime():Float

The amount of time (in fractional seconds) that elapsed since the game started.

staticremoveFrameTask(id:Int):Void

staticremoveTimeTask(id:Int):Void

staticremoveTimeTasks(groupId:Int):Void

staticresetTime():Void

@:value({ restartTimers : false })staticstart(restartTimers:Bool = false):Void

staticstop():Void

statictime():Float

An approximation of the amount of time (in fractional seconds) that elapsed while the game was active. This value is optimized for achieving smooth framerates.

staticwarp(time:Float):Void