Beispiel #1
0
		public static bool GetQueryUGCAdditionalPreview(UGCQueryHandle_t handle, uint index, uint previewIndex, out string pchURLOrVideoID, uint cchURLSize, out string pchOriginalFileName, uint cchOriginalFileNameSize, out EItemPreviewType pPreviewType) {
			InteropHelp.TestIfAvailableClient();
			IntPtr pchURLOrVideoID2 = Marshal.AllocHGlobal((int)cchURLSize);
			IntPtr pchOriginalFileName2 = Marshal.AllocHGlobal((int)cchOriginalFileNameSize);
			bool ret = NativeMethods.ISteamUGC_GetQueryUGCAdditionalPreview(handle, index, previewIndex, pchURLOrVideoID2, cchURLSize, pchOriginalFileName2, cchOriginalFileNameSize, out pPreviewType);
			pchURLOrVideoID = ret ? InteropHelp.PtrToStringUTF8(pchURLOrVideoID2) : null;
			Marshal.FreeHGlobal(pchURLOrVideoID2);
			pchOriginalFileName = ret ? InteropHelp.PtrToStringUTF8(pchOriginalFileName2) : null;
			Marshal.FreeHGlobal(pchOriginalFileName2);
			return ret;
		}
Beispiel #2
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(handle, pszPreviewFile2, type);
			}
		}
		public static extern bool ISteamGameServerUGC_GetQueryUGCAdditionalPreview(UGCQueryHandle_t handle, uint index, uint previewIndex, IntPtr pchURLOrVideoID, uint cchURLSize, IntPtr pchOriginalFileName, uint cchOriginalFileNameSize, out EItemPreviewType pPreviewType);
		public static extern bool ISteamGameServerUGC_AddItemPreviewFile(UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pszPreviewFile, EItemPreviewType type);
Beispiel #5
0
        public static bool GetQueryUGCAdditionalPreview(UGCQueryHandle_t handle, uint index, uint previewIndex, out string pchURLOrVideoID, uint cchURLSize, out string pchOriginalFileName, uint cchOriginalFileNameSize, out EItemPreviewType pPreviewType)
        {
            InteropHelp.TestIfAvailableClient();
            IntPtr pchURLOrVideoID2     = Marshal.AllocHGlobal((int)cchURLSize);
            IntPtr pchOriginalFileName2 = Marshal.AllocHGlobal((int)cchOriginalFileNameSize);
            bool   ret = NativeMethods.ISteamUGC_GetQueryUGCAdditionalPreview(handle, index, previewIndex, pchURLOrVideoID2, cchURLSize, pchOriginalFileName2, cchOriginalFileNameSize, out pPreviewType);

            pchURLOrVideoID = ret ? InteropHelp.PtrToStringUTF8(pchURLOrVideoID2) : null;
            Marshal.FreeHGlobal(pchURLOrVideoID2);
            pchOriginalFileName = ret ? InteropHelp.PtrToStringUTF8(pchOriginalFileName2) : null;
            Marshal.FreeHGlobal(pchOriginalFileName2);
            return(ret);
        }
Beispiel #6
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(handle, pszPreviewFile2, type));
     }
 }
Beispiel #7
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.TestIfAvailableGameServer();
     using (var pszPreviewFile2 = new InteropHelp.UTF8StringHandle(pszPreviewFile)) {
         return(NativeMethods.ISteamUGC_AddItemPreviewFile(CSteamGameServerAPIContext.GetSteamUGC(), handle, pszPreviewFile2, type));
     }
 }
        // Token: 0x06000693 RID: 1683 RVA: 0x0000D340 File Offset: 0x0000B540
        public static bool GetQueryUGCAdditionalPreview(UGCQueryHandle_t handle, uint index, uint previewIndex, out string pchURLOrVideoID, uint cchURLSize, out string pchOriginalFileName, uint cchOriginalFileNameSize, out EItemPreviewType pPreviewType)
        {
            InteropHelp.TestIfAvailableGameServer();
            IntPtr intPtr  = Marshal.AllocHGlobal((int)cchURLSize);
            IntPtr intPtr2 = Marshal.AllocHGlobal((int)cchOriginalFileNameSize);
            bool   flag    = NativeMethods.ISteamUGC_GetQueryUGCAdditionalPreview(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, previewIndex, intPtr, cchURLSize, intPtr2, cchOriginalFileNameSize, out pPreviewType);

            pchURLOrVideoID = (flag ? InteropHelp.PtrToStringUTF8(intPtr) : null);
            Marshal.FreeHGlobal(intPtr);
            pchOriginalFileName = (flag ? InteropHelp.PtrToStringUTF8(intPtr2) : null);
            Marshal.FreeHGlobal(intPtr2);
            return(flag);
        }
        // Token: 0x060006B5 RID: 1717 RVA: 0x0000D7FC File Offset: 0x0000B9FC
        public static bool AddItemPreviewFile(UGCUpdateHandle_t handle, string pszPreviewFile, EItemPreviewType type)
        {
            InteropHelp.TestIfAvailableGameServer();
            bool result;

            using (InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pszPreviewFile))
            {
                result = NativeMethods.ISteamUGC_AddItemPreviewFile(CSteamGameServerAPIContext.GetSteamUGC(), handle, utf8StringHandle, type);
            }
            return(result);
        }