static MaxRolls() { XDocument doc = XDocument.Load("config/rolls.xml"); data = new Dictionary<string, MaxRolls_Mod>(); if (doc == null || doc.Root == null) throw new ApplicationException("invalid data"); foreach (XElement m in doc.Root.Elements("mod")) { MaxRolls_Mod mod = new MaxRolls_Mod(m); data.Add(m.Attribute("name").Value, mod); } }
static MaxRolls() { XDocument doc = XDocument.Load("config/rolls.xml"); data = new Dictionary <string, MaxRolls_Mod>(); if (doc == null || doc.Root == null) { throw new ApplicationException("invalid data"); } foreach (XElement m in doc.Root.Elements("mod")) { MaxRolls_Mod mod = new MaxRolls_Mod(m); data.Add(m.Attribute("name").Value, mod); } }