restoreSave

function restoreSave
save.ts:204
restoreSave(save: SaveGame, catalog: StarCatalog) → Result<RestoredWorld, string>

Rebuild a world from a save.

Order matters: systems are loaded before entities, because an entity's frame only exists once its system does, and surface frames are regenerated on demand from the frame id.

saveSaveGame
Undocumented
catalogStarCatalog
Undocumented
ReturnsResult<RestoredWorld, string>