fix: change Global class Namespace
This commit is contained in:
@@ -46,12 +46,14 @@ public class GenerateProxyNodesTask : Task
|
||||
string className = cls.Identifier.Text;
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.AppendLine("using Godot;");
|
||||
sb.AppendLine($"namespace GlobalProxy {{");
|
||||
sb.AppendLine($" [GlobalClass]");
|
||||
sb.AppendLine($" [Tool]");
|
||||
sb.AppendLine($" public partial class {className} : {GetDisplayName(cls)} {{ }}");
|
||||
sb.AppendLine("}");
|
||||
sb
|
||||
.AppendLine("using Godot;")
|
||||
.AppendLine("namespace GlobalClasses;")
|
||||
.AppendLine("[GlobalClass]")
|
||||
.AppendLine("[Tool]")
|
||||
.AppendLine($"public partial class {className} : {GetDisplayName(cls)}")
|
||||
.AppendLine("{")
|
||||
.AppendLine("}");
|
||||
|
||||
string outputFile = Path.Combine(OutputDirectory, $"{className}.cs");
|
||||
File.WriteAllText(outputFile, sb.ToString());
|
||||
|
||||
Reference in New Issue
Block a user