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