godot-cpp icon indicating copy to clipboard operation
godot-cpp copied to clipboard

Added `ClassDB::bind_static_vararg_method()` to bind static variadic functions.

Open ttalexander2 opened this issue 2 years ago • 1 comments

I needed to bind static variadic functions for a GDExtension project i'm working on, so I figured I'd create a PR.

Adds ClassDB::bind_static_vararg_method(). I tried by best to mimic the conventions in which member vararg methods are bound.

ttalexander2 avatar Sep 21 '23 20:09 ttalexander2

Thanks, this is an interesting feature!

However, one of the design goals of godot-cpp is to provide (as much as possible) the same API as used internally by Godot modules. Since Godot's ClassDB doesn't support this function, it'll need to be added there first.

dsnopek avatar Sep 22 '23 21:09 dsnopek