Fix naming
parent
8f007c6331
commit
3c7f444353
|
@ -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 AUTO_ADD_PROPERTY(p_property, p_method) \
|
||||
{ \
|
||||
auto get = &godot::detail::member_traits<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>; \
|
||||
ClassDB::bind_method(D_METHOD(&#p_method[1]), get); \
|
||||
ClassDB::bind_method(D_METHOD(&#p_method[1]), set); \
|
||||
ClassDB::add_property(get_class_static(), p_property, &#p_method[1], &#p_method[1]); \
|
||||
auto get = &godot::internal::MemberPointerTraits<decltype(p_method)>::object_type::_get_data_member<p_method>; \
|
||||
auto set = &godot::internal::MemberPointerTraits<decltype(p_method)>::object_type::_set_data_member<p_method>; \
|
||||
ClassDB::bind_method(D_METHOD(StringName("get") + StringName(&#p_method[1])), get); \
|
||||
ClassDB::bind_method(D_METHOD(StringName("set") + StringName(&#p_method[1])), set); \
|
||||
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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue