diff options
Diffstat (limited to 'types.d.ts')
-rw-r--r-- | types.d.ts | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -28,7 +28,7 @@ export interface Game { result?: string; victory?: string; // Game specific - active_abilities: number[]; + active_abilities: number[]; turn: number; year: number; bag_of_glory: FactionId[]; @@ -37,9 +37,11 @@ export interface Game { current_events: CardId[]; discard: Record<FactionId | 'f', number[]>; engine: EngineNode[]; - // Set to faction whos turn it is or null if not player turn - // Used to determine who can spend Hero Points. Could be the case - // a faction is active in another factions turn. + /** + * Set to faction whos turn it is or null if not player turn + * Used to determine who can spend Hero Points. Could be the case + * a player becomes active in another players turn. + */ faction_turn: FactionId | null; fronts: { a: Front; @@ -54,7 +56,13 @@ export interface Game { medallions: Record<FactionId, number[]> & { pool: Array<number | null> }; played_card: CardId | null; selected_cards: Record<FactionId, CardId[]>; + selectable_cards: CardId[]; // used for specific events tableaus: Record<FactionId, CardId[]>; + /** + * Used for event effect that allows Anarchist to put an event + * card on top of the deck + */ + top_of_events_deck: CardId | null; tracks: number[]; trash: Record<FactionId, CardId[]>; triggered_track_effects: number[]; @@ -80,6 +88,7 @@ export interface View { initiative: Game['initiative']; medallions: Game['medallions']; played_card: Game['played_card']; + selectable_cards: Game['selectable_cards']; tableaus: Game['tableaus']; tracks: number[]; triggered_track_effects: Game['triggered_track_effects']; |