Example #1
0
        private Point FindBaitPosition(string color, double fishRodSimulity, List <int> bounds)
        {
            var offsetColor = "1|0|" + color;

            for (int i = 2; i <= 6; i++)
            {
                offsetColor += offsetColor + "," + i + "|0|" + color;
            }
            var    colorPos = _dmSoft.FindMultiColorEx(bounds[0], bounds[1], bounds[2], bounds[3], color, offsetColor, fishRodSimulity, 0);
            object x, y;

            _dmSoft.GetResultPos(colorPos, 0, out x, out y);
            return(new Point(int.Parse(x.ToString()), int.Parse(y.ToString())));
        }