Schafkopf-Server/Sources/App/Model/PlayerState.swift

26 lines
485 B
Swift
Raw Normal View History

2021-12-18 15:08:43 +01:00
import Foundation
typealias PlayerStateId = String
2021-12-18 15:08:43 +01:00
enum PlayerState: String {
case canDouble = "canDouble"
case didDouble = "doubled"
2021-12-18 15:08:43 +01:00
case isDisconnected = "offline"
2021-12-18 15:08:43 +01:00
case mustBid = "bidder"
case didFold = "fold"
case didBid = "bid"
2021-12-18 15:08:43 +01:00
case isGameSelector = "selects"
case isWeddingOfferer = "wedding"
case isCalled = "called"
2021-12-18 15:08:43 +01:00
case didRaise = "raised"
case leadsGame = "leads"
2021-12-18 15:08:43 +01:00
case isWinner = "winner"
case isLooser = "looser"
2021-12-18 15:08:43 +01:00
}