Dungeon Architect
17.0.0
|
Data model for the grid based dungeon builder More...
Public Member Functions | |
GridCellInfo | GetGridCellLookup (int x, int z) |
Get meta-data about the grid in x, z grid coordinate More... | |
void | BuildSpatialCellLookup () |
Builds a lookup for fast data retrieval More... | |
void | BuildCellLookup () |
Builds the cell lookup for faster cell retrieval More... | |
Cell | GetCell (int Id) |
Gets the cell information More... | |
Cell | FindCellByPosition (IntVector position) |
Finds the cell based on the position in grid coordinates More... | |
override void | ResetModel () |
Clears the dungeon data model More... | |
bool | ContainsStairAtLocation (int x, int z) |
StairInfo | GetStairAtLocation (int x, int z) |
bool | ContainsStair (int cellA, int cellB) |
Check if a stair exists between the two cells More... | |
Public Member Functions inherited from DungeonArchitect.DungeonModel | |
virtual DungeonToolData | CreateToolDataInstance () |
Public Attributes | |
DoorManager | DoorManager = new DoorManager() |
GridDungeonConfig | Config |
List< Cell > | Cells = new List<Cell>() |
Dictionary< int, List< StairInfo > > | CellStairs = new Dictionary<int, List<StairInfo>>() |
Dictionary< int, Dictionary< int, GridCellInfo > > | GridCellInfoLookup = new Dictionary<int, Dictionary<int, GridCellInfo>>() |
Dictionary< int, Cell > | CellLookup = new Dictionary<int, Cell>() |
Cell lookup based on the Cell Id More... | |
Public Attributes inherited from DungeonArchitect.DungeonModel | |
DungeonToolData | ToolData |
Properties | |
CellDoor[] | Doors [get] |
The list of registered doors More... | |
Data model for the grid based dungeon builder
Definition at line 393 of file GridDungeonModel.cs.
void DungeonArchitect.Builders.Grid.GridDungeonModel.BuildCellLookup | ( | ) |
Builds the cell lookup for faster cell retrieval
Definition at line 471 of file GridDungeonModel.cs.
void DungeonArchitect.Builders.Grid.GridDungeonModel.BuildSpatialCellLookup | ( | ) |
Builds a lookup for fast data retrieval
Definition at line 431 of file GridDungeonModel.cs.
bool DungeonArchitect.Builders.Grid.GridDungeonModel.ContainsStair | ( | int | cellA, |
int | cellB | ||
) |
Check if a stair exists between the two cells
cellA | |
cellB |
Definition at line 552 of file GridDungeonModel.cs.
Finds the cell based on the position in grid coordinates
position | Position to lookup in grid cooridnates |
Definition at line 500 of file GridDungeonModel.cs.
Cell DungeonArchitect.Builders.Grid.GridDungeonModel.GetCell | ( | int | Id | ) |
Gets the cell information
Id | Id of the cell to lookup |
Definition at line 485 of file GridDungeonModel.cs.
GridCellInfo DungeonArchitect.Builders.Grid.GridDungeonModel.GetGridCellLookup | ( | int | x, |
int | z | ||
) |
Get meta-data about the grid in x, z grid coordinate
x | X value in grid coordinate |
z | Z value in grid cooridnate |
Definition at line 419 of file GridDungeonModel.cs.
|
virtual |
Clears the dungeon data model
Reimplemented from DungeonArchitect.DungeonModel.
Definition at line 515 of file GridDungeonModel.cs.
Dictionary<int, Cell> DungeonArchitect.Builders.Grid.GridDungeonModel.CellLookup = new Dictionary<int, Cell>() |
Cell lookup based on the Cell Id
Definition at line 493 of file GridDungeonModel.cs.
|
get |
The list of registered doors
Definition at line 460 of file GridDungeonModel.cs.