Your browser does not support HTML5 canvas. Fork me on GitHub

Available Packages:

TimerUtils

Source

function static timer.getData() returns int

Source

Retrieve the data attached to this timer

function getTimer() returns timer

Source

Get a new timer. Use this instead of "CreateTimer". You can attach data to the timer with .setData and retrieve it with .getData If you're done with the timer, release it with .release

function static timer.release()

Source

Release the timer. Use this instead of "DestroyTimer" !

function static timer.setData(int data)

Source

Attach Data to this timer

module TimedLoop

Source

TimedLoopState timedLoopState

Source

function getPeriod() returns real

Source

Returns the period of the timed loop. Ovewrite this to set a custom period

function onTimedLoop()

Source

function startTimedLoop()

Source

Starts the periodic updates for this object

function stopTimedLoop()

Source

Stops the periodic update of this object.

function stopTimedLoopAndDestroy()

Source

Stops the periodic update and destroys the object.