space-engineers-api
0.9.0
common
space-engineers-api
/
spaceEngineers.graph
/
Cube3dGraph
Cube3d
Graph
common
data
class
Cube3dGraph
<
T
:
Any
>
(
val
blocksByPositions
:
Map
<
Vec3I
,
T
>
)
Content copied to clipboard
Constructors
Functions
Properties
Constructors
Cube3d
Graph
Link copied to clipboard
common
fun
<
T
:
Any
>
Cube3dGraph
(
blocksByPositions
:
Map
<
Vec3I
,
T
>
)
Content copied to clipboard
Functions
bfs
Link copied to clipboard
common
fun
bfs
(
start
:
Vec3I
,
visited
:
Set
<
Vec3I
>
=
emptySet()
)
:
Sequence
<
Pair
<
Vec3I
,
T
>
>
Content copied to clipboard
dfs
Link copied to clipboard
common
fun
dfs
(
start
:
Vec3I
,
visited
:
Set
<
Vec3I
>
=
emptySet()
)
:
Sequence
<
Pair
<
Vec3I
,
T
>
>
Content copied to clipboard
neighbour
Ids
Link copied to clipboard
common
fun
neighbourIds
(
node
:
Vec3I
)
:
Set
<
Vec3I
>
Content copied to clipboard
Properties
blocks
By
Positions
Link copied to clipboard
common
val
blocksByPositions
:
Map
<
Vec3I
,
T
>
Content copied to clipboard
positions
Link copied to clipboard
common
val
positions
:
Set
<
Vec3I
>
Content copied to clipboard