Skip to main content
Version: 3.9

Procedural DungeonDungeon Generator Base ⏵ Add Room to Dungeon

Add Room to Dungeon

Class: Dungeon Generator Base
Category: GenerationAlgorithm

Description

Finalize the room creation by adding it to the dungeon graph. OnRoomAdded is called here.

Node

C++

bool AddRoomToDungeon(const URoom*& Room, const TArray<int32>& DoorsToConnect, bool bFailIfNotConnected)

Inputs

NameTypeDescription
InExec
TargetDungeon Generator Base Object Reference
RoomRoom Object Reference (by ref)
Doors to ConnectArray of Integers
Fail if Not ConnectedBoolean

Outputs

NameTypeDescription
OutExec
SuccessBoolean