diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-08-23 19:10:32 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-08-23 19:11:11 -0300 |
commit | 3d1c03187132677800b7f6bc609eeef8fe51f315 (patch) | |
tree | d92a3bf3730e4a443858ce9dd96ee4268693ee7a /core/reference.h | |
parent | 21d53f29f392f4a33095de75c478da345a362555 (diff) |
Changed MethodBind API to request information from methods. It's much claner now.
Also changed PropertyInfo to include informatino about class names.
Diffstat (limited to 'core/reference.h')
-rw-r--r-- | core/reference.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/reference.h b/core/reference.h index 69250a4701..764c924cdb 100644 --- a/core/reference.h +++ b/core/reference.h @@ -382,8 +382,8 @@ template <class T> struct GetTypeInfo<Ref<T> > { enum { VARIANT_TYPE = Variant::OBJECT }; - static inline StringName get_class_name() { - return T::get_class_static(); + static inline PropertyInfo get_class_info() { + return PropertyInfo(Variant::OBJECT, String(), PROPERTY_HINT_RESOURCE_TYPE, T::get_class_static()); } }; @@ -391,8 +391,8 @@ template <class T> struct GetTypeInfo<const Ref<T> &> { enum { VARIANT_TYPE = Variant::OBJECT }; - static inline StringName get_class_name() { - return T::get_class_static(); + static inline PropertyInfo get_class_info() { + return PropertyInfo(Variant::OBJECT, String(), PROPERTY_HINT_RESOURCE_TYPE, T::get_class_static()); } }; |