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);
		}
Esempio n. 2
0
 void RemoveContainable(ItemDefinition definition, ContainableElement editable)
 {
     definition.RemoveRange(definition.GetNamed(editable.Name));
 }