Expand description
Fixed-step countdown timer: the alarm pattern step-based games run on. Counts down in sim steps, fires exactly on the landing step, re-arms for repeats; a disarmed timer never fires.
Timebase is seconds like SimTime: construct from
seconds (15.0 / 30.0 for 15 steps at 30 Hz), tick with the step’s
delta_secs. StepTimer::just_finished is true only on the completing
step, because branching on that single-step edge is the whole point.
Structs§
- Step
Timer - Countdown/up timer over plain seconds, ticked once per fixed step.
Enums§
- Timer
Mode - Once (clamp at duration) vs repeating (wrap elapsed) expiry.