fix: change Global class Namespace
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
<RootNamespace>Polonium.Tasks</RootNamespace>
|
<RootNamespace>Polonium.Tasks</RootNamespace>
|
||||||
<AssemblyName>Polonium.Tasks</AssemblyName>
|
<AssemblyName>Polonium.Tasks</AssemblyName>
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
<Version>0.0.9</Version>
|
<Version>0.0.91</Version>
|
||||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||||
<GenerateDependencyFile>true</GenerateDependencyFile>
|
<GenerateDependencyFile>true</GenerateDependencyFile>
|
||||||
<TargetsForTfmSpecificBuildOutput>
|
<TargetsForTfmSpecificBuildOutput>
|
||||||
|
|||||||
@@ -46,12 +46,14 @@ public class GenerateProxyNodesTask : Task
|
|||||||
string className = cls.Identifier.Text;
|
string className = cls.Identifier.Text;
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.AppendLine("using Godot;");
|
sb
|
||||||
sb.AppendLine($"namespace GlobalProxy {{");
|
.AppendLine("using Godot;")
|
||||||
sb.AppendLine($" [GlobalClass]");
|
.AppendLine("namespace GlobalClasses;")
|
||||||
sb.AppendLine($" [Tool]");
|
.AppendLine("[GlobalClass]")
|
||||||
sb.AppendLine($" public partial class {className} : {GetDisplayName(cls)} {{ }}");
|
.AppendLine("[Tool]")
|
||||||
sb.AppendLine("}");
|
.AppendLine($"public partial class {className} : {GetDisplayName(cls)}")
|
||||||
|
.AppendLine("{")
|
||||||
|
.AppendLine("}");
|
||||||
|
|
||||||
string outputFile = Path.Combine(OutputDirectory, $"{className}.cs");
|
string outputFile = Path.Combine(OutputDirectory, $"{className}.cs");
|
||||||
File.WriteAllText(outputFile, sb.ToString());
|
File.WriteAllText(outputFile, sb.ToString());
|
||||||
|
|||||||
Reference in New Issue
Block a user