public static bool IsMouseInSafePosition() { using var log = Logger.LogBlock(); var currentPosition = GetCursorCurrentPosition(); var distance = SerializablePoint.Distance(Instance.LastActionPosition, currentPosition); Logger.Log($"Safe position check: current mouse position: {currentPosition}, last action position: {Instance.LastActionPosition}, distance: {distance}"); return(distance <= Instance.SafeAreaRadius); }
public ImageMatch(SerializablePoint clickPoint, SerializableRectangle matchRectangle) { ClickPoint = clickPoint; MatchRectangle = matchRectangle; }