From 814c291443441074c1d76adb3c6c926d69772eb3 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Tue, 29 Sep 2020 16:33:01 -0600 Subject: [PATCH] Update player object and example JSON --- data/example.json | 5 ++--- src/types/db.d.ts | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/data/example.json b/data/example.json index 610bdd4..f53b453 100644 --- a/data/example.json +++ b/data/example.json @@ -4,9 +4,8 @@ "game_code": "example", "players": { "Oliver": { - "hitler": false, - "president": false, - "chancellor": false, + "position": null, + "role": null, "host": true } } diff --git a/src/types/db.d.ts b/src/types/db.d.ts index ceb6a6a..58186bc 100644 --- a/src/types/db.d.ts +++ b/src/types/db.d.ts @@ -1,7 +1,6 @@ interface player { - chancellor: boolean; - president: boolean; - hitler: boolean; + position: "chancellor"|"president"|undefined; + role: "liberal"|"fascist"|"hitler"; host: boolean; }