Beispiel #1
0
        public void Reconnect()
        {
            Console.WriteLine("Connection lost. Reconnecting.");
            _vanillaClient.pingThread?.Abort();
            Boxes.Clear();
            MemorizedBoxes.Clear();
            Ores.Clear();
            Ships.Clear();
            Gates.Clear();
            Buildings.Clear();
            _proxy.Reset();

            if (_vanillaClient.tcpClient.Connected)
            {
                _vanillaClient.Disconnect();
            }

            _vanillaClient.thread?.Abort();
        }
Beispiel #2
0
 public static void ClearGates()
 {
     Gates.Clear();
     NoStatedGates.Clear();
 }