GDNative: How to register properties (like export variables) of base class in the derived class?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Robotex

I can register methods of base class in the derived:

register_method_explicit<godot::Player>("isCarryDeadBody", &godot::GameAgent::isCarryDeadBody);

But how to do the same with properties? How to register properties of base class in the derived?

:bust_in_silhouette: Reply From: Robotex

Ok, I found how to do it.

I just need to pass template parameter to register_propety function:

register_property<godot::DerrivedClass>("param", &godot::BaseClass::param, paramDefaultValue);

Now, everything is working perfectly.