✨ http-commands
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user