diff options
author | Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com> | 2019-04-06 14:44:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-06 14:44:59 +0200 |
commit | 74719b8748d338c143a62b3659693af0d82b784c (patch) | |
tree | 2398622abe9a2cb31b9663183f2113680f37a7da /modules/mono/mono_gd/gd_mono_class.cpp | |
parent | 2db0613fb0d4586436cf17b3afa2cf5b64bc96b5 (diff) | |
parent | 480d4c6fbabc65a0822cd3954e488bf64d04b45c (diff) |
Merge pull request #26662 from neikeq/csharp-collection-changes
C#: Collections breaking changes and improvements
Diffstat (limited to 'modules/mono/mono_gd/gd_mono_class.cpp')
-rw-r--r-- | modules/mono/mono_gd/gd_mono_class.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/mono/mono_gd/gd_mono_class.cpp b/modules/mono/mono_gd/gd_mono_class.cpp index 92324d73f9..4342f46109 100644 --- a/modules/mono/mono_gd/gd_mono_class.cpp +++ b/modules/mono/mono_gd/gd_mono_class.cpp @@ -55,7 +55,8 @@ String GDMonoClass::get_full_name() const { } MonoType *GDMonoClass::get_mono_type() { - // Care, you cannot compare MonoType pointers + // Careful, you cannot compare two MonoType*. + // There is mono_metadata_type_equal, how is this different from comparing two MonoClass*? return get_mono_type(mono_class); } @@ -260,6 +261,11 @@ bool GDMonoClass::has_fetched_method_unknown_params(const StringName &p_name) { return get_fetched_method_unknown_params(p_name) != NULL; } +bool GDMonoClass::implements_interface(GDMonoClass *p_interface) { + + return mono_class_implements_interface(mono_class, p_interface->get_mono_ptr()); +} + GDMonoMethod *GDMonoClass::get_method(const StringName &p_name, int p_params_count) { MethodKey key = MethodKey(p_name, p_params_count); |