Beispiel #1
0
 public GameManager(IJoinRoomHelper joinRoomHelper, IShuffleHelper <string> shuffleHelper, IScoreHelper scoreHelper, IFilenameHelper filenameHelper, IWordService wordService)
 {
     _joinRoomHelper = joinRoomHelper;
     _shuffleHelper  = shuffleHelper;
     _scoreHelper    = scoreHelper;
     _filenameHelper = filenameHelper;
     _wordService    = wordService;
 }
Beispiel #2
0
        public LettersHub(IWordService wordService, IFileHelper fileHelper, IFilenameHelper filenameHelper, IJoinRoomHelper joinRoomHelper, IGameManager gameManager)
        {
            _wordService    = wordService;
            _fileHelper     = fileHelper;
            _filenameHelper = filenameHelper;
            _joinRoomHelper = joinRoomHelper;
            _gameManager    = gameManager;

            if (!File.Exists(_filenameHelper.GetDictionaryFilename()))
            {
                File.Create(_filenameHelper.GetDictionaryFilename());
            }

            if (!File.Exists(_filenameHelper.GetGuessedWordsFilename()))
            {
                File.Create(_filenameHelper.GetGuessedWordsFilename());
            }
        }