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