feat: 头文件注释 (#10)

* feat: 头文件注释

* feat: 头文件注释提交
This commit is contained in:
yawn831 authored and GitHub committed 2026-01-22 10:31:06 +08:00
1 parent 7bcb7823a6
commit e5c27effd7
1 file changed
+11
+11
View File
@@ -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;
@@ -366,6 +373,8 @@ namespace SourceCodeGeneratorUbtPlugin
var builder = borrow.StringBuilder;
builder.Append(GeneratedHeaderComment);
builder.Append("#pragma once\r\n\r\n");
foreach (var value in package.Value)
@@ -381,6 +390,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");