Ejemplo n.º 1
0
 public void SearchAll(string filter)
 {
     lastSearchString = filter;
     ActiveQuery      = HeathenWorkshopItemQuery.Create(EUGCQuery.k_EUGCQuery_RankedByTrend, EUGCMatchingUGCType.k_EUGCMatchingUGCType_Items_ReadyToUse, CreatorAppId, steamSettings.applicationId);
     if (!string.IsNullOrEmpty(filter))
     {
         SteamworksWorkshop.WorkshopSetSearchText(ActiveQuery.handle, filter);
     }
     ActiveQuery.Execute(HandleResults);
 }
Ejemplo n.º 2
0
 public void PrepareSearchFollowed(string filter)
 {
     lastSearchString = filter;
     ActiveQuery      = HeathenWorkshopItemQuery.Create(SteamUser.GetSteamID().GetAccountID(), EUserUGCList.k_EUserUGCList_Followed, EUGCMatchingUGCType.k_EUGCMatchingUGCType_Items_ReadyToUse, EUserUGCListSortOrder.k_EUserUGCListSortOrder_TitleAsc, CreatorAppId, steamSettings.applicationId);
     if (!string.IsNullOrEmpty(filter))
     {
         SteamworksWorkshop.WorkshopSetSearchText(ActiveQuery.handle, filter);
     }
     QueryPrepared.Invoke(ActiveQuery);
 }
Ejemplo n.º 3
0
 public void SearchFavorites(string filter)
 {
     lastSearchString = filter;
     ActiveQuery      = HeathenWorkshopItemQuery.Create(SteamUser.GetSteamID().GetAccountID(), EUserUGCList.k_EUserUGCList_Favorited, EUGCMatchingUGCType.k_EUGCMatchingUGCType_Items_ReadyToUse, EUserUGCListSortOrder.k_EUserUGCListSortOrder_TitleAsc, CreatorAppId, steamSettings.applicationId);
     if (!string.IsNullOrEmpty(filter))
     {
         SteamworksWorkshop.WorkshopSetSearchText(ActiveQuery.handle, filter);
     }
     ActiveQuery.Execute(HandleResults);
 }
Ejemplo n.º 4
0
        public void SetSearchPage(uint page)
        {
            if (ActiveQuery != null)
            {
                ActiveQuery.SetPage(page);

                if (!string.IsNullOrEmpty(lastSearchString))
                {
                    SteamworksWorkshop.WorkshopSetSearchText(ActiveQuery.handle, lastSearchString);
                }

                ActiveQuery.Execute(HandleResults);
            }
        }
Ejemplo n.º 5
0
 private void Awake()
 {
     SteamworksWorkshop.RegisterWorkshopSystem();
 }