From 8c15e4c7e3a41caef24e93885f1600903f358078 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Sat, 23 May 2020 02:03:55 +0200 Subject: Add "leave game" feature for end of game --- .../kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sw-client/src') 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") + } } -- cgit