public BaseSerializer.SceneFileResult LoadScene(string fileName) { if (fileName.Length > 0) { fileName = system.GetFullPath(fileName); } ClearProjectOptions(); SceneUpdated = null; this.system.UpdateLoadProgress(-1, "Load in progress..."); MogitorsSceneSerializer defaultSerializer = new MogitorsSceneSerializer(); BaseSerializer.SceneFileResult ret = defaultSerializer.Import(fileName); if (ret != BaseSerializer.SceneFileResult.Ok) { this.system.UpdateLoadProgress(-1, "Please load a Scene File..."); } return(ret); }
public bool SaveScene(bool saveAs) { MogitorsSceneSerializer defaultSerializer = new MogitorsSceneSerializer(); return (defaultSerializer.Export(saveAs) == BaseSerializer.SceneFileResult.Ok); }
public BaseSerializer.SceneFileResult LoadScene(string fileName) { if (fileName.Length > 0) fileName = system.GetFullPath(fileName); ClearProjectOptions(); SceneUpdated = null; this.system.UpdateLoadProgress(-1, "Load in progress..."); MogitorsSceneSerializer defaultSerializer = new MogitorsSceneSerializer(); BaseSerializer.SceneFileResult ret = defaultSerializer.Import(fileName); if (ret != BaseSerializer.SceneFileResult.Ok) { this.system.UpdateLoadProgress(-1, "Please load a Scene File..."); } return ret; }
public bool SaveScene(bool saveAs) { MogitorsSceneSerializer defaultSerializer = new MogitorsSceneSerializer(); return(defaultSerializer.Export(saveAs) == BaseSerializer.SceneFileResult.Ok); }