Esempio n. 1
0
    public Dictionary <int, PowerUp> GetDict()
    {
        XElement puc = PowerUpContainer.Load(path);

        PowerUpInfos = puc.Element("PowerUps").Elements("PowerUp").Select(c => new PowerUp().Set(c)).ToDictionary(info => info.id);

        return(PowerUpInfos);
    }
Esempio n. 2
0
    public void Init()
    {
        XElement puc = PowerUpContainer.Load(path);

        PowerUpInfos = puc.Element("PowerUps").Elements("PowerUp").Select(c => new PowerUp().Set(c)).ToDictionary(info => info.id);
    }