You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Ignore PhysicsServer3DExtension class in C#
PhysicsServer3DExtension inherits from PhysicsServer3D which is a singleton class, since singleton classes are generated as static in C# it would generate invalid C# so for now we'll be ignoring PhysicsServer3DExtension.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user