Пример #1
0
 public static new TBDLobby Join(Invitation invite, int queueId) {
   var lobby = new TBDLobby(queueId);
   Session.Current.CurrentLobby = lobby;
   var task = invite.Join();
   task.ContinueWith(t => lobby.GotLobbyStatus(t.Result));
   return lobby;
 }
Пример #2
0
        public static new TBDLobby Join(Invitation invite, int queueId)
        {
            var lobby = new TBDLobby(queueId);

            Session.Current.CurrentLobby = lobby;
            var task = invite.Join();

            task.ContinueWith(t => lobby.GotLobbyStatus(t.Result));
            return(lobby);
        }
Пример #3
0
    public static new TBDLobby CreateLobby(int queueId) {
      var lobby = new TBDLobby(queueId);
      Session.Current.CurrentLobby = lobby;

      var guid = RiotServices.TeambuilderDraftService.CreateDraftPremade(queueId);
      RiotServices.AddHandler(guid, lcds => {
        lobby.GotGameData(lcds);
        var task = RiotServices.GameInvitationService.CreateGroupFinderLobby(queueId, lobby.GroupData.Phase.PremadeID.ToString());
        task.ContinueWith(t => lobby.GotLobbyStatus(t.Result));
      });

      return lobby;
    }
Пример #4
0
        public static new TBDLobby CreateLobby(int queueId)
        {
            var lobby = new TBDLobby(queueId);

            Session.Current.CurrentLobby = lobby;

            var guid = RiotServices.TeambuilderDraftService.CreateDraftPremade(queueId);

            RiotServices.AddHandler(guid, lcds => {
                lobby.GotGameData(lcds);
                var task = RiotServices.GameInvitationService.CreateGroupFinderLobby(queueId, lobby.GroupData.Phase.PremadeID.ToString());
                task.ContinueWith(t => lobby.GotLobbyStatus(t.Result));
            });

            return(lobby);
        }