예제 #1
0
        public int CompareTo(SaveDataAttribute other)
        {
            int titleIdComparison = TitleId.CompareTo(other.TitleId);

            if (titleIdComparison != 0)
            {
                return(titleIdComparison);
            }
            int typeComparison = Type.CompareTo(other.Type);

            if (typeComparison != 0)
            {
                return(typeComparison);
            }
            int userIdComparison = UserId.CompareTo(other.UserId);

            if (userIdComparison != 0)
            {
                return(userIdComparison);
            }
            int saveDataIdComparison = SaveDataId.CompareTo(other.SaveDataId);

            if (saveDataIdComparison != 0)
            {
                return(saveDataIdComparison);
            }
            int rankComparison = Rank.CompareTo(other.Rank);

            if (rankComparison != 0)
            {
                return(rankComparison);
            }
            return(Index.CompareTo(other.Index));
        }
예제 #2
0
        public readonly int CompareTo(SaveDataAttribute other)
        {
            int titleIdComparison = ProgramId.CompareTo(other.ProgramId);

            if (titleIdComparison != 0)
            {
                return(titleIdComparison);
            }
            int typeComparison = ((int)Type).CompareTo((int)other.Type);

            if (typeComparison != 0)
            {
                return(typeComparison);
            }
            int userIdComparison = UserId.CompareTo(other.UserId);

            if (userIdComparison != 0)
            {
                return(userIdComparison);
            }
            int saveDataIdComparison = StaticSaveDataId.CompareTo(other.StaticSaveDataId);

            if (saveDataIdComparison != 0)
            {
                return(saveDataIdComparison);
            }
            int rankComparison = ((int)Rank).CompareTo((int)other.Rank);

            if (rankComparison != 0)
            {
                return(rankComparison);
            }
            return(Index.CompareTo(other.Index));
        }