|
|
|
|
@ -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"); |
|
|
|
|
|
|
|
|
|
|