Example #1
0
 public void Stop()
 {
     AssetLoader.Clear();
     GameScheduler.Tasks.Clear();
     Events.Clear();
     GameThread.Stop();
     TcpHandler?.Stop();
     Running = false;
 }
Example #2
0
 // mainly for tests to make sure everything gets cleaned up
 public void Stop()
 {
     AssetLoader.Clear();
     GameScheduler.Tasks.Clear();
     Events.Clear();
     GameThread?.Stop();
     TcpHandler?.Stop();
     Running           = false;
     Server.Map.Chunks = new Dictionary <string, ServerChunk>();
     foreach (var player in Players.ToList())
     {
         player.Tcp.Stop();
     }
     Players.Clear();
     PacketsToProccess.Clear();
 }
Example #3
0
 public void Stop()
 {
     GameThread.Abort();
     TcpHandler.Stop();
     _running = false;
 }