import { GameObject } from "./GameObject"; import type { ICLobby } from "../interfaces/client"; export class Lobby extends GameObject implements ICLobby { static instance: Lobby constructor(socket: WebSocket, data: { uuid: string, games: Array }) { if (Lobby.instance) { return Lobby.instance } super(socket, data) Lobby.instance = this } onAddGame() { } onRemoveGame() { } async request_createGame() { throw Error("not implemented") } removeGame() { throw Error("not implemented") } }