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

MapObjectOptions

MapObjectOptions<Placement, Fields> = MapObjectCommonOptions<Fields> & object & Placement extends Line ? object : object & Placement extends Point ? object : object

What defineMapObject takes, by the object’s placement.

Name Type Description
build() (context) => MapObjectBuildResult What the entity stands with, built on every end from the entry alone, with no mesh: a room and a headless run build it too.
placement? Placement
view? ComponentType<MapObjectViewProps<Fields, Placement>> How the object draws on a page; a room never mounts it.
Type Parameter
Placement extends MapObjectPlacement
Fields extends MapObjectFields