示例#1
0
        public void HighLightItemSlot(ItemModel item, bool isHighlight)
        {
            var type = item.Type.Type;

            if (type == ItemType.Accessory)
            {
                _selectedSlot.IsHighlighted = isHighlight;
            }
            else
            {
                Outfit.First(x => x.Type == type).IsHighlighted = isHighlight;
            }
        }
示例#2
0
 public void Equip(ExItemModel item)
 {
     if (!_isEquiped(item))
     {
         if (item.Type.Type == ItemType.Accessory)
         {
             _selectedSlot.Item = item;
             _findSlot();
         }
         else
         {
             var fit = Outfit.First(x => x.Type == item.Type.Type);
             fit.Item = item;
         }
         _startSave();
         _calculateStats();
     }
 }