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);
        }
Exemplo n.º 2
0
 void RemoveContainable(ItemDefinition definition, ContainableElement editable)
 {
     definition.Remove(definition.Get(editable.Name));
 }