Refactored dungeon generation with new DungeonMap class.
This commit is contained in:
parent
8ed53b6384
commit
2cd9df5652
5 changed files with 147 additions and 62 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue