public static float GetHeightValue(Tile tile) { if (tile == null) return int.MaxValue; else return tile.HeightValue; }