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

            if (TrainerBaseId != 0UL)
            {
                hash ^= TrainerBaseId.GetHashCode();
            }
            if (ActorId.Length != 0)
            {
                hash ^= ActorId.GetHashCode();
            }
            if (TrainerNameId.Length != 0)
            {
                hash ^= TrainerNameId.GetHashCode();
            }
            if (U4 != 0)
            {
                hash ^= U4.GetHashCode();
            }
            if (U5.Length != 0)
            {
                hash ^= U5.GetHashCode();
            }
            if (U6 != 0)
            {
                hash ^= U6.GetHashCode();
            }
            if (U7 != 0)
            {
                hash ^= U7.GetHashCode();
            }
            if (Gender != 0)
            {
                hash ^= Gender.GetHashCode();
            }
            if (PokeballId.Length != 0)
            {
                hash ^= PokeballId.GetHashCode();
            }
            if (IsGeneric != 0)
            {
                hash ^= IsGeneric.GetHashCode();
            }
            if (BattleBgmId.Length != 0)
            {
                hash ^= BattleBgmId.GetHashCode();
            }
            if (ResultBgmId.Length != 0)
            {
                hash ^= ResultBgmId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = IsPredefined.GetHashCode();
         hashCode = (hashCode * 397) ^ (Text != null ? Text.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsGeneric.GetHashCode();
         hashCode = (hashCode * 397) ^ IsReferenceType.GetHashCode();
         return(hashCode);
     }
 }