Clarify action id

This commit is contained in:
Christoph Hagen
2021-12-09 11:18:26 +01:00
parent 445363307b
commit 577a60c1d1
4 changed files with 8 additions and 6 deletions

View File

@ -20,7 +20,7 @@ struct TableInfo: Codable {
let cards: [CardInfo]
/// The action the player can perform
let actions: [String]
let actions: [ActionId]
let playerSelectsGame: Bool
@ -37,7 +37,7 @@ struct TableInfo: Codable {
self.playerAcross = across
self.playerRight = right
self.playableGames = games.map { $0.id }
self.actions = actions.map { $0.path }
self.actions = actions.map { $0.id }
self.cards = cards.map { $0.cardInfo }
self.playerSelectsGame = selectGame
}