You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Remove unnecessary namespaces in generated PropertyDefVal files.
This commit is contained in:
@@ -78,10 +78,6 @@ namespace Godot.SourceGenerators
|
|||||||
|
|
||||||
var source = new StringBuilder();
|
var source = new StringBuilder();
|
||||||
|
|
||||||
source.Append("using Godot;\n");
|
|
||||||
source.Append("using Godot.NativeInterop;\n");
|
|
||||||
source.Append("\n");
|
|
||||||
|
|
||||||
if (hasNamespace)
|
if (hasNamespace)
|
||||||
{
|
{
|
||||||
source.Append("namespace ");
|
source.Append("namespace ");
|
||||||
@@ -281,7 +277,7 @@ namespace Godot.SourceGenerators
|
|||||||
{
|
{
|
||||||
source.Append("#pragma warning disable CS0109 // Disable warning about redundant 'new' keyword\n");
|
source.Append("#pragma warning disable CS0109 // Disable warning about redundant 'new' keyword\n");
|
||||||
|
|
||||||
string dictionaryType = "System.Collections.Generic.Dictionary<StringName, object>";
|
string dictionaryType = "System.Collections.Generic.Dictionary<Godot.StringName, object>";
|
||||||
|
|
||||||
source.Append("#if TOOLS\n");
|
source.Append("#if TOOLS\n");
|
||||||
source.Append(" internal new static ");
|
source.Append(" internal new static ");
|
||||||
|
|||||||
Reference in New Issue
Block a user