diff options
author | Joffrey Bion <joffrey.bion@gmail.com> | 2021-11-17 16:45:43 +0100 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@gmail.com> | 2021-11-18 01:40:53 +0100 |
commit | 144649a4570cffdc6426e20073002dae9b9fd5e5 (patch) | |
tree | 9d857d9ddabbcf45977e7d3c37a7b6a4229285ef /sw-common-model/src/commonMain/kotlin | |
parent | Rename ci-cd workflow to deploy since it's manual now (diff) | |
download | seven-wonders-144649a4570cffdc6426e20073002dae9b9fd5e5.tar.gz seven-wonders-144649a4570cffdc6426e20073002dae9b9fd5e5.tar.bz2 seven-wonders-144649a4570cffdc6426e20073002dae9b9fd5e5.zip |
Upgrade to Kotlin 1.6.0 and JDK 17
Diffstat (limited to 'sw-common-model/src/commonMain/kotlin')
-rw-r--r-- | sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/actions/Actions.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/actions/Actions.kt b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/actions/Actions.kt index 4e877737..a41db7c1 100644 --- a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/actions/Actions.kt +++ b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/actions/Actions.kt @@ -4,7 +4,7 @@ import kotlinx.serialization.Serializable import org.luxons.sevenwonders.model.PlayerMove import org.luxons.sevenwonders.model.Settings import org.luxons.sevenwonders.model.wonders.AssignedWonder -import kotlin.time.Duration +import kotlin.time.Duration.Companion.hours /** * The action to choose the player's name. This is the first action that should be called. @@ -110,7 +110,7 @@ class AddBotAction( /** * The global timeout for the bot, after which it disconnects (whether the game is over or not). */ - val globalBotTimeoutMillis: Long = Duration.hours(6).inWholeMilliseconds, + val globalBotTimeoutMillis: Long = 6.hours.inWholeMilliseconds, /** * The configuration of the bot to add. */ |