From 110c0f2bad7da9442600baabd8d69753cec326e4 Mon Sep 17 00:00:00 2001 From: DeKon0650 Date: Thu, 26 Nov 2020 23:55:40 +0300 Subject: [PATCH] SuspendDownloads added to public API --- Facepunch.Steamworks/SteamUgc.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Facepunch.Steamworks/SteamUgc.cs b/Facepunch.Steamworks/SteamUgc.cs index 4ddb20e..a36fb64 100644 --- a/Facepunch.Steamworks/SteamUgc.cs +++ b/Facepunch.Steamworks/SteamUgc.cs @@ -161,5 +161,16 @@ namespace Steamworks var result = await Internal.StopPlaytimeTrackingForAllItems(); return result.Value.Result == Result.OK; } - } + + /// + /// Suspends all workshop downloads. + /// Downloads will be suspended until you resume them by calling or when the game ends. + /// + public static void SuspendDownloads() => Internal.SuspendDownloads(true); + + /// + /// Resumes all workshop downloads + /// + public static void ResumeDownloads() => Internal.SuspendDownloads(false); + } }