Ejemplo n.º 1
0
 @Override
 public void saveProject() {
   Sandbox sandbox = Sandbox.getInstance();
   SceneDataManager sceneDataManager = facade.retrieveProxy(SceneDataManager.NAME);
   SceneVO vo = sandbox.sceneVoFromItems();
   sceneDataManager.saveScene(vo);
 }
Ejemplo n.º 2
0
 @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());
 }