From f75542e45ed66c77ea5e803a3d558ac4a681c9da Mon Sep 17 00:00:00 2001 From: Mario Steele Date: Fri, 26 Sep 2025 17:02:19 -0500 Subject: [PATCH 1/4] Updated CSProj Updated to properly format based upon source generator specs. --- Godot.Sharp.Extended.csproj | 65 ++++++++++++++++++++++++++----------- 1 file changed, 46 insertions(+), 19 deletions(-) diff --git a/Godot.Sharp.Extended.csproj b/Godot.Sharp.Extended.csproj index 8f7100f..c91bb9d 100644 --- a/Godot.Sharp.Extended.csproj +++ b/Godot.Sharp.Extended.csproj @@ -1,24 +1,51 @@  - - netstandard2.0 - false - latest + + netstandard2.0 + latest - true - true + + true + true + true + + Godot.Sharp.Extended + Godot.Sharp.Extended.Generators + + + true + Godot.Sharp.Extended + Godot Sharp Extended + 1.0.0 + Mario Steele + Extended Source Generators for Godot Game Engine + Copyright (c) 2025 Mario Steele + https://github.com/eumario/Godot.Sharp.Extended + https://github.com/eumario/Godot.Sharp.Extended + git + README.md + MIT + godot, generator + Built for Godot 4.x + - Godot.Sharp.Extended - Godot.Sharp.Extended - Godot.Sharp.Extended - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - + + + + + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + From 0828883bef65d478511d09885f2c4020d025b31b Mon Sep 17 00:00:00 2001 From: Mario Steele Date: Fri, 26 Sep 2025 17:02:36 -0500 Subject: [PATCH 2/4] Added Nullable flags --- NodeBindGenerator.cs | 1 + NodePropBindGenerator.cs | 6 +++--- ResourceGenerator.cs | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/NodeBindGenerator.cs b/NodeBindGenerator.cs index 59e4be1..bbc7bf9 100644 --- a/NodeBindGenerator.cs +++ b/NodeBindGenerator.cs @@ -1,3 +1,4 @@ +#nullable enable using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; diff --git a/NodePropBindGenerator.cs b/NodePropBindGenerator.cs index 976fecd..86f0f29 100644 --- a/NodePropBindGenerator.cs +++ b/NodePropBindGenerator.cs @@ -1,3 +1,4 @@ +#nullable enable using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; @@ -29,7 +30,6 @@ public class NodePropBindGenerator : IIncrementalGenerator } } """; - public void Initialize(IncrementalGeneratorInitializationContext context) { context.RegisterPostInitializationOutput(ctx => ctx.AddSource( @@ -108,8 +108,8 @@ public class NodePropBindGenerator : IIncrementalGenerator if (attributeData is null) continue; - var nodeProp = attributeData.ConstructorArguments[0].Value as string; - var godotProp = attributeData.ConstructorArguments[1].Value as string; + var nodeProp = attributeData.ConstructorArguments[0].Value!.ToString(); + var godotProp = attributeData.ConstructorArguments[1].Value!.ToString(); var memberDefinition = new MemberDefinition(fieldSymbol.Type.Name, fieldSymbol.Name, nodeProp, godotProp); classDefinition.MemberDefinitions.Add(memberDefinition); diff --git a/ResourceGenerator.cs b/ResourceGenerator.cs index be0799e..e6f1100 100644 --- a/ResourceGenerator.cs +++ b/ResourceGenerator.cs @@ -1,3 +1,4 @@ +#nullable enable using System.Collections.Generic; using System.Collections.Immutable; using System.IO; From e7d78ec639ded33b7bba070b53d4857fa14f13ba Mon Sep 17 00:00:00 2001 From: Mario Steele Date: Fri, 26 Sep 2025 17:02:42 -0500 Subject: [PATCH 3/4] Cleanup --- ActionGenerator.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/ActionGenerator.cs b/ActionGenerator.cs index 1d657eb..664fe64 100644 --- a/ActionGenerator.cs +++ b/ActionGenerator.cs @@ -1,4 +1,3 @@ - using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; From c1d61d8a5cf0c4b246148601cdc963c71dfb255f Mon Sep 17 00:00:00 2001 From: Mario Steele Date: Fri, 26 Sep 2025 17:02:48 -0500 Subject: [PATCH 4/4] Added Readme file --- README.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29