Exemple #1
0
        public Room(int max)
        {
            if (max < 1)
            {
                throw new Exception("max must be greater than 1");
            }

            _id    = Guid.NewGuid();
            _users = new List <Guid>();
            _max   = max;
            _game  = null;
        }
Exemple #2
0
 public void StartGame(String game, GameConfig config = null, IUserRepository userRepo = null)
 {
     _game = GameFactory.Create(game, _users, config, "", userRepo);
 }
Exemple #3
0
 public void StartGame(String game, GameConfig config = null)
 {
     _game = GameFactory.Create(game, _users, config);
 }