diff options
Diffstat (limited to 'types.d.ts')
-rw-r--r-- | types.d.ts | 37 |
1 files changed, 34 insertions, 3 deletions
@@ -21,7 +21,7 @@ export interface Game { bag_of_glory: Record<FactionId, number>; blank_markers: number[][]; bonuses: number[]; - cards_in_play: Record<FactionId, CardId>; + chosen_cards: Record<FactionId, CardId>; current_events: CardId[]; discard: Record<FactionId | 'f', number[]>; engine: EngineNode[]; @@ -37,6 +37,7 @@ export interface Game { medaillons: Array<number | null>; tableaus: Record<FactionId, CardId[]>; tracks: number[]; + trash: Record<FactionId, number[]>; triggered_track_effects: number[][]; result?: string; victory?: string; @@ -66,7 +67,9 @@ export interface View { fronts: Game['fronts']; hand: CardId[]; medaillons: Game['medaillons']; + tableaus: Game['tableaus']; tracks: number[]; + triggered_track_effects: Game['triggered_track_effects']; } export type States = { @@ -108,14 +111,42 @@ export interface EventCard extends CardBase { effects: Effect[]; } +export type Icon = + | 'add_to_front' + | 'collectivization' + | 'd_collectivization' + | 'd_foreign_aid' + | 'd_government' + | 'd_liberty' + | 'd_soviet_support' + | 'draw_card' + | 'foreign_aid' + | 'government' + | 'government_to_center' + | 'liberty' + | 'soviet_support' + | 'teamwork_on'; + export interface PlayerCard extends CardBase { type: 'pc'; strength: number; effects: Effect[]; + icons: Icon[]; } export interface Effect { - type: 'attack' | 'track' | 'bonus' | 'hero_points' | 'front' | 'medaillon' | 'draw_card' | 'swap_card_tableau_hand' | 'add_to_tableau' | 'remove_blank_marker' | 'return_card'; + type: + | 'attack' + | 'track' + | 'bonus' + | 'hero_points' + | 'front' + | 'medaillon' + | 'draw_card' + | 'swap_card_tableau_hand' + | 'add_to_tableau' + | 'remove_blank_marker' + | 'return_card'; target: string | number; value: number; } @@ -137,4 +168,4 @@ export interface StaticData { name: string; triggers: Array<null | Effect>; }>; -}
\ No newline at end of file +} |