public void Add([RegexPattern] string regex, IStatBuilder stat, Func <ValueBuilder, ValueBuilder> converter) { var builder = ModifierBuilder .WithStat(stat) .WithValueConverter(_valueFactory.WrapValueConverter(converter)); Add(regex, builder); }
public void Add([RegexPattern] string regex, Func <ValueBuilder, ValueBuilder> func) { Add(regex, ModifierBuilder.WithValueConverter(_valueFactory.WrapValueConverter(func))); }