Loom Engine - v3.1.1
GitHub
TheWorldTable.ai
Preparing search index...
RegionGraph
Class RegionGraph
Index
Methods
create
add
Zone
remove
Zone
has
Zone
zones
zone
Count
get
Zone
add
Connection
add
Bidirectional
remove
Connection
has
Connection
get
Connection
edges
edge
Count
neighbors
shortest
Path
reachable
is
Reachable
clear
dispose
Methods
Static
create
create
(
opts
?:
RegionGraphOptions
)
:
RegionGraph
Parameters
opts
:
RegionGraphOptions
= {}
Returns
RegionGraph
add
Zone
addZone
(
id
:
string
,
data
?:
Record
<
string
,
unknown
>
)
:
boolean
Parameters
id
:
string
Optional
data
:
Record
<
string
,
unknown
>
Returns
boolean
remove
Zone
removeZone
(
id
:
string
)
:
boolean
Parameters
id
:
string
Returns
boolean
has
Zone
hasZone
(
id
:
string
)
:
boolean
Parameters
id
:
string
Returns
boolean
zones
zones
()
:
string
[]
Returns
string
[]
zone
Count
zoneCount
()
:
number
Returns
number
get
Zone
getZone
(
id
:
string
)
:
ZoneNode
|
null
Parameters
id
:
string
Returns
ZoneNode
|
null
add
Connection
addConnection
(
edge
:
RegionEdge
)
:
boolean
Parameters
edge
:
RegionEdge
Returns
boolean
add
Bidirectional
addBidirectional
(
fromZone
:
string
,
toZone
:
string
,
opts
?:
RegionBidirectionalOptions
,
)
:
boolean
Parameters
fromZone
:
string
toZone
:
string
opts
:
RegionBidirectionalOptions
= {}
Returns
boolean
remove
Connection
removeConnection
(
fromZone
:
string
,
toZone
:
string
)
:
boolean
Parameters
fromZone
:
string
toZone
:
string
Returns
boolean
has
Connection
hasConnection
(
fromZone
:
string
,
toZone
:
string
)
:
boolean
Parameters
fromZone
:
string
toZone
:
string
Returns
boolean
get
Connection
getConnection
(
fromZone
:
string
,
toZone
:
string
)
:
RegionEdge
|
null
Parameters
fromZone
:
string
toZone
:
string
Returns
RegionEdge
|
null
edges
edges
()
:
RegionEdge
[]
Returns
RegionEdge
[]
edge
Count
edgeCount
()
:
number
Returns
number
neighbors
neighbors
(
zone
:
string
,
ctx
?:
Record
<
string
,
unknown
>
)
:
string
[]
Parameters
zone
:
string
ctx
:
Record
<
string
,
unknown
>
= {}
Returns
string
[]
shortest
Path
shortestPath
(
fromZone
:
string
,
toZone
:
string
,
ctx
?:
Record
<
string
,
unknown
>
,
)
:
string
[]
|
null
Parameters
fromZone
:
string
toZone
:
string
ctx
:
Record
<
string
,
unknown
>
= {}
Returns
string
[]
|
null
reachable
reachable
(
fromZone
:
string
,
ctx
?:
Record
<
string
,
unknown
>
)
:
string
[]
Parameters
fromZone
:
string
ctx
:
Record
<
string
,
unknown
>
= {}
Returns
string
[]
is
Reachable
isReachable
(
fromZone
:
string
,
toZone
:
string
,
ctx
?:
Record
<
string
,
unknown
>
,
)
:
boolean
Parameters
fromZone
:
string
toZone
:
string
ctx
:
Record
<
string
,
unknown
>
= {}
Returns
boolean
clear
clear
()
:
void
Returns
void
dispose
dispose
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
create
add
Zone
remove
Zone
has
Zone
zones
zone
Count
get
Zone
add
Connection
add
Bidirectional
remove
Connection
has
Connection
get
Connection
edges
edge
Count
neighbors
shortest
Path
reachable
is
Reachable
clear
dispose
GitHub
TheWorldTable.ai
Loom Engine - v3.1.1
Loading...