public override void Refine(ItemDefinition currentDefinition, IList<ItemDefinition> allDefinitions) { if (AffectedType != null && !AffectedType.IsAssignableFrom(currentDefinition.ItemType)) return; var containable = currentDefinition.GetNamed(Name); currentDefinition.RemoveRange(containable); }
void RemoveContainable(ItemDefinition definition, ContainableElement editable) { definition.RemoveRange(definition.GetNamed(editable.Name)); }