Beispiel #1
0
        private static Modifier CreateModifier(
            IStatBuilder statBuilder, IFormBuilder formBuilder, IValueBuilder valueBuilder)
        {
            var(stats, sourceConverter, statValueConverter) = statBuilder.Build();
            var(form, formValueConverter) = formBuilder.Build();
            var value = formValueConverter(statValueConverter(valueBuilder)).Build();

            return(new Modifier(stats, form, value, sourceConverter(new ModifierSource.Global())));
        }
Beispiel #2
0
        private static IEnumerable <Modifier> CreateModifier(
            IStatBuilder statBuilder, IFormBuilder formBuilder, IValueBuilder valueBuilder)
        {
            var statBuilderResults = statBuilder.Build(default(BuildParameters).With(new ModifierSource.Global()));

            var(form, formValueConverter) = formBuilder.Build();
            foreach (var(stats, source, statValueConverter) in statBuilderResults)
            {
                var value = formValueConverter(statValueConverter(valueBuilder)).Build(default);