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 override int GetHashCode()
        {
            int hash = 1;

            if (lobby_ != null)
            {
                hash ^= Lobby.GetHashCode();
            }
            if (raidBattle_ != null)
            {
                hash ^= RaidBattle.GetHashCode();
            }
            if (PlayerCanJoinLobby != false)
            {
                hash ^= PlayerCanJoinLobby.GetHashCode();
            }
            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (raidInfo_ != null)
            {
                hash ^= RaidInfo.GetHashCode();
            }
            if (TicketUsed != false)
            {
                hash ^= TicketUsed.GetHashCode();
            }
            if (FreeTicketAvailable != false)
            {
                hash ^= FreeTicketAvailable.GetHashCode();
            }
            if (ThrowsRemaining != 0)
            {
                hash ^= ThrowsRemaining.GetHashCode();
            }
            if (ReceivedRewards != false)
            {
                hash ^= ReceivedRewards.GetHashCode();
            }
            if (NumPlayersInLobby != 0)
            {
                hash ^= NumPlayersInLobby.GetHashCode();
            }
            if (ServerMs != 0L)
            {
                hash ^= ServerMs.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (MissPercent != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MissPercent);
            }
            if (CapturedPokemonId != 0UL)
            {
                hash ^= CapturedPokemonId.GetHashCode();
            }
            if (captureAward_ != null)
            {
                hash ^= CaptureAward.GetHashCode();
            }
            if (CaptureReason != 0)
            {
                hash ^= CaptureReason.GetHashCode();
            }
            if (DisplayPokedexId != 0)
            {
                hash ^= DisplayPokedexId.GetHashCode();
            }
            if (ThrowsRemaining != 0)
            {
                hash ^= ThrowsRemaining.GetHashCode();
            }
            if (pokemonDisplay_ != null)
            {
                hash ^= PokemonDisplay.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }