Ejemplo n.º 1
0
 /// <summary>
 /// Do not use null. Just don't.
 /// </summary>
 /// <param name="levelDict"></param>
 /// <param name="sideBDict"></param>
 /// <param name="achDict"></param>
 /// <param name="complete"></param>
 /// <param name="sideBUnlocked"></param>
 /// <param name="sideBComplete"></param>
 public SaveData(LevelDataDictionary levelDict, LevelDataDictionary sideBDict, 
     AccomplishmentDictionary achList, bool complete, bool sideBUnlocked, bool sideBComplete,
     WindowsOptions winOpt, XboxOptions xOpt)
 {
     LevelData = levelDict;
     SideBLevelData = sideBDict;
     AchievementData = achList;
     GameCompleted = complete;
     SideBUnlocked = sideBUnlocked;
     SideBCompleted = sideBComplete;
     Options = winOpt;
     Xoptions = xOpt;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Only the serializer should call this.
        /// </summary>
        public SaveData()
        {
            SaveData EmptyData = SaveData.GetEmptyData(1);

            this.AchievementData = EmptyData.AchievementData;
            this.GameCompleted = false;
            this.LevelData = EmptyData.LevelData;
            this.SideBCompleted = false;
            this.SideBUnlocked = false;
            this.SideBLevelData = EmptyData.SideBLevelData;

            Options = new WindowsOptions();
            Xoptions = new XboxOptions();
        }
Ejemplo n.º 3
0
 public static void SetOptions(WindowsOptions winop, XboxOptions xop)
 {
     WindowsOptions = winop;
     XboxOptions = xop;
 }