public override int GetHashCode()
        {
            int hash = 1;

            if (pokemon_ != null)
            {
                hash ^= Pokemon.GetHashCode();
            }
            if (EncounterId != 0L)
            {
                hash ^= EncounterId.GetHashCode();
            }
            if (SpawnpointId.Length != 0)
            {
                hash ^= SpawnpointId.GetHashCode();
            }
            if (captureProbabilities_ != null)
            {
                hash ^= CaptureProbabilities.GetHashCode();
            }
            if (ThrowsRemaining != 0)
            {
                hash ^= ThrowsRemaining.GetHashCode();
            }
            if (RaidLevel != 0)
            {
                hash ^= RaidLevel.GetHashCode();
            }
            if (FortId.Length != 0)
            {
                hash ^= FortId.GetHashCode();
            }
            return(hash);
        }
Example #2
0
 public void MergeFrom(RaidEncounter other)
 {
     if (other == null)
     {
         return;
     }
     if (other.pokemon_ != null)
     {
         if (pokemon_ == null)
         {
             pokemon_ = new global::POGOProtos.Data.PokemonData();
         }
         Pokemon.MergeFrom(other.Pokemon);
     }
     if (other.EncounterId != 0L)
     {
         EncounterId = other.EncounterId;
     }
     if (other.SpawnpointId.Length != 0)
     {
         SpawnpointId = other.SpawnpointId;
     }
     if (other.captureProbabilities_ != null)
     {
         if (captureProbabilities_ == null)
         {
             captureProbabilities_ = new global::POGOProtos.Data.Capture.CaptureProbability();
         }
         CaptureProbabilities.MergeFrom(other.CaptureProbabilities);
     }
     if (other.ThrowsRemaining != 0)
     {
         ThrowsRemaining = other.ThrowsRemaining;
     }
     if (other.RaidLevel != 0)
     {
         RaidLevel = other.RaidLevel;
     }
     if (other.FortId.Length != 0)
     {
         FortId = other.FortId;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }