Пример #1
0
 void ZoneClient_OnDisconnect(object sender, SessionCloseEventArgs e)
 {
     ClientManager.Instance.RemoveClient(this);
     if (Character != null)
     {
         Character.Save();
         Character.RemoveFromMap();
     }
     Log.WriteLine(LogLevel.Debug, "Client disconnected.");
 }
Пример #2
0
 void LoginClient_OnDisconnect(object sender, SessionCloseEventArgs e)
 {
     Log.WriteLine(LogLevel.Debug, "{0} Disconnected.", base.Host);
     ClientManager.Instance.RemoveClient(this);
 }