From 134199b98baf70e4b014f92ff5c082b247aa407c Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Sat, 4 Apr 2020 19:11:01 +0200 Subject: Add a way to "unprepare" a move --- .../kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sw-client') 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 ea449a85..5476a890 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 @@ -129,4 +129,8 @@ class SevenWondersSession(private val stompSession: StompSessionWithKxSerializat serializer = PrepareMoveAction.serializer(), deserializer = PlayerMove.serializer() ) + + suspend fun unprepareMove() { + stompSession.sendEmptyMsg("/app/game/unprepareMove") + } } -- cgit