I'm using C++ in my godot project to handle a fundamental component of the game (the pathfinding), and while I haven't had problems with it for a while I realised recently something was missing from my understanding of it.
Only a few days ago I learnt how to make custom classes in GDScript, and am now starting to integrate them into the project because of how useful they are (declaring a PathNode type for my pathfinding frontend, for example). I'm now wondering if there's a way to declare a class/struct in C++ and then have it globally available in my GDS scripts? That would make the communication between the pathfinding frontend and backend much easier and more efficient.
Thanks in advance, Dominic