コード例 #1
0
ファイル: WebUIController.cs プロジェクト: worntunic/NBPChess
        //Chess
        private void OpenGame(GameWithMovesResponse gameResponse)
        {
            SetLobbyRequestInProgress(false);
            ActivateChessScreen();

            chessGameManager.LoadOnlineGame(gameResponse.game, currentPlayerData);
        }
コード例 #2
0
ファイル: WebUIController.cs プロジェクト: worntunic/NBPChess
 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);
         }
     }
 }
コード例 #3
0
ファイル: WebUIController.cs プロジェクト: worntunic/NBPChess
 private void OnGameStateFinished(GameWithMovesResponse gameResponse)
 {
     if (inChessGame)
     {
         if (gameResponse.game.gamedata.gamestate != chessGameManager.GetGameState())
         {
             chessGameManager.UpdateGameForOpponent(gameResponse.game);
         }
         else
         {
             WaitForGameState(gameResponse.game.id);
         }
     }
 }
コード例 #4
0
ファイル: WebUIController.cs プロジェクト: worntunic/NBPChess
 private void OnAllGameInfo(GameWithMovesResponse gameResponse)
 {
     OpenGame(gameResponse);
 }