Skip to main content

Procedural DungeonDungeon Generator ⏵ Get Compatible Room Data

Get Compatible Room Data

Category: Dungeon Generator

Description

Returns an array of room data with compatible 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 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.