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); }
public Subscribtion(GameList gameList, PeerBase peer, int maxGameCount) { this.gameList = gameList; this.peer = peer; this.maxGameCount = maxGameCount; }