Exemplo n.º 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;
        }
Exemplo n.º 2
0
 public void StartGame(String game, GameConfig config = null, IUserRepository userRepo = null)
 {
     _game = GameFactory.Create(game, _users, config, "", userRepo);
 }
Exemplo n.º 3
0
Arquivo: Room.cs Projeto: bpc096/psd
 public void StartGame(String game, GameConfig config = null)
 {
     _game = GameFactory.Create(game, _users, config);
 }