public CommunicationServer(IConnectionEndpoint connectionEndpoint, CommunicationServerSettings settings)
        {
            this.ConnectionEndpoint = connectionEndpoint;
            RegisteredGames         = new GamesContainer();
            this.settings           = settings;

            connectionEndpoint.OnConnect        += OnClientConnect;
            connectionEndpoint.OnMessageRecieve += OnMessage;
            connectionEndpoint.OnDisconnected   += OnDisconnect;
            Clients      = new Dictionary <ulong, Socket>();
            freeIdList   = new List <ulong>();
            startedGames = new List <string>();
        }
Exemplo n.º 2
0
 public PlayersController(IGamesContainer games)
 {
     _games = games;
 }
Exemplo n.º 3
0
 public LudoController(ILudoGame ludoGame, IGamesContainer games)
 {
     _games    = games;
     _LudoGame = ludoGame;
 }
Exemplo n.º 4
0
 public LudoGameIDController(IGamesContainer games)
 {
     _games = games;
 }