RestoredWorld

interface RestoredWorld
save.ts:174

Members

catalogreadonly

catalog: string

The catalog version the save was written against.

driftreadonly

drift: readonly VersionDrift[]

Every way the save's universe differs from this build's — empty when they agree, which is the ordinary case.

Returned on success, not only on failure, and that is the change this field exists to make. A save whose catalog moved usually loads: the systems it names still resolve, the entities still spawn, and the only symptom is that a star is a few light years from where it was. The old code could only mention the versions while building an error message for a load that had already failed, so the interesting case — it worked, and it is not the same sky — had nowhere to be reported. describeDrift turns this into a sentence; the caller decides whether that is a notice or a refusal.

generationreadonly

generation: Readonly<Record<string, number>>

Generation versions the save was written with.

playerEntityreadonly

playerEntity: EntityId | null

worldreadonly

world: World