summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-05-15 03:41:29 +0200
committerJoffrey Bion <joffrey.bion@booking.com>2020-05-15 03:41:29 +0200
commit9a6836c77c6a217d02dfad4dc7f4c3e90ed136ab (patch)
tree6170e5254117f56611c82f732a777b6897e1271b
parentAdd dumb bots feature (diff)
downloadseven-wonders-9a6836c77c6a217d02dfad4dc7f4c3e90ed136ab.tar.gz
seven-wonders-9a6836c77c6a217d02dfad4dc7f4c3e90ed136ab.tar.bz2
seven-wonders-9a6836c77c6a217d02dfad4dc7f4c3e90ed136ab.zip
Fix polymorphic serialization
-rw-r--r--sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/resources/Resources.kt2
1 files changed, 1 insertions, 1 deletions
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 5ddca2c6..4985c008 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
@@ -43,6 +43,6 @@ enum class Provider(val boardPosition: RelativeBoardPosition) {
@Serializable
data class ResourceTransaction(val provider: Provider, val resources: List<CountedResource>)
-typealias ResourceTransactions = Collection<ResourceTransaction>
+typealias ResourceTransactions = Set<ResourceTransaction>
fun noTransactions(): ResourceTransactions = emptySet()
bgstack15