Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

MapObjectBuildContext

What a map object’s build takes.

Type Parameter
Placement extends MapObjectPlacement
Fields extends MapObjectFields
Property Type Description
fields output<Fields> The entry’s fields with every default filled.
findWaterHeight (x, z) => number | null The water’s top over a point in the object’s own metres, as readGroundHeight reads the ground, or null where no water stands: what a bridge clears.
ground GroundSurface The Landscape’s ground, for what else a build asks of it.
placement PlacementOf<Placement> -
readGroundHeight (x, z) => number The ground’s height under a point in the object’s own metres, x across it and z out of its front, as glTF’s and Unity’s models face +z, less the height its origin stands at: what a post or a flower stands on.
seed number The entry’s seed, else one the map’s seed and the entry’s name give.