Files
front/netcode/model/Lobby.ts
T
2024-05-29 16:46:58 +02:00

29 lines
586 B
TypeScript

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<string> }) {
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")
}
}