コード例 #1
0
 async Task IPlayer.MoveAsync(int xDirection, int yDirection)
 {
     if (this.State.ChessPiece.PieceType != ChessPieceType.Undefined && this.State.ChessPiece.ActorId != "")
     {
         await mPieceProxy.MoveAsync(xDirection, yDirection);
     }
 }
コード例 #2
0
        async Task IPlayer.MoveAsync(int xDirection, int yDirection)
        {
            var piece = await this.StateManager.GetStateAsync <ChessPieceInfo>("ChessPiece");

            if (piece.PieceType != ChessPieceType.Undefined && piece.ActorId != "")
            {
                await mPieceProxy.MoveAsync(xDirection, yDirection);
            }
        }