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);
        }
Пример #2
0
        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();
            }
            return(hash);
        }
Пример #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (WildPokemon != 0)
            {
                hash ^= WildPokemon.GetHashCode();
            }
            if (Fort != 0)
            {
                hash ^= Fort.GetHashCode();
            }
            if (FortsNearby != 0)
            {
                hash ^= FortsNearby.GetHashCode();
            }
            return(hash);
        }