poohcom1 / godotinterfaceexport Goto Github PK
View Code? Open in Web Editor NEWGodot C# package to support exporting interface types!
Home Page: https://www.nuget.org/packages/GodotInterfaceExport
License: Other
Godot C# package to support exporting interface types!
Home Page: https://www.nuget.org/packages/GodotInterfaceExport
License: Other
It would be nice to create a Resource equivalent to the current Node export. Analyzer-wise, we already have everything needed to properly detect if a resource implements an interface or not, as it can just use the same analyzer for node scripts.
However, the much harder task is creating a custom UI to cover resource-picker and resource editor.
This only happens with generated tool scripts.
I get this error when running dotnet sdk version 6.0
CSC : warning CS9057: The analyzer assembly '~\godotinterfaceexport\0.1.1\analyzers\dotnet\cs\GodotInterfaceExport.dll'
references version '4.7.0.0' of the compiler, which is newer than the currently running version '4.3.0.0'.
Updating to dotnet sdk version 8.0 seem to fix it, but I still want to make this source generator work with the 6.0 since that's the standard for Godot 4.0.
Currently, generated properties are hard-coded to be private
and non-null. We can improve this by having it inherit the modifier and nullability of whatever node it's generated from:
[Export]
[ExportInterface(typeof(IComponentA))]
public Node? ComponentANode { set; get; }
// Generated
public IComponentA? ComponentA { set; get; } // public and nullable
Currently, the attribute only supports properties. This is due to the source generator not detecting field members for some reason. As many Godot user uses regular fields for their exports, we should also support this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.