summaryrefslogtreecommitdiff
path: root/sw-common-model
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-05-15 03:54:10 +0200
committerJoffrey Bion <joffrey.bion@booking.com>2020-05-15 03:54:10 +0200
commit922faefc516126d8eae6c8ced960dfaa9ec2f25a (patch)
tree553a9e55e5b643021ba70f70213f81eeaed7b9d3 /sw-common-model
parentMake Lobby/player repository more thread safe (diff)
downloadseven-wonders-922faefc516126d8eae6c8ced960dfaa9ec2f25a.tar.gz
seven-wonders-922faefc516126d8eae6c8ced960dfaa9ec2f25a.tar.bz2
seven-wonders-922faefc516126d8eae6c8ced960dfaa9ec2f25a.zip
Add player index in scoreboard
Diffstat (limited to 'sw-common-model')
-rw-r--r--sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/score/Score.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/score/Score.kt b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/score/Score.kt
index 10fe02e1..3f9dbe41 100644
--- a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/score/Score.kt
+++ b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/score/Score.kt
@@ -7,6 +7,7 @@ class ScoreBoard(val scores: Collection<PlayerScore>)
@Serializable
data class PlayerScore(
+ val playerIndex: Int,
val boardGold: Int,
val pointsByCategory: Map<ScoreCategory, Int>
) : Comparable<PlayerScore> {
bgstack15