summaryrefslogtreecommitdiff
path: root/sw-common-model
diff options
context:
space:
mode:
Diffstat (limited to 'sw-common-model')
-rw-r--r--sw-common-model/build.gradle.kts4
-rw-r--r--sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/actions/Actions.kt2
2 files changed, 4 insertions, 2 deletions
diff --git a/sw-common-model/build.gradle.kts b/sw-common-model/build.gradle.kts
index dd7b5327..dc95d608 100644
--- a/sw-common-model/build.gradle.kts
+++ b/sw-common-model/build.gradle.kts
@@ -11,6 +11,10 @@ kotlin {
browser() // necessary for local dependency from JS UI module
}
sourceSets {
+ all {
+ languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
+ languageSettings.useExperimentalAnnotation("kotlin.time.ExperimentalTime")
+ }
val commonMain by getting {
dependencies {
api("org.jetbrains.kotlinx:kotlinx-serialization-core:$kotlinSerialization")
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 48b26aa4..7b9a3d60 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,6 @@ 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.ExperimentalTime
import kotlin.time.hours
/**
@@ -103,7 +102,6 @@ class UpdateSettingsAction(
* The action to add a bot to the game. Can only be called in the lobby by the owner of the game.
*/
@Serializable
-@OptIn(ExperimentalTime::class)
class AddBotAction(
/**
* The display name for the bot to add.
bgstack15