Table of Contents

Class Room

Namespace
GrindFest.Dungeons.Procedural
Assembly
GrindFest.dll

Axis-aligned rectangular room expressed in grid cells (XZ plane, Y is level index).

Bounds.min is inclusive, Bounds.max is exclusive (standard Unity RectInt convention). A 3x2 room at origin has Bounds = (0,0,3,2) and contains cells (0,0)..(2,1).

Walls live on the OUTER edges between cells. Corners live at the four outer vertices.

public class Room
Inheritance
object
Room

Constructors

Room(RectInt, int, int)

Fields

Bounds
Doors
Id
Level
Role

Properties

Area
CenterCell
Height
Width

Methods

ContainsCell(int, int)
EnumerateCells()
ToString()