Unstable 1.1.14.0

This commit is contained in:
Markus Isberg
2023-10-02 16:43:54 +03:00
parent 94f5a93a0c
commit cf8f0de659
606 changed files with 21906 additions and 11456 deletions
@@ -116,6 +116,15 @@ namespace Steamworks.Ugc
/// The number of downvotes of this item
/// </summary>
public uint VotesDown => details.VotesDown;
/// <summary>
/// Dependencies/children of this item or collection, available only from WithDependencies(true) queries
/// </summary>
public PublishedFileId[]? Children;
/// <summary>
/// Additional previews of this item or collection, available only from WithAdditionalPreviews(true) queries
/// </summary>
public UgcAdditionalPreview[]? AdditionalPreviews { get; internal set; }
public bool IsInstalled => (State & ItemState.Installed) == ItemState.Installed;
public bool IsDownloading => (State & ItemState.Downloading) == ItemState.Downloading;
@@ -410,7 +419,21 @@ namespace Steamworks.Ugc
{
return new Ugc.Editor( Id );
}
public async Task<bool> AddDependency( PublishedFileId child )
{
if ( SteamUGC.Internal is null ) { return false; }
var r = await SteamUGC.Internal.AddDependency( Id, child );
return r?.Result == Result.OK;
}
public async Task<bool> RemoveDependency( PublishedFileId child )
{
if ( SteamUGC.Internal is null ) { return false; }
var r = await SteamUGC.Internal.RemoveDependency( Id, child );
return r?.Result == Result.OK;
}
public Result Result => details.Result;
}
}