From 6afecee45d8e46b695f7f22894fef3effc15a2b7 Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Sat, 13 Feb 2021 16:45:33 +0100 Subject: Rename some client functions --- .../kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (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 bf5778ad..3a3cb989 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 @@ -149,12 +149,12 @@ class SevenWondersSession(private val stompSession: StompSessionWithKxSerializat } } -suspend fun SevenWondersSession.createGameAndWaitLobby(gameName: String): LobbyDTO = doAndWaitForEvent( +suspend fun SevenWondersSession.createGameAndAwaitLobby(gameName: String): LobbyDTO = doAndWaitForEvent( send = { createGame(gameName) }, subscribe = { watchLobbyJoined() }, ) -suspend fun SevenWondersSession.joinGameAndWaitLobby(gameId: Long): LobbyDTO = doAndWaitForEvent( +suspend fun SevenWondersSession.joinGameAndAwaitLobby(gameId: Long): LobbyDTO = doAndWaitForEvent( send = { joinGame(gameId) }, subscribe = { watchLobbyJoined() }, ) @@ -164,7 +164,7 @@ suspend fun SevenWondersSession.startGameAndAwaitFirstTurn(): PlayerTurnInfo = d subscribe = { watchGameStarted() }, ) -suspend fun SevenWondersSession.joinGameAndWaitFirstTurn(gameId: Long): PlayerTurnInfo = doAndWaitForEvent( +suspend fun SevenWondersSession.joinGameAndAwaitFirstTurn(gameId: Long): PlayerTurnInfo = doAndWaitForEvent( send = { joinGame(gameId) }, subscribe = { watchGameStarted() }, ) -- cgit