assassin-bug/framework/scheduler/index.d.ts

13 lines
344 B
TypeScript
Raw Permalink Normal View History

2022-11-26 01:22:02 +00:00
import { EventBus } from '../event-bus';
import { RAFTimer } from './raf';
import { Timer } from './timer';
export declare class Scheduler extends EventBus {
logicPerSecond: number;
logicTimer: Timer;
drawTimer: RAFTimer;
constructor(logicPerSecond: number);
init(): void;
start(): void;
stop(): void;
}