From 8e40623377b7a7e6adc11f83e7ec3ac4c831bcd9 Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Sun, 31 Jan 2021 20:23:04 +0100 Subject: Remove unnecessary Serializable on enums --- .../src/commonMain/kotlin/org/luxons/sevenwonders/model/api/Lobby.kt | 1 - .../kotlin/org/luxons/sevenwonders/model/resources/Resources.kt | 1 - .../commonMain/kotlin/org/luxons/sevenwonders/model/wonders/Wonders.kt | 1 - 3 files changed, 3 deletions(-) (limited to 'sw-common-model') 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 -- cgit