public SkillPusher() { PusherInfo pusherSkill5 = new PusherInfo(); pusherSkill5.Code = Settings.Skill5; pusherSkill5.Delay = Settings.Skill5Delay; CreatePusher(pusherSkill5); }
protected void CreatePusher(PusherInfo pusherInfo) { Timer timer = new Timer(); timer.Interval = pusherInfo.Delay; timer.Tick += OnTick; timer.Start(); ActivePushers.Add(new InstancePusherInfo() { AfterPush = pusherInfo.AfterPush, BeforePush = pusherInfo.BeforePush, Delay = pusherInfo.Delay, Code = pusherInfo.Code, Instance = timer }); }
public AttackPusher() { PusherInfo pusherInfo = new PusherInfo(); pusherInfo.BeforePush = () => { if (CenterAngle == -1) { return; } var point = NativeApiWrapper.GetScreenRotatedPoint((int)CenterAngle); AvailableInput.MouseMove(point); }; pusherInfo.Code = Settings.MainAttack; pusherInfo.Delay = Settings.AttackDelay; CreatePusher(pusherInfo); }
public FlaskPusher() { if (Settings.Flask1Delay != int.MaxValue) { PusherInfo pusherInfoFlask1 = new PusherInfo(); pusherInfoFlask1.Code = Settings.Flask1; pusherInfoFlask1.Delay = Settings.Flask1Delay; CreatePusher(pusherInfoFlask1); } if (Settings.Flask2Delay != int.MaxValue) { PusherInfo pusherInfoFlask2 = new PusherInfo(); pusherInfoFlask2.Code = Settings.Flask2; pusherInfoFlask2.Delay = Settings.Flask2Delay; CreatePusher(pusherInfoFlask2); } if (Settings.Flask3Delay != int.MaxValue) { PusherInfo pusherInfoFlask3 = new PusherInfo(); pusherInfoFlask3.Code = Settings.Flask3; pusherInfoFlask3.Delay = Settings.Flask3Delay; CreatePusher(pusherInfoFlask3); } if (Settings.Flask4Delay != int.MaxValue) { PusherInfo pusherInfoFlask4 = new PusherInfo(); pusherInfoFlask4.Code = Settings.Flask4; pusherInfoFlask4.Delay = Settings.Flask4Delay; CreatePusher(pusherInfoFlask4); } if (Settings.Flask5Delay != int.MaxValue) { PusherInfo pusherInfoFlask5 = new PusherInfo(); pusherInfoFlask5.Code = Settings.Flask5; pusherInfoFlask5.Delay = Settings.Flask5Delay; CreatePusher(pusherInfoFlask5); } }