Exemple #1
0
 /// <summary>
 /// <para> remove any existing key-value tags with the specified key</para>
 /// </summary>
 public static bool RemoveItemKeyValueTags(UGCUpdateHandle_t handle, string pchKey)
 {
     InteropHelp.TestIfAvailableClient();
     using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey)) {
         return(NativeMethods.ISteamUGC_RemoveItemKeyValueTags(handle, pchKey2));
     }
 }
Exemple #2
0
 /// <summary>
 /// <para> specify the language of the title or description that will be set</para>
 /// </summary>
 public static bool SetItemUpdateLanguage(UGCUpdateHandle_t handle, string pchLanguage)
 {
     InteropHelp.TestIfAvailableClient();
     using (var pchLanguage2 = new InteropHelp.UTF8StringHandle(pchLanguage)) {
         return(NativeMethods.ISteamUGC_SetItemUpdateLanguage(handle, pchLanguage2));
     }
 }
Exemple #3
0
 /// <summary>
 /// <para>  change preview image file for this item. pszPreviewFile points to local image file, which must be under 1MB in size</para>
 /// </summary>
 public static bool SetItemPreview(UGCUpdateHandle_t handle, string pszPreviewFile)
 {
     InteropHelp.TestIfAvailableClient();
     using (var pszPreviewFile2 = new InteropHelp.UTF8StringHandle(pszPreviewFile)) {
         return(NativeMethods.ISteamUGC_SetItemPreview(handle, pszPreviewFile2));
     }
 }
Exemple #4
0
 /// <summary>
 /// <para> update item content from this local folder</para>
 /// </summary>
 public static bool SetItemContent(UGCUpdateHandle_t handle, string pszContentFolder)
 {
     InteropHelp.TestIfAvailableClient();
     using (var pszContentFolder2 = new InteropHelp.UTF8StringHandle(pszContentFolder)) {
         return(NativeMethods.ISteamUGC_SetItemContent(handle, pszContentFolder2));
     }
 }
Exemple #5
0
 /// <summary>
 /// <para> change the metadata of an UGC item (max = k_cchDeveloperMetadataMax)</para>
 /// </summary>
 public static bool SetItemMetadata(UGCUpdateHandle_t handle, string pchMetaData)
 {
     InteropHelp.TestIfAvailableClient();
     using (var pchMetaData2 = new InteropHelp.UTF8StringHandle(pchMetaData)) {
         return(NativeMethods.ISteamUGC_SetItemMetadata(handle, pchMetaData2));
     }
 }
Exemple #6
0
 /// <summary>
 /// <para> change the description of an UGC item</para>
 /// </summary>
 public static bool SetItemDescription(UGCUpdateHandle_t handle, string pchDescription)
 {
     InteropHelp.TestIfAvailableClient();
     using (var pchDescription2 = new InteropHelp.UTF8StringHandle(pchDescription)) {
         return(NativeMethods.ISteamUGC_SetItemDescription(handle, pchDescription2));
     }
 }
Exemple #7
0
 /// <summary>
 /// <para>  updates an existing preview video for this item</para>
 /// </summary>
 public static bool UpdateItemPreviewVideo(UGCUpdateHandle_t handle, uint index, string pszVideoID)
 {
     InteropHelp.TestIfAvailableClient();
     using (var pszVideoID2 = new InteropHelp.UTF8StringHandle(pszVideoID))
     {
         return(NativeMethods.ISteamUGC_UpdateItemPreviewVideo(CSteamAPIContext.GetSteamUGC(), handle, index, pszVideoID2));
     }
 }
Exemple #8
0
 /// <summary>
 /// <para>  add preview file for this item. pszPreviewFile points to local file, which must be under 1MB in size</para>
 /// </summary>
 public static bool AddItemPreviewFile(UGCUpdateHandle_t handle, string pszPreviewFile, EItemPreviewType type)
 {
     InteropHelp.TestIfAvailableClient();
     using (var pszPreviewFile2 = new InteropHelp.UTF8StringHandle(pszPreviewFile))
     {
         return(NativeMethods.ISteamUGC_AddItemPreviewFile(CSteamAPIContext.GetSteamUGC(), handle, pszPreviewFile2, type));
     }
 }
