20 lines
386 B
Swift
20 lines
386 B
Swift
import Foundation
|
|
|
|
struct CardInfo: ClientMessage {
|
|
|
|
static let type: ClientMessageType = .cardInfo
|
|
|
|
struct HandCard: Codable {
|
|
|
|
let card: CardId
|
|
|
|
let playable: Bool
|
|
}
|
|
|
|
/// The cards for a player
|
|
let cards: [HandCard]
|
|
|
|
// The cards on the table, as seen from the players perspective
|
|
let tableCards: [CardId]
|
|
}
|