Exemplo n.º 1
0
        public PlayerConnection(LoginDto loginDto, IPlayerCommandFactory playerCommandFactory, IPlayerRepository playerRepository, IGame game)
        {
            _playerCommandFactory = playerCommandFactory;
            _playerRepository = playerRepository;
            _game = game;

            _loginDto = loginDto;

            _dataToSend = new BufferBlock<string>();
        }
Exemplo n.º 2
0
        public PlayerConnection(LoginDto loginDto, IPlayerCommandFactory playerCommandFactory, IPlayerRepository playerRepository, IGame game)
        {
            _playerCommandFactory = playerCommandFactory;
            _playerRepository     = playerRepository;
            _game = game;

            _loginDto = loginDto;

            _dataToSend = new BufferBlock <string>();
        }
Exemplo n.º 3
0
 public ConnectionFactory(
     IAdminCommandFactory adminCommandFactory,
     IPlayerCommandFactory playerCommandFactory,
     IPlayerRepository playerRepository,
     IStateTracker stateTracker,
     IGame game)
 {
     _adminCommandFactory  = adminCommandFactory;
     _playerCommandFactory = playerCommandFactory;
     _playerRepository     = playerRepository;
     _stateTracker         = stateTracker;
     _game = game;
 }