feat: 头文件注释

pull/10/head
yawn831 7 months ago
parent 7bcb7823a6
commit daf836b250
  1. 9
      SourceCodeGenerator.cs

@ -64,6 +64,13 @@ namespace SourceCodeGeneratorUbtPlugin
private readonly HashSet<string> ClassBlacklist = new();
private const string GeneratedHeaderComment =
"/*===========================================================================\n" +
" Generated code exported from UnrealCSharp SourceCodeGenerator.\n" +
" DO NOT modify this manually!\n" +
"===========================================================================*/\n" +
"\n";
public SourceCodeGenerator(IUhtExportFactory factory)
{
Factory = factory;
@ -381,6 +388,8 @@ namespace SourceCodeGeneratorUbtPlugin
private bool ExportClass(StringBuilder builder, UhtClass classObj)
{
builder.Append(GeneratedHeaderComment);
builder.Append("#pragma once\r\n\r\n" +
"PRAGMA_DISABLE_DEPRECATION_WARNINGS\r\n\r\n");

Loading…
Cancel
Save