Пример #1
0
 /**
  * Called from the client after it disconnects.
  */
 public void OnClientDisconnected(ServerClient serverClient)
 {
     _serverClients.Remove(serverClient.GetGuid());
 }
Пример #2
0
 /**
  * Called when a client connects. Is called after OnConnect inside client itself.
  */
 public void OnClientConnected(ServerClient serverClient)
 {
     // -- Add client to list
     _serverClients.Add(serverClient.GetGuid(), serverClient);
 }