/// <summary>
 /// <para> Options only for querying user UGC</para>
 /// </summary>
 public static bool SetCloudFileNameFilter(UGCQueryHandle handle, string pMatchCloudFileName)
 {
     InteropHelp.TestIfAvailableGameServer();
     using (var pMatchCloudFileName2 = new InteropHelp.UTF8StringHandle(pMatchCloudFileName)) {
         return(NativeMethods.ISteamGameServerUGC_SetCloudFileNameFilter(handle, pMatchCloudFileName2));
     }
 }
Пример #2
0
 public static bool SetLanguage(UGCQueryHandle handle, string language)
 {
     InteropHelp.TestIfAvailableClient();
     using (var language2 = new InteropHelp.UTF8StringHandle(language)) {
         return(NativeMethods.ISteamUGC_SetLanguage(handle, language2));
     }
 }
Пример #3
0
 /// <summary>
 /// <para> Options to set for querying UGC</para>
 /// </summary>
 public static bool AddRequiredTag(UGCQueryHandle handle, string pTagName)
 {
     InteropHelp.TestIfAvailableClient();
     using (var pTagName2 = new InteropHelp.UTF8StringHandle(pTagName)) {
         return(NativeMethods.ISteamUGC_AddRequiredTag(handle, pTagName2));
     }
 }
 public static bool SetSearchText(UGCQueryHandle handle, string pSearchText)
 {
     InteropHelp.TestIfAvailableGameServer();
     using (var pSearchText2 = new InteropHelp.UTF8StringHandle(pSearchText)) {
         return(NativeMethods.ISteamGameServerUGC_SetSearchText(handle, pSearchText2));
     }
 }
 public static bool AddExcludedTag(UGCQueryHandle handle, string pTagName)
 {
     InteropHelp.TestIfAvailableGameServer();
     using (var pTagName2 = new InteropHelp.UTF8StringHandle(pTagName)) {
         return(NativeMethods.ISteamGameServerUGC_AddExcludedTag(handle, pTagName2));
     }
 }
 public static bool SetLanguage(UGCQueryHandle handle, string Language)
 {
     InteropHelp.TestIfAvailableGameServer();
     using (var Language2 = new InteropHelp.UTF8StringHandle(Language)) {
         return(NativeMethods.ISteamGameServerUGC_SetLanguage(handle, Language2));
     }
 }
 public static bool AddRequiredKeyValueTag(UGCQueryHandle handle, string pKey, string pValue)
 {
     InteropHelp.TestIfAvailableGameServer();
     using (var pKey2 = new InteropHelp.UTF8StringHandle(pKey))
         using (var pValue2 = new InteropHelp.UTF8StringHandle(pValue)) {
             return(NativeMethods.ISteamGameServerUGC_AddRequiredKeyValueTag(handle, pKey2, pValue2));
         }
 }
Пример #8
0
        public static bool GetQueryUGCPreviewURL(UGCQueryHandle handle, uint index, out string url, uint urlSize)
        {
            InteropHelp.TestIfAvailableClient();
            var url2 = Marshal.AllocHGlobal((int)urlSize);
            var ret  = NativeMethods.ISteamUGC_GetQueryUGCPreviewURL(handle, index, url2, urlSize);

            url = ret ? InteropHelp.PtrToStringUTF8(url2) : null;
            Marshal.FreeHGlobal(url2);
            return(ret);
        }
        public static bool GetQueryUGCAdditionalPreview(UGCQueryHandle handle, uint index, uint previewIndex, out string URLOrVideoID, uint URLSize, out bool pbIsImage)
        {
            InteropHelp.TestIfAvailableGameServer();
            var URLOrVideoID2 = Marshal.AllocHGlobal((int)URLSize);
            var ret           = NativeMethods.ISteamGameServerUGC_GetQueryUGCAdditionalPreview(handle, index, previewIndex, URLOrVideoID2, URLSize, out pbIsImage);

            URLOrVideoID = ret ? InteropHelp.PtrToStringUTF8(URLOrVideoID2) : null;
            Marshal.FreeHGlobal(URLOrVideoID2);
            return(ret);
        }
        public static bool GetQueryUGCPreviewURL(UGCQueryHandle handle, uint index, out string URL, uint URLSize)
        {
            InteropHelp.TestIfAvailableGameServer();
            var URL2 = Marshal.AllocHGlobal((int)URLSize);
            var ret  = NativeMethods.ISteamGameServerUGC_GetQueryUGCPreviewURL(handle, index, URL2, URLSize);

            URL = ret ? InteropHelp.PtrToStringUTF8(URL2) : null;
            Marshal.FreeHGlobal(URL2);
            return(ret);
        }
