/// <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) { }
protected virtual void OnRemovedClient([NotNull] ClientInfo <TPeer> client) { }
protected virtual void OnClientExitedRoom([NotNull] ClientInfo <TPeer> client, string room) { }
public bool TryGetClientInfoById(ushort player, out ClientInfo <TPeer> info) { return(_clientsByPlayerId.TryGetValue(player, out info)); }
void IServer <TPeer> .AddClient(ClientInfo <TPeer> client) { AddClient(client); }
/// <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) { }