Exemple #1
0
 /// <summary>
 /// Called when a new client is added into the session (we may not know how to directly to talk to them yet, but server relay is available)
 /// </summary>
 /// <param name="client"></param>
 protected virtual void OnAddedClient([NotNull] ClientInfo <TPeer?> client)
 {
 }
Exemple #2
0
 protected virtual void OnRemovedClient([NotNull] ClientInfo <TPeer> client)
 {
 }
Exemple #3
0
 protected virtual void OnClientExitedRoom([NotNull] ClientInfo <TPeer> client, string room)
 {
 }
Exemple #4
0
 public bool TryGetClientInfoById(ushort player, out ClientInfo <TPeer> info)
 {
     return(_clientsByPlayerId.TryGetValue(player, out info));
 }
Exemple #5
0
 void IServer <TPeer> .AddClient(ClientInfo <TPeer> client)
 {
     AddClient(client);
 }
Exemple #6
0
 /// <summary>
 /// Called whenever a new client joins the session. Override to perform some work on this event
 /// </summary>
 /// <param name="client"></param>
 protected virtual void AddClient(ClientInfo <TPeer> client)
 {
 }