diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-04-29 16:56:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-29 16:56:25 +0200 |
commit | 554c0ea90b4bc3b94d2c9a357d6f9c1db93abfe7 (patch) | |
tree | 90076d464a839ebdd1cb4485239c5eb3aab4bb34 /core/method_bind.h | |
parent | a3617f6ca82f4c8121f75d9d2c342ef5431dd214 (diff) | |
parent | 3380565e4be4e3decbd0981c3f6a2e54f982c2f2 (diff) |
Merge pull request #28423 from neikeq/dont-forget-to-think-a-name-for-this-branch
C#: Deprecate accessor methods and generate correct int and float types
Diffstat (limited to 'core/method_bind.h')
-rw-r--r-- | core/method_bind.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/method_bind.h b/core/method_bind.h index 5ea8adb7e0..1b0c3b27c0 100644 --- a/core/method_bind.h +++ b/core/method_bind.h @@ -273,6 +273,8 @@ public: void set_argument_names(const Vector<StringName> &p_names); //set by class, db, can't be inferred otherwise Vector<StringName> get_argument_names() const; + virtual GodotTypeInfo::Metadata get_argument_meta(int p_arg) const = 0; + #endif void set_hint_flags(uint32_t p_hint) { hint_flags = p_hint; } uint32_t get_hint_flags() const { return hint_flags | (is_const() ? METHOD_FLAG_CONST : 0) | (is_vararg() ? METHOD_FLAG_VARARG : 0); } @@ -329,6 +331,10 @@ public: return _gen_argument_type_info(p_arg).type; } + virtual GodotTypeInfo::Metadata get_argument_meta(int) const { + return GodotTypeInfo::METADATA_NONE; + } + #else virtual Variant::Type _gen_argument_type(int p_arg) const { |