init
This commit is contained in:
10
src/lib/events/emitter.ts
Normal file
10
src/lib/events/emitter.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { EventEmitter } from "events";
|
||||
|
||||
export const serverEvents = new EventEmitter();
|
||||
|
||||
export type TestEvent = {
|
||||
type: "test";
|
||||
playerId: string;
|
||||
};
|
||||
|
||||
export type ServerEvent = TestEvent;
|
||||
Reference in New Issue
Block a user