You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
686 B
29 lines
686 B
import { createLogger } from "../../core/logging.js";
|
|
import { SavegameInterface_V1002 } from "./1002.js";
|
|
|
|
const schema = require("./1003.json");
|
|
const logger = createLogger("savegame_interface/1003");
|
|
|
|
export class SavegameInterface_V1003 extends SavegameInterface_V1002 {
|
|
getVersion() {
|
|
return 1003;
|
|
}
|
|
|
|
getSchemaUncached() {
|
|
return schema;
|
|
}
|
|
|
|
/**
|
|
* @param {import("../savegame_typedefs.js").SavegameData} data
|
|
*/
|
|
static migrate1002to1003(data) {
|
|
logger.log("Migrating 1002 to 1003");
|
|
const dump = data.dump;
|
|
if (!dump) {
|
|
return true;
|
|
}
|
|
|
|
dump.pinnedShapes = { shapes: [] };
|
|
}
|
|
}
|