Dungeon Architect  17.0.0
DungeonArchitect.Builders.Grid.DoorManager Class Reference

Manages the doors in the grid based builder More...

Public Member Functions

void Clear ()
 
void RemoveDoor (CellDoor door)
 
CellDoor CreateDoor (IntVector p1, IntVector p2, int cellId1, int cellId2)
 Creates a door between the two grid points More...
 
bool ContainsDoorBetweenCells (int cellA, int cellB)
 Check if a door exists between the two cells More...
 
bool ContainsDoor (int x1, int z1, int x2, int z2)
 

Properties

CellDoor[] Doors [get]
 List of registered doors More...
 

Detailed Description

Manages the doors in the grid based builder

Definition at line 270 of file GridDungeonModel.cs.

Member Function Documentation

◆ ContainsDoorBetweenCells()

bool DungeonArchitect.Builders.Grid.DoorManager.ContainsDoorBetweenCells ( int  cellA,
int  cellB 
)

Check if a door exists between the two cells

Parameters
cellACell Id of the first cell
cellBCell Id of the second cell
Returns

Definition at line 339 of file GridDungeonModel.cs.

◆ CreateDoor()

CellDoor DungeonArchitect.Builders.Grid.DoorManager.CreateDoor ( IntVector  p1,
IntVector  p2,
int  cellId1,
int  cellId2 
)

Creates a door between the two grid points

Parameters
p1The grid poition 1
p2The grid poition 2
cellId1Cell Id of the first adjacent cell
cellId2Cell Id of the second adjacent cell
Returns

Definition at line 310 of file GridDungeonModel.cs.

Property Documentation

◆ Doors

CellDoor [] DungeonArchitect.Builders.Grid.DoorManager.Doors
get

List of registered doors

Definition at line 379 of file GridDungeonModel.cs.


The documentation for this class was generated from the following file: