summaryrefslogtreecommitdiff
path: root/core/reference.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-08-23 19:10:32 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-08-23 19:11:11 -0300
commit3d1c03187132677800b7f6bc609eeef8fe51f315 (patch)
treed92a3bf3730e4a443858ce9dd96ee4268693ee7a /core/reference.h
parent21d53f29f392f4a33095de75c478da345a362555 (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.h8
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());
}
};