예제 #1
0
 public void Stop()
 {
     AssetLoader.Clear();
     GameScheduler.Tasks.Clear();
     Events.Clear();
     GameThread.Stop();
     TcpHandler?.Stop();
     Running = false;
 }
예제 #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();
 }
예제 #3
0
파일: Server.cs 프로젝트: abnr/MobileMMORPG
 public void Stop()
 {
     GameThread.Abort();
     TcpHandler.Stop();
     _running = false;
 }