Timers
Implemented
This feature is fully implemented.
Countdown and interval timers for cooldowns, spawning, and delays, implemented as a Timer component and TimerSystem.
Timer Component
TimerSystem
The TimerSystem ticks all Timer components each frame using world.DeltaTime:
- One-shot timers (
Repeat = false):Finishedis set totrueonce and the timer stops - Interval timers (
Repeat = true):Finishedis set totrueeach cycle, andElapsedwraps by subtractingDuration
Check timer.Finished in your own systems to react to timer events.