コード例 #1
0
 // -------------------------------------------------------------------------------
 // SetFilterAllEquipment
 // -------------------------------------------------------------------------------
 public void SetFilterAllEquipment()
 {
     equipmentType  = null;
     show_items     = false;
     show_equipment = true;
     Refresh();
 }
コード例 #2
0
        // ============================= FILTER FUNCTIONS ================================

        // -------------------------------------------------------------------------------
        // SetFilterEquipment
        // -------------------------------------------------------------------------------
        public void SetFilterEquipment(string filter)
        {
            equipmentType  = DictionaryEquipmentSlot.Get(filter);
            show_equipment = true;
            show_items     = false;
            Refresh();
        }
コード例 #3
0
 // -------------------------------------------------------------------------------
 // SetFilterAll
 // -------------------------------------------------------------------------------
 public void SetFilterAll()
 {
     itemType       = ItemType.None;
     equipmentType  = null;
     show_items     = true;
     show_equipment = true;
     Refresh();
 }
コード例 #4
0
        // -------------------------------------------------------------------------------
        // GetEquipped
        // -------------------------------------------------------------------------------
        public TemplateEquipment GetEquipped(TemplateMetaEquipmentSlot t, CharacterBase target)
        {
            InstanceEquipment tmp = Equipment.FirstOrDefault(x => x.IsEquipped && x.template.equipmentType == t && x.character == target);

            if (tmp == null)
            {
                return(null);
            }
            return(tmp.template);
        }
コード例 #5
0
 // -------------------------------------------------------------------------------
 // UnEquipType
 // -------------------------------------------------------------------------------
 public void UnEquipType(TemplateMetaEquipmentSlot t)
 {
     Equipment.Where(x => x.template.equipmentType == t)
     .ToList()
     .ForEach(x => x.character = null);
 }