diff options
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; |