Пример #1
0
 public static RuleStrategyBuilder AddPlus(this RuleStrategyBuilder builder)
 => builder.Add(new PlusDecorator());
Пример #2
0
 public static RuleStrategyBuilder AddElemental(this RuleStrategyBuilder builder)
 => builder.Add(new ElementalDecorator());
Пример #3
0
 public static RuleStrategyBuilder AddSame(this RuleStrategyBuilder builder, bool wall)
 => builder.Add(new SameDecorator(wall));