Esempio n. 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Evolution != 0)
            {
                hash ^= Evolution.GetHashCode();
            }
            if (EvolutionItemRequirement != 0)
            {
                hash ^= EvolutionItemRequirement.GetHashCode();
            }
            if (CandyCost != 0)
            {
                hash ^= CandyCost.GetHashCode();
            }
            if (KmBuddyDistanceRequirement != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(KmBuddyDistanceRequirement);
            }
            if (Form != 0)
            {
                hash ^= Form.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Evolution != 0)
            {
                hash ^= Evolution.GetHashCode();
            }
            if (EvolutionItemRequirement != 0)
            {
                hash ^= EvolutionItemRequirement.GetHashCode();
            }
            if (CandyCost != 0)
            {
                hash ^= CandyCost.GetHashCode();
            }
            if (KmBuddyDistanceRequirement != 0F)
            {
                hash ^= KmBuddyDistanceRequirement.GetHashCode();
            }
            return(hash);
        }