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); }
public void Init() { XElement puc = PowerUpContainer.Load(path); PowerUpInfos = puc.Element("PowerUps").Elements("PowerUp").Select(c => new PowerUp().Set(c)).ToDictionary(info => info.id); }