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

            if (wildPokemon_ != null)
            {
                hash ^= WildPokemon.GetHashCode();
            }
            if (Background != 0)
            {
                hash ^= Background.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (captureProbability_ != null)
            {
                hash ^= CaptureProbability.GetHashCode();
            }
            if (ActiveItem != 0)
            {
                hash ^= ActiveItem.GetHashCode();
            }
            if (ArplusAttemptsUntilFlee != 0)
            {
                hash ^= ArplusAttemptsUntilFlee.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (pokemonData_ != null)
            {
                hash ^= PokemonData.GetHashCode();
            }
            if (captureProbability_ != null)
            {
                hash ^= CaptureProbability.GetHashCode();
            }
            if (ActiveItem != 0)
            {
                hash ^= ActiveItem.GetHashCode();
            }
            if (ArplusAttemptsUntilFlee != 0)
            {
                hash ^= ArplusAttemptsUntilFlee.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }