Patcher.Rules.RuleRunner.DoUpdate C# (CSharp) Method

DoUpdate() private method

private DoUpdate ( FormProxy sourceProxy, FormProxy updateProxy ) : void
sourceProxy FormProxy
updateProxy FormProxy
return void
        private void DoUpdate(FormProxy sourceProxy, FormProxy updateProxy)
        {
            if (rule.Update != null)
            {
                // Copy of the source form will be chnaged
                var targetForm = sourceProxy.Form.CopyForm(false);
                updateProxy.WithForm(targetForm);
                if (rule.Update.Method(sourceProxy, updateProxy))
                {
                    engine.ActivePlugin.AddForm(targetForm);
                    Updated++;
                }
            }
        }