Timer
Timer
entirely superseded by the BehaviorSystem, prefer using a DelayBehavior instead
Kind: global class
Properties
| Name | Type |
|---|---|
| repeat | number |
| timeout | number |
| actions | Array.<function()> |
| active | boolean |
Timer- new Timer(options)
- instance
- static
- .createTimeoutPromise(ecd, timeout) ⇒
Promise
- .createTimeoutPromise(ecd, timeout) ⇒
new Timer(options)
| Param |
|---|
| options |
timer.actions : Array.<function()>
Kind: instance property of Timer
timer.active : boolean
Kind: instance property of Timer
timer.ticks : number
Kind: instance property of Timer
timer.counter : number
represents current time elapsed in a cycle, always less than timeout value
Kind: instance property of Timer
Timer.createTimeoutPromise(ecd, timeout) ⇒ Promise
Kind: static method of Timer
| Param | Type |
|---|---|
| ecd | EntityComponentDataset |
| timeout | number |