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

resolveSaves

resolveSaves(game, saveResolveOptions): SaveResolveResult

The game’s saves, resolved together into its three records, each in the order its owners restore. The core’s saves restore in the engine’s order, each listed plugin’s in list order and as it declares them, a save after each it requires, then the game’s own state. Each is on unless the game turned it off; kept in its first scope unless the game moved it; and in the player’s game-wide record or the player’s record in a world as the save declares, unless the game’s perWorld says the other. A world’s save is the world’s record’s. Where the page or room holds no world, each save of the world’s record or the player’s in a world is left out; in a room, random, whose stream the room seeds, is left out. Throws for a save a room may not keep turned on, one on without a save it requires, two it requires in different scopes, a requirement in a record that restores after it, a ring of requirements, and versions past what the save worker stores. The same throws wherever it runs, a hub as a world’s room.

Parameter Type
game GameDescriptor
saveResolveOptions SaveResolveOptions

SaveResolveResult