Skip to main content
Version: 3.5

Procedural DungeonDungeon Graph ⏵ Number Of Room Between (using ReadOnlyRoom)

Number Of Room Between (using ReadOnlyRoom)

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_ReadOnly(TScriptInterface<IReadOnlyRoom> A, TScriptInterface<IReadOnlyRoom> B) const

Inputs

NameTypeDescription
InExec
TargetDungeon Graph Object Reference
ARead Only Room Interface
BRead Only Room Interface

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.