diff --git a/src/utils/Game.ts b/src/utils/Game.ts index a21d7f0..ce2fba8 100644 --- a/src/utils/Game.ts +++ b/src/utils/Game.ts @@ -1,10 +1,12 @@ class Game { readonly code: string; + public status: string; #players: players; public constructor(code: string, host: string) { this.code = code; this.#players = {}; + this.status = `lobby`; this.add_player(host, true); }; @@ -36,7 +38,7 @@ class Game { }, undefined, `\t`) }; - public static fromJSON(data: string): Game { + public static fromJSON(data: string): void { let db: database = JSON.parse(data) as database; }; }; \ No newline at end of file