⚠ Deprecated: Legacy
This project is abandoned if anyone want to take ownership of it contact me nuget@jemy191.ca.
Package to simplify C# -> GDScript interoperability
$ dotnet add package GDBridgeSimple package to simplify C# -> GDScript interoperability. It comes in two part the bridge code and the source generator. The generator will parse all the GDScript in the project and generate a C# GDBridge class for each of them. It aims to reduce or remove the need to use string and untyped way of communicating with GDScript from C#.
using GdBridge;
var myGDScript = new GdScriptBridgeFactory(this).ResolveNode<ArenaBridge>(arena);
myGDScript.on_configure(42);
The bridge class is partial, so you can extend it if needed.
The bridge class is in the global namespace.
You can extend it like this:
partial class ArenaBridge
{
public void DoSomethingElse(int deckId) => on_configure(deckId);
}
The generator can be gotten from here