private void DrawInfoUnderMouseCursor() { if (mouseMapPosition.GetHashCode() > 0) { string text = $"({mouseMapPosition.X:####};{mouseMapPosition.Y:####})"; PrintMid(mouseMapPosition.X, mouseMapPosition.Y, text, text); } }
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); }
public override int GetHashCode() { return(id.GetHashCode() + (id * rect.GetHashCode()) * moveDelta.GetHashCode()); }