Add lobby and pack concept.
This commit is contained in:
@@ -92,6 +92,13 @@ export interface LogEntry {
|
||||
spawn?: string // 'apple' | 'bee'
|
||||
}
|
||||
|
||||
export interface PackInfo {
|
||||
id: string
|
||||
name: string
|
||||
emoji: string
|
||||
playable: boolean
|
||||
}
|
||||
|
||||
export interface GameView {
|
||||
gameId: string
|
||||
code: string
|
||||
@@ -99,6 +106,11 @@ export interface GameView {
|
||||
round: number
|
||||
maxRounds: number
|
||||
maxPets: number
|
||||
pack: string
|
||||
packs: PackInfo[]
|
||||
hostSeat: number
|
||||
minPlayers: number
|
||||
maxPlayers: number
|
||||
youSeat: number
|
||||
turn: number
|
||||
shopRow: Card[]
|
||||
@@ -112,6 +124,10 @@ export interface GameView {
|
||||
}
|
||||
|
||||
export type ClientMessage =
|
||||
| { type: 'setPack'; pack: string }
|
||||
| { type: 'addBot'; difficulty: string }
|
||||
| { type: 'removePlayer'; target: string }
|
||||
| { type: 'start' }
|
||||
| { type: 'buy'; row: number }
|
||||
| { type: 'sell'; cards: string[] }
|
||||
| { type: 'trade'; cards: string[] }
|
||||
|
||||
Reference in New Issue
Block a user