diff options
author | joffrey-bion <joffrey.bion@gmail.com> | 2020-12-13 01:39:06 +0100 |
---|---|---|
committer | joffrey-bion <joffrey.bion@gmail.com> | 2020-12-13 01:40:51 +0100 |
commit | 2d5117911c11fafc3c287e2ee74149f866c41954 (patch) | |
tree | 5b4dce07c2097a3f0e6b140ce5005d154d2c9c57 /sw-client | |
parent | Add logging of BOT status (diff) | |
download | seven-wonders-2d5117911c11fafc3c287e2ee74149f866c41954.tar.gz seven-wonders-2d5117911c11fafc3c287e2ee74149f866c41954.tar.bz2 seven-wonders-2d5117911c11fafc3c287e2ee74149f866c41954.zip |
Only transfer ownership to humans
Resolve:
https://github.com/joffrey-bion/seven-wonders/issues/73
Diffstat (limited to 'sw-client')
-rw-r--r-- | sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt b/sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt index 090d1ee2..5e627ecd 100644 --- a/sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt +++ b/sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt @@ -42,14 +42,14 @@ class SevenWondersSession(private val stompSession: StompSessionWithKxSerializat suspend fun watchErrors(): Flow<ErrorDTO> = stompSession.subscribe("/user/queue/errors", ErrorDTO.serializer()) - suspend fun chooseName(displayName: String, icon: Icon? = null): ConnectedPlayer { + suspend fun chooseName(displayName: String, icon: Icon? = null, isHuman: Boolean = true): ConnectedPlayer { val sub = stompSession.subscribe( destination = "/user/queue/nameChoice", deserializer = ConnectedPlayer.serializer(), ) stompSession.convertAndSend( destination = "/app/chooseName", - body = ChooseNameAction(displayName, icon), + body = ChooseNameAction(displayName, icon, isHuman), serializer = ChooseNameAction.serializer(), ) return sub.first() |