Beispiel #1
0
        //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);
        }
Beispiel #2
0
 public static void saveProgress(ProgressObject po)
 {
     ObjectSerialization.Save <ProgressObject>(Game1.sPROGRESS_FILE_NAME, po);
 }