示例#1
0
        public override int GetHashCode()
        {
            int hashCode = -444241936;

            hashCode = hashCode * -1521134295 + RotationDirection.GetHashCode();
            hashCode = hashCode * -1521134295 + Rotation.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Texture2D> .Default.GetHashCode(texture);

            hashCode = hashCode * -1521134295 + speedBounds.GetHashCode();
            hashCode = hashCode * -1521134295 + scaleBounds.GetHashCode();
            hashCode = hashCode * -1521134295 + speed.GetHashCode();
            return(hashCode);
        }
示例#2
0
        public override int GetHashCode()
        {
            int hashCode = -438475418;

            hashCode = hashCode * -1521134295 + Rotation.GetHashCode();
            hashCode = hashCode * -1521134295 + RotationDirection.GetHashCode();
            hashCode = hashCode * -1521134295 + Scale.GetHashCode();
            hashCode = hashCode * -1521134295 + ScaleDirection.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Texture2D> .Default.GetHashCode(texture);

            hashCode = hashCode * -1521134295 + scaleSpeedBounds.GetHashCode();
            hashCode = hashCode * -1521134295 + scaleBounds.GetHashCode();
            hashCode = hashCode * -1521134295 + scaleSpeed.GetHashCode();
            hashCode = hashCode * -1521134295 + rotationSpeedBounds.GetHashCode();
            hashCode = hashCode * -1521134295 + rotationBounds.GetHashCode();
            hashCode = hashCode * -1521134295 + rotationSpeed.GetHashCode();
            return(hashCode);
        }