SaveRefusal beta
TypeAlias of @v12-engine/engine
ts
export type SaveRefusal = 'notASave' | 'game' | 'newer' | 'noWay' | 'rules' | 'missing' | 'ground';Why a save is not loaded: - notASave: it is not a save, or says nothing readable of its format or its version - game: it is another game's - newer: it was made by a newer version of the game, or of the engine, than this one - noWay: it is of an older version of the game's saves, and the game has no step from there (SaveRules.migrate) - rules: it was made with other rules, and the game does not load those (SaveRules.onMismatch) - missing: it has in it what the game no longer has (SaveError.missing) - ground: its ground is a map of the game as it was, which the game no longer has as it was (S36)