2023-07-08 14:08:32 +10:00
|
|
|
using System.Numerics;
|
|
|
|
|
|
2023-03-10 16:41:22 +11:00
|
|
|
namespace Content.Shared.Procedural;
|
|
|
|
|
|
2024-07-03 22:23:11 +10:00
|
|
|
// TODO: Cache center and bounds and shit and don't make the caller deal with it.
|
2023-06-27 19:17:42 +10:00
|
|
|
public sealed record DungeonRoom(HashSet<Vector2i> Tiles, Vector2 Center, Box2i Bounds, HashSet<Vector2i> Exterior)
|
|
|
|
|
{
|
2024-03-23 21:37:18 -06:00
|
|
|
public readonly List<Vector2i> Entrances = new();
|
2023-06-27 19:17:42 +10:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Nodes adjacent to tiles, including the corners.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public readonly HashSet<Vector2i> Exterior = Exterior;
|
|
|
|
|
}
|