TESVSnip.Domain.Model.BatchElement.Evaluate C# (CSharp) Method

Evaluate() public method

public Evaluate ( Record r ) : bool
r Record
return bool
        public override bool Evaluate(Record r)
        {
            bool any = false;
            foreach (bool value in r.SubRecords.Where(x => x.Name == this.Parent.Record.name).Select(x => this.Evaluate(r, x)))
            {
                if (!value)
                {
                    return false;
                }

                any = true;
            }

            return any;
        }

Same methods

BatchElement::Evaluate ( Record r, SubRecord sr ) : bool
BatchElement::Evaluate ( Record r, SubRecord sr, Element se ) : bool