@moderrkowo/jsgl
Version:
Client-side JavaScript library for creating web 2D games. Focusing at objective game.
12 lines (11 loc) • 334 B
TypeScript
import { GameEvent } from './GameEvent';
import { Listener } from '../structs/Listener';
/**
* @group Game Events
*/
export declare class Signals {
listeners: Array<Listener>;
constructor();
emit(channel: string, event: GameEvent): void;
on(channel: string, callback: (event: GameEvent) => void): void;
}