public bool CanEquip(PlayerItem item, byte slot) { switch (item.ItemNumber.Category) { case ItemCategory.Costume: return(Costumes.CanEquip(item, (CostumeSlot)slot)); case ItemCategory.Weapon: return(Weapons.CanEquip(item, (WeaponSlot)slot)); case ItemCategory.Skill: return(Skills.CanEquip(item, (SkillSlot)slot)); default: return(false); } }