示例#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;
        }
示例#2
0
 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);
 }