diff --git a/ActionGenerator.cs b/ActionGenerator.cs index 664fe64..1d657eb 100644 --- a/ActionGenerator.cs +++ b/ActionGenerator.cs @@ -1,3 +1,4 @@ + using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; diff --git a/Godot.Sharp.Extended.csproj b/Godot.Sharp.Extended.csproj index c91bb9d..8f7100f 100644 --- a/Godot.Sharp.Extended.csproj +++ b/Godot.Sharp.Extended.csproj @@ -1,51 +1,24 @@  - - netstandard2.0 - latest + + netstandard2.0 + false + latest - - 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 - + true + true - - - - - - - - - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - + Godot.Sharp.Extended + Godot.Sharp.Extended + Godot.Sharp.Extended + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + diff --git a/NodeBindGenerator.cs b/NodeBindGenerator.cs index bbc7bf9..59e4be1 100644 --- a/NodeBindGenerator.cs +++ b/NodeBindGenerator.cs @@ -1,4 +1,3 @@ -#nullable enable using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; diff --git a/NodePropBindGenerator.cs b/NodePropBindGenerator.cs index 86f0f29..976fecd 100644 --- a/NodePropBindGenerator.cs +++ b/NodePropBindGenerator.cs @@ -1,4 +1,3 @@ -#nullable enable using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; @@ -30,6 +29,7 @@ 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!.ToString(); - var godotProp = attributeData.ConstructorArguments[1].Value!.ToString(); + var nodeProp = attributeData.ConstructorArguments[0].Value as string; + var godotProp = attributeData.ConstructorArguments[1].Value as string; var memberDefinition = new MemberDefinition(fieldSymbol.Type.Name, fieldSymbol.Name, nodeProp, godotProp); classDefinition.MemberDefinitions.Add(memberDefinition); diff --git a/README.md b/README.md deleted file mode 100644 index e69de29..0000000 diff --git a/ResourceGenerator.cs b/ResourceGenerator.cs index e6f1100..be0799e 100644 --- a/ResourceGenerator.cs +++ b/ResourceGenerator.cs @@ -1,4 +1,3 @@ -#nullable enable using System.Collections.Generic; using System.Collections.Immutable; using System.IO;