Merge pull request #59286 from raulsntos/csharp-ignore-PhysicsServer3DExtension
Ignore `PhysicsServer3DExtension` class in C#
This commit is contained in:
commit
35eec4de40
|
@ -18,16 +18,16 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
# - name: Editor w/ Mono (target=release_debug, tools=yes, tests=yes)
|
- name: Editor w/ Mono (target=release_debug, tools=yes, tests=yes)
|
||||||
# cache-name: linux-editor-mono
|
cache-name: linux-editor-mono
|
||||||
# target: release_debug
|
target: release_debug
|
||||||
# tools: true
|
tools: true
|
||||||
# tests: false # Disabled due freeze caused by mix Mono build and CI
|
tests: false # Disabled due freeze caused by mix Mono build and CI
|
||||||
# sconsflags: module_mono_enabled=yes mono_static=yes mono_glue=no
|
sconsflags: module_mono_enabled=yes mono_static=yes mono_glue=no
|
||||||
# doc-test: true
|
doc-test: true
|
||||||
# bin: "./bin/godot.linuxbsd.opt.tools.64.mono"
|
bin: "./bin/godot.linuxbsd.opt.tools.64.mono"
|
||||||
# build-mono: true
|
build-mono: true
|
||||||
# artifact: true
|
artifact: true
|
||||||
|
|
||||||
- name: Editor with doubles and sanitizers (target=debug, tools=yes, float=64, tests=yes, use_asan=yes, use_ubsan=yes)
|
- name: Editor with doubles and sanitizers (target=debug, tools=yes, float=64, tests=yes, use_asan=yes, use_ubsan=yes)
|
||||||
cache-name: linux-editor-double-sanitizers
|
cache-name: linux-editor-double-sanitizers
|
||||||
|
@ -42,14 +42,14 @@ jobs:
|
||||||
# Skip 2GiB artifact speeding up action.
|
# Skip 2GiB artifact speeding up action.
|
||||||
artifact: false
|
artifact: false
|
||||||
|
|
||||||
# - name: Template w/ Mono (target=release, tools=no)
|
- name: Template w/ Mono (target=release, tools=no)
|
||||||
# cache-name: linux-template-mono
|
cache-name: linux-template-mono
|
||||||
# target: release
|
target: release
|
||||||
# tools: false
|
tools: false
|
||||||
# tests: false
|
tests: false
|
||||||
# sconsflags: module_mono_enabled=yes mono_static=yes mono_glue=no debug_symbols=no
|
sconsflags: module_mono_enabled=yes mono_static=yes mono_glue=no debug_symbols=no
|
||||||
# build-mono: false
|
build-mono: false
|
||||||
# artifact: true
|
artifact: true
|
||||||
|
|
||||||
- name: Minimal Template (target=release, tools=no, everything disabled)
|
- name: Minimal Template (target=release, tools=no, everything disabled)
|
||||||
cache-name: linux-template-minimal
|
cache-name: linux-template-minimal
|
||||||
|
|
|
@ -100,6 +100,9 @@
|
||||||
|
|
||||||
#define BINDINGS_GENERATOR_VERSION UINT32_C(13)
|
#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");
|
const char *BindingsGenerator::TypeInterface::DEFAULT_VARARG_C_IN("\t%0 %1_in = %1;\n");
|
||||||
|
|
||||||
static String fix_doc_description(const String &p_bbcode) {
|
static String fix_doc_description(const String &p_bbcode) {
|
||||||
|
@ -2645,6 +2648,12 @@ bool BindingsGenerator::_populate_object_type_interfaces() {
|
||||||
continue;
|
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)) {
|
if (!ClassDB::is_class_exposed(type_cname)) {
|
||||||
_log("Ignoring type '%s' because it's not exposed\n", String(type_cname).utf8().get_data());
|
_log("Ignoring type '%s' because it's not exposed\n", String(type_cname).utf8().get_data());
|
||||||
class_list.pop_front();
|
class_list.pop_front();
|
||||||
|
|
Loading…
Reference in New Issue