mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
store waypoints in savegame
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { SavegameInterface_V1000 } from "./1000.js";
|
||||
import { createLogger } from "../../core/logging.js";
|
||||
import { T } from "../../translations.js";
|
||||
|
||||
const schema = require("./1001.json");
|
||||
|
||||
@@ -27,6 +28,16 @@ export class SavegameInterface_V1001 extends SavegameInterface_V1000 {
|
||||
dump.pinnedShapes = {
|
||||
shapes: [],
|
||||
};
|
||||
dump.waypoints = {
|
||||
waypoints: [
|
||||
{
|
||||
label: T.ingame.waypoints.hub,
|
||||
center: { x: 0, y: 0 },
|
||||
zoomLevel: 3,
|
||||
deletable: false,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
const entities = dump.entities;
|
||||
for (let i = 0; i < entities.length; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user