utopia-rise / godot-kotlin-jvm

Godot Kotlin JVM Module
MIT License
560 stars 38 forks source link

Kotlin to Godot vararg optimization #613

Closed CedNaru closed 2 months ago

CedNaru commented 2 months ago

Quick change to how vararg arguments are sent to the buffer. Now we use the VariantMapper instead of testing a thousand classes in a giant when statement. This is not a new approach, we already use the same logic when creating a VariantArray and Dictionary to check if the type is compatible with Godot.