示例#1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MotivationIncrease != 0F)
            {
                hash ^= MotivationIncrease.GetHashCode();
            }
            if (CpIncrease != 0)
            {
                hash ^= CpIncrease.GetHashCode();
            }
            if (FoodItem != 0)
            {
                hash ^= FoodItem.GetHashCode();
            }
            return(hash);
        }
示例#2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MotivationIncrease != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MotivationIncrease);
            }
            if (CpIncrease != 0)
            {
                hash ^= CpIncrease.GetHashCode();
            }
            if (FoodItem != 0)
            {
                hash ^= FoodItem.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }