mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 14:15:47 +03:00
SuspendDownloads added to public API
This commit is contained in:
parent
5c30b6039a
commit
110c0f2bad
@ -161,5 +161,16 @@ public static async Task<bool> StopPlaytimeTrackingForAllItems()
|
||||
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…
Reference in New Issue
Block a user