godot-kotlin-jvm icon indicating copy to clipboard operation
godot-kotlin-jvm copied to clipboard

Generate `gdj` and `kt` files from within the godot editor

Open chippmann opened this issue 2 years ago • 1 comments

With https://github.com/utopia-rise/godot-kotlin-jvm/pull/441 we introduced the concept of "registration files".

We now need a way to generate a gdj and a kt when the user creates a new script inside the editor.

One way could be with a custom resource saver where we not only save a gdj file, but also create a corresponding kt file in the root package.

chippmann avatar Mar 07 '23 12:03 chippmann

I think this proposal has to be paired with #500. It would make the implementation much easier if the .gdj files could be freely placed inside the godot project. The .kt and .gdj would then both be created next to each other. No need for custom C++ logic to place them in the correct directory (directory only known by our gradle plugin by the way).

CedNaru avatar Oct 12 '23 23:10 CedNaru