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; 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 + + + + 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/README.md b/README.md new file mode 100644 index 0000000..e69de29 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;