mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-07 23:07:26 +00:00
* 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>
(cherry picked from commit 952b7f4c4e)
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);
|
|
}
|
|
}
|
|
}
|