async Task IPlayer.MoveAsync(int xDirection, int yDirection) { if (this.State.ChessPiece.PieceType != ChessPieceType.Undefined && this.State.ChessPiece.ActorId != "") { await mPieceProxy.MoveAsync(xDirection, yDirection); } }
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); } }