Skip to main content
Version: 3.7

Procedural Dungeon ⏵ Dungeon Graph ⏵ Number Of Room Between

Number Of Room Between

Class: Dungeon Graph
Category: Dungeon Graph

Description​

Returns the minimum number of connected rooms between A and B.
Note: Could be pure, but since it can be heavy duty for large dungeons, keep it impure to avoid duplicate calls.

Node

C++

int32 NumberOfRoomBetween(const URoom* A, const URoom* B, bool IgnoreLockedRooms) const

Inputs​

NameTypeDescription
InExec
TargetDungeon Graph Object Reference
ARoom Object Reference
BRoom Object Reference
Ignore Locked RoomsBoolean

Outputs​

NameTypeDescription
OutExec
Return ValueIntegerReturns the minimum number of connected rooms between A and B.
Note: Could be pure, but since it can be heavy duty for large dungeons, keep it impure to avoid duplicate calls.