Пример #1
0
 public MatchmakingQueue(MatchmakingBot bot, Guid gameId, string gameName, string gameMode, int maxPlayers, Version gameVersion, Version octgnVersion)
 {
     QueueId = Guid.NewGuid();
     GameId = gameId;
     GameName = gameName;
     GameMode = gameMode;
     MaxPlayers = maxPlayers;
     GameVersion = gameVersion;
     OctgnVersion = octgnVersion;
     _users = new List<QueueUser>();
     Bot = bot;
     Bot.Messanger.Map<MatchmakingReadyResponse>(OnMatchmakingReadyResponse);
     State = MatchmakingQueueState.WaitingForUsers;
     AverageTime = new AverageTime(10);
     Log.InfoFormat("[{0}] Queue Created", this);
 }
Пример #2
0
 public MatchmakingQueue(MatchmakingBot bot, Guid gameId, string gameName, string gameMode, int maxPlayers, Version gameVersion, Version octgnVersion)
 {
     QueueId      = Guid.NewGuid();
     GameId       = gameId;
     GameName     = gameName;
     GameMode     = gameMode;
     MaxPlayers   = maxPlayers;
     GameVersion  = gameVersion;
     OctgnVersion = octgnVersion;
     _users       = new List <QueueUser>();
     Bot          = bot;
     Bot.Messanger.Map <MatchmakingReadyResponse>(OnMatchmakingReadyResponse);
     State       = MatchmakingQueueState.WaitingForUsers;
     AverageTime = new AverageTime(10);
     Log.InfoFormat("[{0}] Queue Created", this);
 }