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); } }
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); } }
public void UpdateCharacters(RemnantCharacter.CharacterProcessingMode mode) { saveCharacters = RemnantCharacter.GetCharactersFromSave(this.SaveFolderPath, mode); }
public RemnantProfile(string path) { this.foldername = path.Split('\\').Last(); chars = RemnantCharacter.GetCharactersFromSave(path); }