public void AddEquip(CEquipmentInventory in_)
 {
     if (in_ is CHelmet)
     {
         Helmets.Add((CHelmet)in_);
     }
     if (in_ is CAmulet)
     {
         Amulets.Add((CAmulet)in_);
     }
     if (in_ is CPlate)
     {
         Plates.Add((CPlate)in_);
     }
     if (in_ is CBoots)
     {
         Boots.Add((CBoots)in_);
     }
     if (in_ is CLeggins)
     {
         Leggins.Add((CLeggins)in_);
     }
     if (in_ is CSword)
     {
         Swords.Add((CSword)in_);
     }
 }
Exemple #2
0
        public CEquipmentInventory Copy()
        {
            CEquipmentInventory out_ = new CEquipmentInventory();

            out_.Bonus = Bonus.Copy();
            out_.Id    = Id;
            return(out_);
        }