Exemplo n.º 1
0
 private IConditionBuilder KeywordCondition(IDamageSpecification spec, IKeywordBuilder keyword) =>
 ValueConditionBuilder.Create((ps, k) => BuildKeywordStat(spec, ps, k), keyword);
Exemplo n.º 2
0
 private IConditionBuilder KeywordCondition(IDamageSpecification spec, IKeywordBuilder keyword)
 => ValueConditionBuilder.Create(
     (ps, k) => BuildKeywordStat(spec, ps.ModifierSourceEntity, k.Build(ps)), keyword);
 public IConditionBuilder Has(Tags tag)
 => ValueConditionBuilder.Create(ItemTags.Value, v => ToTags(v).HasFlag(tag),
                                 v => "((Tags) " + v + ").HasFlag(" + tag.GetName() + ")");
Exemplo n.º 4
0
 public IConditionBuilder Has(Tags tag) =>
 ValueConditionBuilder.Create(ItemTags.Value, v => ToTags(v).HasFlag(tag),
                              v => $"((Tags) {v}).HasFlag({tag})");
Exemplo n.º 5
0
 private IConditionBuilder KeywordCondition(IKeywordBuilder keyword) =>
 ValueConditionBuilder.Create(BuildKeywordStat, keyword);
Exemplo n.º 6
0
 public IConditionBuilder GreaterThan(IValueBuilder other) =>
 ValueConditionBuilder.Create(this, other,
                              (left, right) => left.GetValueOrDefault() > right.GetValueOrDefault(), (l, r) => l + " > " + r);
Exemplo n.º 7
0
 public IConditionBuilder Eq(IValueBuilder other) =>
 ValueConditionBuilder.Create(this, other, (left, right) => left == right, (l, r) => l + " == " + r);
Exemplo n.º 8
0
 public IConditionBuilder Eq(IValueBuilder other) =>
 ValueConditionBuilder.Create(this, other, (left, right) => left == right, (l, r) => $"{l} == {r}");