Schafkopf-Server/Sources/App/Infos/CardInfo.swift
2021-12-01 22:49:54 +01:00

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]
}