public AilmentBuilderCollection(IStatFactory statFactory, IReadOnlyList <Ailment> keys) : base(keys, a => new AilmentBuilder(statFactory, CoreBuilder.Create(a))) { }
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")) { }
public BlockActionBuilder(IStatFactory statFactory, IEntityBuilder entity) : base(statFactory, CoreBuilder.Create("Block"), entity) { }
private static ICoreBuilder <SkillDefinition> CreateCoreBuilder(string identifier, int numericId = 0) => CoreBuilder.Create(new SkillDefinition(identifier, numericId, new Keyword[0], false));
private static BuffBuilder CreateSut() => new BuffBuilder(StatFactory, CoreBuilder.Create("test"));
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) { }
public ISkillBuilder FromName(string skillName) => new SkillBuilder(_statFactory, CoreBuilder.Create(_skills.Value[skillName.ToLowerInvariant()]));
public GroundEffectBuilders(IStatFactory statFactory) { Consecrated = new EffectBuilder(statFactory, CoreBuilder.Create("ConsecratedGround")); }