aded Tarokka deck

This commit is contained in:
Gavin McDonald
2025-04-10 11:23:59 -04:00
parent f373782538
commit 5fc5fcd486
70 changed files with 1148 additions and 963 deletions

View File

@@ -1,5 +1,6 @@
export interface CardImage {
export interface StandardCard {
id: string;
aria: string;
back: boolean;
face: boolean;
joker: boolean;
@@ -7,23 +8,38 @@ export interface CardImage {
url: string;
}
export interface GameCard extends CardImage {
export interface StandardGameCard extends StandardCard {
flipped: boolean;
}
export interface TarokkaCard {
id: string;
name: string;
card: string;
description: string;
aria: string;
back: boolean;
suit: 'Coins' | 'Glyphs' | 'High Deck' | 'Stars' | 'Swords' | null;
url: string;
}
export interface TarokkaGameCard extends TarokkaCard {
flipped: boolean;
}
export interface GameState {
id: string;
players: Set<string>;
cards: GameCard[];
cards: StandardGameCard[] | TarokkaGameCard[];
lastUpdated: number;
}
export interface GameUpdate {
id: string;
cards: GameCard[];
cards: StandardGameCard[] | TarokkaGameCard[];
}
export interface ClientUpdate {
gameID: string;
cardID: string;
cardIndex: number;
}