From cfb915724fa28c2ee693c89f26b799bded1e350a Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Tue, 29 Sep 2020 22:58:33 -0600 Subject: [PATCH] begin work on method to create a Game object from JSON --- src/utils/Game.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/Game.ts b/src/utils/Game.ts index 0930fba..6858d4a 100644 --- a/src/utils/Game.ts +++ b/src/utils/Game.ts @@ -35,4 +35,8 @@ class Game { players: this.#_players, }, undefined, `\t`) }; + + public static fromJSON(data: string): Game { + let db: database = JSON.parse(data) as database; + }; }; \ No newline at end of file