Skip to main content
Version: 3.4

Procedural DungeonDungeon Generator Base ⏵ Get Compatible Room Data

Get Compatible Room Data

Class: Dungeon Generator Base
Category: Dungeon Generator

Description

Returns an array of room data with at least one compatible door with the door data provided.

Node

C++

void GetCompatibleRoomData(bool bSuccess, TArray<URoomData*> CompatibleRooms, const TArray<URoomData*>& RoomDataArray, const FDoorDef& DoorData)

Inputs

NameTypeDescription
TargetDungeon Generator Base Object Reference
Room Data ArrayArray of Room Data Object ReferencesThe list of room data to check for compatibility.
Door DataDoor Def Structure (by ref)The door used to check if a room is compatible.

Outputs

NameTypeDescription
SuccessBooleanTrue if at least one compatible room data was found.
Compatible RoomsArray of Room Data Object ReferencesFilled with all compatible room data found.