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

CargoTransferCheckContext

What checkCargoTransfer reads: one good a transfer would move, and the goods of the same transfer it accepted already.

Property Modifier Type Description
accepted public readonly object[] -
carrier public Entity | null The carrier on either side, or null for a move between stores.
from public Entity | null Where the goods leave: a carrier, a store, or null for recovery.
item public object -
item.cargo readonly string The kind’s name, as defineCargo gave it.
item.data? readonly object -
station public Entity | null The station that set it off, or null for a verb’s own call.
to public Entity | null Where they go, the same way.
world public World -