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

            if (pokemon_ != null)
            {
                hash ^= Pokemon.GetHashCode();
            }
            if (DeployMs != 0L)
            {
                hash ^= DeployMs.GetHashCode();
            }
            if (CpWhenDeployed != 0)
            {
                hash ^= CpWhenDeployed.GetHashCode();
            }
            if (MotivationNow != 0D)
            {
                hash ^= MotivationNow.GetHashCode();
            }
            if (CpNow != 0)
            {
                hash ^= CpNow.GetHashCode();
            }
            if (BerryValue != 0F)
            {
                hash ^= BerryValue.GetHashCode();
            }
            if (FeedCooldownDurationMillis != 0L)
            {
                hash ^= FeedCooldownDurationMillis.GetHashCode();
            }
            hash ^= foodValue_.GetHashCode();
            return(hash);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (pokemon_ != null)
            {
                hash ^= Pokemon.GetHashCode();
            }
            if (DeployMs != 0L)
            {
                hash ^= DeployMs.GetHashCode();
            }
            if (CpWhenDeployed != 0)
            {
                hash ^= CpWhenDeployed.GetHashCode();
            }
            if (MotivationNow != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MotivationNow);
            }
            if (CpNow != 0)
            {
                hash ^= CpNow.GetHashCode();
            }
            if (BerryValue != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(BerryValue);
            }
            if (FeedCooldownDurationMillis != 0L)
            {
                hash ^= FeedCooldownDurationMillis.GetHashCode();
            }
            hash ^= foodValue_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }