From 0fae284f79b1c934e58214cf5f88cad4cab6b03b Mon Sep 17 00:00:00 2001 From: Frans Bongers Date: Wed, 19 Mar 2025 21:55:43 +0100 Subject: refactor: FrontId to number --- types.d.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'types.d.ts') diff --git a/types.d.ts b/types.d.ts index 2387420..16cae59 100644 --- a/types.d.ts +++ b/types.d.ts @@ -8,7 +8,8 @@ export type Brand = T & { export type Player = Brand; export type CardId = Brand; export type FactionId = 'a' | 'c' | 'm'; -export type FrontId = 'a' | 'm' | 'n' | 's'; +export type FrontId = 0 | 1 | 2 | 3; +// export type FrontId = 'a' | 'm' | 'n' | 's'; export interface Front { value: number; @@ -46,12 +47,7 @@ export interface Game { * First player of current game turn */ first_player: FactionId | null; - fronts: { - a: Front; - m: Front; - n: Front; - s: Front; - }; + fronts: Front[]; glory: FactionId[]; hands: Record; hero_points: Record; @@ -202,7 +198,7 @@ export interface Effect { export interface StaticData { cards: Card[]; fronts: Array<{ - id: string; + id: number; name: string; left: number; top: number; -- cgit v1.2.3