Skip to main content

Procedural Dungeon ⏵ Dungeon Graph

Dungeon Graph

Class Details

Defined in: Public/DungeonGraph.h
Hierarchy: Object → Replicable Object → Dungeon Graph
Exposed in blueprint as: Variable Type

Description

Holds the generated dungeon.
You can access the rooms using many functions.

Nodes

NameCategoryDescription
CountDungeon GraphReturns the total number of room
Count Room DataDungeon GraphReturns the number of a specific RoomData in the dungeon
Count Room TypeDungeon GraphReturns the number of a specific RoomData type in the dungeon
Count Total Room DataDungeon GraphReturns the total number of RoomData in the dungeon from the list provided
Count Total Room TypeDungeon GraphReturns the total number of RoomData type in the dungeon from the list provided
Get All RoomsDungeon GraphReturns all rooms
Get All Rooms from DataDungeon GraphReturns all room instances of the provided room data
Get All Rooms from Data ListDungeon GraphReturns all room instances of any of the provided room data
Get All Rooms with All Custom DataDungeon GraphReturns all room instances having ALL the provided custom data
Get All Rooms with Any Custom DataDungeon GraphReturns all room instances having at least one of the provided custom data
Get All Rooms with Custom DataDungeon GraphReturns all room instances having the provided custom data
Get First Room from DataDungeon GraphReturns the first found room instance of the provided room data
(no defined order, so could be any room of the dungeon)
Get Random RoomDungeon GraphReturns a random room from an array of room
Has Already One Room Data FromDungeon GraphReturns true if at least one of the RoomData from the list provided is already in the dungeon
Has Already One Room Type FromDungeon GraphReturns true if at least one of the RoomData type from the list provided is already in the dungeon
Has Already Room DataDungeon GraphReturns true if a specific RoomData is already in the dungeon
Has Already Room TypeDungeon GraphReturns true if a specific RoomData type is already in the dungeon
Has Valid PathDungeon GraphReturns wether a path is valid between 2 rooms (no locked room blocking the way)
Note: Could be pure, but since it can be heavy duty for large dungeons, keep it impure to avoid duplicate calls.