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
Re-exports: Timer
public enum TimedLoopState
Values: RUNNING, PAUSED, STOPPED, STOPPED_FOR_GOOD
public module TimedLoop
Members:
abstract function onTimedLoop()getPeriod() returns real Returns the period of the timed loop. Ovewrite this to set a custom periodstopTimedLoop() Stops the periodic update of this object.stopTimedLoopAndDestroy() Stops the periodic update and destroys the object.startTimedLoop() Starts the periodic updates for this objectpublic function getTimer() returns timer
public function timer.setData(int data)
Attach Data to this timer
public function timer.getData() returns int
Retrieve the data attached to this timer
public function timer.release()
Release the timer. Use this instead of “DestroyTimer” !