示例#1
0
 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_);
     }
 }
示例#2
0
        public CEquipmentInventory Copy()
        {
            CEquipmentInventory out_ = new CEquipmentInventory();

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