Esempio n. 1
0
    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);
    }
Esempio n. 2
0
    public void Init()
    {
        XElement hc = HatContainer.Load(path);

        HatInfos = hc.Element("Hats").Elements("Hat").Select(c => new Hat().Set(c)).ToDictionary(info => info.id);
    }