@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
34 lines • 898 B
TypeScript
export default Ticker;
/**
* Simulation tick generator
* Dispatches "tick" every animation frame or "maxDelay" time, whichever happens to be soonest
* This is essentially the timing bus that all the simulation systems subscribe to for their step advancement
*
* @author Alex Goldring
* @copyright Company Named Limited (c) 2025
*/
declare class Ticker {
/**
* @readonly
* @type {Clock}
*/
readonly clock: Clock;
/**
* Dispatches time delta in seconds since last tick
* @readonly
* @type {Signal<number>}
*/
readonly onTick: Signal<number>;
/**
*
* @param {number} [maxTimeout]
*/
start({ maxTimeout }?: number): void;
pause(): void;
resume(): void;
stop(): void;
#private;
}
import Clock from '../Clock.js';
import Signal from "../../core/events/signal/Signal.js";
//# sourceMappingURL=Ticker.d.ts.map