public NodeValue?Calculate(IValueCalculationContext context) { var modifiedContext = new ModifiedContext(_barFooConversion, _barConversion, _barSkillConversion, context); return(_transformedValue.Calculate(modifiedContext)); }
public NodeValue?Calculate(IValueCalculationContext context) { var applyingPools = from pool in Enum.GetValues(typeof(Pool)).Cast <Pool>() let targetPoolStat = _targetPools(pool) let targetPoolValue = context.GetValue(targetPoolStat) where targetPoolValue.HasValue && (Pool)targetPoolValue.Single() == _pool select pool; var modifiedContext = new ModifiedContext(this, applyingPools.ToList(), context); return(_transformedValue.Calculate(modifiedContext)); }
public NodeValue?Calculate(IValueCalculationContext context) { var modifiedContext = new ModifiedContext(_foo, _bar, context); return(_transformedValue.Calculate(modifiedContext)); }