コード例 #1
0
        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);
        }
コード例 #2
0
 public void Stop()
 {
     Log.DebugFormat("[{0}] Stopped", Name);
     Data.ItemsInStashAlreadyCached = false;
     AreaStateCache.Stop();
 }
コード例 #3
0
 public void Tick()
 {
     AreaStateCache.Tick();
 }