Refactored dungeon generation with new DungeonMap class.

This commit is contained in:
Max 2025-02-06 09:40:47 +01:00
parent 8ed53b6384
commit 2cd9df5652
5 changed files with 147 additions and 62 deletions

View file

@ -15,9 +15,9 @@ namespace DungeonGenerator
new Point(1000, 1000))};
private HashSet<Point> _availablePoints;
public EvenDisperser(int xLength, int yLength, List<Point> excludedPoints = null)
public EvenDisperser(int xLength, int yLength, HashSet<Point> availablePoints)
{
_availablePoints = GenerateAvailablePoints(xLength, yLength, excludedPoints ?? new List<Point>());
_availablePoints = availablePoints;
}
private HashSet<Point> GenerateAvailablePoints(int xLength, int yLength, List<Point> excludedPoints)