Exemple #1
0
 private void DrawInfoUnderMouseCursor()
 {
     if (mouseMapPosition.GetHashCode() > 0)
     {
         string text = $"({mouseMapPosition.X:####};{mouseMapPosition.Y:####})";
         PrintMid(mouseMapPosition.X, mouseMapPosition.Y, text, text);
     }
 }
Exemple #2
0
        public override int GetHashCode()
        {
            int hashCode = 0;

            unchecked {
                hashCode += 1000000007 * Position.GetHashCode();
                hashCode += 1000000009 * Normal.GetHashCode();
                hashCode += 1000000021 * Texture.GetHashCode();
                hashCode += 1000000033 * Color.GetHashCode();
            }
            return(hashCode);
        }
Exemple #3
0
 public override int GetHashCode()
 {
     return(id.GetHashCode() + (id * rect.GetHashCode()) * moveDelta.GetHashCode());
 }