Schafkopf-Server/Sources/App/Model/Players/WaitingPlayer.swift

12 lines
199 B
Swift
Raw Normal View History

import Foundation
import WebSocketKit
2021-12-18 15:08:43 +01:00
final class WaitingPlayer: Player {
var canStartGame: Bool = false
2021-12-18 15:08:43 +01:00
override var actions: [PlayerAction] {
canStartGame ? [.deal] : []
}
}