Merge pull request #504 from DeKon0650/add-suspend-downloads

SuspendDownloads added to public API
This commit is contained in:
Garry Newman 2020-11-27 07:35:41 +00:00 committed by GitHub
commit 31ffaa3e6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,5 +161,16 @@ namespace Steamworks
var result = await Internal.StopPlaytimeTrackingForAllItems();
return result.Value.Result == Result.OK;
}
}
/// <summary>
/// Suspends all workshop downloads.
/// Downloads will be suspended until you resume them by calling <see cref="ResumeDownloads"/> or when the game ends.
/// </summary>
public static void SuspendDownloads() => Internal.SuspendDownloads(true);
/// <summary>
/// Resumes all workshop downloads
/// </summary>
public static void ResumeDownloads() => Internal.SuspendDownloads(false);
}
}