summaryrefslogtreecommitdiff
path: root/types.d.ts
diff options
context:
space:
mode:
authorFrans Bongers <fransbongers@franss-mbp.home>2024-12-31 13:05:16 +0100
committerFrans Bongers <fransbongers@franss-mbp.home>2024-12-31 13:05:16 +0100
commit1298b27e451f9cbc5c784581b630577ad9d074f7 (patch)
tree08455b17627523171c91c3dc24065c4f8142dfa5 /types.d.ts
parent50d95d906d7d782d155e75635be4d637c1ccfb25 (diff)
downloadland-and-freedom-1298b27e451f9cbc5c784581b630577ad9d074f7.tar.gz
random player order and show ui relative to player order
Diffstat (limited to 'types.d.ts')
-rw-r--r--types.d.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/types.d.ts b/types.d.ts
index 7c2e648..1f179cd 100644
--- a/types.d.ts
+++ b/types.d.ts
@@ -59,6 +59,7 @@ export interface Game {
initiative: FactionId;
medallions: Record<FactionId, number[]> & { pool: Array<number | null> };
played_card: CardId | null;
+ player_order: Player[];
selected_cards: Record<FactionId, CardId[]>;
selectable_cards: CardId[]; // used for specific events
tableaus: Record<FactionId, CardId[]>;
@@ -80,7 +81,7 @@ export interface View {
prompt: string | null;
actions?: any;
victory?: string;
-
+ current: Player | 'Observer';
selected_cards: CardId[];
bag_of_glory: Game['bag_of_glory'];
bonuses: Game['bonuses'];
@@ -92,6 +93,7 @@ export interface View {
initiative: Game['initiative'];
medallions: Game['medallions'];
played_card: Game['played_card'];
+ player_order: Game['player_order'];
selectable_cards: Game['selectable_cards'];
tableaus: Game['tableaus'];
tracks: number[];