public AilmentBuilderCollection(IStatFactory statFactory, IReadOnlyList <Ailment> keys)
     : base(keys, a => new AilmentBuilder(statFactory, CoreBuilder.Create(a)))
 {
 }
Пример #2
0
 private static EffectBuilder CreateSut() =>
 new EffectBuilder(new StatFactory(), CoreBuilder.Create("test"));
 public KnockbackEffectBuilder(IStatFactory statFactory)
     : base(statFactory, CoreBuilder.Create("Knockback"))
 {
 }
 public DamageTypeBuilder(IStatFactory statFactory, DamageType damageType)
     : this(statFactory, CoreBuilder.Create(new[] { damageType }))
 {
 }
 public GroundEffectBuilder(IStatFactory statFactory)
     : base(statFactory, CoreBuilder.Create("ConsecratedGround"))
 {
 }
 public StunEffectBuilder(IStatFactory statFactory)
     : base(statFactory, CoreBuilder.Create("Stun"))
 {
 }
Пример #7
0
 public BlockActionBuilder(IStatFactory statFactory, IEntityBuilder entity)
     : base(statFactory, CoreBuilder.Create("Block"), entity)
 {
 }
Пример #8
0
 private static ICoreBuilder <SkillDefinition> CreateCoreBuilder(string identifier, int numericId = 0) =>
 CoreBuilder.Create(new SkillDefinition(identifier, numericId, new Keyword[0], false));
Пример #9
0
 private static BuffBuilder CreateSut() =>
 new BuffBuilder(StatFactory, CoreBuilder.Create("test"));
Пример #10
0
        public void AddStatResolveResolvesIdentity()
        {
            var expectedIdentity = "buff";
            var statBuilder      = StatBuilderUtils.FromIdentity(StatFactory, "stat", null);
            var resolveContext   = new ResolveContext(null, null);
            var sut = new BuffBuilder(StatFactory, new UnresolvedCoreBuilder <string>("unresolved",
                                                                                      c => CoreBuilder.Create(expectedIdentity)));

            var builder = sut.AddStat(statBuilder).Resolve(resolveContext);
            var value   = builder.BuildToSingleResult().ValueConverter(new ValueBuilderImpl(1));
        }
 public CriticalStrikeActionBuilder(IStatFactory statFactory, IEntityBuilder entity)
     : base(statFactory, CoreBuilder.Create("CriticalStrike"), entity)
 {
 }
Пример #12
0
 public ISkillBuilder FromName(string skillName) =>
 new SkillBuilder(_statFactory, CoreBuilder.Create(_skills.Value[skillName.ToLowerInvariant()]));
Пример #13
0
 public GroundEffectBuilders(IStatFactory statFactory)
 {
     Consecrated = new EffectBuilder(statFactory, CoreBuilder.Create("ConsecratedGround"));
 }