Add a persistent event log for shop and prep actions.

This commit is contained in:
Greyson Parrelli
2026-07-23 08:00:59 -04:00
parent f7a00f6c48
commit 506c6e5b55
7 changed files with 330 additions and 9 deletions
+12
View File
@@ -75,6 +75,17 @@ export interface BattleResult {
trophies: number
}
export interface LogEntry {
seq: number
round: number
phase: Phase
seat: number // acting seat, or -1
icon?: string
text: string
source?: string // card id that caused a spawn
spawn?: string // 'apple' | 'bee'
}
export interface GameView {
gameId: string
code: string
@@ -90,6 +101,7 @@ export interface GameView {
pending?: PendingTrade
battle?: BattleResult
winnerSeat: number
log?: LogEntry[]
debug?: boolean // server DEBUG mode: unlocks the buy-any-card panel
}