Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.49 KB | None | 0 0
  1.     override fun onClientClicked(serverIp: String, port: String) {
  2.         if (validateSettings(serverIp, port)) {
  3.             stopPreviousGame()
  4.             createGame(GameType.CLIENT)
  5.  
  6.             gameConnector = GameClient(serverIp, port.toInt(),
  7.                     connectionEstablished = { launch(UI) { mView?.showGameOptions(true) } },
  8.                     response = { response -> gameManager?.setServerMove(GameOption.valueOf(response))?.let { checkEndGame(it) } })
  9.         }
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement