Esempio n. 1
0
 new public Dictionary <string, MonsterConfigLine> LoadConfig(string path)
 {
     return(LoadConfigBase(path, 4).ToDictionary(line => line[0], line =>
     {
         var monsterConfigLine = new MonsterConfigLine {
             Text = line[1], SoundFile = line.ConfigValueExtractor(2), Color = line.ConfigColorValueExtractor(3)
         };
         if (!String.IsNullOrEmpty(monsterConfigLine.SoundFile))
         {
             Sounds.AddSound(monsterConfigLine.SoundFile);
         }
         return monsterConfigLine;
     }));
 }
Esempio n. 2
0
 public Dictionary <string, MonsterConfigLine> LoadConfig(string path)
 {
     return(LoadConfigBase(path, 5).ToDictionary(line => line[0], line =>
     {
         var monsterConfigLine = new MonsterConfigLine
         {
             Text = line[1],
             SoundFile = line.ConfigValueExtractor(2),
             Color = line.ConfigColorValueExtractor(3),
             MinimapIcon = line.ConfigValueExtractor(4)
         };
         if (monsterConfigLine.SoundFile != null)
         {
             Sounds.AddSound(monsterConfigLine.SoundFile);
         }
         return monsterConfigLine;
     }));
 }