Exemplo n.º 1
0
        private void Update(EvaluationContext context)
        {
            var overwrites = context.VariationOverwrites;

            // var id = new Variator.VariationId(Guid.Empty, Guid.Empty);
            if (!overwrites.TryGetValue(Variator.VariationId.EmptySet, out var entry))
            {
                entry = new VariationSelector();
                overwrites.Add(Variator.VariationId.EmptySet, entry);
            }

            entry.Index1 = Index1.GetValue(context);
            entry.Index2 = Index2.GetValue(context);
            entry.Weight = Weight.GetValue(context);
            Result.Value = Input.GetValue(context);
            overwrites.Remove(Variator.VariationId.EmptySet);
        }