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; }
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); }
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; }
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); }