예제 #1
0
 public void LoadFromSaveFile()
 {
     foreach (var branchKey in EconomyRequestFacade.GetInstance().EconomyTierlistOverview.Keys)
     {
         this.LoadFromSaveFile(branchKey);
     }
 }
예제 #2
0
 public void LoadFromSaveFile()
 {
     foreach (var branchKey in EconomyRequestFacade.GetInstance().EconomyTierlistOverview.Keys)
     {
         LoggingFacade.LogDebug($"Loading AspectFile: {branchKey}");
         this.LoadFromSaveFile(branchKey);
     }
 }
예제 #3
0
        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);
        }