From 48726dd19ad8dde11a6172f30b5071987b7d09b5 Mon Sep 17 00:00:00 2001 From: Frans Bongers Date: Mon, 2 Dec 2024 21:46:43 +0100 Subject: add tableaus and icon data --- types.d.ts | 37 ++++++++++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) (limited to 'types.d.ts') diff --git a/types.d.ts b/types.d.ts index b470acc..318d935 100644 --- a/types.d.ts +++ b/types.d.ts @@ -21,7 +21,7 @@ export interface Game { bag_of_glory: Record; blank_markers: number[][]; bonuses: number[]; - cards_in_play: Record; + chosen_cards: Record; current_events: CardId[]; discard: Record; engine: EngineNode[]; @@ -37,6 +37,7 @@ export interface Game { medaillons: Array; tableaus: Record; tracks: number[]; + trash: Record; 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; }>; -} \ No newline at end of file +} -- cgit v1.2.3