new TimerEvent(timer, delay, tick, repeatCount, loop, callback, callbackContext, args)
Describe a timer event.
Parameters:
Name | Type | Description |
---|---|---|
timer |
FORGE.Timer | The FORGE.Timer that handle this event. |
delay |
number | Delay in millisenconds. |
tick |
number | The current clock tick. |
repeatCount |
number | The number of time the timer should repeat itself. |
loop |
boolean | Does the timer have to loop? |
callback |
function | The callback function for this timer timer event complete. |
callbackContext |
Object | The context in which the callback have to be executed. |
args |
Array.<*> | The arguments to pass to the callback. |
- Source:
Members
repeatCount :number
The number of time the timer should repeat itself.
Type:
- number
- Source:
Methods
execute()
Execute the callback with arguments.
- Source: