diff options
| author | Ignacio Etcheverry | 2017-08-09 11:54:27 +0200 |
|---|---|---|
| committer | Ignacio Etcheverry | 2017-08-10 07:17:44 +0200 |
| commit | 46fdf163991f6f6893e00b301267c6ef2380008e (patch) | |
| tree | 103e1b6f5bd5dfd3918a912286fefd6fdbdad12f /core/reference.h | |
| parent | 1536cc438128fe4036fa7da5ec305513a781d3c8 (diff) | |
| download | godot-46fdf163991f6f6893e00b301267c6ef2380008e.tar.gz godot-46fdf163991f6f6893e00b301267c6ef2380008e.tar.zst godot-46fdf163991f6f6893e00b301267c6ef2380008e.zip | |
Diffstat (limited to 'core/reference.h')
| -rw-r--r-- | core/reference.h | 18 |
1 files changed, 18 insertions, 0 deletions
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<const RefPtr &> { } }; +template <class T> +struct GetTypeInfo<Ref<T> > { + enum { VARIANT_TYPE = Variant::OBJECT }; + + static inline StringName get_class_name() { + return T::get_class_static(); + } +}; + +template <class T> +struct GetTypeInfo<const Ref<T> &> { + enum { VARIANT_TYPE = Variant::OBJECT }; + + static inline StringName get_class_name() { + return T::get_class_static(); + } +}; + #endif #endif // REFERENCE_H |
