mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-02-04 01:30:30 +03:00
Merge pull request #504 from DeKon0650/add-suspend-downloads
SuspendDownloads added to public API
This commit is contained in:
commit
31ffaa3e6e
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user