UNPKG

@fuwu-yuan/bgew

Version:

Baguette Game Engine Web is a french 2D Web game engine

14 lines (13 loc) 451 B
import { DispatcherEvent } from "./DispatcherEvent"; export declare class Dispatcher { events: { [key: string]: DispatcherEvent; }; constructor(); dispatch(eventName: string, ...args: any[]): void; on(eventName: string, callback: (...args: any[]) => void, options?: DispatcherOptions): void; off(eventName: string, callback: (...args: any[]) => void): void; } export interface DispatcherOptions { once?: boolean; }