Пример #1
0
        public Room(int max)
        {
            if (max < 1)
            {
                throw new Exception("Max must be more than 1!");
            }

            this._id      = Guid.NewGuid();
            this._maxUser = max;
            this._player  = new List <Guid>();
            this._roles   = new List <int>();
            this._game    = null;
        }
Пример #2
0
 public void StartGame(string game, IUserRepository userRepo = null)
 {
     _game = GameFactory.Create(game, _player, _roles, userRepo, "");
 }