Beispiel #1
0
        // bool
        // using: Detect_StringArray
        public bool UpdatePublishedFileTags(PublishedFileUpdateHandle_t updateHandle /*PublishedFileUpdateHandle_t*/, string[] pTags /*struct SteamParamStringArray_t **/)
        {
            // Create strings
            var nativeStrings = new IntPtr[pTags.Length];

            for (int i = 0; i < pTags.Length; i++)
            {
                nativeStrings[i] = Marshal.StringToHGlobalAnsi(pTags[i]);
            }
            try
            {
                // Create string array
                var size        = Marshal.SizeOf(typeof(IntPtr)) * nativeStrings.Length;
                var nativeArray = Marshal.AllocHGlobal(size);
                Marshal.Copy(nativeStrings, 0, nativeArray, nativeStrings.Length);

                // Create SteamParamStringArray_t
                var tags = new SteamParamStringArray_t();
                tags.Strings    = nativeArray;
                tags.NumStrings = pTags.Length;
                return(platform.ISteamRemoteStorage_UpdatePublishedFileTags(updateHandle.Value, ref tags));
            }
            finally
            {
                foreach (var x in nativeStrings)
                {
                    Marshal.FreeHGlobal(x);
                }
            }
        }
Beispiel #2
0
        // SteamAPICall_t
        public CallbackHandle CommitPublishedFileUpdate(PublishedFileUpdateHandle_t updateHandle /*PublishedFileUpdateHandle_t*/, Action <RemoteStorageUpdatePublishedFileResult_t, bool> CallbackFunction = null /*Action<RemoteStorageUpdatePublishedFileResult_t, bool>*/)
        {
            SteamAPICall_t callback = 0;

            callback = platform.ISteamRemoteStorage_CommitPublishedFileUpdate(updateHandle.Value);

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

            return(RemoteStorageUpdatePublishedFileResult_t.CallResult(steamworks, callback, CallbackFunction));
        }
Beispiel #3
0
 // bool
 public bool UpdatePublishedFileVisibility(PublishedFileUpdateHandle_t updateHandle /*PublishedFileUpdateHandle_t*/, RemoteStoragePublishedFileVisibility eVisibility /*ERemoteStoragePublishedFileVisibility*/)
 {
     return(platform.ISteamRemoteStorage_UpdatePublishedFileVisibility(updateHandle.Value, eVisibility));
 }
Beispiel #4
0
 // bool
 public bool UpdatePublishedFileTitle(PublishedFileUpdateHandle_t updateHandle /*PublishedFileUpdateHandle_t*/, string pchTitle /*const char **/)
 {
     return(platform.ISteamRemoteStorage_UpdatePublishedFileTitle(updateHandle.Value, pchTitle));
 }
Beispiel #5
0
 // bool
 public bool UpdatePublishedFileSetChangeDescription(PublishedFileUpdateHandle_t updateHandle /*PublishedFileUpdateHandle_t*/, string pchChangeDescription /*const char **/)
 {
     return(platform.ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription(updateHandle.Value, pchChangeDescription));
 }
Beispiel #6
0
 // bool
 public bool UpdatePublishedFilePreviewFile(PublishedFileUpdateHandle_t updateHandle /*PublishedFileUpdateHandle_t*/, string pchPreviewFile /*const char **/)
 {
     return(platform.ISteamRemoteStorage_UpdatePublishedFilePreviewFile(updateHandle.Value, Utility.GetUtf8Bytes(pchPreviewFile)));
 }
Beispiel #7
0
 // bool
 public bool UpdatePublishedFileDescription(PublishedFileUpdateHandle_t updateHandle /*PublishedFileUpdateHandle_t*/, string pchDescription /*const char **/)
 {
     return(platform.ISteamRemoteStorage_UpdatePublishedFileDescription(updateHandle.Value, Utility.GetUtf8Bytes(pchDescription)));
 }