/// <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.ISteamUGC_GetQueryUGCResult(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, out pDetails));
 }
 // Retrieve an individual result after receiving the callback for querying UGC
 public static bool GetQueryUGCResult(UGCQueryHandle_t handle, uint index, ref SteamUGCDetails_t pDetails)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamUGC_GetQueryUGCResult(handle, index, ref pDetails));
 }
		/// <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);
		}
		public static extern bool ISteamGameServerUGC_GetQueryUGCResult(UGCQueryHandle_t handle, uint index, out SteamUGCDetails_t pDetails);
Exemple #5
0
 /// Retrieve an individual result after receiving the callback for querying UGC
 public static bool GetQueryUGCResult(UGCQueryHandle_t handle, uint index, out SteamUGCDetails_t pDetails)
 {
     pDetails = new SteamUGCDetails_t();
     return(false);
 }
Exemple #6
0
		public static CallResult<SteamUGCQueryCompleted_t> GetCreatedWorkShopEntries(Action<IEnumerable<SteamUGCDetails_t>> onResult)
		{
			var query = SteamUGC.CreateQueryUserUGCRequest(SteamUser.GetSteamID().GetAccountID(),
			   EUserUGCList.k_EUserUGCList_Published, EUGCMatchingUGCType.k_EUGCMatchingUGCType_UsableInGame,
			   EUserUGCListSortOrder.k_EUserUGCListSortOrder_LastUpdatedDesc, new AppId_t(Main.SteamAppID), new AppId_t(Main.SteamAppID),
			   1);

			var call = SteamUGC.SendQueryUGCRequest(query);

			var callResult = new CallResult<SteamUGCQueryCompleted_t>((t, failure) =>
			{
				if (onResult == null)
					return;

				List<SteamUGCDetails_t> ret = new List<SteamUGCDetails_t>();

				for (uint i = 0; i < t.m_unNumResultsReturned; i++)
				{
					var deets = new SteamUGCDetails_t();
					if (SteamUGC.GetQueryUGCResult(t.m_handle, i, out deets))
					{
						if (deets.m_nConsumerAppID.m_AppId == Main.SteamAppID && deets.m_eFileType == EWorkshopFileType.k_EWorkshopFileTypeCommunity)
						{
							ret.Add(deets);
						}
					}
				}

				onResult(ret);
			});
			callResult.Set(call);
			return callResult;
		}
Exemple #7
0
		// Retrieve an individual result after receiving the callback for querying UGC
		public static bool GetQueryUGCResult(UGCQueryHandle_t handle, uint index, ref SteamUGCDetails_t pDetails) {
			InteropHelp.TestIfAvailableClient();
			return NativeMethods.ISteamUGC_GetQueryUGCResult(handle, index, ref pDetails);
		}
        public static SteamAPICall_t SendQueryUGCRequest(UGCQueryHandle_t handle) => default;                                                                                                                                                                     // 0x000000018079B760-0x000000018079B800

        public static bool GetQueryUGCResult(UGCQueryHandle_t handle, uint index, out SteamUGCDetails_t pDetails)
        {
            pDetails = default;
            return(default);