This commit is contained in:
Gavin McDonald
2025-04-12 15:17:02 -04:00
parent 1734eec436
commit 6508d40b2d
19 changed files with 1415 additions and 1344 deletions

View File

@@ -1,45 +1,45 @@
export interface StandardCard {
id: string;
aria: string;
back: boolean;
face: boolean;
joker: boolean;
suit: 'Clubs' | 'Diamonds' | 'Hearts' | 'Spades' | null;
url: string;
id: string;
aria: string;
back: boolean;
face: boolean;
joker: boolean;
suit: 'Clubs' | 'Diamonds' | 'Hearts' | 'Spades' | null;
url: string;
}
export interface StandardGameCard extends StandardCard {
flipped: boolean;
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;
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;
flipped: boolean;
}
export interface GameState {
id: string;
players: Set<string>;
cards: StandardGameCard[] | TarokkaGameCard[];
lastUpdated: number;
id: string;
players: Set<string>;
cards: StandardGameCard[] | TarokkaGameCard[];
lastUpdated: number;
}
export interface GameUpdate {
id: string;
cards: StandardGameCard[] | TarokkaGameCard[];
id: string;
cards: StandardGameCard[] | TarokkaGameCard[];
}
export interface ClientUpdate {
gameID: string;
cardIndex: number;
gameID: string;
cardIndex: number;
}