mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-04-16 06:12:28 +03:00
Added Ugc.Item.Directory
This commit is contained in:
parent
a0d9fdeab1
commit
2a55d7a8e8
@ -33,6 +33,20 @@ namespace Steamworks.Ugc
|
|||||||
public bool IsSubscribed => (State & ItemState.Subscribed) == ItemState.Subscribed;
|
public bool IsSubscribed => (State & ItemState.Subscribed) == ItemState.Subscribed;
|
||||||
public bool NeedsUpdate => (State & ItemState.NeedsUpdate) == ItemState.NeedsUpdate;
|
public bool NeedsUpdate => (State & ItemState.NeedsUpdate) == ItemState.NeedsUpdate;
|
||||||
|
|
||||||
|
public string Directory
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
ulong size = 0;
|
||||||
|
uint ts = 0;
|
||||||
|
var sb = Helpers.TakeStringBuilder();
|
||||||
|
if ( !SteamUGC.Internal.GetItemInstallInfo( Id, ref size, sb, (uint)sb.Capacity, ref ts ) )
|
||||||
|
return null;
|
||||||
|
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public bool Download( bool highPriority = false )
|
public bool Download( bool highPriority = false )
|
||||||
{
|
{
|
||||||
return SteamUGC.Internal.DownloadItem( Id, highPriority );
|
return SteamUGC.Internal.DownloadItem( Id, highPriority );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user