Adjust table info generation
This commit is contained in:
@ -1,7 +1,5 @@
|
||||
import Foundation
|
||||
|
||||
typealias GameId = String
|
||||
|
||||
extension GameType {
|
||||
|
||||
var gameClass: GameClass {
|
||||
|
@ -1,5 +1,8 @@
|
||||
import Foundation
|
||||
|
||||
/// The string id of a game
|
||||
typealias GameId = String
|
||||
|
||||
enum GameType: String, CaseIterable, Codable {
|
||||
|
||||
case rufEichel = "ruf-eichel"
|
||||
@ -14,6 +17,10 @@ enum GameType: String, CaseIterable, Codable {
|
||||
case soloHerz = "solo-herz"
|
||||
case soloSchelln = "solo-schelln"
|
||||
|
||||
init?(id: GameId) {
|
||||
self.init(rawValue: id)
|
||||
}
|
||||
|
||||
var isCall: Bool {
|
||||
switch self {
|
||||
case .rufEichel, .rufBlatt, .rufSchelln:
|
||||
|
Reference in New Issue
Block a user