@Override public void saveProject() { Sandbox sandbox = Sandbox.getInstance(); SceneDataManager sceneDataManager = facade.retrieveProxy(SceneDataManager.NAME); SceneVO vo = sandbox.sceneVoFromItems(); sceneDataManager.saveScene(vo); }
@Override public SceneVO getSceneVO(String name) { SceneDataManager sceneDataManager = facade.retrieveProxy(SceneDataManager.NAME); // TODO: this should be cached FileHandle file = Gdx.files.internal(sceneDataManager.getCurrProjectScenePathByName(name)); Json json = new Json(); json.setIgnoreUnknownFields(true); return json.fromJson(SceneVO.class, file.readString()); }