From 46fdf163991f6f6893e00b301267c6ef2380008e Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Wed, 9 Aug 2017 11:54:27 +0200 Subject: Improves method bind detection of signature types --- core/reference.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'core/reference.h') diff --git a/core/reference.h b/core/reference.h index 90f2791f4..7f48f8323 100644 --- a/core/reference.h +++ b/core/reference.h @@ -374,5 +374,23 @@ struct PtrToArg { } }; +template +struct GetTypeInfo > { + enum { VARIANT_TYPE = Variant::OBJECT }; + + static inline StringName get_class_name() { + return T::get_class_static(); + } +}; + +template +struct GetTypeInfo &> { + enum { VARIANT_TYPE = Variant::OBJECT }; + + static inline StringName get_class_name() { + return T::get_class_static(); + } +}; + #endif #endif // REFERENCE_H -- cgit v1.2.3-70-g09d2