listSaves beta
Function of @v12-engine/client
ts
export declare function listSaves(scenes?: readonly string[], game?: string | Registry, store?: Store<SavedGame>): Promise<SavedGameSummary[]>;The games saved in this browser, newest first: all of them, or those of some scenes, of a game. Asked with the game's registry (session.registry, createRegistry(rules)) and not its id alone, each says whether the game still loads it (SavedGameSummary.problem): one saved by a newer version of the game, or by a version the game has no step from (Rules.saves), is listed with why. That is as far as a save's header tells: what only the whole save says is found as it is loaded (updateSave, loadWorld), which throws a SaveError with the same reasons