Exemple #9
0
 /// <summary>
 /// <para> change the title of an UGC item</para>
 /// </summary>
 public static bool SetItemTitle(UGCUpdateHandle_t handle, string pchTitle)
 {
     InteropHelp.TestIfAvailableClient();
     using (var pchTitle2 = new InteropHelp.UTF8StringHandle(pchTitle))
     {
         return(NativeMethods.ISteamUGC_SetItemTitle(CSteamAPIContext.GetSteamUGC(), handle, pchTitle2));
     }
 }
 /// <summary>
 /// <para>  updates an existing preview file for this item. pszPreviewFile points to local file, which must be under 1MB in size</para>
 /// </summary>
 public static bool UpdateItemPreviewFile(UGCUpdateHandle_t handle, uint index, string pszPreviewFile)
 {
     InteropHelp.TestIfAvailableGameServer();
     using (var pszPreviewFile2 = new InteropHelp.UTF8StringHandle(pszPreviewFile))
     {
         return(NativeMethods.ISteamUGC_UpdateItemPreviewFile(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, pszPreviewFile2));
     }
 }
 /// <summary>
 /// <para>  add preview video for this item</para>
 /// </summary>
 public static bool AddItemPreviewVideo(UGCUpdateHandle_t handle, string pszVideoID)
 {
     InteropHelp.TestIfAvailableGameServer();
     using (var pszVideoID2 = new InteropHelp.UTF8StringHandle(pszVideoID))
     {
         return(NativeMethods.ISteamUGC_AddItemPreviewVideo(CSteamGameServerAPIContext.GetSteamUGC(), handle, pszVideoID2));
     }
 }
 /// <summary>
 /// <para> update item content from this local folder</para>
 /// </summary>
 public static bool SetItemContent(UGCUpdateHandle_t handle, string pszContentFolder)
 {
     InteropHelp.TestIfAvailableGameServer();
     using (var pszContentFolder2 = new InteropHelp.UTF8StringHandle(pszContentFolder))
     {
         return(NativeMethods.ISteamUGC_SetItemContent(CSteamGameServerAPIContext.GetSteamUGC(), handle, pszContentFolder2));
     }
 }
 /// <summary>
 /// <para> change the metadata of an UGC item (max = k_cchDeveloperMetadataMax)</para>
 /// </summary>
 public static bool SetItemMetadata(UGCUpdateHandle_t handle, string pchMetaData)
 {
     InteropHelp.TestIfAvailableGameServer();
     using (var pchMetaData2 = new InteropHelp.UTF8StringHandle(pchMetaData))
     {
         return(NativeMethods.ISteamUGC_SetItemMetadata(CSteamGameServerAPIContext.GetSteamUGC(), handle, pchMetaData2));
     }
 }
Exemple #14
0
 /// <summary>
 /// <para> commit update process started with StartItemUpdate()</para>
 /// </summary>
 public static SteamAPICall_t SubmitItemUpdate(UGCUpdateHandle_t handle, string pchChangeNote)
 {
     InteropHelp.TestIfAvailableClient();
     using (var pchChangeNote2 = new InteropHelp.UTF8StringHandle(pchChangeNote))
     {
         return((SteamAPICall_t)NativeMethods.ISteamUGC_SubmitItemUpdate(CSteamAPIContext.GetSteamUGC(), handle, pchChangeNote2));
     }
 }
 /// <summary>
 /// <para> add new key-value tags for the item. Note that there can be multiple values for a tag.</para>
 /// </summary>
 public static bool AddItemKeyValueTag(UGCUpdateHandle_t handle, string pchKey, string pchValue)
 {
     InteropHelp.TestIfAvailableGameServer();
     using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey))
         using (var pchValue2 = new InteropHelp.UTF8StringHandle(pchValue)) {
             return(NativeMethods.ISteamUGC_AddItemKeyValueTag(CSteamGameServerAPIContext.GetSteamUGC(), handle, pchKey2, pchValue2));
         }
 }
 public static bool UpdateItemPreviewVideo(UGCUpdateHandle_t handle, uint index, string pszVideoID)
 {
     InteropHelp.TestIfAvailableGameServer();
     using (InteropHelp.UTF8StringHandle handle2 = new InteropHelp.UTF8StringHandle(pszVideoID))
     {
         return(NativeMethods.ISteamGameServerUGC_UpdateItemPreviewVideo(handle, index, handle2));
     }
 }
 public static bool SetItemUpdateLanguage(UGCUpdateHandle_t handle, string pchLanguage)
 {
     InteropHelp.TestIfAvailableGameServer();
     using (InteropHelp.UTF8StringHandle handle2 = new InteropHelp.UTF8StringHandle(pchLanguage))
     {
         return(NativeMethods.ISteamGameServerUGC_SetItemUpdateLanguage(handle, handle2));
     }
 }
 public static SteamAPICall_t SubmitItemUpdate(UGCUpdateHandle_t handle, string pchChangeNote)
 {
     InteropHelp.TestIfAvailableGameServer();
     using (InteropHelp.UTF8StringHandle handle2 = new InteropHelp.UTF8StringHandle(pchChangeNote))
     {
         return((SteamAPICall_t)NativeMethods.ISteamGameServerUGC_SubmitItemUpdate(handle, handle2));
     }
 }
 public static bool SetItemContent(UGCUpdateHandle_t handle, string pszContentFolder)
 {
     InteropHelp.TestIfAvailableGameServer();
     using (InteropHelp.UTF8StringHandle handle2 = new InteropHelp.UTF8StringHandle(pszContentFolder))
     {
         return(NativeMethods.ISteamGameServerUGC_SetItemContent(handle, handle2));
     }
 }
 public static bool AddItemPreviewFile(UGCUpdateHandle_t handle, string pszPreviewFile, EItemPreviewType type)
 {
     InteropHelp.TestIfAvailableGameServer();
     using (InteropHelp.UTF8StringHandle handle2 = new InteropHelp.UTF8StringHandle(pszPreviewFile))
     {
         return(NativeMethods.ISteamGameServerUGC_AddItemPreviewFile(handle, handle2, type));
     }
 }
 public static bool RemoveItemKeyValueTags(UGCUpdateHandle_t handle, string pchKey)
 {
     InteropHelp.TestIfAvailableGameServer();
     using (InteropHelp.UTF8StringHandle handle2 = new InteropHelp.UTF8StringHandle(pchKey))
     {
         return(NativeMethods.ISteamGameServerUGC_RemoveItemKeyValueTags(handle, handle2));
     }
 }
