//TODO saveLevelFirstTime public static ProgressObject loadProgress() { ProgressObject o; try { o = ObjectSerialization.Load <ProgressObject>(Game1.sPROGRESS_FILE_NAME); } catch (Exception e) { o = new ProgressObject(1, ProgressObject.PlayerColor.BLUE); } return(o); }
public static void saveProgress(ProgressObject po) { ObjectSerialization.Save <ProgressObject>(Game1.sPROGRESS_FILE_NAME, po); }