예제 #1
0
        public static bool NeedRespawn(DeviceData device)
        {
            String color = _data["pixels:respawn_button:color"];

            ushort.TryParse(_data["pixels:respawn_button:coords:x"], out ushort x);
            ushort.TryParse(_data["pixels:respawn_button:coords:y"], out ushort y);

            if (ADBCommandService.CheckPixel(device, x, y, color))
            {
                return(true);
            }
            return(false);
        }
예제 #2
0
        /// <summary>
        /// Check if the current state is the login screen
        /// </summary>
        /// <param name="device">The device data object.</param>
        /// <returns></returns>
        public static bool IsLoginScreen(DeviceData device)
        {
            String color = _data["pixels:login_screen:color"];

            ushort.TryParse(_data["pixels:login_screen:coords:x"], out ushort x);
            ushort.TryParse(_data["pixels:login_screen:coords:y"], out ushort y);

            if (ADBCommandService.CheckPixel(device, x, y, color))
            {
                return(true);
            }
            return(false);
        }