2021-11-30 11:55:13 +01:00
|
|
|
import Foundation
|
|
|
|
|
2021-12-01 22:49:54 +01:00
|
|
|
struct CardInfo: ClientMessage {
|
|
|
|
|
|
|
|
static let type: ClientMessageType = .cardInfo
|
|
|
|
|
|
|
|
struct HandCard: Codable {
|
|
|
|
|
|
|
|
let card: CardId
|
|
|
|
|
|
|
|
let playable: Bool
|
|
|
|
}
|
2021-11-30 11:55:13 +01:00
|
|
|
|
|
|
|
/// The cards for a player
|
2021-12-01 22:49:54 +01:00
|
|
|
let cards: [HandCard]
|
2021-11-30 11:55:13 +01:00
|
|
|
|
2021-12-01 22:49:54 +01:00
|
|
|
// The cards on the table, as seen from the players perspective
|
|
|
|
let tableCards: [CardId]
|
2021-11-30 11:55:13 +01:00
|
|
|
}
|