protected override void OnProcessOutputSchema(MutableObject newSchema)
        {
            foreach (var entry in Scope.GetEntries(newSchema))
            {
                PatchingTarget.SetValue(true, entry);
            }

            Router.TransmitAllSchema(newSchema);
        }
        public override IEnumerator ReceivePayload(VisualPayload payload)
        {
            foreach (var entry in Scope.GetEntries(payload.Data))
            {
                PatchingTarget.SetValue((Availability.GetValue(entry) < .1f) && (Rand.NextDouble() > .4), entry);
            }

            var iterator = Router.TransmitAll(payload);

            while (iterator.MoveNext())
            {
                yield return(null);
            }
        }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="regex">A regular expression to match the name of the element to ignore.</param>
 /// <param name="target">Restricts the attribute to affect only elements of any of these types.</param>
 public DisablePatchingByNameAttribute(string regex, PatchingTarget target = PatchingTarget.Member)
 {
     Regex = regex;
     Target = target;
 }
Example #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="regex">A regular expression to match the name of the element to ignore.</param>
 /// <param name="target">Restricts the attribute to affect only elements of any of these types.</param>
 public DisablePatchingByNameAttribute(string regex, PatchingTarget target = PatchingTarget.Member)
 {
     Regex  = regex;
     Target = target;
 }