1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00
tobspr_shapez.io/src/js/savegame/puzzle_serializer.js
2021-04-30 14:34:11 +02:00

19 lines
451 B
JavaScript

import { GameRoot } from "../game/root";
export class PuzzleSerializer {
/**
* Serializes the game root into a dump
* @param {GameRoot} root
* @param {boolean=} sanityChecks Whether to check for validity
* @returns {object}
*/
generateDumpFromGameRoot(root, sanityChecks = true) {
console.log("serializing", root);
return {
type: "puzzle",
contents: "foo",
};
}
}