begin work on method to create a Game object from JSON
This commit is contained in:
parent
cb492fd275
commit
cfb915724f
1 changed files with 4 additions and 0 deletions
|
|
@ -35,4 +35,8 @@ class Game {
|
||||||
players: this.#_players,
|
players: this.#_players,
|
||||||
}, undefined, `\t`)
|
}, undefined, `\t`)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
public static fromJSON(data: string): Game {
|
||||||
|
let db: database = JSON.parse(data) as database;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
Loading…
Add table
Add a link
Reference in a new issue