示例#1
0
        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);
        }
示例#2
0
 public ImageMatch(SerializablePoint clickPoint, SerializableRectangle matchRectangle)
 {
     ClickPoint     = clickPoint;
     MatchRectangle = matchRectangle;
 }