wabbajack/Wabbajack.Lib/CompilationSteps/IncludeAll.cs
2020-09-05 13:36:44 -06:00

22 lines
535 B
C#

using System.Threading.Tasks;
using Alphaleonis.Win32.Filesystem;
using Newtonsoft.Json;
using Wabbajack.Common;
namespace Wabbajack.Lib.CompilationSteps
{
public class IncludeAll : ACompilationStep
{
public IncludeAll(ACompiler compiler) : base(compiler)
{
}
public override async ValueTask<Directive?> Run(RawSourceFile source)
{
var inline = source.EvolveTo<InlineFile>();
inline.SourceDataFile = source.File;
return inline;
}
}
}