wabbajack/Wabbajack.DTOs.ConverterGenerators/Program.cs

20 lines
617 B
C#
Raw Permalink Normal View History

2021-09-27 12:42:46 +00:00
using Wabbajack.DTOs.BSA.ArchiveStates;
using Wabbajack.DTOs.BSA.FileStates;
using Wabbajack.DTOs.DownloadStates;
2021-10-23 16:51:17 +00:00
namespace Wabbajack.DTOs.ConverterGenerators;
internal class Program
2021-09-27 12:42:46 +00:00
{
2021-10-23 16:51:17 +00:00
private static void Main(string[] args)
2021-09-27 12:42:46 +00:00
{
2021-10-23 16:51:17 +00:00
var cfile = new CFile();
new PolymorphicGenerator<IDownloadState>().GenerateAll(cfile);
new PolymorphicGenerator<IArchive>().GenerateAll(cfile);
new PolymorphicGenerator<Directive>().GenerateAll(cfile);
new PolymorphicGenerator<AFile>().GenerateAll(cfile);
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
cfile.Write(@"..\Wabbajack.DTOs\JsonConverters\Generated.cs");
2021-09-27 12:42:46 +00:00
}
}