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/make_binders.py | |
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/make_binders.py')
-rw-r--r-- | core/make_binders.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/core/make_binders.py b/core/make_binders.py index a5cdb78443..c4a0131a32 100644 --- a/core/make_binders.py +++ b/core/make_binders.py @@ -16,12 +16,11 @@ public: $ return Variant::NIL; } - virtual StringName _gen_argument_type_name(int p_arg) const { return _gen_argument_type_hint(p_arg); } - StringName _gen_argument_type_hint(int p_argument) const { - $ifret if (p_argument==-1) return GetTypeInfo<R>::get_class_name();$ - $arg if (p_argument==(@-1)) return GetTypeInfo<P@>::get_class_name(); + virtual PropertyInfo _gen_argument_type_info(int p_argument) const { + $ifret if (p_argument==-1) return GetTypeInfo<R>::get_class_info();$ + $arg if (p_argument==(@-1)) return GetTypeInfo<P@>::get_class_info(); $ - return StringName(); + return PropertyInfo(); } #endif virtual String get_instance_class() const { @@ -106,12 +105,13 @@ public: virtual StringName _gen_argument_type_name(int p_arg) const { return _gen_argument_type_hint(p_arg); } - StringName _gen_argument_type_hint(int p_argument) const { - $ifret if (p_argument==-1) return GetTypeInfo<R>::get_class_name();$ - $arg if (p_argument==(@-1)) return GetTypeInfo<P@>::get_class_name(); + virtual PropertyInfo _gen_argument_type_info(int p_argument) const { + $ifret if (p_argument==-1) return GetTypeInfo<R>::get_class_info();$ + $arg if (p_argument==(@-1)) return GetTypeInfo<P@>::get_class_info(); $ - return StringName(); + return PropertyInfo(); } + #endif virtual String get_instance_class() const { return type_name; |