예제 #1
0
        public AppLobby(LoadBalancer<IncomingGameServerPeer> loadBalancer, int maxPlayersDefault, TimeSpan joinTimeOut)
        {
            this.MaxPlayersDefault = maxPlayersDefault;
            this.JoinTimeOut = joinTimeOut;

            this.ExecutionFiber = new PoolFiber();
            this.ExecutionFiber.Start();

            this.LoadBalancer = loadBalancer;
            this.GameList = new GameList();

            this.ExecutionFiber.Schedule(this.CheckJoinTimeOuts, (long)joinTimeOut.TotalMilliseconds / 2);
        }
예제 #2
0
 public Subscribtion(GameList gameList, PeerBase peer, int maxGameCount)
 {
     this.gameList     = gameList;
     this.peer         = peer;
     this.maxGameCount = maxGameCount;
 }
예제 #3
0
 public Subscribtion(GameList gameList, PeerBase peer, int maxGameCount)
 {
     this.gameList = gameList;
     this.peer = peer;
     this.maxGameCount = maxGameCount;
 }