Content-side changes for packaging. (#9382)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
committed by
GitHub
parent
1e30848cf7
commit
7cd0677708
25
Content.Server/Acz/ContentMagicAczProvider.cs
Normal file
25
Content.Server/Acz/ContentMagicAczProvider.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Content.Packaging;
|
||||
using Robust.Packaging;
|
||||
using Robust.Packaging.AssetProcessing;
|
||||
using Robust.Server.ServerStatus;
|
||||
|
||||
namespace Content.Server.Acz;
|
||||
|
||||
public sealed class ContentMagicAczProvider : IMagicAczProvider
|
||||
{
|
||||
private readonly IDependencyCollection _deps;
|
||||
|
||||
public ContentMagicAczProvider(IDependencyCollection deps)
|
||||
{
|
||||
_deps = deps;
|
||||
}
|
||||
|
||||
public async Task Package(AssetPass pass, IPackageLogger logger, CancellationToken cancel)
|
||||
{
|
||||
var contentDir = DefaultMagicAczProvider.FindContentRootPath(_deps);
|
||||
|
||||
await ContentPackaging.WriteResources(contentDir, pass, logger, cancel);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user