예제 #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);
 }