public Dictionary <int, Hat> GetDict() { XElement hc = HatContainer.Load(path); HatInfos = hc.Element("Hats").Elements("Hat").Select(c => new Hat().Set(c)).ToDictionary(info => info.id); return(HatInfos); }
public void Init() { XElement hc = HatContainer.Load(path); HatInfos = hc.Element("Hats").Elements("Hat").Select(c => new Hat().Set(c)).ToDictionary(info => info.id); }