diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-03-29 18:08:49 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-03-29 18:08:49 +0200 |
commit | 88e992b0e94d92ac9ac26e8d2d72d818292841ca (patch) | |
tree | 244d1e170417b40dc2110b8ca7c14630ac43d871 /sw-common-model | |
parent | Fix duplicated inconsistent state (diff) | |
download | seven-wonders-88e992b0e94d92ac9ac26e8d2d72d818292841ca.tar.gz seven-wonders-88e992b0e94d92ac9ac26e8d2d72d818292841ca.tar.bz2 seven-wonders-88e992b0e94d92ac9ac26e8d2d72d818292841ca.zip |
Rename GameState -> TableState
Diffstat (limited to 'sw-common-model')
-rw-r--r-- | sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/Moves.kt | 2 | ||||
-rw-r--r-- | sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/TableState.kt (renamed from sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/GameState.kt) | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/Moves.kt b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/Moves.kt index 22cbfc8c..d684505e 100644 --- a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/Moves.kt +++ b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/Moves.kt @@ -19,7 +19,7 @@ enum class Action(val message: String) { @Serializable data class PlayerTurnInfo( val playerIndex: Int, - val table: GameState, + val table: TableState, val action: Action, val hand: List<HandCard>?, val preparedMove: PlayedMove?, diff --git a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/GameState.kt b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/TableState.kt index 29423cd7..1f1ed3ee 100644 --- a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/GameState.kt +++ b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/TableState.kt @@ -7,7 +7,7 @@ import org.luxons.sevenwonders.model.cards.HandRotationDirection typealias Age = Int @Serializable -data class GameState( +data class TableState( val boards: List<Board>, val currentAge: Age, val handRotationDirection: HandRotationDirection, |