public Hack(string processName, int tickRate = 60, bool createOverlay = true, bool limitFrames = true, int timeOut = -1) { Input = new HackInput(); Process = EUCProcess.WaitForProcess(processName, timeOut); ticker = new LoopTicker(tickRate, limitFrames); modules = new List <HackModule>(); if (createOverlay) { Overlay = new HackOverlay(Process, Input); Overlay.Start(); } ticker.Tick += (o, e) => { if (!Process.IsRunning) { e.Stop = true; return; } OnTick(e); }; ticker.AfterRun += (o, e) => AfterRun(); ticker.BeforeRun += (o, e) => BeforeRun(); }
public Memory(EUCProcess process) { Process = process; BytesIn = 0; BytesOut = 0; Position = 0; RPMCalls = 0; WPMCalls = 0; }