diff options
author | Frans Bongers <fransbongers@macbookpro.home> | 2025-03-19 21:55:43 +0100 |
---|---|---|
committer | Frans Bongers <fransbongers@macbookpro.home> | 2025-03-19 21:56:01 +0100 |
commit | 0fae284f79b1c934e58214cf5f88cad4cab6b03b (patch) | |
tree | 779e447a18042132e40036f40fc5d0af6622954a /types.d.ts | |
parent | 19d48663a25cf6f9a93e8710f6896a2b43971fcd (diff) | |
download | land-and-freedom-0fae284f79b1c934e58214cf5f88cad4cab6b03b.tar.gz |
refactor: FrontId to number
Diffstat (limited to 'types.d.ts')
-rw-r--r-- | types.d.ts | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -8,7 +8,8 @@ export type Brand<T, TBrand extends string> = T & { export type Player = Brand<string, 'Player'>; export type CardId = Brand<number, 'CardId'>; 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<FactionId, CardId[]>; hero_points: Record<FactionId | 'pool', number>; @@ -202,7 +198,7 @@ export interface Effect { export interface StaticData { cards: Card[]; fronts: Array<{ - id: string; + id: number; name: string; left: number; top: number; |