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

defineCargoContainer

defineCargoContainer(name, settings): CargoContainerHandle

Defines a container once, at module scope, and returns its handle: a model a carrier’s goods ride in, filled in a grid layer on layer, so how full it looks reads how many it holds. A kind takes it as its container, and kinds that take the same handle share it.

Parameter Type
name string
settings CargoContainerOptions

CargoContainerHandle