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

addCargo

addCargo(writer, holder, input): CargoResult

Adds as many of input as fit to holder, in order, and answers how many it took and why it took no more. It makes goods: a transfer from another holder is moveCargo.

Parameter Type
writer Authority
holder CargoHolder
input CargoInput | readonly CargoInput[]

CargoResult