summaryrefslogtreecommitdiff
path: root/sw-client/src/commonMain/kotlin/org/luxons
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-04-04 19:11:01 +0200
committerJoffrey Bion <joffrey.bion@booking.com>2020-04-04 19:11:49 +0200
commit134199b98baf70e4b014f92ff5c082b247aa407c (patch)
treed811dd41d91291be061751f8f59bb64db5a91d03 /sw-client/src/commonMain/kotlin/org/luxons
parentAdd blueprintjs Overlay component (diff)
downloadseven-wonders-134199b98baf70e4b014f92ff5c082b247aa407c.tar.gz
seven-wonders-134199b98baf70e4b014f92ff5c082b247aa407c.tar.bz2
seven-wonders-134199b98baf70e4b014f92ff5c082b247aa407c.zip
Add a way to "unprepare" a move
Diffstat (limited to 'sw-client/src/commonMain/kotlin/org/luxons')
-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 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")
+ }
}
bgstack15