diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-15 03:41:29 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-15 03:41:29 +0200 |
commit | 9a6836c77c6a217d02dfad4dc7f4c3e90ed136ab (patch) | |
tree | 6170e5254117f56611c82f732a777b6897e1271b /sw-common-model/src/commonMain/kotlin/org/luxons | |
parent | Add dumb bots feature (diff) | |
download | seven-wonders-9a6836c77c6a217d02dfad4dc7f4c3e90ed136ab.tar.gz seven-wonders-9a6836c77c6a217d02dfad4dc7f4c3e90ed136ab.tar.bz2 seven-wonders-9a6836c77c6a217d02dfad4dc7f4c3e90ed136ab.zip |
Fix polymorphic serialization
Diffstat (limited to 'sw-common-model/src/commonMain/kotlin/org/luxons')
-rw-r--r-- | sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/resources/Resources.kt | 2 |
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() |