Derived room features (interior, edges, corner anchors, entrances, reservations).
More...
|
void | BuildFromGrid (int id, RectInt bounds, DungeonGrid grid, int edgeBand=2, string corridorKindPrefix="floor_corridor") |
|
List< Vector2Int > | Interior = new() |
| (excludes boundary ring)
|
List< Vector2Int > | EdgeBand = new() |
| Cells within EdgeBandDistance of any wall.
|
List< Vector2Int > | CornerAnchors = new() |
| Cells adjacent to two perpendicular walls.
|
HashSet< Vector2Int > | Entrances = new() |
| Interior cells adjacent to corridor tiles.
|
HashSet< Vector2Int > | Occupied = new() |
Derived room features (interior, edges, corner anchors, entrances, reservations).
◆ BuildFromGrid()
void RoomInfo.BuildFromGrid |
( |
int | id, |
|
|
RectInt | bounds, |
|
|
DungeonGrid | grid, |
|
|
int | edgeBand = 2, |
|
|
string | corridorKindPrefix = "floor_corridor" ) |
◆ CornerAnchors
List<Vector2Int> RoomInfo.CornerAnchors = new() |
Cells adjacent to two perpendicular walls.
◆ EdgeBand
List<Vector2Int> RoomInfo.EdgeBand = new() |
Cells within EdgeBandDistance of any wall.
◆ Entrances
HashSet<Vector2Int> RoomInfo.Entrances = new() |
Interior cells adjacent to corridor tiles.
◆ Interior
List<Vector2Int> RoomInfo.Interior = new() |
◆ Occupied
HashSet<Vector2Int> RoomInfo.Occupied = new() |
◆ Area
◆ Bounds
◆ Center
Vector2Int RoomInfo.Center |
|
get |
◆ CorridorKindPrefix
string RoomInfo.CorridorKindPrefix = "floor_corridor" |
|
get |
◆ EdgeBandDistance
int RoomInfo.EdgeBandDistance = 2 |
|
get |
◆ Height
◆ Id
◆ Width
The documentation for this class was generated from the following file:
- Assets/Scripts/Dungeon/GridAndIndexing/Room.cs