6
2025-11-15 12:24:44 +03:00

15 lines
471 B
C#

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