Allows registration of types to Godot at all GDExtension.InitializationLevel cases.
Originally, this was supposed to support exposing types only at .editor initialization level, but the solution was generalized to include all cases. Maybe some esoteric use cases might require exposing types at .core and .servers levels.
I was able to work out a way of keeping the original declaration intact, so no breaking changes were introduced to the macro API.
Also, I still have to add api documentation and make some little adjustments to the existing one. If the code's good to go already, I'll do it.
closes #464
Allows registration of types to Godot at all
GDExtension.InitializationLevel
cases.Originally, this was supposed to support exposing types only at
.editor
initialization level, but the solution was generalized to include all cases. Maybe some esoteric use cases might require exposing types at.core
and.servers
levels.I was able to work out a way of keeping the original declaration intact, so no breaking changes were introduced to the macro API.
Also, I still have to add api documentation and make some little adjustments to the existing one. If the code's good to go already, I'll do it.