// load list from xml file
        public void Load(string sFilename = null)
        {
            if (string.IsNullOrEmpty(sFilename))
            {
                sFilename = Filename;
            }

            try
            {
                XmlSerializer ser    = new XmlSerializer(typeof(SpellList));
                StreamReader  reader = new StreamReader(sFilename);
                SpellList     fcl    = (SpellList)ser.Deserialize(reader);
                Description = fcl.Description;
                Spells      = fcl.Spells;
                SpellIds    = new HashSet <int>(fcl.Spells.Select(sp => sp.Id).ToArray());
            }
            catch (Exception ex)
            {
                Styx.Common.Logging.WriteException(ex);
                Spells   = new List <SpellEntry>();
                SpellIds = new HashSet <int>();
            }
        }
        public PurgeWhitelist()
        {
            string file = Path.Combine(SingularSettings.GlobalSettingsPath, "Singular.PurgeWhitelist.xml");

            SpellList = new SpellList(file, Defaults);
        }
 public CleanseBlacklist()
 {
     string file = Path.Combine(SingularSettings.GlobalSettingsPath, "Singular.CleanseBlacklist.xml");
     SpellList = new SpellList( file, Defaults);
 }
        public MageSteallist()
        {
            string file = Path.Combine(SingularSettings.GlobalSettingsPath, "Singular.MageSteallist.xml");

            SpellList = new SpellList(file, Defaults);
        }
 public PurgeWhitelist()
 {
     string file = Path.Combine(SingularSettings.GlobalSettingsPath, "Singular.PurgeWhitelist.xml");
     SpellList = new SpellList( file, Defaults);
 }
        public CleanseBlacklist()
        {
            string file = Path.Combine(SingularSettings.GlobalSettingsPath, "Singular.CleanseBlacklist.xml");

            SpellList = new SpellList(file, Defaults);
        }