private void CloseConnection(ConnectionInformation connection) { try { connection.Dispose(); PlusEnvironment.GetGame().GetClientManager().DisposeConnection(Convert.ToInt32(connection.GetConnectionId())); } catch (Exception e) { ExceptionLogger.LogException(e); } }
private void CloseConnection(ConnectionInformation connection) { try { connection.Dispose(); Program.GameContext.PlayerController.DisposeConnection(Convert.ToInt32(connection.GetConnectionId())); } catch (Exception e) { Logger.Error(e); } }
private void manager_connectionEvent(ConnectionInformation connection) { connection.ConnectionChanged += ConnectionChanged; PlusEnvironment.GetGame().GetClientManager() .CreateAndStartClient(Convert.ToInt32(connection.GetConnectionId()), connection); }
private void OnConnectionEvent(ConnectionInformation connection) { connection.ConnectionChanged += OnConnectionChanged; Program.GameContext.PlayerController.CreateAndStartClient(Convert.ToInt32(connection.GetConnectionId()), connection); }