mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-13 23:28:11 +03:00
SuspendDownloads added to public API
This commit is contained in:
parent
5c30b6039a
commit
110c0f2bad
@ -161,5 +161,16 @@ namespace Steamworks
|
|||||||
var result = await Internal.StopPlaytimeTrackingForAllItems();
|
var result = await Internal.StopPlaytimeTrackingForAllItems();
|
||||||
return result.Value.Result == Result.OK;
|
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