diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2022-03-18 20:29:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-18 20:29:15 +0100 |
| commit | 35eec4de40ed25eeb4423fcd6ae65936db9961ec (patch) | |
| tree | 2d1107c1eb3cfff23982807ebbfabee092683aa3 /modules | |
| parent | 02f61d9fb3523f5e04adfa39ba6a62fb2e2e2fe7 (diff) | |
| parent | 4bbfd20aa9bebc3ccdec04e156bfcb1711febe7d (diff) | |
Merge pull request #59286 from raulsntos/csharp-ignore-PhysicsServer3DExtension
Ignore `PhysicsServer3DExtension` class in C#
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/mono/editor/bindings_generator.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/mono/editor/bindings_generator.cpp b/modules/mono/editor/bindings_generator.cpp index 272283432d..eea7ed89cc 100644 --- a/modules/mono/editor/bindings_generator.cpp +++ b/modules/mono/editor/bindings_generator.cpp @@ -100,6 +100,9 @@ #define BINDINGS_GENERATOR_VERSION UINT32_C(13) +// Types that will be ignored by the generator and won't be available in C#. +const Vector<String> ignored_types = { "PhysicsServer3DExtension" }; + const char *BindingsGenerator::TypeInterface::DEFAULT_VARARG_C_IN("\t%0 %1_in = %1;\n"); static String fix_doc_description(const String &p_bbcode) { @@ -2645,6 +2648,12 @@ bool BindingsGenerator::_populate_object_type_interfaces() { continue; } + if (ignored_types.has(type_cname)) { + _log("Ignoring type '%s' because it's in the list of ignored types\n", String(type_cname).utf8().get_data()); + class_list.pop_front(); + continue; + } + if (!ClassDB::is_class_exposed(type_cname)) { _log("Ignoring type '%s' because it's not exposed\n", String(type_cname).utf8().get_data()); class_list.pop_front(); |