Dungeon Architect
17.0.0
|
The main dungeon behavior that manages the creation and destruction of dungeons More...
Public Member Functions | |
List< DungeonThemeData > | GetThemeAssets () |
void | Build () |
Builds the complete dungeon (layout and visual phase) More... | |
void | Build (IDungeonSceneObjectInstantiator objectInstantiator) |
void | ReapplyTheme (IDungeonSceneObjectInstantiator objectInstantiator) |
Runs the theming engine over the existing layout to rebuild the game objects from the theme file. The layout is not built in this stage More... | |
void | DestroyDungeon () |
Destroys the dungeon More... | |
void | RequestRebuild () |
Requests the dungeon to be rebuilt in the next update phase More... | |
virtual void | Update () |
void | AddPaintCell (IntVector location, bool automaticRebuild) |
void | AddPaintCell (IntVector location, bool automaticRebuild, IDungeonSceneObjectInstantiator sceneInstantiator) |
Registers a painted cell More... | |
void | RemovePaintCell (IntVector location, bool automaticRebuild) |
Remove a previous painted cell More... | |
void | RemovePaintCell (IntVector location, bool automaticRebuild, IDungeonSceneObjectInstantiator sceneInstantiator) |
Remove a previous painted cell More... | |
void | ClearToolOverlayData (bool automaticRebuild) |
Clears all overlay data More... | |
Public Attributes | |
List< Graph > | dungeonThemes |
List of themes assigned to this dungeon More... | |
bool | debugDraw = false |
Draw debug data More... | |
Properties | |
DungeonModel | ActiveModel [get] |
Active model used by the dungeon More... | |
bool | IsLayoutBuilt [get] |
Flag to check if the layout has been built. This is used to quickly reapply the theme after the theme graph has been modified, without rebuilding the layout, if it has already been built More... | |
LevelMarkerList | Markers [get] |
DungeonConfig | Config [get] |
The main dungeon behavior that manages the creation and destruction of dungeons
Definition at line 16 of file Dungeon.cs.
void DungeonArchitect.Dungeon.AddPaintCell | ( | IntVector | location, |
bool | automaticRebuild, | ||
IDungeonSceneObjectInstantiator | sceneInstantiator | ||
) |
Registers a painted cell
location | the location of the painted cell, in grid cooridnates |
automaticRebuild | if true, the dungeon would be rebuilt, if the data model has changed due to this request |
Definition at line 387 of file Dungeon.cs.
void DungeonArchitect.Dungeon.Build | ( | ) |
Builds the complete dungeon (layout and visual phase)
Definition at line 121 of file Dungeon.cs.
void DungeonArchitect.Dungeon.ClearToolOverlayData | ( | bool | automaticRebuild | ) |
void DungeonArchitect.Dungeon.DestroyDungeon | ( | ) |
Destroys the dungeon
Definition at line 289 of file Dungeon.cs.
void DungeonArchitect.Dungeon.ReapplyTheme | ( | IDungeonSceneObjectInstantiator | objectInstantiator | ) |
Runs the theming engine over the existing layout to rebuild the game objects from the theme file.
The layout is not built in this stage
Definition at line 165 of file Dungeon.cs.
void DungeonArchitect.Dungeon.RemovePaintCell | ( | IntVector | location, |
bool | automaticRebuild | ||
) |
Remove a previous painted cell
location | the location of the painted cell to remove, in grid cooridnates |
automaticRebuild | if true, the dungeon would be rebuilt, if the data model has changed due to this request |
Definition at line 421 of file Dungeon.cs.
void DungeonArchitect.Dungeon.RemovePaintCell | ( | IntVector | location, |
bool | automaticRebuild, | ||
IDungeonSceneObjectInstantiator | sceneInstantiator | ||
) |
Remove a previous painted cell
location | the location of the painted cell to remove, in grid cooridnates |
automaticRebuild | if true, the dungeon would be rebuilt, if the data model has changed due to this request |
Definition at line 431 of file Dungeon.cs.
void DungeonArchitect.Dungeon.RequestRebuild | ( | ) |
Requests the dungeon to be rebuilt in the next update phase
Definition at line 336 of file Dungeon.cs.
bool DungeonArchitect.Dungeon.debugDraw = false |
Draw debug data
Definition at line 25 of file Dungeon.cs.
List<Graph> DungeonArchitect.Dungeon.dungeonThemes |
List of themes assigned to this dungeon
Definition at line 20 of file Dungeon.cs.
|
get |
Active model used by the dungeon
Definition at line 36 of file Dungeon.cs.
|
get |
Flag to check if the layout has been built.
This is used to quickly reapply the theme after the theme graph has been modified, without rebuilding the layout, if it has already been built
Definition at line 50 of file Dungeon.cs.