コード例 #1
0
 private IDictionary <int, BossData> LoadBossData()
 {
     try
     {
         if (File.Exists(Bosses.JsonFileLocation))
         {
             return(Bosses.FromJsonFile($@"{ApplicationSettings.LocalDir}\boss_data.json"));
         }
         return(Bosses.GetDefaultSettingsForBossesAsDictionary());
     }
     catch
     {
         return(Bosses.GetDefaultSettingsForBossesAsDictionary());
     }
 }