class

PointClickEngine::Core::Timer

Inherits Reference < Object

Individual timer instance

Constructors

new(id : String, delay : Float32, callback_code : String | Nil = nil, repeating : Bool = false)
Source

Instance methods

callback_code
Source
callback_code=(callback_code : String | Nil)
Source
completed?
Source
delay
Source
delay=(delay : Float32)
Source
elapsed
Source
elapsed=(elapsed : Float32)
Source
fired
Source
fired=(fired : Bool)
Source
id=(id : String)
Source
repeating
Source
repeating=(repeating : Bool)
Source
update(dt : Float32) : Bool

Update timer, returns true if timer fired

Source