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

            if (FrameId != 0)
            {
                hash ^= FrameId.GetHashCode();
            }
            if (ShapeType != global::Physics.Telemetry.Serialised.ShapeTypePacket.Obb)
            {
                hash ^= ShapeType.GetHashCode();
            }
            if (obbShape_ != null)
            {
                hash ^= ObbShape.GetHashCode();
            }
            if (tetrahedronShape_ != null)
            {
                hash ^= TetrahedronShape.GetHashCode();
            }
            if (convexHullShape_ != null)
            {
                hash ^= ConvexHullShape.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }