Files
Ragon/Ragon.Server/Sources/IRagonContextObserver.cs
T

15 lines
334 B
C#
Raw Normal View History

2023-04-13 20:42:05 +04:00
namespace Ragon.Server;
public class RagonContextObserver
{
private Dictionary<string, RagonContext> _contexts;
public RagonContextObserver(Dictionary<string, RagonContext> contexts)
{
_contexts = contexts;
}
public void OnAuthorized(RagonContext context)
{
_contexts.Add(context.LobbyPlayer.Id, context);
}
}