示例#1
0
文件: Client.cs 项目: jackmott/galaxy
 public void Cleanup()
 {
     LogicLayer.RemoveClientFromAll(this);
     //persist player
     DataLayer.UpdateGalaxyPlayer(Player);
     if (GalaxyTcpClient != null)
     {
         GalaxyTcpClient.Close();
     }
     if (GalaxyUdpClient != null)
     {
         GalaxyUdpClient.Close();
     }
 }