summaryrefslogtreecommitdiff
path: root/sw-common-model
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2021-01-31 20:23:04 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2021-01-31 20:23:04 +0100
commit8e40623377b7a7e6adc11f83e7ec3ac4c831bcd9 (patch)
treed45dfba0d00c7bc6d6deff59e436c16f0b33421c /sw-common-model
parentRemove unnecessary core-js npm dependency (diff)
downloadseven-wonders-8e40623377b7a7e6adc11f83e7ec3ac4c831bcd9.tar.gz
seven-wonders-8e40623377b7a7e6adc11f83e7ec3ac4c831bcd9.tar.bz2
seven-wonders-8e40623377b7a7e6adc11f83e7ec3ac4c831bcd9.zip
Remove unnecessary Serializable on enums
Diffstat (limited to 'sw-common-model')
-rw-r--r--sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/Lobby.kt1
-rw-r--r--sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/resources/Resources.kt1
-rw-r--r--sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/wonders/Wonders.kt1
3 files changed, 0 insertions, 3 deletions
diff --git a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/Lobby.kt b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/Lobby.kt
index 5a06fa63..7c9ed800 100644
--- a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/Lobby.kt
+++ b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/Lobby.kt
@@ -31,7 +31,6 @@ sealed class GameListEvent {
data class Delete(val lobbyId: Long) : GameListEvent()
}
-@Serializable
enum class State {
LOBBY,
PLAYING,
diff --git a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/resources/Resources.kt b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/resources/Resources.kt
index 3bf19964..384de2d4 100644
--- a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/resources/Resources.kt
+++ b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/resources/Resources.kt
@@ -36,7 +36,6 @@ data class CountedResource(
override fun toString(): String = "$count $type"
}
-@Serializable
enum class Provider(val boardPosition: RelativeBoardPosition) {
LEFT_PLAYER(RelativeBoardPosition.LEFT),
RIGHT_PLAYER(RelativeBoardPosition.RIGHT)
diff --git a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/wonders/Wonders.kt b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/wonders/Wonders.kt
index 4767804a..dbca061e 100644
--- a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/wonders/Wonders.kt
+++ b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/wonders/Wonders.kt
@@ -23,7 +23,6 @@ data class AssignedWonder(
val image: String,
)
-@Serializable
enum class WonderSide {
A,
B
bgstack15