diff options
Diffstat (limited to 'types.d.ts')
-rw-r--r-- | types.d.ts | 21 |
1 files changed, 14 insertions, 7 deletions
@@ -7,7 +7,7 @@ export type Brand<T, TBrand extends string> = T & { export type Player = Brand<string, 'Player'>; export type CardId = Brand<number, 'CardId'>; -export type FactionId = Brand<string, 'FactionId'>; +export type FactionId = 'a' | 'c' | 'm'; export type FrontId = 'a' | 'm' | 'n' | 's'; export interface Front { @@ -17,14 +17,18 @@ export interface Front { } export interface Game { + // TODO: why is this needed? [index: number]: any; - seed: number; + // RTT + active: Player | 'None' | null; log: string[]; + seed: number; + state: string | null; undo: Game[]; + // Game specific + active_abilities: number[]; turn: number; year: number; - active: Player | 'None' | null; - state: string | null; bag_of_glory: FactionId[]; blank_markers: number[][]; bonuses: number[]; @@ -166,14 +170,17 @@ export interface Effect { | 'bonus' | 'hero_points' | 'front' + | 'function' // Use for unqique effects | 'medallion' | 'draw_card' | 'play_card' | 'swap_card_tableau_hand' - | 'add_to_tableau' + | 'state' + | 'add_card_to_tableau' | 'remove_blank_marker' - | 'return_card'; - target: string | number; + | 'return_card' + | 'take_hero_points'; + target: string | number | FactionId; value: number; faction?: FactionId | 'i'; } |