* haunted dungeon * Initial work Still needs prefab gen work to make it interesting. * ime a worm * weh * Work * Slight tweaks --------- Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
35 lines
774 B
C#
35 lines
774 B
C#
namespace Content.Shared.Procedural;
|
|
|
|
public sealed class Dungeon
|
|
{
|
|
public readonly List<DungeonRoom> Rooms;
|
|
|
|
/// <summary>
|
|
/// Hashset of the tiles across all rooms.
|
|
/// </summary>
|
|
public readonly HashSet<Vector2i> RoomTiles = new();
|
|
|
|
public readonly HashSet<Vector2i> RoomExteriorTiles = new();
|
|
|
|
public readonly HashSet<Vector2i> CorridorTiles = new();
|
|
|
|
public readonly HashSet<Vector2i> CorridorExteriorTiles = new();
|
|
|
|
public readonly HashSet<Vector2i> Entrances = new();
|
|
|
|
public Dungeon()
|
|
{
|
|
Rooms = new List<DungeonRoom>();
|
|
}
|
|
|
|
public Dungeon(List<DungeonRoom> rooms)
|
|
{
|
|
Rooms = rooms;
|
|
|
|
foreach (var room in Rooms)
|
|
{
|
|
Entrances.UnionWith(room.Entrances);
|
|
}
|
|
}
|
|
}
|