Files
wwdpublic/Content.Shared/Procedural/Dungeon.cs
SimpleStation14 3b635f1729 Mirror: haunted dungeon template (#321)
## Mirror of PR #23768: [haunted dungeon
template](https://github.com/space-wizards/space-station-14/pull/23768)
from <img src="https://avatars.githubusercontent.com/u/10567778?v=4"
alt="space-wizards" width="22"/>
[space-wizards](https://github.com/space-wizards)/[space-station-14](https://github.com/space-wizards/space-station-14)

###### `952b7f4c4e8e957c0c3765f7b20f2745c9297e27`

PR opened by <img
src="https://avatars.githubusercontent.com/u/99158783?v=4"
width="16"/><a href="https://github.com/Emisse"> Emisse</a> at
2024-01-09 07:36:29 UTC

---

PR changed 17 files with 4009 additions and 67 deletions.

The PR had the following labels:


---

<details open="true"><summary><h1>Original Body</h1></summary>

> also for sloth when he gets to it
> 
> Requires https://github.com/space-wizards/RobustToolbox/pull/4980


</details>

Co-authored-by: SimpleStation14 <Unknown>
2024-05-11 23:14:58 -04:00

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);
}
}
}