mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
19 lines
451 B
JavaScript
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",
|
|
};
|
|
}
|
|
}
|