mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-02-26 21:41:19 +03:00
Add/Remove ws item dependency
This commit is contained in:
parent
de69dd228f
commit
6e2ab8b735
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user