mrakakuy / kotlin-godot-wrapper

Godot wrapper for Kotlin/Native
Apache License 2.0
58 stars 12 forks source link

Generate classes.json via annotation processor #2

Open Wavesonics opened 4 years ago

Wavesonics commented 4 years ago

It should be possible to generate the classes.json file automatically.

One idea would to annotate classes intended for export with @gdclass or something, and then have a kap processor generate the json file.

chippmann commented 4 years ago

@Wavesonics We're currently developing that in a fork. Shouldn't be too long until it's ready. But it isn't that easy as you described as kapt only works for jvm targets. We developed an Compiler plugin so we can process the annotations. The code generation is currently under development. I'll update this issue once we're done with it.

Wavesonics commented 4 years ago

@chippmann whoa that's awesome! I don't have a ton of time right now, but if you guys are still going strong when I have some time I'd love to contribute.

chippmann commented 4 years ago

@Wavesonics Feel free :-) Every help is appreciated.

StragaSevera commented 4 years ago

Is there any progress for this issue? It would be cool to have it =-)

chippmann commented 4 years ago

@StragaSevera We moved our development to https://github.com/utopia-rise/godot-kotlin as this project seems dead from the original maintainer. There we have the support implemented and lots of other cool features. But read the readme! We are currently developing a newer version of the binding there as well.