public void Stop() { StateMachineTimer.Stop(); HookManager.DisposeHook(); EventHookManager.Stop(); if (ObjectManager.Player?.Name.Length > 0) { if (Config.SaveWowWindowPosition) { SaveWowWindowPosition(); } if (Config.SaveBotWindowPosition) { SaveBotWindowPosition(); } } BotCache.Save(); if (Config.AutocloseWow) { XMemory.Process.Kill(); } AmeisenLogger.Instance.Log($"Stopping AmeisenBot...", LogLevel.Master); AmeisenLogger.Instance.Stop(); }
public void Start() { StateMachineTimer.Start(); BotCache.Load(); SubscribeToWowEvents(); IsRunning = true; }