コード例 #1
0
 /// <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));
 }
コード例 #2
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));
 }
コード例 #3
0
		/// <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);
		}
コード例 #4
0
		public static extern bool ISteamGameServerUGC_GetQueryUGCResult(UGCQueryHandle_t handle, uint index, out SteamUGCDetails_t pDetails);
コード例 #5
0
ファイル: isteamugc.cs プロジェクト: rfht/Steamworks-nosteam
 /// 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);
 }
コード例 #6
0
ファイル: SteamWorker.cs プロジェクト: dsmo7206/Lemma
		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;
		}
コード例 #7
0
ファイル: isteamugc.cs プロジェクト: sparker/Lemma
		// 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);
		}
コード例 #8
0
        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);