Fix naming

pull/1401/head
PhobicHD 2024-03-03 18:58:27 -07:00
parent 8f007c6331
commit 3c7f444353
1 changed files with 7 additions and 7 deletions

View File

@ -53,11 +53,11 @@
#define ADD_PROPERTY(m_property, m_setter, m_getter) godot::ClassDB::add_property(get_class_static(), m_property, m_setter, m_getter) #define ADD_PROPERTY(m_property, m_setter, m_getter) godot::ClassDB::add_property(get_class_static(), m_property, m_setter, m_getter)
#define AUTO_ADD_PROPERTY(p_property, p_method) \ #define AUTO_ADD_PROPERTY(p_property, p_method) \
{ \ { \
auto get = &godot::detail::member_traits<decltype(p_method)>::object_type::_get_data_member<p_method>; \ auto get = &godot::internal::MemberPointerTraits<decltype(p_method)>::object_type::_get_data_member<p_method>; \
auto set = &godot::detail::member_traits<decltype(p_method)>::object_type::_set_data_member<p_method>; \ auto set = &godot::internal::MemberPointerTraits<decltype(p_method)>::object_type::_set_data_member<p_method>; \
ClassDB::bind_method(D_METHOD(&#p_method[1]), get); \ ClassDB::bind_method(D_METHOD(StringName("get") + StringName(&#p_method[1])), get); \
ClassDB::bind_method(D_METHOD(&#p_method[1]), set); \ ClassDB::bind_method(D_METHOD(StringName("set") + StringName(&#p_method[1])), set); \
ClassDB::add_property(get_class_static(), p_property, &#p_method[1], &#p_method[1]); \ ClassDB::add_property(get_class_static(), p_property, StringName("set") + StringName(&#p_method[1]), StringName("get") + StringName(&#p_method[1])); \
} }
#define ADD_PROPERTYI(m_property, m_setter, m_getter, m_index) godot::ClassDB::add_property(get_class_static(), m_property, m_setter, m_getter, m_index) #define ADD_PROPERTYI(m_property, m_setter, m_getter, m_index) godot::ClassDB::add_property(get_class_static(), m_property, m_setter, m_getter, m_index)