Add client info definitions

This commit is contained in:
Christoph Hagen
2021-11-30 11:55:13 +01:00
parent e1943317f2
commit b5c68538e2
7 changed files with 149 additions and 6 deletions

View File

@ -1,19 +0,0 @@
import Foundation
struct TableInfo: Codable {
let id: String
let name: String
var players: [PlayerName]
var connected: [Bool]
}
extension TableInfo: Comparable {
static func < (lhs: TableInfo, rhs: TableInfo) -> Bool {
lhs.name < rhs.name
}
}

View File

@ -102,10 +102,4 @@ final class TableManagement {
func disconnect(player: PlayerName) {
fatalError()
}
enum JoinTableResult {
case tableNotFound
case tableIsFull
case success
}
}