Exemple #1
0
        // SteamAPICall_t
        public CallbackHandle EnumeratePublishedFilesByUserAction(WorkshopFileAction eAction /*EWorkshopFileAction*/, uint unStartIndex /*uint32*/, Action <RemoteStorageEnumeratePublishedFilesByUserActionResult_t, bool> CallbackFunction = null /*Action<RemoteStorageEnumeratePublishedFilesByUserActionResult_t, bool>*/)
        {
            SteamAPICall_t callback = 0;

            callback = platform.ISteamRemoteStorage_EnumeratePublishedFilesByUserAction(eAction, unStartIndex);

            if (CallbackFunction == null)
            {
                return(null);
            }

            return(RemoteStorageEnumeratePublishedFilesByUserActionResult_t.CallResult(steamworks, callback, CallbackFunction));
        }
 public void EnumeratePublishedWorkshopFiles(WorkshopFileAction enumerationType, int startIndex,
                                             int count, int days, IList <string> tags, IList <string> userTags)
 {
     CheckIfUsable();
     using (SteamParamStringArray tagArray = new SteamParamStringArray(tags))
     {
         using (SteamParamStringArray userTagArray = new SteamParamStringArray(userTags))
         {
             NativeMethods.Cloud_EnumeratePublishedWorkshopFiles((int)enumerationType, (uint)startIndex,
                                                                 (uint)count, (uint)days, tagArray.UnmanagedMemory, userTagArray.UnmanagedMemory);
         }
     }
 }
Exemple #3
0
        // SteamAPICall_t
        public CallbackHandle SetUserPublishedFileAction(PublishedFileId_t unPublishedFileId /*PublishedFileId_t*/, WorkshopFileAction eAction /*EWorkshopFileAction*/, Action <RemoteStorageSetUserPublishedFileActionResult_t, bool> CallbackFunction = null /*Action<RemoteStorageSetUserPublishedFileActionResult_t, bool>*/)
        {
            SteamAPICall_t callback = 0;

            callback = platform.ISteamRemoteStorage_SetUserPublishedFileAction(unPublishedFileId.Value, eAction);

            if (CallbackFunction == null)
            {
                return(null);
            }

            return(RemoteStorageSetUserPublishedFileActionResult_t.CallResult(steamworks, callback, CallbackFunction));
        }
 public void EnumeratePublishedWorkshopFiles(WorkshopFileAction enumerationType, int startIndex,
     int count, int days, IList<string> tags, IList<string> userTags)
 {
     CheckIfUsable();
     using (SteamParamStringArray tagArray = new SteamParamStringArray(tags))
     {
         using (SteamParamStringArray userTagArray = new SteamParamStringArray(userTags))
         {
             NativeMethods.Cloud_EnumeratePublishedWorkshopFiles((int)enumerationType, (uint)startIndex,
                 (uint)count, (uint)days, tagArray.UnmanagedMemory, userTagArray.UnmanagedMemory);
         }
     }
 }
 public void EnumeratePublishedFilesByUserAction(WorkshopFileAction action, int startIndex)
 {
     CheckIfUsable();
     NativeMethods.Cloud_EnumeratePublishedFilesByUserAction((int)action, (uint)startIndex);
 }
 public void SetUserPublishedFileAction(PublishedFileId publishedFileId, WorkshopFileAction action)
 {
     CheckIfUsable();
     NativeMethods.Cloud_SetUserPublishedFileAction(publishedFileId.AsUInt64, (int)action);
 }
 public void EnumeratePublishedFilesByUserAction(WorkshopFileAction action, int startIndex)
 {
     CheckIfUsable();
     NativeMethods.Cloud_EnumeratePublishedFilesByUserAction((int)action, (uint)startIndex);
 }
 public void SetUserPublishedFileAction(PublishedFileId publishedFileId, WorkshopFileAction action)
 {
     CheckIfUsable();
     NativeMethods.Cloud_SetUserPublishedFileAction(publishedFileId.AsUInt64, (int)action);
 }