First, I changed the locations of many files to remove the bloat from the main src/ directory:
I created a new jvm_wrapperdirectory meant for the previously named JavaWrapperand all its child classes.
binding is also a newcomer, previously named memory, but most of its content got moved to jvm_wrapper/memory
I improved the way we declare wrappers, instance like singletons and added to them a bunch of missing functions that now replace the manual JNI calls we had to do in GDKotlin.
Because there are a lot of changes. I encourage you to mostly look at GDKotlin, JvmInstanceWrapper, JvmSingletonWrapper and a few wrapper implementations to see how it's used.
First step of GDKotlin rework.
First, I changed the locations of many files to remove the bloat from the main![image](https://github.com/utopia-rise/godot-kotlin-jvm/assets/31470327/621dd8f3-edd8-4e97-a910-4070d68177be)
src
/ directory:I created a new
jvm_wrapper
directory meant for the previously namedJavaWrapper
and all its child classes.binding
is also a newcomer, previously namedmemory
, but most of its content got moved tojvm_wrapper/memory
I improved the way we declare wrappers, instance like singletons and added to them a bunch of missing functions that now replace the manual JNI calls we had to do in GDKotlin.
Because there are a lot of changes. I encourage you to mostly look at GDKotlin, JvmInstanceWrapper, JvmSingletonWrapper and a few wrapper implementations to see how it's used.