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

            if (IncubatorType != 0)
            {
                hash ^= IncubatorType.GetHashCode();
            }
            if (Uses != 0)
            {
                hash ^= Uses.GetHashCode();
            }
            if (DistanceMultiplier != 0F)
            {
                hash ^= DistanceMultiplier.GetHashCode();
            }
            return(hash);
        }
示例#2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (IncubatorType != 0)
            {
                hash ^= IncubatorType.GetHashCode();
            }
            if (Uses != 0)
            {
                hash ^= Uses.GetHashCode();
            }
            if (DistanceMultiplier != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DistanceMultiplier);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#3
0
文件: Move.cs 项目: kwsch/ReMasters
        public override int GetHashCode()
        {
            int hash = 1;

            if (MoveId != 0)
            {
                hash ^= MoveId.GetHashCode();
            }
            if (Category != 0)
            {
                hash ^= Category.GetHashCode();
            }
            if (U3 != 0)
            {
                hash ^= U3.GetHashCode();
            }
            if (User != 0)
            {
                hash ^= User.GetHashCode();
            }
            if (Group != 0)
            {
                hash ^= Group.GetHashCode();
            }
            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (Target != 0)
            {
                hash ^= Target.GetHashCode();
            }
            if (U8 != 0)
            {
                hash ^= U8.GetHashCode();
            }
            if (GaugeDrain != 0)
            {
                hash ^= GaugeDrain.GetHashCode();
            }
            if (Power != 0)
            {
                hash ^= Power.GetHashCode();
            }
            if (Accuracy != 0)
            {
                hash ^= Accuracy.GetHashCode();
            }
            if (Uses != 0)
            {
                hash ^= Uses.GetHashCode();
            }
            if (Tags != 0)
            {
                hash ^= Tags.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MoveId != 0)
            {
                hash ^= MoveId.GetHashCode();
            }
            if (Category != global::ReMastersLib.Category.NoCategory)
            {
                hash ^= Category.GetHashCode();
            }
            if (U3 != 0)
            {
                hash ^= U3.GetHashCode();
            }
            if (User != global::ReMastersLib.User.Pokemon)
            {
                hash ^= User.GetHashCode();
            }
            if (Group != global::ReMastersLib.Group.None)
            {
                hash ^= Group.GetHashCode();
            }
            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (Target != global::ReMastersLib.Target.AllySingle)
            {
                hash ^= Target.GetHashCode();
            }
            if (U8 != 0)
            {
                hash ^= U8.GetHashCode();
            }
            if (GaugeDrain != 0)
            {
                hash ^= GaugeDrain.GetHashCode();
            }
            if (Power != 0)
            {
                hash ^= Power.GetHashCode();
            }
            if (Accuracy != 0)
            {
                hash ^= Accuracy.GetHashCode();
            }
            if (Uses != 0)
            {
                hash ^= Uses.GetHashCode();
            }
            if (Tags != global::ReMastersLib.Tag.None)
            {
                hash ^= Tags.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }