예제 #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);
    }
예제 #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);
    }