Beispiel #1
0
        //Chess
        private void OpenGame(GameWithMovesResponse gameResponse)
        {
            SetLobbyRequestInProgress(false);
            ActivateChessScreen();

            chessGameManager.LoadOnlineGame(gameResponse.game, currentPlayerData);
        }
Beispiel #2
0
 private void OnPlayMoveFinished(GameWithMovesResponse gameResponse)
 {
     if (inChessGame)
     {
         chessGameManager.UpdatePlayerInfo(gameResponse.game);
         if (gameResponse.game.gamedata.gamestate == GameState.BlackMove || gameResponse.game.gamedata.gamestate == GameState.WhiteMove)
         {
             WaitForGameState(gameResponse.game.id);
         }
     }
 }
Beispiel #3
0
 private void OnGameStateFinished(GameWithMovesResponse gameResponse)
 {
     if (inChessGame)
     {
         if (gameResponse.game.gamedata.gamestate != chessGameManager.GetGameState())
         {
             chessGameManager.UpdateGameForOpponent(gameResponse.game);
         }
         else
         {
             WaitForGameState(gameResponse.game.id);
         }
     }
 }
Beispiel #4
0
 private void OnAllGameInfo(GameWithMovesResponse gameResponse)
 {
     OpenGame(gameResponse);
 }