Example #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (LevelType != 0)
            {
                hash ^= LevelType.GetHashCode();
            }
            if (DayId != 0)
            {
                hash ^= DayId.GetHashCode();
            }
            if (LevelId != 0)
            {
                hash ^= LevelId.GetHashCode();
            }
            if (DailylevelName != 0)
            {
                hash ^= DailylevelName.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (LevelId != 0)
            {
                hash ^= LevelId.GetHashCode();
            }
            if (LevelType != 0)
            {
                hash ^= LevelType.GetHashCode();
            }
            if (LevelName.Length != 0)
            {
                hash ^= LevelName.GetHashCode();
            }
            if (LevelTheme.Length != 0)
            {
                hash ^= LevelTheme.GetHashCode();
            }
            if (LevelPicture != 0)
            {
                hash ^= LevelPicture.GetHashCode();
            }
            if (LevelUnlock != 0)
            {
                hash ^= LevelUnlock.GetHashCode();
            }
            if (Rating1 != 0)
            {
                hash ^= Rating1.GetHashCode();
            }
            hash ^= rating2_.GetHashCode();
            hash ^= rating3_.GetHashCode();
            hash ^= levelPixel_.GetHashCode();
            if (AdPuzzle != 0)
            {
                hash ^= AdPuzzle.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #3
0
 public override int GetHashCode()
 {
     return(type.GetHashCode() + index.GetHashCode());
 }