public void LoadFromSaveFile() { foreach (var branchKey in EconomyRequestFacade.GetInstance().EconomyTierlistOverview.Keys) { this.LoadFromSaveFile(branchKey); } }
public void LoadFromSaveFile() { foreach (var branchKey in EconomyRequestFacade.GetInstance().EconomyTierlistOverview.Keys) { LoggingFacade.LogDebug($"Loading AspectFile: {branchKey}"); this.LoadFromSaveFile(branchKey); } }
public void LoadFromSaveFile(string branchKey) { var filePath = this.GetItemInfoSaveFilePath(branchKey); if (File.Exists(filePath)) { var fileText = File.ReadAllText(filePath); if (fileText.Length < 2) { InfoPopUpMessageDisplay.ShowError("ItemAspect saveFile empty for: " + branchKey); } this.Deserialize(branchKey, fileText); } else { InfoPopUpMessageDisplay.ShowError("no ItemAspect saveFile for: " + branchKey); } var economyData = EconomyRequestFacade.GetInstance(); this.MigrateAspectDataToEcoData(economyData, branchKey); }