Add final statistics when game ends
This commit is contained in:
@ -84,4 +84,10 @@ final class FinishedTable: AbstractTable<FinishedPlayer> {
|
||||
let table = DealingTable(table: waiting)
|
||||
return (.success, table)
|
||||
}
|
||||
|
||||
override func tableInfo(forPlayerAt index: Int) -> TableInfo {
|
||||
var info = super.tableInfo(forPlayerAt: index)
|
||||
info.gameStats = GameStatistics(table: self, language: language)
|
||||
return info
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user