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

staticinit():Void

staticisStopped():Bool

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.

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