Exemplo n.º 1
0
        public static RuneFilter Dominant(RuneFilter child, RuneFilter parent)
        {
            RuneFilter m = new RuneFilter();

            m.Flat    = child.Flat ?? parent.Flat;
            m.Percent = child.Percent ?? parent.Percent;
            m.Test    = child.Test ?? parent.Test;

            return(m);
        }
Exemplo n.º 2
0
        // Gets the minimum divisor from A and B per type
        public static RuneFilter Min(RuneFilter a, RuneFilter b)
        {
            RuneFilter m = new RuneFilter();

            m.Flat    = MinNZero(a.Flat, b.Flat);
            m.Percent = MinNZero(a.Percent, b.Percent);
            m.Test    = MinNZero(a.Test, b.Test);

            return(m);
        }
Exemplo n.º 3
0
 public RuneFilter(RuneFilter rhs)
 {
     Flat    = rhs.Flat;
     Percent = rhs.Percent;
     Test    = rhs.Test;
 }