Exemple #1
0
 public Accessory(Equipment.EquipmentData data)
     : base(data)
 {
 }
Exemple #2
0
        private void LoadAccessories()
        {
            Accessories = new Dictionary<string, Equipment.EquipmentData>();

            XmlDocument gamedata = Resource.GetXmlFromResource("data.accessories.xml", Assembly);

            foreach (XmlNode node in gamedata.SelectNodes("/accessories/accessory"))
            {
                Equipment.EquipmentData a = new Equipment.EquipmentData(node, Lua);

                Accessories.Add(a.ID, a);
            }
        }