Beispiel #1
0
        public static int Compare(ICapsule a, ICapsule b)
        {
            if (a == b)
            {
                return(0);
            }
            if (a == null)
            {
                return(-1);
            }
            if (b == null)
            {
                return(1);
            }
            int t = a.GetTicksToStart().CompareTo(b.GetTicksToStart());

            if (t != 0)
            {
                return(t);
            }
            return(Equalizer.Compare(a.PeekAtNextMinion(), b.PeekAtNextMinion()));
        }
Beispiel #2
0
 int IComparer.Compare(object x, object y)
 {
     return(Equalizer.Compare(x as ICapsule, y as ICapsule));
 }