Hi, sorry about all these questions --
I'm trying to save and load an isometric game scene. To do this, I use the following code, based on the .wsc files I see when I play around in the WADE editor:
let exportedScene = wade.exportScene();
exportedScene.sceneObjects = _.filter(exportedScene.sceneObjects, (obj) => {
return ! _.has(obj.properties, 'iso');
});
exportedScene.modules = {
iso: wade.iso.exportMap()
}
wade.storeLocalObject('save_game', JSON.stringify(exportedScene));
Then to load it, I do the following:
let savedGame = JSON.parse(wade.retrieveLocalObject('save_game'));
wade.setJson('savedGameScene.wsc', savedGame);
wade.loadScene('savedGameScene.wsc', true, () => {
console.log(wade.iso.exportMap());
}, true);
But what I'm noticing on the console is that the new exported isometric map has no gameObjectData or gameObjects. On screen, it is the same: no gameObjects. The only thing that was loaded was the tile and transition sprites.
Do you have any idea what might be causing this? Or is there a more appropriate way to save and load an isometric game scene?