Пример #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 WorldClient_OnDisconnect(object sender, SessionCloseEventArgs e)
 {
     Log.WriteLine(LogLevel.Debug, "{0} Disconnected.", this.Host);
     ClientManager.Instance.RemoveClient(this);
 }