1
0

DungeonRoom.cs 471 B

1234567891011121314
  1. using System.Numerics;
  2. namespace Content.Shared.Procedural;
  3. // TODO: Cache center and bounds and shit and don't make the caller deal with it.
  4. public sealed record DungeonRoom(HashSet<Vector2i> Tiles, Vector2 Center, Box2i Bounds, HashSet<Vector2i> Exterior)
  5. {
  6. public readonly List<Vector2i> Entrances = new();
  7. /// <summary>
  8. /// Nodes adjacent to tiles, including the corners.
  9. /// </summary>
  10. public readonly HashSet<Vector2i> Exterior = Exterior;
  11. }