Пример #11
0
        public static bool GetQueryUGCAdditionalPreview(UGCQueryHandle handle, uint index, uint previewIndex, out string videoIdOrURL, uint urlSize, out bool pbIsImage)
        {
            InteropHelp.TestIfAvailableClient();
            var urlOrVideoId2 = Marshal.AllocHGlobal((int)urlSize);
            var ret           = NativeMethods.ISteamUGC_GetQueryUGCAdditionalPreview(handle, index, previewIndex, urlOrVideoId2, urlSize, out pbIsImage);

            videoIdOrURL = ret ? InteropHelp.PtrToStringUTF8(urlOrVideoId2) : null;
            Marshal.FreeHGlobal(urlOrVideoId2);
            return(ret);
        }
        public static bool GetQueryUGCMetadata(UGCQueryHandle handle, uint index, out string Metadata, uint Metadatasize)
        {
            InteropHelp.TestIfAvailableGameServer();
            var Metadata2 = Marshal.AllocHGlobal((int)Metadatasize);
            var ret       = NativeMethods.ISteamGameServerUGC_GetQueryUGCMetadata(handle, index, Metadata2, Metadatasize);

            Metadata = ret ? InteropHelp.PtrToStringUTF8(Metadata2) : null;
            Marshal.FreeHGlobal(Metadata2);
            return(ret);
        }
Пример #13
0
        public static bool GetQueryUGCMetadata(UGCQueryHandle handle, uint index, out string metadata, uint metadatasize)
        {
            InteropHelp.TestIfAvailableClient();
            var metadata2 = Marshal.AllocHGlobal((int)metadatasize);
            var ret       = NativeMethods.ISteamUGC_GetQueryUGCMetadata(handle, index, metadata2, metadatasize);

            metadata = ret ? InteropHelp.PtrToStringUTF8(metadata2) : null;
            Marshal.FreeHGlobal(metadata2);
            return(ret);
        }
