Fixed rooms not being procedurally generated
This commit is contained in:
parent
ff17bece91
commit
5f0c0c5f26
7 changed files with 9802 additions and 3 deletions
Binary file not shown.
|
|
@ -41,8 +41,8 @@ namespace DungeonMapGenerator
|
|||
AddNormalRoomsAroundMonsterRooms(dungeonMap);
|
||||
AddNormalRoomsAroundBossRoom(dungeonMap);
|
||||
AddConnectionRooms(dungeonMap);
|
||||
ConnectAllAdjacentRooms(dungeonMap);
|
||||
AddAdjacentRoomsToEntranceRooms(dungeonMap);
|
||||
ConnectAllAdjacentRooms(dungeonMap);
|
||||
|
||||
return dungeonMap;
|
||||
}
|
||||
|
|
@ -84,7 +84,7 @@ namespace DungeonMapGenerator
|
|||
private void ConnectAllAdjacentRooms(DungeonMap dungeon)
|
||||
{
|
||||
Dictionary<Point, Room> pointRoomMapping = dungeon.GetPointRoomIdMapping();
|
||||
foreach (var room in dungeon.GetEntranceRooms())
|
||||
foreach (var room in dungeon.GetAllRooms())
|
||||
{
|
||||
foreach ((Point p, RoomSide side) in room.GetAdjacentPoints())
|
||||
{
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue