From 9a6836c77c6a217d02dfad4dc7f4c3e90ed136ab Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Fri, 15 May 2020 03:41:29 +0200 Subject: Fix polymorphic serialization --- .../kotlin/org/luxons/sevenwonders/model/resources/Resources.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw-common-model') 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) -typealias ResourceTransactions = Collection +typealias ResourceTransactions = Set fun noTransactions(): ResourceTransactions = emptySet() -- cgit