Пример #14
0
        public static bool GetQueryUGCKeyValueTag(UGCQueryHandle handle, uint index, uint keyValueTagIndex, out string key, uint keySize, out string value, uint valueSize)
        {
            InteropHelp.TestIfAvailableClient();
            var key2   = Marshal.AllocHGlobal((int)keySize);
            var value2 = Marshal.AllocHGlobal((int)valueSize);
            var ret    = NativeMethods.ISteamUGC_GetQueryUGCKeyValueTag(handle, index, keyValueTagIndex, key2, keySize, value2, valueSize);

            key = ret ? InteropHelp.PtrToStringUTF8(key2) : null;
            Marshal.FreeHGlobal(key2);
            value = ret ? InteropHelp.PtrToStringUTF8(value2) : null;
            Marshal.FreeHGlobal(value2);
            return(ret);
        }
        public static bool GetQueryUGCKeyValueTag(UGCQueryHandle handle, uint index, uint keyValueTagIndex, out string Key, uint KeySize, out string Value, uint ValueSize)
        {
            InteropHelp.TestIfAvailableGameServer();
            var Key2   = Marshal.AllocHGlobal((int)KeySize);
            var Value2 = Marshal.AllocHGlobal((int)ValueSize);
            var ret    = NativeMethods.ISteamGameServerUGC_GetQueryUGCKeyValueTag(handle, index, keyValueTagIndex, Key2, KeySize, Value2, ValueSize);

            Key = ret ? InteropHelp.PtrToStringUTF8(Key2) : null;
            Marshal.FreeHGlobal(Key2);
            Value = ret ? InteropHelp.PtrToStringUTF8(Value2) : null;
            Marshal.FreeHGlobal(Value2);
            return(ret);
        }
 /// <summary>
 /// <para> Release the request to free up memory, after retrieving results</para>
 /// </summary>
 public static bool ReleaseQueryUGCRequest(UGCQueryHandle handle)
 {
     InteropHelp.TestIfAvailableGameServer();
     return(NativeMethods.ISteamGameServerUGC_ReleaseQueryUGCRequest(handle));
 }
 public static uint GetQueryUGCNumAdditionalPreviews(UGCQueryHandle handle, uint index)
 {
     InteropHelp.TestIfAvailableGameServer();
     return(NativeMethods.ISteamGameServerUGC_GetQueryUGCNumAdditionalPreviews(handle, index));
 }
 public static bool GetQueryUGCStatistic(UGCQueryHandle handle, uint index, EItemStatistic eStatType, out uint pStatValue)
 {
     InteropHelp.TestIfAvailableGameServer();
     return(NativeMethods.ISteamGameServerUGC_GetQueryUGCStatistic(handle, index, eStatType, out pStatValue));
 }
 public static bool GetQueryUGCChildren(UGCQueryHandle handle, uint index, PublishedFileId[] PublishedFileID, uint cMaxEntries)
 {
     InteropHelp.TestIfAvailableGameServer();
     return(NativeMethods.ISteamGameServerUGC_GetQueryUGCChildren(handle, index, PublishedFileID, cMaxEntries));
 }
 public static bool SetReturnKeyValueTags(UGCQueryHandle handle, bool bReturnKeyValueTags)
 {
     InteropHelp.TestIfAvailableGameServer();
     return(NativeMethods.ISteamGameServerUGC_SetReturnKeyValueTags(handle, bReturnKeyValueTags));
 }
 public static bool SetReturnLongDescription(UGCQueryHandle handle, bool bReturnLongDescription)
 {
     InteropHelp.TestIfAvailableGameServer();
     return(NativeMethods.ISteamGameServerUGC_SetReturnLongDescription(handle, bReturnLongDescription));
 }
 /// <summary>
 /// <para> Retrieve an individual result after receiving the callback for querying UGC</para>
 /// </summary>
 public static bool GetQueryUGCResult(UGCQueryHandle handle, uint index, out SteamUGCDetails pDetails)
 {
     InteropHelp.TestIfAvailableGameServer();
     return(NativeMethods.ISteamGameServerUGC_GetQueryUGCResult(handle, index, out pDetails));
 }
 /// <summary>
 /// <para> Send the query to Steam</para>
 /// </summary>
 public static SteamAPICall SendQueryUGCRequest(UGCQueryHandle handle)
 {
     InteropHelp.TestIfAvailableGameServer();
     return((SteamAPICall)NativeMethods.ISteamGameServerUGC_SendQueryUGCRequest(handle));
 }
Пример #24
0
 public static uint GetQueryUGCNumKeyValueTags(UGCQueryHandle handle, uint index)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamUGC_GetQueryUGCNumKeyValueTags(handle, index));
 }
 public static bool SetRankedByTrendDays(UGCQueryHandle handle, uint unDays)
 {
     InteropHelp.TestIfAvailableGameServer();
     return(NativeMethods.ISteamGameServerUGC_SetRankedByTrendDays(handle, unDays));
 }
 /// <summary>
 /// <para> Options only for querying all UGC</para>
 /// </summary>
 public static bool SetMatchAnyTag(UGCQueryHandle handle, bool bMatchAnyTag)
 {
     InteropHelp.TestIfAvailableGameServer();
     return(NativeMethods.ISteamGameServerUGC_SetMatchAnyTag(handle, bMatchAnyTag));
 }
Пример #27
0
 public static bool SetReturnChildren(UGCQueryHandle handle, bool bReturnChildren)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamUGC_SetReturnChildren(handle, bReturnChildren));
 }
 public static bool SetAllowCachedResponse(UGCQueryHandle handle, uint unMaxAgeSeconds)
 {
     InteropHelp.TestIfAvailableGameServer();
     return(NativeMethods.ISteamGameServerUGC_SetAllowCachedResponse(handle, unMaxAgeSeconds));
 }
 public static bool SetReturnAdditionalPreviews(UGCQueryHandle handle, bool bReturnAdditionalPreviews)
 {
     InteropHelp.TestIfAvailableGameServer();
     return(NativeMethods.ISteamGameServerUGC_SetReturnAdditionalPreviews(handle, bReturnAdditionalPreviews));
 }
 public static bool SetReturnTotalOnly(UGCQueryHandle handle, bool bReturnTotalOnly)
 {
     InteropHelp.TestIfAvailableGameServer();
     return(NativeMethods.ISteamGameServerUGC_SetReturnTotalOnly(handle, bReturnTotalOnly));
 }