Skip to main content
Version: 3.4

Procedural DungeonDungeon 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)

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.