Exemplo n.º 1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            m_model           = DataContext as MainModel;
            m_model.DropGold  = FishingBoat.GetBoolean("DropGold");
            m_model.DropBlue  = FishingBoat.GetBoolean("DropBlue");
            m_model.DropGreen = FishingBoat.GetBoolean("DropGreen");
            m_model.Templates = FishingBoat.GetText("Templates");

            m_logFunc = new FishingBoat.LogFunc(LogFunc);
            FishingBoat.LogCallback(m_logFunc);

            m_running = true;
            m_thread1 = new Thread(Thread_Func1);
            m_thread2 = new Thread(Thread_Func2);
            m_thread1.Start();
            m_thread2.Start();
        }
Exemplo n.º 2
0
        private string StepToText(FishingSteps step)
        {
            switch (step)
            {
            case FishingSteps.START: return("準備");

            case FishingSteps.START_LOOP: return("等待開始...");

            case FishingSteps.STOP: return("收竿");

            case FishingSteps.STOP_LOOP: return("等待重試...");

            case FishingSteps.GUESS_WASD: return("文字辨識");

            case FishingSteps.INPUT_TEXT: return(FishingBoat.GetText("WASD"));

            case FishingSteps.TAKE_DROP: return("撿取物品");

            case FishingSteps.RESTART: return("拋竿");
            }

            return(null);
        }