summaryrefslogtreecommitdiff
path: root/sw-client
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-05-23 02:03:55 +0200
committerJoffrey Bion <joffrey.bion@booking.com>2020-05-23 02:03:55 +0200
commit8c15e4c7e3a41caef24e93885f1600903f358078 (patch)
tree0977b65a606097482ae917466d184d288d24cf11 /sw-client
parentAdd score board UI at end of game (diff)
downloadseven-wonders-8c15e4c7e3a41caef24e93885f1600903f358078.tar.gz
seven-wonders-8c15e4c7e3a41caef24e93885f1600903f358078.tar.bz2
seven-wonders-8c15e4c7e3a41caef24e93885f1600903f358078.zip
Add "leave game" feature for end of game
Diffstat (limited to 'sw-client')
-rw-r--r--sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt4
1 files changed, 4 insertions, 0 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 ce0ef1fd..4185a6e4 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
@@ -139,4 +139,8 @@ class SevenWondersSession(private val stompSession: StompSessionWithKxSerializat
suspend fun unprepareMove() {
stompSession.sendEmptyMsg("/app/game/unprepareMove")
}
+
+ suspend fun leaveGame() {
+ stompSession.sendEmptyMsg("/app/game/leave")
+ }
}
bgstack15