Clarify action id
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user