PRoConEvents.MULTIbalancer.DescendingSPM C# (CSharp) Method

DescendingSPM() public static method

public static DescendingSPM ( PlayerModel lhs, PlayerModel rhs ) : int
lhs PlayerModel
rhs PlayerModel
return int
        public static int DescendingSPM(PlayerModel lhs, PlayerModel rhs)
        {
            if (lhs == null) {
            return ((rhs == null) ? 0 : -1);
            } else if (rhs == null) {
            return ((lhs == null) ? 0 : 1);
            }
            double lSPM = (lhs.StatsVerified) ? lhs.SPM : lhs.SPMRound;
            double rSPM = (rhs.StatsVerified) ? rhs.SPM : rhs.SPMRound;
            if (lSPM < rSPM) return 1;
            if (lSPM > rSPM) return -1;
            return 0;
        }
MULTIbalancer