diff --git a/modules/authority/macros.h b/modules/authority/macros.h index 53be3185..b08f9c17 100644 --- a/modules/authority/macros.h +++ b/modules/authority/macros.h @@ -17,4 +17,12 @@ ADD_PROPERTY(PropertyInfo(m_type, #m_property), "set_" #m_property, \ "get_" #m_property) +#define GET_SET_FNS(m_type, m_property) \ + m_type get_##m_property() const { \ + return this->m_property; \ + } \ + void set_##m_property(m_type value) { \ + this->m_property = value; \ + } + #endif // !GODOT_EXTRA_MACROS_H