SaveGame

interface SaveGame
save.ts:223

Members

catalogreadonly

catalog: string

The star catalog version the universe was generated against.

A generation input in its own right (docs/design/galaxy.md Rule 1), and not a number, so it cannot live in generation. Optional on the wire: saves written before the catalog existed decode as '', which reads correctly as "generated against no catalog".

dynamicIdCounterreadonly

dynamicIdCounter: number

entitiesreadonly

entities: readonly SaveEntity[]

galaxyreadonly

galaxy: string

generationreadonly

generation: Readonly<Record<string, number>>

loadedSystemsreadonly

loadedSystems: readonly string[]

metareadonly

meta: Readonly<Record<string, string>>

Free-form, never load-bearing: build id, wall-clock date, notes.

mutationsreadonly

mutations: readonly SaveMutation[]

playerEntityreadonly

playerEntity: string | null

schemaVersionreadonly

schemaVersion: number

seedreadonly

seed: string

structuresreadonly

structures: readonly SaveSurfacePlacement[]

tickreadonly

tick: number