Add/Remove ws item dependency

This commit is contained in:
kamyker 2020-06-09 00:22:54 +02:00
parent de69dd228f
commit 6e2ab8b735

View File

@ -383,6 +383,18 @@ namespace Steamworks.Ugc
return new Ugc.Editor( Id ); return new Ugc.Editor( Id );
} }
public async Task<bool> AddDependency( PublishedFileId child )
{
var r = await SteamUGC.Internal.AddDependency( Id, child );
return r?.Result == Result.OK;
}
public async Task<bool> RemoveDependency( PublishedFileId child )
{
var r = await SteamUGC.Internal.RemoveDependency( Id, child );
return r?.Result == Result.OK;
}
public Result Result => details.Result; public Result Result => details.Result;
} }
} }