Skip to content

five-on-it / apps/tools/src/export-level / readPlacements

Function: readPlacements() ​

readPlacements(doc): object

Defined in: apps/tools/src/export-level.ts:189

The placements of a scene, in the game's frame, with the kit pieces they use, the problems and the warnings met on the way. A node is a block by its own enabled block script, or its source mesh's for an instance, else a kit piece by its source mesh's metadata.foi; two block scripts on one node, a rolled node, a node under a scaled group and a kit piece without geometry are problems.

Parameters ​

doc ​

SceneDoc

Returns ​

object

library ​

library: PieceLibrary

placements ​

placements: PiecePlacement[]

problems ​

problems: string[]

warnings ​

warnings: string[]