summaryrefslogtreecommitdiff
path: root/sw-client/src/commonMain
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2021-02-13 16:45:33 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2021-02-13 16:45:33 +0100
commit6afecee45d8e46b695f7f22894fef3effc15a2b7 (patch)
tree88865b84e8cb829cc1294b7a04dc18928145c7b7 /sw-client/src/commonMain
parentRemove unnecessary settings param (diff)
downloadseven-wonders-6afecee45d8e46b695f7f22894fef3effc15a2b7.tar.gz
seven-wonders-6afecee45d8e46b695f7f22894fef3effc15a2b7.tar.bz2
seven-wonders-6afecee45d8e46b695f7f22894fef3effc15a2b7.zip
Rename some client functions
Diffstat (limited to 'sw-client/src/commonMain')
-rw-r--r--sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt6
1 files changed, 3 insertions, 3 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 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() },
)
bgstack15