Exemple #22
0
 public static bool UpdateItemPreviewFile(UGCUpdateHandle_t handle, uint index, string pszPreviewFile)
 {
     InteropHelp.TestIfAvailableClient();
     using (InteropHelp.UTF8StringHandle pszPreviewFile2 = new InteropHelp.UTF8StringHandle(pszPreviewFile))
     {
         return(NativeMethods.ISteamUGC_UpdateItemPreviewFile(handle, index, pszPreviewFile2));
     }
 }
Exemple #23
0
 public static bool AddItemPreviewVideo(UGCUpdateHandle_t handle, string pszVideoID)
 {
     InteropHelp.TestIfAvailableClient();
     using (InteropHelp.UTF8StringHandle pszVideoID2 = new InteropHelp.UTF8StringHandle(pszVideoID))
     {
         return(NativeMethods.ISteamUGC_AddItemPreviewVideo(handle, pszVideoID2));
     }
 }
Exemple #24
0
 public static bool AddItemKeyValueTag(UGCUpdateHandle_t handle, string pchKey, string pchValue)
 {
     InteropHelp.TestIfAvailableClient();
     using (InteropHelp.UTF8StringHandle pchKey2 = new InteropHelp.UTF8StringHandle(pchKey))
     {
         using (InteropHelp.UTF8StringHandle pchValue2 = new InteropHelp.UTF8StringHandle(pchValue))
         {
             return(NativeMethods.ISteamUGC_AddItemKeyValueTag(handle, pchKey2, pchValue2));
         }
     }
 }
        public static SteamAPICall_t SubmitItemUpdate(UGCUpdateHandle_t handle, string pchChangeNote)
        {
            InteropHelp.TestIfAvailableClient();
            SteamAPICall_t result;

            using (InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchChangeNote))
            {
                result = (SteamAPICall_t)NativeMethods.ISteamUGC_SubmitItemUpdate(handle, utf8StringHandle);
            }
            return(result);
        }
        public static bool RemoveItemKeyValueTags(UGCUpdateHandle_t handle, string pchKey)
        {
            InteropHelp.TestIfAvailableClient();
            bool result;

            using (InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchKey))
            {
                result = NativeMethods.ISteamUGC_RemoveItemKeyValueTags(handle, utf8StringHandle);
            }
            return(result);
        }
        public static bool SetItemPreview(UGCUpdateHandle_t handle, string pszPreviewFile)
        {
            InteropHelp.TestIfAvailableClient();
            bool result;

            using (InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pszPreviewFile))
            {
                result = NativeMethods.ISteamUGC_SetItemPreview(handle, utf8StringHandle);
            }
            return(result);
        }
        public static bool SetItemDescription(UGCUpdateHandle_t handle, string pchDescription)
        {
            InteropHelp.TestIfAvailableClient();
            bool result;

            using (InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchDescription))
            {
                result = NativeMethods.ISteamUGC_SetItemDescription(handle, utf8StringHandle);
            }
            return(result);
        }
Exemple #29
0
        public static bool SetItemContent(UGCUpdateHandle_t handle, string pszContentFolder)
        {
            InteropHelp.TestIfAvailableClient();
            bool result;

            using (InteropHelp.UTF8StringHandle uTF8StringHandle = new InteropHelp.UTF8StringHandle(pszContentFolder))
            {
                result = NativeMethods.ISteamUGC_SetItemContent(handle, uTF8StringHandle);
            }
            return(result);
        }
Exemple #30
0
        public static bool SetItemMetadata(UGCUpdateHandle_t handle, string pchMetaData)
        {
            InteropHelp.TestIfAvailableGameServer();
            bool result;

            using (InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchMetaData))
            {
                result = NativeMethods.ISteamGameServerUGC_SetItemMetadata(handle, utf8StringHandle);
            }
            return(result);
        }