public void Start() { if (_needRestart) { MessageBox.Show( $"{Name} self-install ran successfully and requires a bot restart, bot won't start until it's done", $"{Name} installed successfully!", MessageBoxButtons.OK, MessageBoxIcon.Information); BotManager.Stop(true); } AreaStateCache.Start(); Log.DebugFormat("[{0}] Starting", Name); }
public void Stop() { Log.DebugFormat("[{0}] Stopped", Name); Data.ItemsInStashAlreadyCached = false; AreaStateCache.Stop(); }
public void Tick() { AreaStateCache.Tick(); }