예제 #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            logTools.OnError += LogTools_OnError;
            logTools.OnInfo  += LogTools_OnInfo;

            configMgr.PCRRegion = PCRRegion.Taiwan;

            AdbTools.GetInstance().ConnectToMumuAdbServer();


            var es = EmptyScript.GetInstance();

            CaptureMumu();
            var unit     = PCRUnit.FromUnitName("妹弓", 3);
            var unitList = new List <PCRUnit>()
            {
                unit
            };

            //var isok = es.IsBattleSceneUnitUBReady(viewportMat, viewportRect, 1);
            //es.GetBattleSceneUnitsStatus(viewportMat, viewportRect);
            //es.SelectBattleTeam(viewportMat, viewportRect, unitList);
            //var units = es.GetBattleTeamInfo(viewportMat, viewportRect);
            //es.SelectBattleTeam(viewportMat, viewportRect, units);
            RunScript();
            //var r = es.GetBattleLeftTime(viewportMat, viewportRect);
        }
예제 #2
0
        private void menuTapPCRMenu_Click(object sender, EventArgs e)
        {
            var viewportRect = mumuTools.GetMumuViewportRect();

            EmptyScript.GetInstance().ClickTab(viewportRect, PCRTab.Menu);
        }