コード例 #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);
        }