public override void Invoke(bool isSimulate, bool async) { log.Debug(this.ToString()); StateContainer.EnterResourceBuildingList(); if (isSimulate) { Point target; switch (Type) { case FacilityType.Tita: target = new Point(118, 644); break; case FacilityType.He3: target = new Point(784, 654); break; case FacilityType.Loli: target = new Point(308, 460); break; case FacilityType.Research: target = new Point(463, 600); break; case FacilityType.Dock: target = new Point(666, 156); break; case FacilityType.Defense: target = new Point(600, 475); break; default: target = new Point(118, 644); break; } sim.Mouse.MoveMouseTo(target.X * xf, target.Y * yf).Sleep(100).LeftButtonClick().Sleep(1000); } }