Beispiel #1
0
        public override int GetHashCode()
        {
            int result = 1;

            result = (result * 397) ^ Id.GetHashCode();
            result = (result * 397) ^ Level.GetHashCode();
            result = (result * 397) ^ LevelId.GetHashCode();
            result = (result * 397) ^ (LevelName != null ? LevelName.GetHashCode() : 0);
            return(result);
        }
Beispiel #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);
        }
Beispiel #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (InfoId != 0)
            {
                hash ^= InfoId.GetHashCode();
            }
            if (InfoType != 0)
            {
                hash ^= InfoType.GetHashCode();
            }
            if (LevelName.Length != 0)
            {
                hash ^= LevelName.GetHashCode();
            }
            if (LevelDesc.Length != 0)
            {
                hash ^= LevelDesc.GetHashCode();
            }
            return(hash);
        }