Strata - v1.4.10
GitHub
Examples
Preparing search index...
strata
WorldGraph
Class WorldGraph
Index
Constructors
constructor
Properties
connections
regions
Methods
discover
Region
emit
find
Path
get
Adjacent
Regions
get
Connection
get
Connections
get
Distance
get
Region
get
Region
At
get
Unlocked
Connections
is
Reachable
off
on
unlock
Connection
Constructors
constructor
new
WorldGraph
(
definition
?:
WorldGraphDefinition
)
:
WorldGraph
Parameters
Optional
definition
:
WorldGraphDefinition
Returns
WorldGraph
Properties
connections
connections
:
Connection
[]
= []
regions
regions
:
Map
<
string
,
Region
>
= ...
Methods
discover
Region
discoverRegion
(
id
:
string
)
:
void
Parameters
id
:
string
Returns
void
emit
emit
(
event
:
string
,
...
args
:
any
[]
)
:
void
Parameters
event
:
string
...
args
:
any
[]
Returns
void
find
Path
findPath
(
fromId
:
string
,
toId
:
string
)
:
string
[]
|
null
Parameters
fromId
:
string
toId
:
string
Returns
string
[]
|
null
get
Adjacent
Regions
getAdjacentRegions
(
regionId
:
string
)
:
Region
[]
Parameters
regionId
:
string
Returns
Region
[]
get
Connection
getConnection
(
fromId
:
string
,
toId
:
string
)
:
Connection
|
undefined
Parameters
fromId
:
string
toId
:
string
Returns
Connection
|
undefined
get
Connections
getConnections
(
regionId
:
string
)
:
Connection
[]
Parameters
regionId
:
string
Returns
Connection
[]
get
Distance
getDistance
(
fromId
:
string
,
toId
:
string
)
:
number
Parameters
fromId
:
string
toId
:
string
Returns
number
get
Region
getRegion
(
id
:
string
)
:
Region
|
undefined
Parameters
id
:
string
Returns
Region
|
undefined
get
Region
At
getRegionAt
(
position
:
Vector3
)
:
Region
|
undefined
Parameters
position
:
Vector3
Returns
Region
|
undefined
get
Unlocked
Connections
getUnlockedConnections
(
regionId
:
string
)
:
Connection
[]
Parameters
regionId
:
string
Returns
Connection
[]
is
Reachable
isReachable
(
fromId
:
string
,
toId
:
string
)
:
boolean
Parameters
fromId
:
string
toId
:
string
Returns
boolean
off
off
(
event
:
string
,
handler
:
(
...
args
:
any
[]
)
=>
void
)
:
void
Parameters
event
:
string
handler
:
(
...
args
:
any
[]
)
=>
void
Returns
void
on
on
(
event
:
string
,
handler
:
(
...
args
:
any
[]
)
=>
void
)
:
void
Parameters
event
:
string
handler
:
(
...
args
:
any
[]
)
=>
void
Returns
void
unlock
Connection
unlockConnection
(
id
:
string
)
:
void
Parameters
id
:
string
Returns
void
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
connections
regions
Methods
discover
Region
emit
find
Path
get
Adjacent
Regions
get
Connection
get
Connections
get
Distance
get
Region
get
Region
At
get
Unlocked
Connections
is
Reachable
off
on
unlock
Connection
GitHub
Examples
Strata - v1.4.10
Loading...