HumanBreak/src/core/main/game.ts

11 lines
315 B
TypeScript
Raw Normal View History

2023-08-05 12:12:02 +08:00
import { EmitableEvent, EventEmitter } from '../common/eventEmitter';
export interface GameEvent extends EmitableEvent {
2023-10-29 22:13:37 +08:00
/** Emitted in events.prototype.resetGame. */
2023-08-05 12:12:02 +08:00
reset: () => void;
2023-10-29 22:13:37 +08:00
/** Emitted in src/App.vue setup. */
mounted: () => void;
2023-08-05 12:12:02 +08:00
}
export const hook = new EventEmitter<GameEvent>();