Skip to content

TickInfo

Defined in: src/tick-source.ts:11

Monotonic, source-specific per-tick snapshot. Passed to subscribers.

  • tickNumber is a source-local counter that starts at 0 and increments once per emitted tick. Different sources maintain independent counters.
  • deltaMs is present only for time-driven sources (fixed/variable). Pure discrete sources (e.g. turn-based games) omit it.
  • kind lets consumers branch on source category without type-narrowing on the concrete implementation.

readonly optional deltaMs?: number

Defined in: src/tick-source.ts:12


readonly kind: "fixed" | "discrete" | "variable"

Defined in: src/tick-source.ts:13


readonly tickNumber: number

Defined in: src/tick-source.ts:14