public override IGameListSubscription AddSubscription(PeerBase peer, Hashtable gamePropertyFilter, int maxGameCount)
        {
            if (gamePropertyFilter == null)
            {
                gamePropertyFilter = new Hashtable(0);
            }

            GameChannel gameChannel;
            var key = new GameChannelKey(gamePropertyFilter);

            if (!this.GameChannels.TryGetValue(key, out gameChannel))
            {
                gameChannel = new GameChannel(this, key);
                this.GameChannels.Add(key, gameChannel);
            }

            return gameChannel.AddSubscription(peer, maxGameCount);
        }
Exemple #2
0
        public IGameListSubscibtion AddSubscription(PeerBase peer, Hashtable gamePropertyFilter, int maxGameCount)
        {
            if (gamePropertyFilter == null)
            {
                gamePropertyFilter = new Hashtable(0);
            }

            GameChannel gameChannel;
            var         key = new GameChannelKey(gamePropertyFilter);

            if (!this.GameChannels.TryGetValue(key, out gameChannel))
            {
                gameChannel = new GameChannel(this, key);
                this.GameChannels.Add(key, gameChannel);
            }

            return(gameChannel.AddSubscription(peer, maxGameCount));
        }
 public Subscription(GameChannel channel, MasterClientPeer peer, int maxGamesCount) : base(peer, maxGamesCount)
 {
     this.GameChannel = channel;
 }
Exemple #4
0
 public Subscription(GameChannel channel, PeerBase peer, int count)
 {
     this.Peer        = peer;
     this.GameChannel = channel;
     this.GameCount   = count;
 }
 public Subscription(GameChannel channel, PeerBase peer, int count)
 {
     this.Peer = peer;
     this.GameChannel = channel;
     this.GameCount = count;
 }