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

BlockSet

A block set: what each block of a BlockMap looks like and is, as Godot’s GridMap MeshLibrary and Unity’s tile palette. A room reads its colliders and draws nothing.

Type Parameter Default type
Name extends string string
Property Modifier Type Description
blocks readonly readonly ResolvedBlock[] -
cellSize readonly Triple -
colliderHeight readonly number -
name readonly string What a map file’s blockSet names it by.
names readonly readonly Name[] -
patchSize readonly number Metres between the patch field’s lattice points.
wallSteps readonly number Steps a blocked cell’s wall stacks over its top.

indexOf(name): number

A block’s place in blocks, or -1 for a name the set lacks.

Parameter Type
name string

number