Files
the-nexus/modules/core/ticker.js
manus 4effd9245c
Some checks failed
Deploy Nexus / deploy (push) Failing after 4s
Staging Smoke Test / smoke-test (push) Successful in 1s
[manus] SovOS Architecture — Modular 3D Interface (#452) (#453)
Co-authored-by: manus <manus@noreply.143.198.27.163>
Co-committed-by: manus <manus@noreply.143.198.27.163>
2026-03-24 19:41:43 +00:00

11 lines
241 B
JavaScript

export class Ticker {
constructor() {
this.callbacks = [];
}
subscribe(fn) { this.callbacks.push(fn); }
tick(delta, elapsed) {
this.callbacks.forEach(fn => fn(delta, elapsed));
}
}
export const globalTicker = new Ticker();