本文整理汇总了C#中UGCQueryHandle_t类的典型用法代码示例。如果您正苦于以下问题:C# UGCQueryHandle_t类的具体用法?C# UGCQueryHandle_t怎么用?C# UGCQueryHandle_t使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
UGCQueryHandle_t类属于命名空间,在下文中一共展示了UGCQueryHandle_t类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetQueryUGCPreviewURL
public static bool GetQueryUGCPreviewURL(UGCQueryHandle_t handle, uint index, out string pchURL, uint cchURLSize) {
InteropHelp.TestIfAvailableClient();
IntPtr pchURL2 = Marshal.AllocHGlobal((int)cchURLSize);
bool ret = NativeMethods.ISteamUGC_GetQueryUGCPreviewURL(handle, index, pchURL2, cchURLSize);
pchURL = ret ? InteropHelp.PtrToStringUTF8(pchURL2) : null;
Marshal.FreeHGlobal(pchURL2);
return ret;
}
示例2: GetQueryUGCAdditionalPreview
public static bool GetQueryUGCAdditionalPreview(UGCQueryHandle_t handle, uint index, uint previewIndex, out string pchURLOrVideoID, uint cchURLSize, out bool pbIsImage) {
InteropHelp.TestIfAvailableGameServer();
IntPtr pchURLOrVideoID2 = Marshal.AllocHGlobal((int)cchURLSize);
bool ret = NativeMethods.ISteamGameServerUGC_GetQueryUGCAdditionalPreview(handle, index, previewIndex, pchURLOrVideoID2, cchURLSize, out pbIsImage);
pchURLOrVideoID = ret ? InteropHelp.PtrToStringUTF8(pchURLOrVideoID2) : null;
Marshal.FreeHGlobal(pchURLOrVideoID2);
return ret;
}
示例3: GetQueryUGCMetadata
public static bool GetQueryUGCMetadata(UGCQueryHandle_t handle, uint index, out string pchMetadata, uint cchMetadatasize) {
InteropHelp.TestIfAvailableGameServer();
IntPtr pchMetadata2 = Marshal.AllocHGlobal((int)cchMetadatasize);
bool ret = NativeMethods.ISteamGameServerUGC_GetQueryUGCMetadata(handle, index, pchMetadata2, cchMetadatasize);
pchMetadata = ret ? InteropHelp.PtrToStringUTF8(pchMetadata2) : null;
Marshal.FreeHGlobal(pchMetadata2);
return ret;
}
示例4: AddRequiredTag
public static bool AddRequiredTag(UGCQueryHandle_t handle, string pTagName)
{
InteropHelp.TestIfAvailableClient();
bool result;
using (InteropHelp.UTF8StringHandle uTF8StringHandle = new InteropHelp.UTF8StringHandle(pTagName))
{
result = NativeMethods.ISteamUGC_AddRequiredTag(handle, uTF8StringHandle);
}
return result;
}
示例5: GetQueryUGCAdditionalPreview
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;
}
示例6: SetMatchAnyTag
/// <summary>
/// <para> Options only for querying all UGC</para>
/// </summary>
public static bool SetMatchAnyTag(UGCQueryHandle_t handle, bool bMatchAnyTag) {
InteropHelp.TestIfAvailableGameServer();
return NativeMethods.ISteamGameServerUGC_SetMatchAnyTag(handle, bMatchAnyTag);
}
示例7: SetCloudFileNameFilter
/// <summary>
/// <para> Options only for querying user UGC</para>
/// </summary>
public static bool SetCloudFileNameFilter(UGCQueryHandle_t handle, string pMatchCloudFileName) {
InteropHelp.TestIfAvailableGameServer();
using (var pMatchCloudFileName2 = new InteropHelp.UTF8StringHandle(pMatchCloudFileName)) {
return NativeMethods.ISteamGameServerUGC_SetCloudFileNameFilter(handle, pMatchCloudFileName2);
}
}
示例8: SetAllowCachedResponse
public static bool SetAllowCachedResponse(UGCQueryHandle_t handle, uint unMaxAgeSeconds) {
InteropHelp.TestIfAvailableGameServer();
return NativeMethods.ISteamGameServerUGC_SetAllowCachedResponse(handle, unMaxAgeSeconds);
}
示例9: ISteamGameServerUGC_SetSearchText
public static extern bool ISteamGameServerUGC_SetSearchText(UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pSearchText);
示例10: SetReturnTotalOnly
public static bool SetReturnTotalOnly(UGCQueryHandle_t handle, bool bReturnTotalOnly) {
InteropHelp.TestIfAvailableGameServer();
return NativeMethods.ISteamGameServerUGC_SetReturnTotalOnly(handle, bReturnTotalOnly);
}
示例11: ISteamGameServerUGC_SetRankedByTrendDays
public static extern bool ISteamGameServerUGC_SetRankedByTrendDays(UGCQueryHandle_t handle, uint unDays);
示例12: SetReturnChildren
public static bool SetReturnChildren(UGCQueryHandle_t handle, bool bReturnChildren) {
InteropHelp.TestIfAvailableClient();
return NativeMethods.ISteamUGC_SetReturnChildren(handle, bReturnChildren);
}
示例13: GetQueryUGCResult
/// <summary>
/// <para> Retrieve an individual result after receiving the callback for querying UGC</para>
/// </summary>
public static bool GetQueryUGCResult(UGCQueryHandle_t handle, uint index, out SteamUGCDetails_t pDetails) {
InteropHelp.TestIfAvailableGameServer();
return NativeMethods.ISteamGameServerUGC_GetQueryUGCResult(handle, index, out pDetails);
}
示例14: AddRequiredKeyValueTag
public static bool AddRequiredKeyValueTag(UGCQueryHandle_t 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);
}
}
示例15: ReleaseQueryUGCRequest
/// <summary>
/// <para> Release the request to free up memory, after retrieving results</para>
/// </summary>
public static bool ReleaseQueryUGCRequest(UGCQueryHandle_t handle) {
InteropHelp.TestIfAvailableGameServer();
return NativeMethods.ISteamGameServerUGC_ReleaseQueryUGCRequest(handle);
}