/// <summary> /// Removes an equip target from this item role. /// </summary> /// <param name="equiptarget">The target to be removed.</param> /// <exception cref="Exception"> /// Thrown if the equiptarget is not attached to this equip role. /// </exception> public void RemoveEquipTarget(EquipTarget equiptarget) { if (EquipTargets.Contains(equiptarget)) EquipTargets.Remove(equiptarget); else throw new Exception("Equip target not attached to this equip role!"); }
/// <summary> /// Adds an equip target to this equip item role. /// </summary> /// <param name="equiptarget">The target to be added.</param> /// <exception cref="Exception"> /// Thrown if the equiptarget has already been added to this item role. /// </exception> public void AddEquipTarget(EquipTarget equiptarget) { if (!EquipTargets.Contains(equiptarget)) EquipTargets.Add(equiptarget); else throw new Exception("Equip target already added to this equip role!"); }