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>(); }
public PlayersController(IGamesContainer games) { _games = games; }
public LudoController(ILudoGame ludoGame, IGamesContainer games) { _games = games; _LudoGame = ludoGame; }
public LudoGameIDController(IGamesContainer games) { _games = games; }