Beispiel #1
0
        public void UpdateCharacters()
        {
            var test = RemnantCharacter.GetCharactersFromSave(this.SaveFolderPath);

            if (saveCharacters != null && test.Count == saveCharacters.Count)
            {
                for (int i = 0; i < test.Count; i++)
                {
                    if (test[i].Progression > saveCharacters[i].Progression)
                    {
                        NewData(test); break;
                    }
                }
                Debug.WriteLine("Data Not Updated");
            }
            else
            {
                NewData(test);
            }
        }
Beispiel #2
0
 public RemnantSave(string saveProfilePath)
 {
     if (!saveProfilePath.EndsWith("profile.sav"))
     {
         if (File.Exists(saveProfilePath + "\\profile.sav"))
         {
             saveProfilePath += "\\profile.sav";
         }
         else
         {
             throw new Exception(saveProfilePath + " is not a valid save.");
         }
     }
     else if (!File.Exists(saveProfilePath))
     {
         throw new Exception(saveProfilePath + " does not exist.");
     }
     this.profilePath = saveProfilePath;
     if (saveCharacters == null)
     {
         saveCharacters = RemnantCharacter.GetCharactersFromSave(this.SaveFolderPath);
     }
 }
Beispiel #3
0
 public void UpdateCharacters(RemnantCharacter.CharacterProcessingMode mode)
 {
     saveCharacters = RemnantCharacter.GetCharactersFromSave(this.SaveFolderPath, mode);
 }
Beispiel #4
0
 public RemnantProfile(string path)
 {
     this.foldername = path.Split('\\').Last();
     chars           = RemnantCharacter.GetCharactersFromSave(path);
 }