Add a persistent event log for shop and prep actions.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user