예제 #1
0
    public SteamGetPreFileListProcess(GetPreListCallBackEventHandler callBackGetPreListResult, uint startIndex, string [] tags, uint days = 0, uint count = 9, EWorkshopEnumerationType orderBy = EWorkshopEnumerationType.k_EWorkshopEnumerationTypeRankedByVote)
    {
        RemoteStorageEnumerateWorkshopFilesResult = CallResult <RemoteStorageEnumerateWorkshopFilesResult_t> .Create(OnRemoteStorageEnumerateWorkshopFilesResultAllUser);

        CallBackGetPreListResult = callBackGetPreListResult;
        tags = SteamWorkShop.AddNewVersionTag(tags);
        GetPreFileList(startIndex, tags, days, count, orderBy);
        _StartIndex = startIndex;
    }
예제 #2
0
    public SteamGetMyPreListProcess(GetPreListCallBackEventHandler callBackGetPreListResult, uint startIndex, string [] tags, uint count = 9)
    {
        remoteStorageEnumerateUserSharedWorkshopFilesResult = CallResult <RemoteStorageEnumerateUserSharedWorkshopFilesResult_t> .Create(OnRemoteStorageEnumerateUserSharedWorkshopFilesResultMyPreFileList);

        CallBackGetPreListResult = callBackGetPreListResult;
        //tags = SteamWorkShop.AddNewVersionTag(tags);
        GetMyPreFileList(startIndex, tags);
        _StartIndex = startIndex;
        _Count      = count;
    }
예제 #3
0
    public SteamSearchProcess(GetPreListCallBackEventHandler callBackGetPreListResult, uint startIndex, string [] tags, uint count = 9, string searchText = "")
    {
        OnSteamUGCQueryCompletedCallResult = CallResult <SteamUGCQueryCompleted_t> .Create(CallBackSendQuery);

        _Page       = startIndex / 50 + 1;
        _StartIndex = startIndex;
        CallBackGetPreListResult = callBackGetPreListResult;
        _Count = count;
        tags   = SteamWorkShop.AddNewVersionTag(tags);
        Search(tags, searchText);
    }
예제 #4
0
 public void GetMyPreFileList(GetPreListCallBackEventHandler callBackGetPreListResult, uint startIndex, string [] tags, uint days = 0, uint count = 9, EWorkshopEnumerationType orderBy = EWorkshopEnumerationType.k_EWorkshopEnumerationTypeRankedByVote, string searchText = "")
 {
     if (searchText.CompareTo("") == 0)
     {
         SteamGetMyPreListProcess item = new  SteamGetMyPreListProcess(callBackGetPreListResult, startIndex, tags, count);
         ProcessList.Add(item);
     }
     else
     {
         SteamSearchMyProcess item = new SteamSearchMyProcess(callBackGetPreListResult, startIndex, tags, count, searchText);
         ProcessList.Add(item);
     }
 }