예제 #1
0
파일: Room.cs 프로젝트: lgenesius/psd-guide
        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;
        }
예제 #2
0
파일: Room.cs 프로젝트: lgenesius/psd-guide
 public void StartGame(String game, GameConfig config = null, IUserRepository userRepo = null)
 {
     _game = GameFactory.Create(game, _users, config, "", userRepo);
 }
예제 #3
0
파일: Room.cs 프로젝트: bpc096/psd
 public void StartGame(String game, GameConfig config = null)
 {
     _game = GameFactory.Create(game, _users, config);
 }