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

carryingSaves

const carryingSaves: object

One record for each station’s store: its goods and its capacity. A game lists it so a restart keeps a hopper’s fruit and a tree’s waiting harvest: defineGame({ worldSaves: { ...carryingSaves } }).

Name Type
cargoStores EachSaveDeclaration<NumberTypedTrait<WithFields<Trait<{ capacity: number; items: ListSchemaField<CargoItem>; }>, CollectionHandles<{ capacity: number; items: ListSchemaField<CargoItem>; }, Trait<{ capacity: number; items: ListSchemaField<CargoItem>; }>>>, { capacity: "float64"; }>>