コード例 #1
0
 public CastRateStatBuilder(IStatFactory statFactory)
     : this(statFactory,
            LeafCoreStatBuilder.FromIdentity(statFactory, "CastRate", typeof(double)),
            new DamageStatConcretizer(statFactory, new DamageSpecificationBuilder()).WithHits(),
            (_, s) => new[] { s })
 {
 }
コード例 #2
0
 public static IDamageRelatedStatBuilder DamageRelatedFromIdentity(
     IStatFactory statFactory, string identity, Type dataType,
     bool canApplyToSkillDamage = false, bool canApplyToAilmentDamage = false) =>
 DamageRelatedStatBuilder.Create(statFactory,
                                 LeafCoreStatBuilder.FromIdentity(statFactory, identity, dataType),
                                 canApplyToSkillDamage, canApplyToAilmentDamage);
コード例 #3
0
 public static IStatBuilder FromIdentity(
     IStatFactory statFactory, string identity, Type dataType,
     ExplicitRegistrationType explicitRegistrationType = null) =>
 new StatBuilder(statFactory,
                 LeafCoreStatBuilder.FromIdentity(statFactory, identity, dataType, explicitRegistrationType));
コード例 #4
0
 private IStatBuilder FromIdentity(
     string identity, Type dataType, ExplicitRegistrationType explicitRegistrationType = null) =>
 With(LeafCoreStatBuilder.FromIdentity(StatFactory, identity, dataType, explicitRegistrationType));
コード例 #5
0
 public EvasionStatBuilder(IStatFactory statFactory)
     : base(statFactory, LeafCoreStatBuilder.FromIdentity(statFactory, Prefix, typeof(int)))
 {
 }
コード例 #6
0
 private IStatBuilder FromIdentity(Type dataType, [CallerMemberName] string identity = null)
 => With(LeafCoreStatBuilder.FromIdentity(StatFactory, Prefix + "." + identity, dataType));