diff options
Diffstat (limited to 'sw-common-model/src')
-rw-r--r-- | sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/Api.kt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/Api.kt b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/Api.kt index 503141c4..5816edaf 100644 --- a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/Api.kt +++ b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/Api.kt @@ -15,7 +15,14 @@ data class LobbyDTO( val owner: String, val players: List<PlayerDTO>, val state: State, - val canBeStarted: Boolean + val joinAction: Actionability, + val startAction: Actionability +) + +@Serializable +data class Actionability( + val canDo: Boolean, + val tooltip: String ) @Serializable |