// 房间玩家状态 export interface RoomPlayerState { index: number playerId: string displayName?: string missingSuit?: string | null ready: boolean trustee?: boolean hand: string[] melds: string[] outTiles: string[] hasHu: boolean } // 房间整体状态 export interface ActiveRoomState { roomId: string roomName: string gameType: string ownerId: string maxPlayers: number playerCount: number status: string createdAt: string updatedAt: string players: RoomPlayerState[] myHand: string[] game?: { state?: { wall?: string[] scores?: Record dealerIndex?: number currentTurn?: number phase?: string } } } export interface ActiveRoomSelectionInput { roomId: string roomName?: string gameType?: string ownerId?: string maxPlayers?: number playerCount?: number status?: string createdAt?: string updatedAt?: string players?: RoomPlayerState[] myHand?: string[] game?: ActiveRoomState['game'] }