Пример #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)
 {
 }
Пример #2
0
 protected virtual void OnRemovedClient([NotNull] ClientInfo <TPeer> client)
 {
 }
Пример #3
0
 protected virtual void OnClientExitedRoom([NotNull] ClientInfo <TPeer> client, string room)
 {
 }
Пример #4
0
 public bool TryGetClientInfoById(ushort player, out ClientInfo <TPeer> info)
 {
     return(_clientsByPlayerId.TryGetValue(player, out info));
 }
Пример #5
0
 void IServer <TPeer> .AddClient(ClientInfo <TPeer> client)
 {
     AddClient(client);
 }
Пример #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)
 {
 }