multyx
Version:
Framework designed to simplify the creation of multiplayer browser games by addressing the complexities of managing server-client communication, shared state, and input handling
29 lines • 759 B
TypeScript
import { Client } from "../agents";
import { Callback } from "../types";
export declare const Events: {
Connect: symbol;
Disconnect: symbol;
Update: symbol;
PostUpdate: symbol;
Edit: symbol;
Input: symbol;
Any: symbol;
Native: symbol;
Custom: symbol;
};
export type EventName = typeof Events[keyof typeof Events] | string;
export declare class Event {
eventName: EventName;
callback: Callback;
saveHistory: boolean;
history: {
time: number;
client: Client | undefined;
data: any;
result: any;
}[];
constructor(eventName: EventName, callback: Callback);
call(client?: Client | undefined, data?: any): void;
delete(): void;
}
//# sourceMappingURL=event.d.ts.map