Example #1
0
        public void Unequip(Equipment equipment)
        {
            Equipments.Remove(equipment);

            foreach (Addon addon in equipment.Addons)
                Nodes[addon.Template.Node].Unequip(addon);
        }
Example #2
0
        public void Equip(Equipment equipment)
        {
            Equipments.Add(equipment);

            if (equipment.Parent != null)
                equipment.Parent.Unequip(equipment);
            equipment.Parent = this;
            foreach (Addon addon in equipment.Addons)
                Nodes[addon.Node].Equip(addon);
        }