29 lines
586 B
TypeScript
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")
|
|
}
|
|
} |