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

BlockRows

A block map’s rows, as BlockMap takes them and readBlockRows gives them from a map file.

Type Parameter Default type
Name extends string string
Property Type Description
cells readonly string[] One string a row, north to south, one legend character a cell, a dot for a void cell.
heights readonly readonly number[][] Each cell’s height in whole steps of the set’s cellSize[1].
legend BlockLegend<Name> -
sea? number The sea’s height in metres, in the map’s own axes. Left out, a water cell’s surface stands 0.35 m over its bed.