diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ada01e93..91be1bb5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,8 @@ on: [push, pull_request] env: # Only used for the cache key. Increment version to force clean build. GODOT_BASE_BRANCH: master + # Used to select the version of Godot to run the tests with. + GODOT_TEST_VERSION: master concurrency: group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}} @@ -117,7 +119,7 @@ jobs: - name: Web dependencies if: ${{ matrix.platform == 'web' }} - uses: mymindstorm/setup-emsdk@v13 + uses: mymindstorm/setup-emsdk@v14 with: version: ${{env.EM_VERSION}} actions-cache-folder: ${{env.EM_CACHE_FOLDER}} @@ -134,26 +136,26 @@ jobs: - name: Generate godot-cpp sources only run: | - scons platform=${{ matrix.platform }} build_library=no ${{ matrix.flags }} + scons platform=${{ matrix.platform }} verbose=yes build_library=no ${{ matrix.flags }} scons -c - name: Build godot-cpp (debug) run: | - scons platform=${{ matrix.platform }} target=template_debug ${{ matrix.flags }} + scons platform=${{ matrix.platform }} verbose=yes target=template_debug ${{ matrix.flags }} - name: Build test without rebuilding godot-cpp (debug) run: | cd test - scons platform=${{ matrix.platform }} target=template_debug ${{ matrix.flags }} build_library=no + scons platform=${{ matrix.platform }} verbose=yes target=template_debug ${{ matrix.flags }} build_library=no - name: Build test and godot-cpp (release) run: | cd test - scons platform=${{ matrix.platform }} target=template_release ${{ matrix.flags }} + scons platform=${{ matrix.platform }} verbose=yes target=template_release ${{ matrix.flags }} - name: Download latest Godot artifacts uses: dsnopek/action-download-artifact@1322f74e2dac9feed2ee76a32d9ae1ca3b4cf4e9 - if: ${{ matrix.run-tests }} + if: ${{ matrix.run-tests && env.GODOT_TEST_VERSION == 'master' }} with: repo: godotengine/godot branch: master @@ -166,15 +168,28 @@ jobs: ensure_latest: true path: godot-artifacts + - name: Prepare Godot artifacts for testing + if: ${{ matrix.run-tests && env.GODOT_TEST_VERSION == 'master' }} + run: | + chmod +x ./godot-artifacts/godot.linuxbsd.editor.x86_64.mono + echo "GODOT=$(pwd)/godot-artifacts/godot.linuxbsd.editor.x86_64.mono" >> $GITHUB_ENV + + - name: Download requested Godot version for testing + if: ${{ matrix.run-tests && env.GODOT_TEST_VERSION != 'master' }} + run: | + wget "https://github.com/godotengine/godot-builds/releases/download/${GODOT_TEST_VERSION}/Godot_v${GODOT_TEST_VERSION}_linux.x86_64.zip" -O Godot.zip + unzip -a Godot.zip + chmod +x "Godot_v${GODOT_TEST_VERSION}_linux.x86_64" + echo "GODOT=$(pwd)/Godot_v${GODOT_TEST_VERSION}_linux.x86_64" >> $GITHUB_ENV + - name: Run tests if: ${{ matrix.run-tests }} run: | - chmod +x ./godot-artifacts/godot.linuxbsd.editor.x86_64.mono - ./godot-artifacts/godot.linuxbsd.editor.x86_64.mono --headless --version + $GODOT --headless --version cd test # Need to run the editor so .godot is generated... but it crashes! Ignore that :-) - (cd project && (timeout 10 ../../godot-artifacts/godot.linuxbsd.editor.x86_64.mono --editor --headless --quit >/dev/null 2>&1 || true)) - GODOT=../godot-artifacts/godot.linuxbsd.editor.x86_64.mono ./run-tests.sh + (cd project && (timeout 30 $GODOT --import --headless >/dev/null 2>&1 || true)) + ./run-tests.sh - name: Upload artifact uses: actions/upload-artifact@v3 diff --git a/CMakeLists.txt b/CMakeLists.txt index e7151026..cf564d01 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,7 +37,7 @@ # Todo # Test build for Windows, Mac and mingw. -cmake_minimum_required(VERSION 3.12) +cmake_minimum_required(VERSION 3.13) project(godot-cpp LANGUAGES CXX) option(GENERATE_TEMPLATE_GET_NODE "Generate a template version of the Node class's get_node." ON) diff --git a/README.md b/README.md index f4f3be0c..c96e466e 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ This repository contains the *C++ bindings* for the [**Godot Engine**](https:// - [**Compatibility**](#compatibility) - [**Contributing**](#contributing) - [**Getting started**](#getting-started) -- [**Included example**](#included-example) +- [**Examples and templates**](#examples-and-templates) ## Versioning @@ -132,7 +132,7 @@ void initialize_example_module(ModuleInitializationLevel p_level) { if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) { return; } - ClassDB::register_class(); + GDREGISTER_CLASS(Example); } ``` diff --git a/binding_generator.py b/binding_generator.py index 1c07b067..67a7d5f0 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -309,6 +309,10 @@ def generate_bindings(api_filepath, use_template_get_node, bits="64", precision= generate_utility_functions(api, target_dir) +CLASS_ALIASES = { + "ClassDB": "ClassDBSingleton", +} + builtin_classes = [] # Key is class name, value is boolean where True means the class is refcounted. @@ -541,6 +545,8 @@ def generate_builtin_class_header(builtin_api, size, used_classes, fully_used_cl result.append("#include ") if class_name == "PackedVector3Array": result.append("#include ") + if class_name == "PackedVector4Array": + result.append("#include ") if is_packed_array(class_name): result.append("#include ") @@ -696,7 +702,7 @@ def generate_builtin_class_header(builtin_api, size, used_classes, fully_used_cl vararg = method["is_vararg"] if vararg: - result.append("\ttemplate") + result.append("\ttemplate") method_signature = "\t" if "is_static" in method and method["is_static"]: @@ -727,9 +733,9 @@ def generate_builtin_class_header(builtin_api, size, used_classes, fully_used_cl # Special cases. if class_name == "String": result.append("\tstatic String utf8(const char *from, int64_t len = -1);") - result.append("\tvoid parse_utf8(const char *from, int64_t len = -1);") + result.append("\tError parse_utf8(const char *from, int64_t len = -1);") result.append("\tstatic String utf16(const char16_t *from, int64_t len = -1);") - result.append("\tvoid parse_utf16(const char16_t *from, int64_t len = -1);") + result.append("\tError parse_utf16(const char16_t *from, int64_t len = -1, bool default_little_endian = true);") result.append("\tCharString utf8() const;") result.append("\tCharString ascii() const;") result.append("\tChar16String utf16() const;") @@ -795,7 +801,7 @@ def generate_builtin_class_header(builtin_api, size, used_classes, fully_used_cl result.append("\tchar32_t *ptrw();") if class_name == "Array": - result.append("\ttemplate ") + result.append("\ttemplate ") result.append("\tstatic Array make(Args... args) {") result.append("\t\treturn helpers::append_all(Array(), args...);") result.append("\t}") @@ -1256,9 +1262,9 @@ def generate_engine_classes_bindings(api, output_dir, use_template_get_node): # First create map of classes and singletons. for class_api in api["classes"]: # Generate code for the ClassDB singleton under a different name. - if class_api["name"] == "ClassDB": - class_api["name"] = "ClassDBSingleton" - class_api["alias_for"] = "ClassDB" + if class_api["name"] in CLASS_ALIASES: + class_api["alias_for"] = class_api["name"] + class_api["name"] = CLASS_ALIASES[class_api["alias_for"]] engine_classes[class_api["name"]] = class_api["is_refcounted"] for native_struct in api["native_structures"]: if native_struct["name"] == "ObjectID": @@ -1268,9 +1274,9 @@ def generate_engine_classes_bindings(api, output_dir, use_template_get_node): for singleton in api["singletons"]: # Generate code for the ClassDB singleton under a different name. - if singleton["name"] == "ClassDB": - singleton["name"] = "ClassDBSingleton" - singleton["alias_for"] = "ClassDB" + if singleton["name"] in CLASS_ALIASES: + singleton["alias_for"] = singleton["name"] + singleton["name"] = CLASS_ALIASES[singleton["name"]] singletons.append(singleton["name"]) for class_api in api["classes"]: @@ -1475,6 +1481,10 @@ def generate_engine_class_header(class_api, used_classes, fully_used_classes, us result.append("#include ") result.append("") + if class_name == "ClassDBSingleton": + result.append("#include ") + result.append("") + result.append("namespace godot {") result.append("") @@ -1496,6 +1506,10 @@ def generate_engine_class_header(class_api, used_classes, fully_used_classes, us result.append(f"\tGDEXTENSION_CLASS({class_name}, {inherits})") result.append("") + if is_singleton: + result.append(f"\tstatic {class_name} *singleton;") + result.append("") + result.append("public:") result.append("") @@ -1556,7 +1570,7 @@ def generate_engine_class_header(class_api, used_classes, fully_used_classes, us result.append("protected:") # T is the custom class we want to register (from which the call initiates, going up the inheritance chain), # B is its base class (can be a custom class too, that's why we pass it). - result.append("\ttemplate ") + result.append("\ttemplate ") result.append("\tstatic void register_virtuals() {") if class_name != "Object": result.append(f"\t\t{inherits}::register_virtuals();") @@ -1576,12 +1590,21 @@ def generate_engine_class_header(class_api, used_classes, fully_used_classes, us result.append("\t}") result.append("") + + if is_singleton: + result.append(f"\t~{class_name}();") + result.append("") + result.append("public:") # Special cases. if class_name == "XMLParser": result.append("\tError _open_buffer(const uint8_t *p_buffer, size_t p_size);") + if class_name == "Image": + result.append("\tuint8_t *ptrw();") + result.append("\tconst uint8_t *ptr();") + if class_name == "FileAccess": result.append("\tuint64_t get_buffer(uint8_t *p_dst, uint64_t p_length) const;") result.append("\tvoid store_buffer(const uint8_t *p_src, uint64_t p_length);") @@ -1602,16 +1625,16 @@ def generate_engine_class_header(class_api, used_classes, fully_used_classes, us if class_name == "Object": result.append("") - result.append("\ttemplate") + result.append("\ttemplate") result.append("\tstatic T *cast_to(Object *p_object);") - result.append("\ttemplate") + result.append("\ttemplate") result.append("\tstatic const T *cast_to(const Object *p_object);") result.append("\tvirtual ~Object() = default;") elif use_template_get_node and class_name == "Node": - result.append("\ttemplate") + result.append("\ttemplate") result.append( "\tT *get_node(const NodePath &p_path) const { return Object::cast_to(get_node_internal(p_path)); }" ) @@ -1633,20 +1656,41 @@ def generate_engine_class_header(class_api, used_classes, fully_used_classes, us if class_name == "ClassDBSingleton": result.append("#define CLASSDB_SINGLETON_FORWARD_METHODS \\") + + if "enums" in class_api: + for enum_api in class_api["enums"]: + if enum_api["is_bitfield"]: + result.append(f'\tenum {enum_api["name"]} : uint64_t {{ \\') + else: + result.append(f'\tenum {enum_api["name"]} {{ \\') + + for value in enum_api["values"]: + result.append(f'\t\t{value["name"]} = {value["value"]}, \\') + result.append("\t}; \\") + result.append("\t \\") + for method in class_api["methods"]: - # ClassDBSingleton shouldn't have any static or vararg methods, but if some appear later, lets skip them. - if vararg: - continue + # ClassDBSingleton shouldn't have any static methods, but if some appear later, lets skip them. if "is_static" in method and method["is_static"]: continue - method_signature = "\tstatic " + vararg = "is_vararg" in method and method["is_vararg"] + if vararg: + method_signature = "\ttemplate static " + else: + method_signature = "\tstatic " + + return_type = None if "return_type" in method: - method_signature += f'{correct_type(method["return_type"])} ' + return_type = correct_type(method["return_type"].replace("ClassDBSingleton", "ClassDB"), None, False) elif "return_value" in method: - method_signature += ( - correct_type(method["return_value"]["type"], method["return_value"].get("meta", None)) + " " + return_type = correct_type( + method["return_value"]["type"].replace("ClassDBSingleton", "ClassDB"), + method["return_value"].get("meta", None), + False, ) + if return_type is not None: + method_signature += return_type + " " else: method_signature += "void " @@ -1657,7 +1701,7 @@ def generate_engine_class_header(class_api, used_classes, fully_used_classes, us method_arguments = method["arguments"] method_signature += make_function_parameters( - method_arguments, include_default=True, for_builtin=True, is_vararg=False + method_arguments, include_default=True, for_builtin=True, is_vararg=vararg ) method_signature += ") { \\" @@ -1665,10 +1709,14 @@ def generate_engine_class_header(class_api, used_classes, fully_used_classes, us result.append(method_signature) method_body = "\t\t" - if "return_type" in method or "return_value" in method: + if return_type is not None: method_body += "return " + if "alias_for" in class_api and return_type.startswith(class_api["alias_for"] + "::"): + method_body += f"({return_type})" method_body += f'ClassDBSingleton::get_singleton()->{method["name"]}(' method_body += ", ".join(map(lambda x: escape_identifier(x["name"]), method_arguments)) + if vararg: + method_body += ", args..." method_body += "); \\" result.append(method_body) @@ -1676,6 +1724,18 @@ def generate_engine_class_header(class_api, used_classes, fully_used_classes, us result.append("\t;") result.append("") + result.append("#define CLASSDB_SINGLETON_VARIANT_CAST \\") + + if "enums" in class_api: + for enum_api in class_api["enums"]: + if enum_api["is_bitfield"]: + result.append(f'\tVARIANT_BITFIELD_CAST({class_api["alias_for"]}::{enum_api["name"]}); \\') + else: + result.append(f'\tVARIANT_ENUM_CAST({class_api["alias_for"]}::{enum_api["name"]}); \\') + + result.append("\t;") + result.append("") + result.append(f"#endif // ! {header_guard}") return "\n".join(result) @@ -1693,6 +1753,7 @@ def generate_engine_class_source(class_api, used_classes, fully_used_classes, us result.append(f"#include ") result.append("") + result.append("#include ") result.append("#include ") result.append("#include ") result.append("") @@ -1707,9 +1768,10 @@ def generate_engine_class_source(class_api, used_classes, fully_used_classes, us result.append("") if is_singleton: + result.append(f"{class_name} *{class_name}::singleton = nullptr;") + result.append("") result.append(f"{class_name} *{class_name}::get_singleton() {{") # We assume multi-threaded access is OK because each assignment will assign the same value every time - result.append(f"\tstatic {class_name} *singleton = nullptr;") result.append("\tif (unlikely(singleton == nullptr)) {") result.append( f"\t\tGDExtensionObjectPtr singleton_obj = internal::gdextension_interface_global_get_singleton({class_name}::get_class_static()._native_ptr());" @@ -1723,11 +1785,22 @@ def generate_engine_class_source(class_api, used_classes, fully_used_classes, us result.append("#ifdef DEBUG_ENABLED") result.append("\t\tERR_FAIL_NULL_V(singleton, nullptr);") result.append("#endif // DEBUG_ENABLED") + result.append("\t\tif (likely(singleton)) {") + result.append(f"\t\t\tClassDB::_register_engine_singleton({class_name}::get_class_static(), singleton);") + result.append("\t\t}") result.append("\t}") result.append("\treturn singleton;") result.append("}") result.append("") + result.append(f"{class_name}::~{class_name}() {{") + result.append("\tif (singleton == this) {") + result.append(f"\t\tClassDB::_unregister_engine_singleton({class_name}::get_class_static());") + result.append("\t\tsingleton = nullptr;") + result.append("\t}") + result.append("}") + result.append("") + if "methods" in class_api: for method in class_api["methods"]: if method["is_virtual"]: @@ -2245,7 +2318,7 @@ def make_varargs_template( if with_public_declare: function_signature = "public: " - function_signature += "template " + function_signature += "template " if static: function_signature += "static " @@ -2291,9 +2364,9 @@ def make_varargs_template( args_array = f"\tstd::array variant_args {{ " for argument in method_arguments: if argument["type"] == "Variant": - args_array += argument["name"] + args_array += escape_identifier(argument["name"]) else: - args_array += f'Variant({argument["name"]})' + args_array += f'Variant({escape_identifier(argument["name"])})' args_array += ", " args_array += "Variant(args)... };" @@ -2405,6 +2478,7 @@ def is_packed_array(type_name): "PackedStringArray", "PackedVector2Array", "PackedVector3Array", + "PackedVector4Array", ] @@ -2493,6 +2567,7 @@ def correct_default_value(value, type_name): "null": "nullptr", '""': "String()", '&""': "StringName()", + '^""': "NodePath()", "[]": "Array()", "{}": "Dictionary()", "Transform2D(1, 0, 0, 1, 0, 0)": "Transform2D()", # Default transform. @@ -2504,6 +2579,10 @@ def correct_default_value(value, type_name): return f"{type_name}()" if value.startswith("Array["): return f"{{}}" + if value.startswith("&"): + return value[1::] + if value.startswith("^"): + return value[1::] return value @@ -2513,7 +2592,7 @@ def correct_typed_array(type_name): return type_name -def correct_type(type_name, meta=None): +def correct_type(type_name, meta=None, use_alias=True): type_conversion = {"float": "double", "int": "int64_t", "Nil": "Variant"} if meta != None: if "int" in meta: @@ -2529,11 +2608,15 @@ def correct_type(type_name, meta=None): if is_enum(type_name): if is_bitfield(type_name): base_class = get_enum_class(type_name) + if use_alias and base_class in CLASS_ALIASES: + base_class = CLASS_ALIASES[base_class] if base_class == "GlobalConstants": return f"BitField<{get_enum_name(type_name)}>" return f"BitField<{base_class}::{get_enum_name(type_name)}>" else: base_class = get_enum_class(type_name) + if use_alias and base_class in CLASS_ALIASES: + base_class = CLASS_ALIASES[base_class] if base_class == "GlobalConstants": return f"{get_enum_name(type_name)}" return f"{base_class}::{get_enum_name(type_name)}" diff --git a/gdextension/extension_api.json b/gdextension/extension_api.json index cfd5ebef..04bb8b80 100644 --- a/gdextension/extension_api.json +++ b/gdextension/extension_api.json @@ -1,11 +1,11 @@ { "header": { "version_major": 4, - "version_minor": 2, + "version_minor": 3, "version_patch": 0, - "version_status": "stable", - "version_build": "official", - "version_full_name": "Godot Engine v4.2.stable.official" + "version_status": "beta", + "version_build": "custom_build", + "version_full_name": "Godot Engine v4.3.beta.custom_build" }, "builtin_class_sizes": [ { @@ -163,6 +163,10 @@ "name": "PackedColorArray", "size": 8 }, + { + "name": "PackedVector4Array", + "size": 8 + }, { "name": "Variant", "size": 24 @@ -324,6 +328,10 @@ "name": "PackedColorArray", "size": 16 }, + { + "name": "PackedVector4Array", + "size": 16 + }, { "name": "Variant", "size": 24 @@ -485,6 +493,10 @@ "name": "PackedColorArray", "size": 8 }, + { + "name": "PackedVector4Array", + "size": 8 + }, { "name": "Variant", "size": 40 @@ -646,6 +658,10 @@ "name": "PackedColorArray", "size": 16 }, + { + "name": "PackedVector4Array", + "size": 16 + }, { "name": "Variant", "size": 40 @@ -2941,6 +2957,24 @@ } ] }, + { + "name": "KeyLocation", + "is_bitfield": false, + "values": [ + { + "name": "KEY_LOCATION_UNSPECIFIED", + "value": 0 + }, + { + "name": "KEY_LOCATION_LEFT", + "value": 1 + }, + { + "name": "KEY_LOCATION_RIGHT", + "value": 2 + } + ] + }, { "name": "MouseButton", "is_bitfield": false, @@ -3932,8 +3966,12 @@ "value": 37 }, { - "name": "TYPE_MAX", + "name": "TYPE_PACKED_VECTOR4_ARRAY", "value": 38 + }, + { + "name": "TYPE_MAX", + "value": 39 } ] }, @@ -6292,6 +6330,16 @@ "name": "!=", "right_type": "PackedColorArray", "return_type": "bool" + }, + { + "name": "==", + "right_type": "PackedVector4Array", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "PackedVector4Array", + "return_type": "bool" } ], "constructors": [ @@ -7445,6 +7493,11 @@ "name": "%", "right_type": "PackedColorArray", "return_type": "String" + }, + { + "name": "%", + "right_type": "PackedVector4Array", + "return_type": "String" } ], "methods": [ @@ -7504,6 +7557,34 @@ } ] }, + { + "name": "filecasecmp_to", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2920860731, + "arguments": [ + { + "name": "to", + "type": "String" + } + ] + }, + { + "name": "filenocasecmp_to", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2920860731, + "arguments": [ + { + "name": "to", + "type": "String" + } + ] + }, { "name": "length", "return_type": "int", @@ -7600,6 +7681,25 @@ } ] }, + { + "name": "findn", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1760645412, + "arguments": [ + { + "name": "what", + "type": "String" + }, + { + "name": "from", + "type": "int", + "default_value": "0" + } + ] + }, { "name": "count", "return_type": "int", @@ -7648,25 +7748,6 @@ } ] }, - { - "name": "findn", - "return_type": "int", - "is_vararg": false, - "is_const": true, - "is_static": false, - "hash": 1760645412, - "arguments": [ - { - "name": "what", - "type": "String" - }, - { - "name": "from", - "type": "int", - "default_value": "0" - } - ] - }, { "name": "rfind", "return_type": "int", @@ -8284,6 +8365,20 @@ } ] }, + { + "name": "containsn", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2566493496, + "arguments": [ + { + "name": "what", + "type": "String" + } + ] + }, { "name": "is_absolute_path", "return_type": "bool", @@ -9463,7 +9558,7 @@ "hash": 2026743667, "arguments": [ { - "name": "n", + "name": "line", "type": "Vector2" } ] @@ -9516,6 +9611,24 @@ } ] }, + { + "name": "clampf", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3464402636, + "arguments": [ + { + "name": "min", + "type": "float" + }, + { + "name": "max", + "type": "float" + } + ] + }, { "name": "snapped", "return_type": "Vector2", @@ -9530,6 +9643,76 @@ } ] }, + { + "name": "snappedf", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2544004089, + "arguments": [ + { + "name": "step", + "type": "float" + } + ] + }, + { + "name": "min", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2026743667, + "arguments": [ + { + "name": "with", + "type": "Vector2" + } + ] + }, + { + "name": "minf", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2544004089, + "arguments": [ + { + "name": "with", + "type": "float" + } + ] + }, + { + "name": "max", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2026743667, + "arguments": [ + { + "name": "with", + "type": "Vector2" + } + ] + }, + { + "name": "maxf", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2544004089, + "arguments": [ + { + "name": "with", + "type": "float" + } + ] + }, { "name": "from_angle", "return_type": "Vector2", @@ -9803,6 +9986,34 @@ "is_static": false, "hash": 3173160232 }, + { + "name": "distance_to", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 707501214, + "arguments": [ + { + "name": "to", + "type": "Vector2i" + } + ] + }, + { + "name": "distance_squared_to", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1130029528, + "arguments": [ + { + "name": "to", + "type": "Vector2i" + } + ] + }, { "name": "length", "return_type": "float", @@ -9853,6 +10064,24 @@ } ] }, + { + "name": "clampi", + "return_type": "Vector2i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3686769569, + "arguments": [ + { + "name": "min", + "type": "int" + }, + { + "name": "max", + "type": "int" + } + ] + }, { "name": "snapped", "return_type": "Vector2i", @@ -9866,6 +10095,76 @@ "type": "Vector2i" } ] + }, + { + "name": "snappedi", + "return_type": "Vector2i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2161988953, + "arguments": [ + { + "name": "step", + "type": "int" + } + ] + }, + { + "name": "min", + "return_type": "Vector2i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1735278196, + "arguments": [ + { + "name": "with", + "type": "Vector2i" + } + ] + }, + { + "name": "mini", + "return_type": "Vector2i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2161988953, + "arguments": [ + { + "name": "with", + "type": "int" + } + ] + }, + { + "name": "max", + "return_type": "Vector2i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1735278196, + "arguments": [ + { + "name": "with", + "type": "Vector2i" + } + ] + }, + { + "name": "maxi", + "return_type": "Vector2i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2161988953, + "arguments": [ + { + "name": "with", + "type": "int" + } + ] } ], "constructors": [ @@ -10961,6 +11260,24 @@ } ] }, + { + "name": "clampf", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2329594628, + "arguments": [ + { + "name": "min", + "type": "float" + }, + { + "name": "max", + "type": "float" + } + ] + }, { "name": "snapped", "return_type": "Vector3", @@ -10975,6 +11292,20 @@ } ] }, + { + "name": "snappedf", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 514930144, + "arguments": [ + { + "name": "step", + "type": "float" + } + ] + }, { "name": "rotated", "return_type": "Vector3", @@ -11337,6 +11668,62 @@ "is_static": false, "hash": 2428350749 }, + { + "name": "min", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2923479887, + "arguments": [ + { + "name": "with", + "type": "Vector3" + } + ] + }, + { + "name": "minf", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 514930144, + "arguments": [ + { + "name": "with", + "type": "float" + } + ] + }, + { + "name": "max", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2923479887, + "arguments": [ + { + "name": "with", + "type": "Vector3" + } + ] + }, + { + "name": "maxf", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 514930144, + "arguments": [ + { + "name": "with", + "type": "float" + } + ] + }, { "name": "octahedron_decode", "return_type": "Vector3", @@ -11629,6 +12016,34 @@ "is_static": false, "hash": 3173160232 }, + { + "name": "distance_to", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1975170430, + "arguments": [ + { + "name": "to", + "type": "Vector3i" + } + ] + }, + { + "name": "distance_squared_to", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2947717320, + "arguments": [ + { + "name": "to", + "type": "Vector3i" + } + ] + }, { "name": "length", "return_type": "float", @@ -11679,6 +12094,24 @@ } ] }, + { + "name": "clampi", + "return_type": "Vector3i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1077216921, + "arguments": [ + { + "name": "min", + "type": "int" + }, + { + "name": "max", + "type": "int" + } + ] + }, { "name": "snapped", "return_type": "Vector3i", @@ -11692,6 +12125,76 @@ "type": "Vector3i" } ] + }, + { + "name": "snappedi", + "return_type": "Vector3i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2377625641, + "arguments": [ + { + "name": "step", + "type": "int" + } + ] + }, + { + "name": "min", + "return_type": "Vector3i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1989319750, + "arguments": [ + { + "name": "with", + "type": "Vector3i" + } + ] + }, + { + "name": "mini", + "return_type": "Vector3i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2377625641, + "arguments": [ + { + "name": "with", + "type": "int" + } + ] + }, + { + "name": "max", + "return_type": "Vector3i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1989319750, + "arguments": [ + { + "name": "with", + "type": "Vector3i" + } + ] + }, + { + "name": "maxi", + "return_type": "Vector3i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2377625641, + "arguments": [ + { + "name": "with", + "type": "int" + } + ] } ], "constructors": [ @@ -11791,11 +12294,21 @@ "right_type": "int", "return_type": "Transform2D" }, + { + "name": "/", + "right_type": "int", + "return_type": "Transform2D" + }, { "name": "*", "right_type": "float", "return_type": "Transform2D" }, + { + "name": "/", + "right_type": "float", + "return_type": "Transform2D" + }, { "name": "*", "right_type": "Vector2", @@ -12334,6 +12847,11 @@ "name": "in", "right_type": "Array", "return_type": "bool" + }, + { + "name": "in", + "right_type": "PackedVector4Array", + "return_type": "bool" } ], "methods": [ @@ -12533,6 +13051,20 @@ } ] }, + { + "name": "snappedf", + "return_type": "Vector4", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3129671720, + "arguments": [ + { + "name": "step", + "type": "float" + } + ] + }, { "name": "clamp", "return_type": "Vector4", @@ -12551,6 +13083,24 @@ } ] }, + { + "name": "clampf", + "return_type": "Vector4", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4072091586, + "arguments": [ + { + "name": "min", + "type": "float" + }, + { + "name": "max", + "type": "float" + } + ] + }, { "name": "normalized", "return_type": "Vector4", @@ -12660,6 +13210,62 @@ "is_const": true, "is_static": false, "hash": 3918633141 + }, + { + "name": "min", + "return_type": "Vector4", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2031281584, + "arguments": [ + { + "name": "with", + "type": "Vector4" + } + ] + }, + { + "name": "minf", + "return_type": "Vector4", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3129671720, + "arguments": [ + { + "name": "with", + "type": "float" + } + ] + }, + { + "name": "max", + "return_type": "Vector4", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2031281584, + "arguments": [ + { + "name": "with", + "type": "Vector4" + } + ] + }, + { + "name": "maxf", + "return_type": "Vector4", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3129671720, + "arguments": [ + { + "name": "with", + "type": "float" + } + ] } ], "constructors": [ @@ -12976,6 +13582,24 @@ } ] }, + { + "name": "clampi", + "return_type": "Vector4i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2994578256, + "arguments": [ + { + "name": "min", + "type": "int" + }, + { + "name": "max", + "type": "int" + } + ] + }, { "name": "snapped", "return_type": "Vector4i", @@ -12989,6 +13613,104 @@ "type": "Vector4i" } ] + }, + { + "name": "snappedi", + "return_type": "Vector4i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1476494415, + "arguments": [ + { + "name": "step", + "type": "int" + } + ] + }, + { + "name": "min", + "return_type": "Vector4i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1181693102, + "arguments": [ + { + "name": "with", + "type": "Vector4i" + } + ] + }, + { + "name": "mini", + "return_type": "Vector4i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1476494415, + "arguments": [ + { + "name": "with", + "type": "int" + } + ] + }, + { + "name": "max", + "return_type": "Vector4i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1181693102, + "arguments": [ + { + "name": "with", + "type": "Vector4i" + } + ] + }, + { + "name": "maxi", + "return_type": "Vector4i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1476494415, + "arguments": [ + { + "name": "with", + "type": "int" + } + ] + }, + { + "name": "distance_to", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3446086573, + "arguments": [ + { + "name": "to", + "type": "Vector4i" + } + ] + }, + { + "name": "distance_squared_to", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 346708794, + "arguments": [ + { + "name": "to", + "type": "Vector4i" + } + ] } ], "constructors": [ @@ -14245,11 +14967,21 @@ "right_type": "int", "return_type": "Basis" }, + { + "name": "/", + "right_type": "int", + "return_type": "Basis" + }, { "name": "*", "right_type": "float", "return_type": "Basis" }, + { + "name": "/", + "right_type": "float", + "return_type": "Basis" + }, { "name": "*", "right_type": "Vector3", @@ -14635,11 +15367,21 @@ "right_type": "int", "return_type": "Transform3D" }, + { + "name": "/", + "right_type": "int", + "return_type": "Transform3D" + }, { "name": "*", "right_type": "float", "return_type": "Transform3D" }, + { + "name": "/", + "right_type": "float", + "return_type": "Transform3D" + }, { "name": "*", "right_type": "Vector3", @@ -17144,6 +17886,11 @@ "name": "%", "right_type": "PackedColorArray", "return_type": "String" + }, + { + "name": "%", + "right_type": "PackedVector4Array", + "return_type": "String" } ], "methods": [ @@ -17203,6 +17950,34 @@ } ] }, + { + "name": "filecasecmp_to", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2920860731, + "arguments": [ + { + "name": "to", + "type": "String" + } + ] + }, + { + "name": "filenocasecmp_to", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2920860731, + "arguments": [ + { + "name": "to", + "type": "String" + } + ] + }, { "name": "length", "return_type": "int", @@ -17299,6 +18074,25 @@ } ] }, + { + "name": "findn", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1760645412, + "arguments": [ + { + "name": "what", + "type": "String" + }, + { + "name": "from", + "type": "int", + "default_value": "0" + } + ] + }, { "name": "count", "return_type": "int", @@ -17347,25 +18141,6 @@ } ] }, - { - "name": "findn", - "return_type": "int", - "is_vararg": false, - "is_const": true, - "is_static": false, - "hash": 1760645412, - "arguments": [ - { - "name": "what", - "type": "String" - }, - { - "name": "from", - "type": "int", - "default_value": "0" - } - ] - }, { "name": "rfind", "return_type": "int", @@ -17975,6 +18750,20 @@ } ] }, + { + "name": "containsn", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2566493496, + "arguments": [ + { + "name": "what", + "type": "String" + } + ] + }, { "name": "is_absolute_path", "return_type": "bool", @@ -18481,6 +19270,25 @@ "is_static": false, "hash": 1825232092 }, + { + "name": "slice", + "return_type": "NodePath", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 421628484, + "arguments": [ + { + "name": "begin", + "type": "int" + }, + { + "name": "end", + "type": "int", + "default_value": "2147483647" + } + ] + }, { "name": "get_as_property_path", "return_type": "NodePath", @@ -18646,6 +19454,24 @@ } ], "methods": [ + { + "name": "create", + "return_type": "Callable", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 1709381114, + "arguments": [ + { + "name": "variant", + "type": "Variant" + }, + { + "name": "method", + "type": "StringName" + } + ] + }, { "name": "callv", "return_type": "Variant", @@ -18716,6 +19542,14 @@ "is_static": false, "hash": 1825232092 }, + { + "name": "get_argument_count", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, { "name": "get_bound_arguments_count", "return_type": "int", @@ -19086,6 +19920,25 @@ } ] }, + { + "name": "merged", + "return_type": "Dictionary", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2271165639, + "arguments": [ + { + "name": "dictionary", + "type": "Dictionary" + }, + { + "name": "overwrite", + "type": "bool", + "default_value": "false" + } + ] + }, { "name": "has", "return_type": "bool", @@ -19200,6 +20053,25 @@ } ] }, + { + "name": "get_or_add", + "return_type": "Variant", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1052551076, + "arguments": [ + { + "name": "key", + "type": "Variant" + }, + { + "name": "default", + "type": "Variant", + "default_value": "null" + } + ] + }, { "name": "make_read_only", "is_vararg": false, @@ -19214,6 +20086,24 @@ "is_const": true, "is_static": false, "hash": 3918633141 + }, + { + "name": "recursive_equal", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1404404751, + "arguments": [ + { + "name": "dictionary", + "type": "Dictionary" + }, + { + "name": "recursion_count", + "type": "int" + } + ] } ], "constructors": [ @@ -19972,6 +20862,15 @@ "type": "PackedColorArray" } ] + }, + { + "index": 12, + "arguments": [ + { + "name": "from", + "type": "PackedVector4Array" + } + ] } ], "has_destructor": true @@ -23636,6 +24535,351 @@ } ], "has_destructor": true + }, + { + "name": "PackedVector4Array", + "indexing_return_type": "Vector4", + "is_keyed": false, + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "not", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "PackedVector4Array", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "PackedVector4Array", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "PackedVector4Array", + "return_type": "PackedVector4Array" + } + ], + "methods": [ + { + "name": "size", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "is_empty", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "set", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1350366223, + "arguments": [ + { + "name": "index", + "type": "int" + }, + { + "name": "value", + "type": "Vector4" + } + ] + }, + { + "name": "push_back", + "return_type": "bool", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3289167688, + "arguments": [ + { + "name": "value", + "type": "Vector4" + } + ] + }, + { + "name": "append", + "return_type": "bool", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3289167688, + "arguments": [ + { + "name": "value", + "type": "Vector4" + } + ] + }, + { + "name": "append_array", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 537428395, + "arguments": [ + { + "name": "array", + "type": "PackedVector4Array" + } + ] + }, + { + "name": "remove_at", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2823966027, + "arguments": [ + { + "name": "index", + "type": "int" + } + ] + }, + { + "name": "insert", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 11085009, + "arguments": [ + { + "name": "at_index", + "type": "int" + }, + { + "name": "value", + "type": "Vector4" + } + ] + }, + { + "name": "fill", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3761353134, + "arguments": [ + { + "name": "value", + "type": "Vector4" + } + ] + }, + { + "name": "resize", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 848867239, + "arguments": [ + { + "name": "new_size", + "type": "int" + } + ] + }, + { + "name": "clear", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "has", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 88913544, + "arguments": [ + { + "name": "value", + "type": "Vector4" + } + ] + }, + { + "name": "reverse", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "slice", + "return_type": "PackedVector4Array", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2942803855, + "arguments": [ + { + "name": "begin", + "type": "int" + }, + { + "name": "end", + "type": "int", + "default_value": "2147483647" + } + ] + }, + { + "name": "to_byte_array", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 247621236 + }, + { + "name": "sort", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "bsearch", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 735671678, + "arguments": [ + { + "name": "value", + "type": "Vector4" + }, + { + "name": "before", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "duplicate", + "return_type": "PackedVector4Array", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3186305013 + }, + { + "name": "find", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3091171314, + "arguments": [ + { + "name": "value", + "type": "Vector4" + }, + { + "name": "from", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "rfind", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3091171314, + "arguments": [ + { + "name": "value", + "type": "Vector4" + }, + { + "name": "from", + "type": "int", + "default_value": "-1" + } + ] + }, + { + "name": "count", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3956594488, + "arguments": [ + { + "name": "value", + "type": "Vector4" + } + ] + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "PackedVector4Array" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "Array" + } + ] + } + ], + "has_destructor": true } ], "classes": [ @@ -24193,7 +25437,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 281625055, + "hash": 3427490392, + "hash_compatibility": [ + 281625055 + ], "return_value": { "type": "PackedVector2Array" }, @@ -24207,6 +25454,11 @@ "name": "to_id", "type": "int", "meta": "int64" + }, + { + "name": "allow_partial_path", + "type": "bool", + "default_value": "false" } ] }, @@ -24216,7 +25468,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3404614526, + "hash": 3136199648, + "hash_compatibility": [ + 3404614526 + ], "return_value": { "type": "PackedInt64Array" }, @@ -24230,6 +25485,11 @@ "name": "to_id", "type": "int", "meta": "int64" + }, + { + "name": "allow_partial_path", + "type": "bool", + "default_value": "false" } ] } @@ -24687,7 +25947,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 880819742, + "hash": 1562654675, + "hash_compatibility": [ + 880819742 + ], "return_value": { "type": "PackedVector3Array" }, @@ -24701,6 +25964,11 @@ "name": "to_id", "type": "int", "meta": "int64" + }, + { + "name": "allow_partial_path", + "type": "bool", + "default_value": "false" } ] }, @@ -24710,7 +25978,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3404614526, + "hash": 3136199648, + "hash_compatibility": [ + 3404614526 + ], "return_value": { "type": "PackedInt64Array" }, @@ -24724,6 +25995,11 @@ "name": "to_id", "type": "int", "meta": "int64" + }, + { + "name": "allow_partial_path", + "type": "bool", + "default_value": "false" } ] } @@ -24787,6 +26063,28 @@ "value": 4 } ] + }, + { + "name": "CellShape", + "is_bitfield": false, + "values": [ + { + "name": "CELL_SHAPE_SQUARE", + "value": 0 + }, + { + "name": "CELL_SHAPE_ISOMETRIC_RIGHT", + "value": 1 + }, + { + "name": "CELL_SHAPE_ISOMETRIC_DOWN", + "value": 2 + }, + { + "name": "CELL_SHAPE_MAX", + "value": 3 + } + ] } ], "methods": [ @@ -24932,6 +26230,31 @@ "type": "Vector2" } }, + { + "name": "set_cell_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4130591146, + "arguments": [ + { + "name": "cell_shape", + "type": "enum::AStarGrid2D.CellShape" + } + ] + }, + { + "name": "get_cell_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3293463634, + "return_value": { + "type": "enum::AStarGrid2D.CellShape" + } + }, { "name": "is_in_bounds", "is_const": true, @@ -25239,7 +26562,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 690373547, + "hash": 1641925693, + "hash_compatibility": [ + 690373547 + ], "return_value": { "type": "PackedVector2Array" }, @@ -25251,6 +26577,11 @@ { "name": "to_id", "type": "Vector2i" + }, + { + "name": "allow_partial_path", + "type": "bool", + "default_value": "false" } ] }, @@ -25260,7 +26591,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1989391000, + "hash": 1918132273, + "hash_compatibility": [ + 1989391000 + ], "return_value": { "type": "typedarray::Vector2i" }, @@ -25272,6 +26606,11 @@ { "name": "to_id", "type": "Vector2i" + }, + { + "name": "allow_partial_path", + "type": "bool", + "default_value": "false" } ] } @@ -25301,6 +26640,12 @@ "setter": "set_cell_size", "getter": "get_cell_size" }, + { + "type": "int", + "name": "cell_shape", + "setter": "set_cell_shape", + "getter": "get_cell_shape" + }, { "type": "bool", "name": "jumping_enabled", @@ -25459,11 +26804,14 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1496901182, + "hash": 2068354942, + "hash_compatibility": [ + 1496901182 + ], "arguments": [ { "name": "button", - "type": "Control" + "type": "Button" } ] }, @@ -25473,11 +26821,14 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1496901182, + "hash": 3714008017, + "hash_compatibility": [ + 1496901182 + ], "arguments": [ { "name": "line_edit", - "type": "Control" + "type": "LineEdit" } ] }, @@ -27252,7 +28603,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3285246857, + "hash": 3530011197, + "hash_compatibility": [ + 3285246857 + ], "return_value": { "type": "Vector3" }, @@ -27266,6 +28620,11 @@ "name": "time_sec", "type": "float", "meta": "double" + }, + { + "name": "backward", + "type": "bool", + "default_value": "false" } ] }, @@ -27275,7 +28634,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1988711975, + "hash": 2915876792, + "hash_compatibility": [ + 1988711975 + ], "return_value": { "type": "Quaternion" }, @@ -27289,6 +28651,11 @@ "name": "time_sec", "type": "float", "meta": "double" + }, + { + "name": "backward", + "type": "bool", + "default_value": "false" } ] }, @@ -27298,7 +28665,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3285246857, + "hash": 3530011197, + "hash_compatibility": [ + 3285246857 + ], "return_value": { "type": "Vector3" }, @@ -27312,6 +28682,11 @@ "name": "time_sec", "type": "float", "meta": "double" + }, + { + "name": "backward", + "type": "bool", + "default_value": "false" } ] }, @@ -27321,7 +28696,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1900462983, + "hash": 2482365182, + "hash_compatibility": [ + 1900462983 + ], "return_value": { "type": "float", "meta": "float" @@ -27336,6 +28714,11 @@ "name": "time_sec", "type": "float", "meta": "double" + }, + { + "name": "backward", + "type": "bool", + "default_value": "false" } ] }, @@ -27586,8 +28969,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3245197284, + "hash": 4230953007, "hash_compatibility": [ + 3245197284, 3898229885 ], "return_value": { @@ -27609,6 +28993,16 @@ "name": "find_mode", "type": "enum::Animation.FindMode", "default_value": "0" + }, + { + "name": "limit", + "type": "bool", + "default_value": "false" + }, + { + "name": "backward", + "type": "bool", + "default_value": "false" } ] }, @@ -27747,7 +29141,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 491147702, + "hash": 747269075, + "hash_compatibility": [ + 491147702 + ], "return_value": { "type": "Variant" }, @@ -27761,6 +29158,11 @@ "name": "time_sec", "type": "float", "meta": "double" + }, + { + "name": "backward", + "type": "bool", + "default_value": "false" } ] }, @@ -28470,6 +29872,17 @@ "default_value": "4.0" } ] + }, + { + "name": "is_capture_included", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } } ], "properties": [ @@ -28490,6 +29903,12 @@ "name": "step", "setter": "set_step", "getter": "get_step" + }, + { + "type": "bool", + "name": "capture_included", + "setter": "_set_capture_included", + "getter": "is_capture_included" } ] }, @@ -28680,6 +30099,24 @@ "value": 1 } ] + }, + { + "name": "AnimationCallbackModeDiscrete", + "is_bitfield": false, + "values": [ + { + "name": "ANIMATION_CALLBACK_MODE_DISCRETE_DOMINANT", + "value": 0 + }, + { + "name": "ANIMATION_CALLBACK_MODE_DISCRETE_RECESSIVE", + "value": 1 + }, + { + "name": "ANIMATION_CALLBACK_MODE_DISCRETE_FORCE_CONTINUOUS", + "value": 2 + } + ] } ], "methods": [ @@ -28707,11 +30144,12 @@ "type": "Variant" }, { - "name": "object", - "type": "Object" + "name": "object_id", + "type": "int", + "meta": "uint64" }, { - "name": "object_idx", + "name": "object_sub_idx", "type": "int", "meta": "int32" } @@ -28985,6 +30423,31 @@ "type": "enum::AnimationMixer.AnimationCallbackModeMethod" } }, + { + "name": "set_callback_mode_discrete", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1998944670, + "arguments": [ + { + "name": "mode", + "type": "enum::AnimationMixer.AnimationCallbackModeDiscrete" + } + ] + }, + { + "name": "get_callback_mode_discrete", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3493168860, + "return_value": { + "type": "enum::AnimationMixer.AnimationCallbackModeDiscrete" + } + }, { "name": "set_audio_max_polyphony", "is_const": false, @@ -29126,6 +30589,35 @@ } ] }, + { + "name": "capture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1333632127, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "duration", + "type": "float", + "meta": "double" + }, + { + "name": "trans_type", + "type": "enum::Tween.TransitionType", + "default_value": "0" + }, + { + "name": "ease_type", + "type": "enum::Tween.EaseType", + "default_value": "0" + } + ] + }, { "name": "set_reset_on_save_enabled", "is_const": false, @@ -29187,9 +30679,6 @@ } ], "signals": [ - { - "name": "mixer_updated" - }, { "name": "animation_list_changed" }, @@ -29216,6 +30705,12 @@ }, { "name": "caches_cleared" + }, + { + "name": "mixer_applied" + }, + { + "name": "mixer_updated" } ], "properties": [ @@ -29266,6 +30761,12 @@ "name": "callback_mode_method", "setter": "set_callback_mode_method", "getter": "get_callback_mode_method" + }, + { + "type": "int", + "name": "callback_mode_discrete", + "setter": "set_callback_mode_discrete", + "getter": "get_callback_mode_discrete" } ] }, @@ -29910,6 +31411,135 @@ "return_value": { "type": "enum::AnimationNodeAnimation.PlayMode" } + }, + { + "name": "set_use_custom_timeline", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "use_custom_timeline", + "type": "bool" + } + ] + }, + { + "name": "is_using_custom_timeline", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_timeline_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "timeline_length", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_timeline_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_stretch_time_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "stretch_time_scale", + "type": "bool" + } + ] + }, + { + "name": "is_stretching_time_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_start_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "start_offset", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_start_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_loop_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3155355575, + "arguments": [ + { + "name": "loop_mode", + "type": "enum::Animation.LoopMode" + } + ] + }, + { + "name": "get_loop_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1988889481, + "return_value": { + "type": "enum::Animation.LoopMode" + } } ], "properties": [ @@ -29924,6 +31554,36 @@ "name": "play_mode", "setter": "set_play_mode", "getter": "get_play_mode" + }, + { + "type": "bool", + "name": "use_custom_timeline", + "setter": "set_use_custom_timeline", + "getter": "is_using_custom_timeline" + }, + { + "type": "float", + "name": "timeline_length", + "setter": "set_timeline_length", + "getter": "get_timeline_length" + }, + { + "type": "bool", + "name": "stretch_time_scale", + "setter": "set_stretch_time_scale", + "getter": "is_stretching_time_scale" + }, + { + "type": "float", + "name": "start_offset", + "setter": "set_start_offset", + "getter": "get_start_offset" + }, + { + "type": "int", + "name": "loop_mode", + "setter": "set_loop_mode", + "getter": "get_loop_mode" } ] }, @@ -31195,6 +32855,31 @@ "type": "Curve" } }, + { + "name": "set_break_loop_at_end", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_loop_broken_at_end", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "set_autorestart", "is_const": false, @@ -31331,6 +33016,12 @@ "setter": "set_fadeout_curve", "getter": "get_fadeout_curve" }, + { + "type": "bool", + "name": "break_loop_at_end", + "setter": "set_break_loop_at_end", + "getter": "is_loop_broken_at_end" + }, { "type": "bool", "name": "autorestart", @@ -32120,6 +33811,31 @@ "type": "Curve" } }, + { + "name": "set_break_loop_at_end", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_loop_broken_at_end", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "set_reset", "is_const": false, @@ -32216,6 +33932,12 @@ "setter": "set_xfade_curve", "getter": "get_xfade_curve" }, + { + "type": "bool", + "name": "break_loop_at_end", + "setter": "set_break_loop_at_end", + "getter": "is_loop_broken_at_end" + }, { "type": "bool", "name": "reset", @@ -32376,6 +34098,43 @@ } ] }, + { + "name": "set_input_break_loop_at_end", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "input", + "type": "int", + "meta": "int32" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_input_loop_broken_at_end", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "input", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "set_input_reset", "is_const": false, @@ -32666,18 +34425,123 @@ "meta": "double" } }, + { + "name": "set_auto_capture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "auto_capture", + "type": "bool" + } + ] + }, + { + "name": "is_auto_capture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_auto_capture_duration", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "auto_capture_duration", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_auto_capture_duration", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_auto_capture_transition_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1058637742, + "arguments": [ + { + "name": "auto_capture_transition_type", + "type": "enum::Tween.TransitionType" + } + ] + }, + { + "name": "get_auto_capture_transition_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3842314528, + "return_value": { + "type": "enum::Tween.TransitionType" + } + }, + { + "name": "set_auto_capture_ease_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1208105857, + "arguments": [ + { + "name": "auto_capture_ease_type", + "type": "enum::Tween.EaseType" + } + ] + }, + { + "name": "get_auto_capture_ease_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 631880200, + "return_value": { + "type": "enum::Tween.EaseType" + } + }, { "name": "play", "is_const": false, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3118260607, + "hash": 3697947785, + "hash_compatibility": [ + 3118260607 + ], "arguments": [ { "name": "name", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" }, { "name": "custom_blend", @@ -32704,12 +34568,15 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2787282401, + "hash": 3890664824, + "hash_compatibility": [ + 2787282401 + ], "arguments": [ { "name": "name", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" }, { "name": "custom_blend", @@ -32719,6 +34586,54 @@ } ] }, + { + "name": "play_with_capture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3180464118, + "arguments": [ + { + "name": "name", + "type": "StringName", + "default_value": "&\"\"" + }, + { + "name": "duration", + "type": "float", + "meta": "double", + "default_value": "-1.0" + }, + { + "name": "custom_blend", + "type": "float", + "meta": "double", + "default_value": "-1" + }, + { + "name": "custom_speed", + "type": "float", + "meta": "float", + "default_value": "1.0" + }, + { + "name": "from_end", + "type": "bool", + "default_value": "false" + }, + { + "name": "trans_type", + "type": "enum::Tween.TransitionType", + "default_value": "0" + }, + { + "name": "ease_type", + "type": "enum::Tween.EaseType", + "default_value": "0" + } + ] + }, { "name": "pause", "is_const": false, @@ -33106,6 +35021,30 @@ "name": "current_animation_position", "getter": "get_current_animation_position" }, + { + "type": "bool", + "name": "playback_auto_capture", + "setter": "set_auto_capture", + "getter": "is_auto_capture" + }, + { + "type": "float", + "name": "playback_auto_capture_duration", + "setter": "set_auto_capture_duration", + "getter": "get_auto_capture_duration" + }, + { + "type": "int", + "name": "playback_auto_capture_transition_type", + "setter": "set_auto_capture_transition_type", + "getter": "get_auto_capture_transition_type" + }, + { + "type": "int", + "name": "playback_auto_capture_ease_type", + "setter": "set_auto_capture_ease_type", + "getter": "get_auto_capture_ease_type" + }, { "type": "float", "name": "playback_default_blend_time", @@ -37465,6 +39404,116 @@ } ] }, + { + "name": "AudioEffectHardLimiter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffect", + "api_type": "core", + "methods": [ + { + "name": "set_ceiling_db", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "ceiling", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ceiling_db", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_pre_gain_db", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "p_pre_gain", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_pre_gain_db", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_release", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "p_release", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_release", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "pre_gain_db", + "setter": "set_pre_gain_db", + "getter": "get_pre_gain_db" + }, + { + "type": "float", + "name": "ceiling_db", + "setter": "set_ceiling_db", + "getter": "get_ceiling_db" + }, + { + "type": "float", + "name": "release", + "setter": "set_release", + "getter": "get_release" + } + ] + }, { "name": "AudioEffectHighPassFilter", "is_refcounted": true, @@ -39731,6 +41780,16 @@ "meta": "int32" } }, + { + "name": "_get_parameter_list", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::Dictionary" + } + }, { "name": "get_length", "is_const": true, @@ -39765,6 +41824,11 @@ "type": "AudioStreamPlayback" } } + ], + "signals": [ + { + "name": "parameter_list_changed" + } ] }, { @@ -39937,6 +42001,591 @@ } ] }, + { + "name": "AudioStreamInteractive", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioStream", + "api_type": "core", + "constants": [ + { + "name": "CLIP_ANY", + "value": -1 + } + ], + "enums": [ + { + "name": "TransitionFromTime", + "is_bitfield": false, + "values": [ + { + "name": "TRANSITION_FROM_TIME_IMMEDIATE", + "value": 0 + }, + { + "name": "TRANSITION_FROM_TIME_NEXT_BEAT", + "value": 1 + }, + { + "name": "TRANSITION_FROM_TIME_NEXT_BAR", + "value": 2 + }, + { + "name": "TRANSITION_FROM_TIME_END", + "value": 3 + } + ] + }, + { + "name": "TransitionToTime", + "is_bitfield": false, + "values": [ + { + "name": "TRANSITION_TO_TIME_SAME_POSITION", + "value": 0 + }, + { + "name": "TRANSITION_TO_TIME_START", + "value": 1 + } + ] + }, + { + "name": "FadeMode", + "is_bitfield": false, + "values": [ + { + "name": "FADE_DISABLED", + "value": 0 + }, + { + "name": "FADE_IN", + "value": 1 + }, + { + "name": "FADE_OUT", + "value": 2 + }, + { + "name": "FADE_CROSS", + "value": 3 + }, + { + "name": "FADE_AUTOMATIC", + "value": 4 + } + ] + }, + { + "name": "AutoAdvanceMode", + "is_bitfield": false, + "values": [ + { + "name": "AUTO_ADVANCE_DISABLED", + "value": 0 + }, + { + "name": "AUTO_ADVANCE_ENABLED", + "value": 1 + }, + { + "name": "AUTO_ADVANCE_RETURN_TO_HOLD", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_clip_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "clip_count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_clip_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_initial_clip", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "clip_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_initial_clip", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_clip_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3780747571, + "arguments": [ + { + "name": "clip_index", + "type": "int", + "meta": "int32" + }, + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_clip_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 659327637, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "clip_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_clip_stream", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 111075094, + "arguments": [ + { + "name": "clip_index", + "type": "int", + "meta": "int32" + }, + { + "name": "stream", + "type": "AudioStream" + } + ] + }, + { + "name": "get_clip_stream", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2739380747, + "return_value": { + "type": "AudioStream" + }, + "arguments": [ + { + "name": "clip_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_clip_auto_advance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 57217598, + "arguments": [ + { + "name": "clip_index", + "type": "int", + "meta": "int32" + }, + { + "name": "mode", + "type": "enum::AudioStreamInteractive.AutoAdvanceMode" + } + ] + }, + { + "name": "get_clip_auto_advance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1778634807, + "return_value": { + "type": "enum::AudioStreamInteractive.AutoAdvanceMode" + }, + "arguments": [ + { + "name": "clip_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_clip_auto_advance_next_clip", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "clip_index", + "type": "int", + "meta": "int32" + }, + { + "name": "auto_advance_next_clip", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_clip_auto_advance_next_clip", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "clip_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "add_transition", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1630280552, + "arguments": [ + { + "name": "from_clip", + "type": "int", + "meta": "int32" + }, + { + "name": "to_clip", + "type": "int", + "meta": "int32" + }, + { + "name": "from_time", + "type": "enum::AudioStreamInteractive.TransitionFromTime" + }, + { + "name": "to_time", + "type": "enum::AudioStreamInteractive.TransitionToTime" + }, + { + "name": "fade_mode", + "type": "enum::AudioStreamInteractive.FadeMode" + }, + { + "name": "fade_beats", + "type": "float", + "meta": "float" + }, + { + "name": "use_filler_clip", + "type": "bool", + "default_value": "false" + }, + { + "name": "filler_clip", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "hold_previous", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "has_transition", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2522259332, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "from_clip", + "type": "int", + "meta": "int32" + }, + { + "name": "to_clip", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "erase_transition", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "from_clip", + "type": "int", + "meta": "int32" + }, + { + "name": "to_clip", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_transition_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1930428628, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "get_transition_from_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3453338158, + "return_value": { + "type": "enum::AudioStreamInteractive.TransitionFromTime" + }, + "arguments": [ + { + "name": "from_clip", + "type": "int", + "meta": "int32" + }, + { + "name": "to_clip", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_transition_to_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1369651373, + "return_value": { + "type": "enum::AudioStreamInteractive.TransitionToTime" + }, + "arguments": [ + { + "name": "from_clip", + "type": "int", + "meta": "int32" + }, + { + "name": "to_clip", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_transition_fade_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4065396087, + "return_value": { + "type": "enum::AudioStreamInteractive.FadeMode" + }, + "arguments": [ + { + "name": "from_clip", + "type": "int", + "meta": "int32" + }, + { + "name": "to_clip", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_transition_fade_beats", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3085491603, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "from_clip", + "type": "int", + "meta": "int32" + }, + { + "name": "to_clip", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_transition_using_filler_clip", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2522259332, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "from_clip", + "type": "int", + "meta": "int32" + }, + { + "name": "to_clip", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_transition_filler_clip", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3175239445, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "from_clip", + "type": "int", + "meta": "int32" + }, + { + "name": "to_clip", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_transition_holding_previous", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2522259332, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "from_clip", + "type": "int", + "meta": "int32" + }, + { + "name": "to_clip", + "type": "int", + "meta": "int32" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "initial_clip", + "setter": "set_initial_clip", + "getter": "get_initial_clip" + }, + { + "type": "int", + "name": "clip_count", + "setter": "set_clip_count", + "getter": "get_clip_count" + } + ] + }, { "name": "AudioStreamMP3", "is_refcounted": true, @@ -40495,6 +43144,77 @@ "is_static": false, "is_vararg": false, "is_virtual": true + }, + { + "name": "_set_parameter", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "_get_parameter", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + } + ] + }, + { + "name": "AudioStreamPlaybackInteractive", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioStreamPlayback", + "api_type": "core", + "methods": [ + { + "name": "switch_to_clip_by_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "clip_name", + "type": "StringName" + } + ] + }, + { + "name": "switch_to_clip", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "clip_index", + "type": "int", + "meta": "int32" + } + ] } ] }, @@ -40505,6 +43225,13 @@ "inherits": "AudioStreamPlaybackResampled", "api_type": "core" }, + { + "name": "AudioStreamPlaybackPlaylist", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioStreamPlayback", + "api_type": "core" + }, { "name": "AudioStreamPlaybackPolyphonic", "is_refcounted": true, @@ -40682,6 +43409,13 @@ } ] }, + { + "name": "AudioStreamPlaybackSynchronized", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioStreamPlayback", + "api_type": "core" + }, { "name": "AudioStreamPlayer", "is_refcounted": false, @@ -40891,11 +43625,14 @@ }, { "name": "is_autoplay_enabled", - "is_const": false, + "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2240911060, + "hash": 36873697, + "hash_compatibility": [ + 2240911060 + ], "return_value": { "type": "bool" } @@ -41251,11 +43988,14 @@ }, { "name": "is_autoplay_enabled", - "is_const": false, + "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2240911060, + "hash": 36873697, + "hash_compatibility": [ + 2240911060 + ], "return_value": { "type": "bool" } @@ -41808,11 +44548,14 @@ }, { "name": "is_autoplay_enabled", - "is_const": false, + "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2240911060, + "hash": 36873697, + "hash_compatibility": [ + 2240911060 + ], "return_value": { "type": "bool" } @@ -42284,6 +45027,648 @@ } ] }, + { + "name": "AudioStreamPlaylist", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioStream", + "api_type": "core", + "constants": [ + { + "name": "MAX_STREAMS", + "value": 64 + } + ], + "methods": [ + { + "name": "set_stream_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "stream_count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_stream_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_bpm", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_list_stream", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 111075094, + "arguments": [ + { + "name": "stream_index", + "type": "int", + "meta": "int32" + }, + { + "name": "audio_stream", + "type": "AudioStream" + } + ] + }, + { + "name": "get_list_stream", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2739380747, + "return_value": { + "type": "AudioStream" + }, + "arguments": [ + { + "name": "stream_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_shuffle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "shuffle", + "type": "bool" + } + ] + }, + { + "name": "get_shuffle", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_fade_time", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "dec", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_fade_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_loop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "loop", + "type": "bool" + } + ] + }, + { + "name": "has_loop", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "shuffle", + "setter": "set_shuffle", + "getter": "get_shuffle" + }, + { + "type": "bool", + "name": "loop", + "setter": "set_loop", + "getter": "has_loop" + }, + { + "type": "float", + "name": "fade_time", + "setter": "set_fade_time", + "getter": "get_fade_time" + }, + { + "type": "int", + "name": "stream_count", + "setter": "set_stream_count", + "getter": "get_stream_count" + }, + { + "type": "AudioStream", + "name": "stream_0", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 0 + }, + { + "type": "AudioStream", + "name": "stream_1", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 1 + }, + { + "type": "AudioStream", + "name": "stream_2", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 2 + }, + { + "type": "AudioStream", + "name": "stream_3", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 3 + }, + { + "type": "AudioStream", + "name": "stream_4", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 4 + }, + { + "type": "AudioStream", + "name": "stream_5", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 5 + }, + { + "type": "AudioStream", + "name": "stream_6", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 6 + }, + { + "type": "AudioStream", + "name": "stream_7", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 7 + }, + { + "type": "AudioStream", + "name": "stream_8", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 8 + }, + { + "type": "AudioStream", + "name": "stream_9", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 9 + }, + { + "type": "AudioStream", + "name": "stream_10", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 10 + }, + { + "type": "AudioStream", + "name": "stream_11", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 11 + }, + { + "type": "AudioStream", + "name": "stream_12", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 12 + }, + { + "type": "AudioStream", + "name": "stream_13", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 13 + }, + { + "type": "AudioStream", + "name": "stream_14", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 14 + }, + { + "type": "AudioStream", + "name": "stream_15", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 15 + }, + { + "type": "AudioStream", + "name": "stream_16", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 16 + }, + { + "type": "AudioStream", + "name": "stream_17", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 17 + }, + { + "type": "AudioStream", + "name": "stream_18", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 18 + }, + { + "type": "AudioStream", + "name": "stream_19", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 19 + }, + { + "type": "AudioStream", + "name": "stream_20", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 20 + }, + { + "type": "AudioStream", + "name": "stream_21", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 21 + }, + { + "type": "AudioStream", + "name": "stream_22", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 22 + }, + { + "type": "AudioStream", + "name": "stream_23", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 23 + }, + { + "type": "AudioStream", + "name": "stream_24", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 24 + }, + { + "type": "AudioStream", + "name": "stream_25", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 25 + }, + { + "type": "AudioStream", + "name": "stream_26", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 26 + }, + { + "type": "AudioStream", + "name": "stream_27", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 27 + }, + { + "type": "AudioStream", + "name": "stream_28", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 28 + }, + { + "type": "AudioStream", + "name": "stream_29", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 29 + }, + { + "type": "AudioStream", + "name": "stream_30", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 30 + }, + { + "type": "AudioStream", + "name": "stream_31", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 31 + }, + { + "type": "AudioStream", + "name": "stream_32", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 32 + }, + { + "type": "AudioStream", + "name": "stream_33", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 33 + }, + { + "type": "AudioStream", + "name": "stream_34", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 34 + }, + { + "type": "AudioStream", + "name": "stream_35", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 35 + }, + { + "type": "AudioStream", + "name": "stream_36", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 36 + }, + { + "type": "AudioStream", + "name": "stream_37", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 37 + }, + { + "type": "AudioStream", + "name": "stream_38", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 38 + }, + { + "type": "AudioStream", + "name": "stream_39", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 39 + }, + { + "type": "AudioStream", + "name": "stream_40", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 40 + }, + { + "type": "AudioStream", + "name": "stream_41", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 41 + }, + { + "type": "AudioStream", + "name": "stream_42", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 42 + }, + { + "type": "AudioStream", + "name": "stream_43", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 43 + }, + { + "type": "AudioStream", + "name": "stream_44", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 44 + }, + { + "type": "AudioStream", + "name": "stream_45", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 45 + }, + { + "type": "AudioStream", + "name": "stream_46", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 46 + }, + { + "type": "AudioStream", + "name": "stream_47", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 47 + }, + { + "type": "AudioStream", + "name": "stream_48", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 48 + }, + { + "type": "AudioStream", + "name": "stream_49", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 49 + }, + { + "type": "AudioStream", + "name": "stream_50", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 50 + }, + { + "type": "AudioStream", + "name": "stream_51", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 51 + }, + { + "type": "AudioStream", + "name": "stream_52", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 52 + }, + { + "type": "AudioStream", + "name": "stream_53", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 53 + }, + { + "type": "AudioStream", + "name": "stream_54", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 54 + }, + { + "type": "AudioStream", + "name": "stream_55", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 55 + }, + { + "type": "AudioStream", + "name": "stream_56", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 56 + }, + { + "type": "AudioStream", + "name": "stream_57", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 57 + }, + { + "type": "AudioStream", + "name": "stream_58", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 58 + }, + { + "type": "AudioStream", + "name": "stream_59", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 59 + }, + { + "type": "AudioStream", + "name": "stream_60", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 60 + }, + { + "type": "AudioStream", + "name": "stream_61", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 61 + }, + { + "type": "AudioStream", + "name": "stream_62", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 62 + }, + { + "type": "AudioStream", + "name": "stream_63", + "setter": "set_list_stream", + "getter": "get_list_stream", + "index": 63 + } + ] + }, { "name": "AudioStreamPolyphonic", "is_refcounted": true, @@ -42628,6 +46013,132 @@ } ] }, + { + "name": "AudioStreamSynchronized", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioStream", + "api_type": "core", + "constants": [ + { + "name": "MAX_STREAMS", + "value": 32 + } + ], + "methods": [ + { + "name": "set_stream_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "stream_count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_stream_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_sync_stream", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 111075094, + "arguments": [ + { + "name": "stream_index", + "type": "int", + "meta": "int32" + }, + { + "name": "audio_stream", + "type": "AudioStream" + } + ] + }, + { + "name": "get_sync_stream", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2739380747, + "return_value": { + "type": "AudioStream" + }, + "arguments": [ + { + "name": "stream_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_sync_stream_volume", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "stream_index", + "type": "int", + "meta": "int32" + }, + { + "name": "volume_db", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_sync_stream_volume", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "stream_index", + "type": "int", + "meta": "int32" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "stream_count", + "setter": "set_stream_count", + "getter": "get_stream_count" + } + ] + }, { "name": "AudioStreamWAV", "is_refcounted": true, @@ -42650,6 +46161,10 @@ { "name": "FORMAT_IMA_ADPCM", "value": 2 + }, + { + "name": "FORMAT_QOA", + "value": 3 } ] }, @@ -43719,6 +47234,10 @@ { "name": "BLEND_MODE_MUL", "value": 3 + }, + { + "name": "BLEND_MODE_PREMULT_ALPHA", + "value": 4 } ] }, @@ -47013,19 +50532,12 @@ } }, { - "name": "on_bone_pose_update", + "name": "on_skeleton_update", "is_const": false, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1286410249, - "arguments": [ - { - "name": "bone_index", - "type": "int", - "meta": "int32" - } - ] + "hash": 3218959716 }, { "name": "set_override_pose", @@ -47618,6 +51130,31 @@ "type": "enum::TextServer.OverrunBehavior" } }, + { + "name": "set_autowrap_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3289138044, + "arguments": [ + { + "name": "autowrap_mode", + "type": "enum::TextServer.AutowrapMode" + } + ] + }, + { + "name": "get_autowrap_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1549071663, + "return_value": { + "type": "enum::TextServer.AutowrapMode" + } + }, { "name": "set_text_direction", "is_const": false, @@ -47875,6 +51412,12 @@ "setter": "set_text_overrun_behavior", "getter": "get_text_overrun_behavior" }, + { + "type": "int", + "name": "autowrap_mode", + "setter": "set_autowrap_mode", + "getter": "get_autowrap_mode" + }, { "type": "bool", "name": "clip_text", @@ -49719,6 +53262,20 @@ } ] }, + { + "name": "set_visibility_aabb", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 259215842, + "arguments": [ + { + "name": "aabb", + "type": "AABB" + } + ] + }, { "name": "set_lifetime_randomness", "is_const": false, @@ -49874,6 +53431,17 @@ "meta": "float" } }, + { + "name": "get_visibility_aabb", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1068685055, + "return_value": { + "type": "AABB" + } + }, { "name": "get_lifetime_randomness", "is_const": true, @@ -50758,6 +54326,12 @@ "setter": "set_fractional_delta", "getter": "get_fractional_delta" }, + { + "type": "AABB", + "name": "visibility_aabb", + "setter": "set_visibility_aabb", + "getter": "get_visibility_aabb" + }, { "type": "bool", "name": "local_coords", @@ -54332,6 +57906,31 @@ "type": "CameraAttributes" } }, + { + "name": "set_compositor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1586754307, + "arguments": [ + { + "name": "compositor", + "type": "Compositor" + } + ] + }, + { + "name": "get_compositor", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3647707413, + "return_value": { + "type": "Compositor" + } + }, { "name": "set_keep_aspect_mode", "is_const": false, @@ -54495,6 +58094,12 @@ "setter": "set_attributes", "getter": "get_attributes" }, + { + "type": "Compositor", + "name": "compositor", + "setter": "set_compositor", + "getter": "get_compositor" + }, { "type": "float", "name": "h_offset", @@ -56275,8 +59880,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 684651049, + "hash": 3653831622, "hash_compatibility": [ + 684651049, 2175215884 ], "arguments": [ @@ -56308,6 +59914,11 @@ "name": "aligned", "type": "bool", "default_value": "true" + }, + { + "name": "antialiased", + "type": "bool", + "default_value": "false" } ] }, @@ -56433,8 +60044,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2239075205, + "hash": 3797364428, "hash_compatibility": [ + 2239075205, 4230657331 ], "arguments": [ @@ -56451,6 +60063,11 @@ "type": "float", "meta": "float", "default_value": "-1.0" + }, + { + "name": "antialiased", + "type": "bool", + "default_value": "false" } ] }, @@ -56460,8 +60077,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 4072951537, + "hash": 2311979562, "hash_compatibility": [ + 4072951537, 235933050 ], "arguments": [ @@ -56478,6 +60096,11 @@ "type": "float", "meta": "float", "default_value": "-1.0" + }, + { + "name": "antialiased", + "type": "bool", + "default_value": "false" } ] }, @@ -56487,8 +60110,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2417231121, + "hash": 2773573813, "hash_compatibility": [ + 2417231121, 84391229 ], "arguments": [ @@ -56510,6 +60134,11 @@ "type": "float", "meta": "float", "default_value": "-1.0" + }, + { + "name": "antialiased", + "type": "bool", + "default_value": "false" } ] }, @@ -56519,7 +60148,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3063020269, + "hash": 3153026596, + "hash_compatibility": [ + 3063020269 + ], "arguments": [ { "name": "position", @@ -56533,6 +60165,22 @@ { "name": "color", "type": "Color" + }, + { + "name": "filled", + "type": "bool", + "default_value": "true" + }, + { + "name": "width", + "type": "float", + "meta": "float", + "default_value": "-1.0" + }, + { + "name": "antialiased", + "type": "bool", + "default_value": "false" } ] }, @@ -57428,6 +61076,17 @@ "type": "RID" } }, + { + "name": "get_canvas_layer_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2602762519, + "return_value": { + "type": "CanvasLayer" + } + }, { "name": "get_world_2d", "is_const": true, @@ -61244,6 +64903,27 @@ } ] }, + { + "name": "class_get_property_default_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2718203076, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "class", + "type": "StringName" + }, + { + "name": "property", + "type": "StringName" + } + ] + }, { "name": "class_has_method", "is_const": true, @@ -61270,6 +64950,33 @@ } ] }, + { + "name": "class_get_method_argument_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3885694822, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "class", + "type": "StringName" + }, + { + "name": "method", + "type": "StringName" + }, + { + "name": "no_inheritance", + "type": "bool", + "default_value": "false" + } + ] + }, { "name": "class_get_method_list", "is_const": true, @@ -61457,6 +65164,32 @@ } ] }, + { + "name": "is_class_enum_bitfield", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3860701026, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "class", + "type": "StringName" + }, + { + "name": "enum", + "type": "StringName" + }, + { + "name": "no_inheritance", + "type": "bool", + "default_value": "false" + } + ] + }, { "name": "is_class_enabled", "is_const": true, @@ -62309,6 +66042,14 @@ } ] }, + { + "name": "toggle_foldable_lines_at_carets", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, { "name": "is_line_folded", "is_const": true, @@ -62796,8 +66537,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 947964390, + "hash": 3944379502, "hash_compatibility": [ + 947964390, 1629240608 ], "arguments": [ @@ -62826,7 +66568,7 @@ { "name": "value", "type": "Variant", - "default_value": "0" + "default_value": "null" }, { "name": "location", @@ -63080,6 +66822,38 @@ } ] }, + { + "name": "move_lines_up", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "move_lines_down", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "delete_lines", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "duplicate_selection", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, { "name": "duplicate_lines", "is_const": false, @@ -64472,7 +68246,7 @@ "type": "InputEvent" }, { - "name": "position", + "name": "event_position", "type": "Vector3" }, { @@ -65030,7 +68804,7 @@ "type": "InputEvent" }, { - "name": "position", + "name": "event_position", "type": "Vector3" }, { @@ -66338,6 +70112,326 @@ } ] }, + { + "name": "Compositor", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_compositor_effects", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "compositor_effects", + "type": "typedarray::CompositorEffect" + } + ] + }, + { + "name": "get_compositor_effects", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::CompositorEffect" + } + } + ], + "properties": [ + { + "type": "typedarray::24/17:CompositorEffect", + "name": "compositor_effects", + "setter": "set_compositor_effects", + "getter": "get_compositor_effects" + } + ] + }, + { + "name": "CompositorEffect", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "enums": [ + { + "name": "EffectCallbackType", + "is_bitfield": false, + "values": [ + { + "name": "EFFECT_CALLBACK_TYPE_PRE_OPAQUE", + "value": 0 + }, + { + "name": "EFFECT_CALLBACK_TYPE_POST_OPAQUE", + "value": 1 + }, + { + "name": "EFFECT_CALLBACK_TYPE_POST_SKY", + "value": 2 + }, + { + "name": "EFFECT_CALLBACK_TYPE_PRE_TRANSPARENT", + "value": 3 + }, + { + "name": "EFFECT_CALLBACK_TYPE_POST_TRANSPARENT", + "value": 4 + }, + { + "name": "EFFECT_CALLBACK_TYPE_MAX", + "value": 5 + } + ] + } + ], + "methods": [ + { + "name": "_render_callback", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "effect_callback_type", + "type": "int", + "meta": "int32" + }, + { + "name": "render_data", + "type": "RenderData" + } + ] + }, + { + "name": "set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_effect_callback_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1390728419, + "arguments": [ + { + "name": "effect_callback_type", + "type": "enum::CompositorEffect.EffectCallbackType" + } + ] + }, + { + "name": "get_effect_callback_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1221912590, + "return_value": { + "type": "enum::CompositorEffect.EffectCallbackType" + } + }, + { + "name": "set_access_resolved_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_access_resolved_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_access_resolved_depth", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_access_resolved_depth", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_needs_motion_vectors", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_needs_motion_vectors", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_needs_normal_roughness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_needs_normal_roughness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_needs_separate_specular", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_needs_separate_specular", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "enabled", + "setter": "set_enabled", + "getter": "get_enabled" + }, + { + "type": "int", + "name": "effect_callback_type", + "setter": "set_effect_callback_type", + "getter": "get_effect_callback_type" + }, + { + "type": "bool", + "name": "access_resolved_color", + "setter": "set_access_resolved_color", + "getter": "get_access_resolved_color" + }, + { + "type": "bool", + "name": "access_resolved_depth", + "setter": "set_access_resolved_depth", + "getter": "get_access_resolved_depth" + }, + { + "type": "bool", + "name": "needs_motion_vectors", + "setter": "set_needs_motion_vectors", + "getter": "get_needs_motion_vectors" + }, + { + "type": "bool", + "name": "needs_normal_roughness", + "setter": "set_needs_normal_roughness", + "getter": "get_needs_normal_roughness" + }, + { + "type": "bool", + "name": "needs_separate_specular", + "setter": "set_needs_separate_specular", + "getter": "get_needs_separate_specular" + } + ] + }, { "name": "CompressedCubemap", "is_refcounted": true, @@ -68642,8 +72736,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3163973443, + "hash": 2336455395, "hash_compatibility": [ + 3163973443, 2336455395 ], "return_value": { @@ -68657,7 +72752,7 @@ { "name": "theme_type", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -68667,8 +72762,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 604739069, + "hash": 2759935355, "hash_compatibility": [ + 604739069, 2759935355 ], "return_value": { @@ -68682,7 +72778,7 @@ { "name": "theme_type", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -68692,8 +72788,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2826986490, + "hash": 387378635, "hash_compatibility": [ + 2826986490, 387378635 ], "return_value": { @@ -68707,7 +72804,7 @@ { "name": "theme_type", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -68717,8 +72814,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1327056374, + "hash": 229578101, "hash_compatibility": [ + 1327056374, 229578101 ], "return_value": { @@ -68733,7 +72831,7 @@ { "name": "theme_type", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -68743,8 +72841,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2798751242, + "hash": 2377051548, "hash_compatibility": [ + 2798751242, 2377051548 ], "return_value": { @@ -68758,7 +72857,7 @@ { "name": "theme_type", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -68768,8 +72867,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1327056374, + "hash": 229578101, "hash_compatibility": [ + 1327056374, 229578101 ], "return_value": { @@ -68784,7 +72884,7 @@ { "name": "theme_type", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -68896,8 +72996,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 866386512, + "hash": 1187511791, "hash_compatibility": [ + 866386512, 1187511791 ], "return_value": { @@ -68911,7 +73012,7 @@ { "name": "theme_type", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -68921,8 +73022,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 866386512, + "hash": 1187511791, "hash_compatibility": [ + 866386512, 1187511791 ], "return_value": { @@ -68936,7 +73038,7 @@ { "name": "theme_type", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -68946,8 +73048,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 866386512, + "hash": 1187511791, "hash_compatibility": [ + 866386512, 1187511791 ], "return_value": { @@ -68961,7 +73064,7 @@ { "name": "theme_type", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -68971,8 +73074,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 866386512, + "hash": 1187511791, "hash_compatibility": [ + 866386512, 1187511791 ], "return_value": { @@ -68986,7 +73090,7 @@ { "name": "theme_type", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -68996,8 +73100,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 866386512, + "hash": 1187511791, "hash_compatibility": [ + 866386512, 1187511791 ], "return_value": { @@ -69011,7 +73116,7 @@ { "name": "theme_type", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -69021,8 +73126,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 866386512, + "hash": 1187511791, "hash_compatibility": [ + 866386512, 1187511791 ], "return_value": { @@ -69036,7 +73142,7 @@ { "name": "theme_type", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -69783,18 +73889,18 @@ "setter": "set_stretch_ratio", "getter": "get_stretch_ratio" }, - { - "type": "bool", - "name": "auto_translate", - "setter": "set_auto_translate", - "getter": "is_auto_translating" - }, { "type": "bool", "name": "localize_numeral_system", "setter": "set_localize_numeral_system", "getter": "is_localizing_numeral_system" }, + { + "type": "bool", + "name": "auto_translate", + "setter": "set_auto_translate", + "getter": "is_auto_translating" + }, { "type": "String", "name": "tooltip_text", @@ -73527,6 +77633,61 @@ } ] }, + { + "name": "is_link", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2323990056, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "read_link", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1703090593, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "create_link", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 852856452, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "source", + "type": "String" + }, + { + "name": "target", + "type": "String" + } + ] + }, { "name": "set_include_navigational", "is_const": false, @@ -73874,6 +78035,10 @@ { "name": "INVALID_WINDOW_ID", "value": -1 + }, + { + "name": "INVALID_INDICATOR_ID", + "value": -1 } ], "enums": [ @@ -73964,6 +78129,22 @@ { "name": "FEATURE_SCREEN_CAPTURE", "value": 21 + }, + { + "name": "FEATURE_STATUS_INDICATOR", + "value": 22 + }, + { + "name": "FEATURE_NATIVE_HELP", + "value": 23 + }, + { + "name": "FEATURE_NATIVE_DIALOG_INPUT", + "value": 24 + }, + { + "name": "FEATURE_NATIVE_DIALOG_FILE", + "value": 25 } ] }, @@ -74371,6 +78552,24 @@ "type": "String" } }, + { + "name": "help_set_search_callbacks", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1687350599, + "arguments": [ + { + "name": "search_callback", + "type": "Callable" + }, + { + "name": "action_callback", + "type": "Callable" + } + ] + }, { "name": "global_menu_set_popup_callbacks", "is_const": false, @@ -75678,6 +79877,17 @@ } ] }, + { + "name": "global_menu_get_system_menu_roots", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3102165223, + "return_value": { + "type": "Dictionary" + } + }, { "name": "tts_is_speaking", "is_const": true, @@ -75853,6 +80063,31 @@ "type": "Color" } }, + { + "name": "get_base_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_system_theme_change_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1611583062, + "arguments": [ + { + "name": "callable", + "type": "Callable" + } + ] + }, { "name": "mouse_set_mode", "is_const": false, @@ -77517,6 +81752,55 @@ } ] }, + { + "name": "file_dialog_with_options_show", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1305318754, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "title", + "type": "String" + }, + { + "name": "current_directory", + "type": "String" + }, + { + "name": "root", + "type": "String" + }, + { + "name": "filename", + "type": "String" + }, + { + "name": "show_hidden", + "type": "bool" + }, + { + "name": "mode", + "type": "enum::DisplayServer.FileDialogMode" + }, + { + "name": "filters", + "type": "PackedStringArray" + }, + { + "name": "options", + "type": "typedarray::Dictionary" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, { "name": "keyboard_get_layout_count", "is_const": true, @@ -77670,6 +81954,141 @@ } ] }, + { + "name": "create_status_indicator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1904285171, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "icon", + "type": "Texture2D" + }, + { + "name": "tooltip", + "type": "String" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "status_indicator_set_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 666127730, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "icon", + "type": "Texture2D" + } + ] + }, + { + "name": "status_indicator_set_tooltip", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "tooltip", + "type": "String" + } + ] + }, + { + "name": "status_indicator_set_menu", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4040184819, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "menu_rid", + "type": "RID" + } + ] + }, + { + "name": "status_indicator_set_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 957362965, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "status_indicator_get_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3327874267, + "return_value": { + "type": "Rect2" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "delete_status_indicator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "tablet_get_driver_count", "is_const": true, @@ -77724,6 +82143,17 @@ "type": "String" } ] + }, + { + "name": "is_window_transparency_available", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } } ] }, @@ -78857,6 +83287,53 @@ } ] }, + { + "name": "_goto_script_line", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "script", + "type": "Script" + }, + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_breakpoints_cleared_in_tree", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_breakpoint_set_in_tree", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "script", + "type": "Script" + }, + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, { "name": "get_session", "is_const": false, @@ -79003,6 +83480,29 @@ "type": "Control" } ] + }, + { + "name": "set_breakpoint", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4108344793, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "enabled", + "type": "bool" + } + ] } ], "signals": [ @@ -79277,6 +83777,22 @@ } ] }, + { + "name": "_get_export_options_overrides", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "platform", + "type": "EditorExportPlatform" + } + ] + }, { "name": "_should_update_export_options", "is_const": true, @@ -80036,6 +84552,180 @@ "type": "PackedStringArray" } }, + { + "name": "get_option_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "option", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_option_values", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 647634434, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "option", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_option_default", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "option", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_option_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "option", + "type": "int", + "meta": "int32" + }, + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "set_option_values", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3353661094, + "arguments": [ + { + "name": "option", + "type": "int", + "meta": "int32" + }, + { + "name": "values", + "type": "PackedStringArray" + } + ] + }, + { + "name": "set_option_default", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "option", + "type": "int", + "meta": "int32" + }, + { + "name": "default_value_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_option_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_option_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "add_option", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 149592325, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "values", + "type": "PackedStringArray" + }, + { + "name": "default_value_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_selected_options", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3102165223, + "return_value": { + "type": "Dictionary" + } + }, { "name": "get_current_dir", "is_const": true, @@ -80277,6 +84967,14 @@ } ] }, + { + "name": "popup_file_dialog", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, { "name": "invalidate", "is_const": false, @@ -80358,6 +85056,12 @@ "setter": "set_filters", "getter": "get_filters" }, + { + "type": "int", + "name": "option_count", + "setter": "set_option_count", + "getter": "get_option_count" + }, { "type": "bool", "name": "show_hidden_files", @@ -80979,6 +85683,16 @@ } ] }, + { + "name": "_can_import_threaded", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, { "name": "append_import_external_resource", "is_const": false, @@ -81277,7 +85991,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3406284123, + "hash": 2042698479, + "hash_compatibility": [ + 3406284123 + ], "arguments": [ { "name": "property", @@ -81291,6 +86008,11 @@ "name": "add_to_end", "type": "bool", "default_value": "false" + }, + { + "name": "label", + "type": "String", + "default_value": "\"\"" } ] }, @@ -81576,6 +86298,17 @@ "type": "bool" } }, + { + "name": "is_multi_window_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "get_editor_scale", "is_const": true, @@ -81708,6 +86441,48 @@ } ] }, + { + "name": "popup_node_selector", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2271411043, + "arguments": [ + { + "name": "callback", + "type": "Callable" + }, + { + "name": "valid_types", + "type": "typedarray::StringName", + "default_value": "Array[StringName]([])" + } + ] + }, + { + "name": "popup_property_selector", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 261221679, + "arguments": [ + { + "name": "object", + "type": "Object" + }, + { + "name": "callback", + "type": "Callable" + }, + { + "name": "type_filter", + "type": "PackedInt32Array", + "default_value": "PackedInt32Array()" + } + ] + }, { "name": "get_file_system_dock", "is_const": true, @@ -82143,6 +86918,24 @@ } ] }, + { + "name": "_begin_handle_action", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "secondary", + "type": "bool" + } + ] + }, { "name": "_set_handle", "is_const": false, @@ -82700,6 +87493,28 @@ } ] }, + { + "name": "_begin_handle_action", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "gizmo", + "type": "EditorNode3DGizmo" + }, + { + "name": "handle_id", + "type": "int", + "meta": "int32" + }, + { + "name": "secondary", + "type": "bool" + } + ] + }, { "name": "_set_handle", "is_const": false, @@ -83513,7 +88328,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3526039376, + "hash": 111032269, + "hash_compatibility": [ + 3526039376 + ], "return_value": { "type": "Button" }, @@ -83525,6 +88343,11 @@ { "name": "title", "type": "String" + }, + { + "name": "shortcut", + "type": "Shortcut", + "default_value": "null" } ] }, @@ -83534,7 +88357,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3354871258, + "hash": 2994930786, + "hash_compatibility": [ + 3354871258 + ], "arguments": [ { "name": "slot", @@ -83543,6 +88369,11 @@ { "name": "control", "type": "Control" + }, + { + "name": "shortcut", + "type": "Shortcut", + "default_value": "null" } ] }, @@ -83592,6 +88423,24 @@ } ] }, + { + "name": "set_dock_tab_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3450529724, + "arguments": [ + { + "name": "control", + "type": "Control" + }, + { + "name": "icon", + "type": "Texture2D" + } + ] + }, { "name": "add_tool_menu_item", "is_const": false, @@ -84160,6 +89009,15 @@ } ] }, + { + "name": "scene_saved", + "arguments": [ + { + "name": "filepath", + "type": "String" + } + ] + }, { "name": "project_settings_changed" } @@ -85313,7 +90171,7 @@ "api_type": "editor" }, { - "name": "EditorSceneFormatImporterFBX", + "name": "EditorSceneFormatImporterFBX2GLTF", "is_refcounted": true, "is_instantiable": true, "inherits": "EditorSceneFormatImporter", @@ -85326,6 +90184,13 @@ "inherits": "EditorSceneFormatImporter", "api_type": "editor" }, + { + "name": "EditorSceneFormatImporterUFBX", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "EditorSceneFormatImporter", + "api_type": "editor" + }, { "name": "EditorScenePostImport", "is_refcounted": true, @@ -87910,6 +92775,14 @@ } ] }, + { + "name": "line_poll", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, { "name": "send_message", "is_const": false, @@ -87927,6 +92800,183 @@ "type": "Array" } ] + }, + { + "name": "debug", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2751962654, + "arguments": [ + { + "name": "can_continue", + "type": "bool", + "default_value": "true" + }, + { + "name": "is_error_breakpoint", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "script_debug", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2442343672, + "arguments": [ + { + "name": "language", + "type": "ScriptLanguage" + }, + { + "name": "can_continue", + "type": "bool", + "default_value": "true" + }, + { + "name": "is_error_breakpoint", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "set_lines_left", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "lines", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_lines_left", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_depth", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "depth", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_depth", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "is_breakpoint", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 921227809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "source", + "type": "StringName" + } + ] + }, + { + "name": "is_skipping_breakpoints", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "insert_breakpoint", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3780747571, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "source", + "type": "StringName" + } + ] + }, + { + "name": "remove_breakpoint", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3780747571, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "source", + "type": "StringName" + } + ] + }, + { + "name": "clear_breakpoints", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 } ] }, @@ -88127,6 +93177,20 @@ } ] }, + { + "name": "FogMode", + "is_bitfield": false, + "values": [ + { + "name": "FOG_MODE_EXPONENTIAL", + "value": 0 + }, + { + "name": "FOG_MODE_DEPTH", + "value": 1 + } + ] + }, { "name": "SDFGIYScale", "is_bitfield": false, @@ -89793,6 +94857,31 @@ "type": "bool" } }, + { + "name": "set_fog_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3059806579, + "arguments": [ + { + "name": "mode", + "type": "enum::Environment.FogMode" + } + ] + }, + { + "name": "get_fog_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2456062483, + "return_value": { + "type": "enum::Environment.FogMode" + } + }, { "name": "set_fog_light_color", "is_const": false, @@ -90007,6 +95096,87 @@ "meta": "float" } }, + { + "name": "set_fog_depth_curve", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "curve", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_fog_depth_curve", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_fog_depth_begin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "begin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_fog_depth_begin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_fog_depth_end", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "end", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_fog_depth_end", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, { "name": "set_volumetric_fog_enabled", "is_const": false, @@ -90849,6 +96019,12 @@ "setter": "set_fog_enabled", "getter": "is_fog_enabled" }, + { + "type": "int", + "name": "fog_mode", + "setter": "set_fog_mode", + "getter": "get_fog_mode" + }, { "type": "Color", "name": "fog_light_color", @@ -90897,6 +96073,24 @@ "setter": "set_fog_height_density", "getter": "get_fog_height_density" }, + { + "type": "float", + "name": "fog_depth_curve", + "setter": "set_fog_depth_curve", + "getter": "get_fog_depth_curve" + }, + { + "type": "float", + "name": "fog_depth_begin", + "setter": "set_fog_depth_begin", + "getter": "get_fog_depth_begin" + }, + { + "type": "float", + "name": "fog_depth_end", + "setter": "set_fog_depth_end", + "getter": "get_fog_depth_end" + }, { "type": "bool", "name": "volumetric_fog_enabled", @@ -91096,6 +96290,55 @@ } ] }, + { + "name": "FBXDocument", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "GLTFDocument", + "api_type": "core" + }, + { + "name": "FBXState", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "GLTFState", + "api_type": "core", + "methods": [ + { + "name": "get_allow_geometry_helper_nodes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_allow_geometry_helper_nodes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "allow", + "type": "bool" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "allow_geometry_helper_nodes", + "setter": "set_allow_geometry_helper_nodes", + "getter": "get_allow_geometry_helper_nodes" + } + ] + }, { "name": "FastNoiseLite", "is_refcounted": true, @@ -92186,6 +97429,24 @@ } ] }, + { + "name": "resize", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844576869, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "length", + "type": "int", + "meta": "int64" + } + ] + }, { "name": "flush", "is_const": false, @@ -93018,6 +98279,180 @@ "type": "PackedStringArray" } }, + { + "name": "get_option_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "option", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_option_values", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 647634434, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "option", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_option_default", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "option", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_option_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "option", + "type": "int", + "meta": "int32" + }, + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "set_option_values", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3353661094, + "arguments": [ + { + "name": "option", + "type": "int", + "meta": "int32" + }, + { + "name": "values", + "type": "PackedStringArray" + } + ] + }, + { + "name": "set_option_default", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "option", + "type": "int", + "meta": "int32" + }, + { + "name": "default_value_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_option_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_option_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "add_option", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 149592325, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "values", + "type": "PackedStringArray" + }, + { + "name": "default_value_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_selected_options", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3102165223, + "return_value": { + "type": "Dictionary" + } + }, { "name": "get_current_dir", "is_const": true, @@ -93342,6 +98777,12 @@ "setter": "set_filters", "getter": "get_filters" }, + { + "type": "int", + "name": "option_count", + "setter": "set_option_count", + "getter": "get_option_count" + }, { "type": "bool", "name": "show_hidden_files", @@ -93496,6 +98937,9 @@ } ] }, + { + "name": "folder_color_changed" + }, { "name": "display_mode_changed" } @@ -93525,6 +98969,28 @@ "value": 2 } ] + }, + { + "name": "LastWrapAlignmentMode", + "is_bitfield": false, + "values": [ + { + "name": "LAST_WRAP_ALIGNMENT_INHERIT", + "value": 0 + }, + { + "name": "LAST_WRAP_ALIGNMENT_BEGIN", + "value": 1 + }, + { + "name": "LAST_WRAP_ALIGNMENT_CENTER", + "value": 2 + }, + { + "name": "LAST_WRAP_ALIGNMENT_END", + "value": 3 + } + ] } ], "methods": [ @@ -93565,6 +99031,31 @@ "type": "enum::FlowContainer.AlignmentMode" } }, + { + "name": "set_last_wrap_alignment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2899697495, + "arguments": [ + { + "name": "last_wrap_alignment", + "type": "enum::FlowContainer.LastWrapAlignmentMode" + } + ] + }, + { + "name": "get_last_wrap_alignment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3743456014, + "return_value": { + "type": "enum::FlowContainer.LastWrapAlignmentMode" + } + }, { "name": "set_vertical", "is_const": false, @@ -93589,6 +99080,31 @@ "return_value": { "type": "bool" } + }, + { + "name": "set_reverse_fill", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "reverse_fill", + "type": "bool" + } + ] + }, + { + "name": "is_reverse_fill", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } } ], "properties": [ @@ -93598,11 +99114,23 @@ "setter": "set_alignment", "getter": "get_alignment" }, + { + "type": "int", + "name": "last_wrap_alignment", + "setter": "set_last_wrap_alignment", + "getter": "get_last_wrap_alignment" + }, { "type": "bool", "name": "vertical", "setter": "set_vertical", "getter": "is_vertical" + }, + { + "type": "bool", + "name": "reverse_fill", + "setter": "set_reverse_fill", + "getter": "is_reverse_fill" } ] }, @@ -93951,9 +99479,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3344325384, + "hash": 2553855095, "hash_compatibility": [ 1851767612, + 3344325384, 1222433716, 1149405976 ], @@ -94005,6 +99534,12 @@ "type": "int", "meta": "int32", "default_value": "0" + }, + { + "name": "baseline_offset", + "type": "float", + "meta": "float", + "default_value": "0.0" } ] }, @@ -95008,6 +100543,31 @@ "type": "enum::TextServer.FontAntialiasing" } }, + { + "name": "set_disable_embedded_bitmaps", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "disable_embedded_bitmaps", + "type": "bool" + } + ] + }, + { + "name": "get_disable_embedded_bitmaps", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "set_generate_mipmaps", "is_const": false, @@ -95538,6 +101098,45 @@ } ] }, + { + "name": "set_extra_baseline_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "baseline_offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_extra_baseline_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "set_face_index", "is_const": false, @@ -96724,6 +102323,12 @@ "setter": "set_generate_mipmaps", "getter": "get_generate_mipmaps" }, + { + "type": "bool", + "name": "disable_embedded_bitmaps", + "setter": "set_disable_embedded_bitmaps", + "getter": "get_disable_embedded_bitmaps" + }, { "type": "int", "name": "antialiasing", @@ -96996,6 +102601,33 @@ "meta": "int32" } ] + }, + { + "name": "set_baseline_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "baseline_offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_baseline_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } } ], "properties": [ @@ -97062,6 +102694,47 @@ "setter": "set_spacing", "getter": "get_spacing", "index": 3 + }, + { + "type": "float", + "name": "baseline_offset", + "setter": "set_baseline_offset", + "getter": "get_baseline_offset" + } + ] + }, + { + "name": "FramebufferCacheRD", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "get_cache_multipass", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 3437881813, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "textures", + "type": "typedarray::RID" + }, + { + "name": "passes", + "type": "typedarray::RDFramebufferPass" + }, + { + "name": "views", + "type": "int", + "meta": "uint32" + } + ] } ] }, @@ -97096,35 +102769,6 @@ } ], "methods": [ - { - "name": "open_library", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 852856452, - "return_value": { - "type": "enum::Error" - }, - "arguments": [ - { - "name": "path", - "type": "String" - }, - { - "name": "entry_symbol", - "type": "String" - } - ] - }, - { - "name": "close_library", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3218959716 - }, { "name": "is_library_open", "is_const": true, @@ -97146,20 +102790,6 @@ "return_value": { "type": "enum::GDExtension.InitializationLevel" } - }, - { - "name": "initialize_library", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3409922941, - "arguments": [ - { - "name": "level", - "type": "enum::GDExtension.InitializationLevel" - } - ] } ] }, @@ -97461,6 +103091,33 @@ } ] }, + { + "name": "get_accessor_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_accessor_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "accessor_type", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "get_type", "is_const": false, @@ -97732,6 +103389,12 @@ "setter": "set_count", "getter": "get_count" }, + { + "type": "int", + "name": "accessor_type", + "setter": "set_accessor_type", + "getter": "get_accessor_type" + }, { "type": "int", "name": "type", @@ -97795,6 +103458,31 @@ "inherits": "Resource", "api_type": "core", "methods": [ + { + "name": "get_original_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2841200299, + "return_value": { + "type": "String" + } + }, + { + "name": "set_original_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "original_name", + "type": "String" + } + ] + }, { "name": "get_loop", "is_const": true, @@ -97819,9 +103507,50 @@ "type": "bool" } ] + }, + { + "name": "get_additional_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2138907829, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "extension_name", + "type": "StringName" + } + ] + }, + { + "name": "set_additional_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3776071444, + "arguments": [ + { + "name": "extension_name", + "type": "StringName" + }, + { + "name": "additional_data", + "type": "Variant" + } + ] } ], "properties": [ + { + "type": "String", + "name": "original_name", + "setter": "set_original_name", + "getter": "get_original_name" + }, { "type": "bool", "name": "loop", @@ -97838,12 +103567,32 @@ "api_type": "core", "methods": [ { - "name": "get_buffer", - "is_const": false, + "name": "load_buffer_view_data", + "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2455072627, + "hash": 3945446907, + "return_value": { + "type": "PackedByteArray" + }, + "arguments": [ + { + "name": "state", + "type": "GLTFState" + } + ] + }, + { + "name": "get_buffer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "hash_compatibility": [ + 2455072627 + ], "return_value": { "type": "int", "meta": "int32" @@ -97866,11 +103615,14 @@ }, { "name": "get_byte_offset", - "is_const": false, + "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2455072627, + "hash": 3905245786, + "hash_compatibility": [ + 2455072627 + ], "return_value": { "type": "int", "meta": "int32" @@ -97893,11 +103645,14 @@ }, { "name": "get_byte_length", - "is_const": false, + "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2455072627, + "hash": 3905245786, + "hash_compatibility": [ + 2455072627 + ], "return_value": { "type": "int", "meta": "int32" @@ -97920,11 +103675,14 @@ }, { "name": "get_byte_stride", - "is_const": false, + "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2455072627, + "hash": 3905245786, + "hash_compatibility": [ + 2455072627 + ], "return_value": { "type": "int", "meta": "int32" @@ -97947,11 +103705,14 @@ }, { "name": "get_indices", - "is_const": false, + "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2240911060, + "hash": 36873697, + "hash_compatibility": [ + 2240911060 + ], "return_value": { "type": "bool" } @@ -97969,6 +103730,31 @@ "type": "bool" } ] + }, + { + "name": "get_vertex_attributes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_vertex_attributes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "is_attributes", + "type": "bool" + } + ] } ], "properties": [ @@ -98001,6 +103787,12 @@ "name": "indices", "setter": "set_indices", "getter": "get_indices" + }, + { + "type": "bool", + "name": "vertex_attributes", + "setter": "set_vertex_attributes", + "getter": "get_vertex_attributes" } ] }, @@ -98261,6 +104053,83 @@ } ], "methods": [ + { + "name": "set_image_format", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "image_format", + "type": "String" + } + ] + }, + { + "name": "get_image_format", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_lossy_quality", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "lossy_quality", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_lossy_quality", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_root_node_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 463633402, + "arguments": [ + { + "name": "root_node_mode", + "type": "enum::GLTFDocument.RootNodeMode" + } + ] + }, + { + "name": "get_root_node_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 948057992, + "return_value": { + "type": "enum::GLTFDocument.RootNodeMode" + } + }, { "name": "append_from_file", "is_const": false, @@ -98434,83 +104303,6 @@ } ] }, - { - "name": "set_image_format", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 83702148, - "arguments": [ - { - "name": "image_format", - "type": "String" - } - ] - }, - { - "name": "get_image_format", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 201670096, - "return_value": { - "type": "String" - } - }, - { - "name": "set_lossy_quality", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 373806689, - "arguments": [ - { - "name": "lossy_quality", - "type": "float", - "meta": "float" - } - ] - }, - { - "name": "get_lossy_quality", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 1740695150, - "return_value": { - "type": "float", - "meta": "float" - } - }, - { - "name": "set_root_node_mode", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 463633402, - "arguments": [ - { - "name": "root_node_mode", - "type": "enum::GLTFDocument.RootNodeMode" - } - ] - }, - { - "name": "get_root_node_mode", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 948057992, - "return_value": { - "type": "enum::GLTFDocument.RootNodeMode" - } - }, { "name": "register_gltf_document_extension", "is_const": false, @@ -99211,6 +105003,41 @@ "meta": "float" } ] + }, + { + "name": "get_additional_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2138907829, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "extension_name", + "type": "StringName" + } + ] + }, + { + "name": "set_additional_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3776071444, + "arguments": [ + { + "name": "extension_name", + "type": "StringName" + }, + { + "name": "additional_data", + "type": "Variant" + } + ] } ], "properties": [ @@ -99259,6 +105086,31 @@ "inherits": "Resource", "api_type": "core", "methods": [ + { + "name": "get_original_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2841200299, + "return_value": { + "type": "String" + } + }, + { + "name": "set_original_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "original_name", + "type": "String" + } + ] + }, { "name": "get_mesh", "is_const": false, @@ -99333,9 +105185,50 @@ "type": "typedarray::Material" } ] + }, + { + "name": "get_additional_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2138907829, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "extension_name", + "type": "StringName" + } + ] + }, + { + "name": "set_additional_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3776071444, + "arguments": [ + { + "name": "extension_name", + "type": "StringName" + }, + { + "name": "additional_data", + "type": "Variant" + } + ] } ], "properties": [ + { + "type": "String", + "name": "original_name", + "setter": "set_original_name", + "getter": "get_original_name" + }, { "type": "Object", "name": "mesh", @@ -99363,6 +105256,31 @@ "inherits": "Resource", "api_type": "core", "methods": [ + { + "name": "get_original_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2841200299, + "return_value": { + "type": "String" + } + }, + { + "name": "set_original_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "original_name", + "type": "String" + } + ] + }, { "name": "get_parent", "is_const": false, @@ -99714,6 +105632,12 @@ } ], "properties": [ + { + "type": "String", + "name": "original_name", + "setter": "set_original_name", + "getter": "get_original_name" + }, { "type": "int", "name": "parent", @@ -99978,6 +105902,56 @@ } ] }, + { + "name": "get_inertia_diagonal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_inertia_diagonal", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "inertia_diagonal", + "type": "Vector3" + } + ] + }, + { + "name": "get_inertia_orientation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1222331677, + "return_value": { + "type": "Quaternion" + } + }, + { + "name": "set_inertia_orientation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1727505552, + "arguments": [ + { + "name": "inertia_orientation", + "type": "Quaternion" + } + ] + }, { "name": "get_inertia_tensor", "is_const": true, @@ -100035,6 +106009,18 @@ "setter": "set_center_of_mass", "getter": "get_center_of_mass" }, + { + "type": "Vector3", + "name": "inertia_diagonal", + "setter": "set_inertia_diagonal", + "getter": "get_inertia_diagonal" + }, + { + "type": "Quaternion", + "name": "inertia_orientation", + "setter": "set_inertia_orientation", + "getter": "get_inertia_orientation" + }, { "type": "Basis", "name": "inertia_tensor", @@ -100085,6 +106071,41 @@ } ] }, + { + "name": "from_resource", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 3845569786, + "return_value": { + "type": "GLTFPhysicsShape" + }, + "arguments": [ + { + "name": "shape_resource", + "type": "Shape3D" + } + ] + }, + { + "name": "to_resource", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1913542110, + "return_value": { + "type": "Shape3D" + }, + "arguments": [ + { + "name": "cache_shapes", + "type": "bool", + "default_value": "false" + } + ] + }, { "name": "from_dictionary", "is_const": false, @@ -101052,6 +107073,28 @@ } ] }, + { + "name": "append_data_to_buffers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1460416665, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "data", + "type": "PackedByteArray" + }, + { + "name": "deduplication", + "type": "bool" + } + ] + }, { "name": "get_json", "is_const": false, @@ -101743,6 +107786,31 @@ } ] }, + { + "name": "get_import_as_skeleton_bones", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_import_as_skeleton_bones", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "import_as_skeleton_bones", + "type": "bool" + } + ] + }, { "name": "get_animations", "is_const": false, @@ -101865,6 +107933,33 @@ "meta": "int32" } ] + }, + { + "name": "set_bake_fps", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "value", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_bake_fps", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } } ], "properties": [ @@ -102024,6 +108119,12 @@ "setter": "set_create_animations", "getter": "get_create_animations" }, + { + "type": "bool", + "name": "import_as_skeleton_bones", + "setter": "set_import_as_skeleton_bones", + "getter": "get_import_as_skeleton_bones" + }, { "type": "Array", "name": "animations", @@ -102035,6 +108136,12 @@ "name": "handle_binary_image", "setter": "set_handle_binary_image", "getter": "get_handle_binary_image" + }, + { + "type": "float", + "name": "bake_fps", + "setter": "set_bake_fps", + "getter": "get_bake_fps" } ] }, @@ -103033,7 +109140,7 @@ "getter": "get_sub_emitter" }, { - "type": "ShaderMaterial,ParticleProcessMaterial", + "type": "ParticleProcessMaterial,ShaderMaterial", "name": "process_material", "setter": "set_process_material", "getter": "get_process_material" @@ -104098,7 +110205,7 @@ "getter": "get_trail_lifetime" }, { - "type": "ShaderMaterial,ParticleProcessMaterial", + "type": "ParticleProcessMaterial,ShaderMaterial", "name": "process_material", "setter": "set_process_material", "getter": "get_process_material" @@ -106376,6 +112483,23 @@ "type": "Plane" } ] + }, + { + "name": "tetrahedralize_delaunay", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1230191221, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "points", + "type": "PackedVector3Array" + } + ] } ] }, @@ -107702,6 +113826,20 @@ "value": 1 } ] + }, + { + "name": "GridPattern", + "is_bitfield": false, + "values": [ + { + "name": "GRID_PATTERN_LINES", + "value": 0 + }, + { + "name": "GRID_PATTERN_DOTS", + "value": 1 + } + ] } ], "methods": [ @@ -107939,6 +114077,46 @@ "type": "typedarray::Dictionary" } }, + { + "name": "get_closest_connection_at_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 453879819, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "point", + "type": "Vector2" + }, + { + "name": "max_distance", + "type": "float", + "meta": "float", + "default_value": "4.0" + } + ] + }, + { + "name": "get_connections_intersecting_with_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2709748719, + "return_value": { + "type": "typedarray::Dictionary" + }, + "arguments": [ + { + "name": "rect", + "type": "Rect2" + } + ] + }, { "name": "clear_connections", "is_const": false, @@ -108105,11 +114283,14 @@ }, { "name": "get_connection_line", - "is_const": false, + "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1562168077, + "hash": 3932192302, + "hash_compatibility": [ + 1562168077 + ], "return_value": { "type": "PackedVector2Array" }, @@ -108124,6 +114305,72 @@ } ] }, + { + "name": "attach_graph_element_to_frame", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3740211285, + "arguments": [ + { + "name": "element", + "type": "StringName" + }, + { + "name": "frame", + "type": "StringName" + } + ] + }, + { + "name": "detach_graph_element_from_frame", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "element", + "type": "StringName" + } + ] + }, + { + "name": "get_element_frame", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 988084372, + "return_value": { + "type": "GraphFrame" + }, + "arguments": [ + { + "name": "element", + "type": "StringName" + } + ] + }, + { + "name": "get_attached_nodes_of_frame", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 689397652, + "return_value": { + "type": "typedarray::StringName" + }, + "arguments": [ + { + "name": "frame", + "type": "StringName" + } + ] + }, { "name": "set_panning_scheme", "is_const": false, @@ -108282,6 +114529,31 @@ "type": "bool" } }, + { + "name": "set_grid_pattern", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1074098205, + "arguments": [ + { + "name": "pattern", + "type": "enum::GraphEdit.GridPattern" + } + ] + }, + { + "name": "get_grid_pattern", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286127528, + "return_value": { + "type": "enum::GraphEdit.GridPattern" + } + }, { "name": "set_snapping_enabled", "is_const": false, @@ -108832,11 +115104,24 @@ } ] }, + { + "name": "frame_rect_changed", + "arguments": [ + { + "name": "frame", + "type": "GraphFrame" + }, + { + "name": "new_rect", + "type": "Vector2" + } + ] + }, { "name": "popup_request", "arguments": [ { - "name": "position", + "name": "at_position", "type": "Vector2" } ] @@ -108847,6 +115132,19 @@ { "name": "end_node_move" }, + { + "name": "graph_elements_linked_to_frame_request", + "arguments": [ + { + "name": "elements", + "type": "Array" + }, + { + "name": "frame", + "type": "StringName" + } + ] + }, { "name": "scroll_offset_changed", "arguments": [ @@ -108870,6 +115168,12 @@ "setter": "set_show_grid", "getter": "is_showing_grid" }, + { + "type": "int", + "name": "grid_pattern", + "setter": "set_grid_pattern", + "getter": "get_grid_pattern" + }, { "type": "bool", "name": "snapping_enabled", @@ -109142,7 +115446,16 @@ "name": "resize_request", "arguments": [ { - "name": "new_minsize", + "name": "new_size", + "type": "Vector2" + } + ] + }, + { + "name": "resize_end", + "arguments": [ + { + "name": "new_size", "type": "Vector2" } ] @@ -109197,6 +115510,223 @@ } ] }, + { + "name": "GraphFrame", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "GraphElement", + "api_type": "core", + "methods": [ + { + "name": "set_title", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "title", + "type": "String" + } + ] + }, + { + "name": "get_title", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_titlebar_hbox", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3590609951, + "return_value": { + "type": "HBoxContainer" + } + }, + { + "name": "set_autoshrink_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "shrink", + "type": "bool" + } + ] + }, + { + "name": "is_autoshrink_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_autoshrink_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "autoshrink_margin", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_autoshrink_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_drag_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "drag_margin", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_drag_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_tint_color_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_tint_color_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_tint_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_tint_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + } + ], + "signals": [ + { + "name": "autoshrink_changed" + } + ], + "properties": [ + { + "type": "String", + "name": "title", + "setter": "set_title", + "getter": "get_title" + }, + { + "type": "bool", + "name": "autoshrink_enabled", + "setter": "set_autoshrink_enabled", + "getter": "is_autoshrink_enabled" + }, + { + "type": "int", + "name": "autoshrink_margin", + "setter": "set_autoshrink_margin", + "getter": "get_autoshrink_margin" + }, + { + "type": "int", + "name": "drag_margin", + "setter": "set_drag_margin", + "getter": "get_drag_margin" + }, + { + "type": "bool", + "name": "tint_color_enabled", + "setter": "set_tint_color_enabled", + "getter": "is_tint_color_enabled" + }, + { + "type": "Color", + "name": "tint_color", + "setter": "set_tint_color", + "getter": "get_tint_color" + } + ] + }, { "name": "GraphNode", "is_refcounted": false, @@ -109461,6 +115991,43 @@ } ] }, + { + "name": "set_slot_custom_icon_left", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 666127730, + "arguments": [ + { + "name": "slot_index", + "type": "int", + "meta": "int32" + }, + { + "name": "custom_icon", + "type": "Texture2D" + } + ] + }, + { + "name": "get_slot_custom_icon_left", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3536238170, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "slot_index", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "is_slot_enabled_right", "is_const": true, @@ -109574,6 +116141,43 @@ } ] }, + { + "name": "set_slot_custom_icon_right", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 666127730, + "arguments": [ + { + "name": "slot_index", + "type": "int", + "meta": "int32" + }, + { + "name": "custom_icon", + "type": "Texture2D" + } + ] + }, + { + "name": "get_slot_custom_icon_right", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3536238170, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "slot_index", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "is_slot_draw_stylebox", "is_const": true, @@ -109611,6 +116215,31 @@ } ] }, + { + "name": "set_ignore_invalid_connection_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "ignore", + "type": "bool" + } + ] + }, + { + "name": "is_ignoring_valid_connection_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "get_input_port_count", "is_const": false, @@ -109801,6 +116430,12 @@ "name": "title", "setter": "set_title", "getter": "get_title" + }, + { + "type": "bool", + "name": "ignore_invalid_connection_type", + "setter": "set_ignore_invalid_connection_type", + "getter": "is_ignoring_valid_connection_type" } ] }, @@ -112162,6 +118797,54 @@ "return_value": { "type": "PackedFloat32Array" } + }, + { + "name": "get_min_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_max_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "update_map_data_from_image", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2636652979, + "arguments": [ + { + "name": "image", + "type": "Image" + }, + { + "name": "height_min", + "type": "float", + "meta": "float" + }, + { + "name": "height_max", + "type": "float", + "meta": "float" + } + ] } ], "properties": [ @@ -112964,6 +119647,18 @@ "type": "PackedByteArray" } }, + { + "name": "get_data_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int64" + } + }, { "name": "convert", "is_const": false, @@ -113158,6 +119853,37 @@ } ] }, + { + "name": "create_empty", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 986942177, + "return_value": { + "type": "Image" + }, + "arguments": [ + { + "name": "width", + "type": "int", + "meta": "int32" + }, + { + "name": "height", + "type": "int", + "meta": "int32" + }, + { + "name": "use_mipmaps", + "type": "bool" + }, + { + "name": "format", + "type": "enum::Image.Format" + } + ] + }, { "name": "create_from_data", "is_const": false, @@ -115922,13 +122648,22 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 955504365, + "hash": 544894297, + "hash_compatibility": [ + 955504365 + ], "arguments": [ { "name": "duration_ms", "type": "int", "meta": "int32", "default_value": "500" + }, + { + "name": "amplitude", + "type": "float", + "meta": "float", + "default_value": "-1.0" } ] }, @@ -116043,6 +122778,17 @@ "type": "Vector2" } }, + { + "name": "get_last_mouse_screen_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1497962370, + "return_value": { + "type": "Vector2" + } + }, { "name": "get_mouse_button_mask", "is_const": true, @@ -116229,6 +122975,56 @@ "is_static": false, "is_virtual": false, "hash": 3218959716 + }, + { + "name": "set_emulate_mouse_from_touch", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_emulating_mouse_from_touch", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_emulate_touch_from_mouse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_emulating_touch_from_mouse", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } } ], "signals": [ @@ -116258,6 +123054,18 @@ "name": "use_accumulated_input", "setter": "set_use_accumulated_input", "getter": "is_using_accumulated_input" + }, + { + "type": "bool", + "name": "emulate_mouse_from_touch", + "setter": "set_emulate_mouse_from_touch", + "getter": "is_emulating_mouse_from_touch" + }, + { + "type": "bool", + "name": "emulate_touch_from_mouse", + "setter": "set_emulate_touch_from_mouse", + "getter": "is_emulating_touch_from_mouse" } ] }, @@ -116267,6 +123075,12 @@ "is_instantiable": false, "inherits": "Resource", "api_type": "core", + "constants": [ + { + "name": "DEVICE_ID_EMULATION", + "value": -1 + } + ], "methods": [ { "name": "set_device", @@ -116604,6 +123418,33 @@ "type": "float", "meta": "float" } + }, + { + "name": "set_event_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_event_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } } ], "properties": [ @@ -116624,6 +123465,12 @@ "name": "strength", "setter": "set_strength", "getter": "get_strength" + }, + { + "type": "int", + "name": "event_index", + "setter": "set_event_index", + "getter": "get_event_index" } ] }, @@ -117004,6 +123851,31 @@ "type": "int" } }, + { + "name": "set_location", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 634453155, + "arguments": [ + { + "name": "location", + "type": "enum::KeyLocation" + } + ] + }, + { + "name": "get_location", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 211810873, + "return_value": { + "type": "enum::KeyLocation" + } + }, { "name": "set_echo", "is_const": false, @@ -117083,6 +123955,17 @@ "return_value": { "type": "String" } + }, + { + "name": "as_text_location", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } } ], "properties": [ @@ -117116,6 +123999,12 @@ "setter": "set_unicode", "getter": "get_unicode" }, + { + "type": "int", + "name": "location", + "setter": "set_location", + "getter": "get_location" + }, { "type": "bool", "name": "echo", @@ -117800,6 +124689,31 @@ "type": "Vector2" } }, + { + "name": "set_screen_relative", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "relative", + "type": "Vector2" + } + ] + }, + { + "name": "get_screen_relative", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, { "name": "set_velocity", "is_const": false, @@ -117824,6 +124738,31 @@ "return_value": { "type": "Vector2" } + }, + { + "name": "set_screen_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "velocity", + "type": "Vector2" + } + ] + }, + { + "name": "get_screen_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } } ], "properties": [ @@ -117851,11 +124790,23 @@ "setter": "set_relative", "getter": "get_relative" }, + { + "type": "Vector2", + "name": "screen_relative", + "setter": "set_screen_relative", + "getter": "get_screen_relative" + }, { "type": "Vector2", "name": "velocity", "setter": "set_velocity", "getter": "get_velocity" + }, + { + "type": "Vector2", + "name": "screen_velocity", + "setter": "set_screen_velocity", + "getter": "get_screen_velocity" } ] }, @@ -118062,6 +125013,31 @@ "type": "Vector2" } }, + { + "name": "set_screen_relative", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "relative", + "type": "Vector2" + } + ] + }, + { + "name": "get_screen_relative", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, { "name": "set_velocity", "is_const": false, @@ -118086,6 +125062,31 @@ "return_value": { "type": "Vector2" } + }, + { + "name": "set_screen_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "velocity", + "type": "Vector2" + } + ] + }, + { + "name": "get_screen_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } } ], "properties": [ @@ -118125,11 +125126,23 @@ "setter": "set_relative", "getter": "get_relative" }, + { + "type": "Vector2", + "name": "screen_relative", + "setter": "set_screen_relative", + "getter": "get_screen_relative" + }, { "type": "Vector2", "name": "velocity", "setter": "set_velocity", "getter": "get_velocity" + }, + { + "type": "Vector2", + "name": "screen_velocity", + "setter": "set_screen_velocity", + "getter": "get_screen_velocity" } ] }, @@ -121668,6 +128681,31 @@ "type": "enum::TextServer.OverrunBehavior" } }, + { + "name": "set_ellipsis_char", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "char", + "type": "String" + } + ] + }, + { + "name": "get_ellipsis_char", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, { "name": "set_uppercase", "is_const": false, @@ -121931,6 +128969,24 @@ "return_value": { "type": "Array" } + }, + { + "name": "get_character_bounds", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3327874267, + "return_value": { + "type": "Rect2" + }, + "arguments": [ + { + "name": "pos", + "type": "int", + "meta": "int32" + } + ] } ], "properties": [ @@ -121982,6 +129038,12 @@ "setter": "set_text_overrun_behavior", "getter": "get_text_overrun_behavior" }, + { + "type": "String", + "name": "ellipsis_char", + "setter": "set_ellipsis_char", + "getter": "get_ellipsis_char" + }, { "type": "bool", "name": "uppercase", @@ -125094,6 +132156,33 @@ "meta": "float" } }, + { + "name": "set_texel_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "texel_scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_texel_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, { "name": "set_max_texture_size", "is_const": false, @@ -125173,6 +132262,33 @@ "meta": "float" } }, + { + "name": "set_denoiser_range", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "denoiser_range", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_denoiser_range", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, { "name": "set_interior", "is_const": false, @@ -125323,12 +132439,24 @@ "setter": "set_denoiser_strength", "getter": "get_denoiser_strength" }, + { + "type": "int", + "name": "denoiser_range", + "setter": "set_denoiser_range", + "getter": "get_denoiser_range" + }, { "type": "float", "name": "bias", "setter": "set_bias", "getter": "get_bias" }, + { + "type": "float", + "name": "texel_scale", + "setter": "set_texel_scale", + "getter": "get_texel_scale" + }, { "type": "int", "name": "max_texture_size", @@ -130761,6 +137889,17 @@ "type": "Skin" } }, + { + "name": "get_skin_reference", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2060603409, + "return_value": { + "type": "SkinReference" + } + }, { "name": "get_surface_override_material_count", "is_const": true, @@ -130947,6 +138086,24 @@ "is_static": false, "is_virtual": false, "hash": 3218959716 + }, + { + "name": "bake_mesh_from_current_blend_shape_mix", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1457573577, + "return_value": { + "type": "ArrayMesh" + }, + "arguments": [ + { + "name": "existing", + "type": "ArrayMesh", + "default_value": "null" + } + ] } ], "properties": [ @@ -131553,6 +138710,31 @@ "type": "String" } }, + { + "name": "set_original_scene", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_original_scene", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, { "name": "set_recording_properties", "is_const": false, @@ -131586,6 +138768,12 @@ "setter": "set_original_class", "getter": "get_original_class" }, + { + "type": "String", + "name": "original_scene", + "setter": "set_original_scene", + "getter": "get_original_scene" + }, { "type": "bool", "name": "recording_properties", @@ -131782,6 +138970,31 @@ "meta": "double" } }, + { + "name": "set_offset_rect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2046264180, + "arguments": [ + { + "name": "offset_rect", + "type": "Rect2" + } + ] + }, + { + "name": "get_offset_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1639390495, + "return_value": { + "type": "Rect2" + } + }, { "name": "set_oversample", "is_const": false, @@ -131862,6 +139075,60 @@ "type": "float", "meta": "double" } + }, + { + "name": "get_vrs_min_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_vrs_min_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_vrs_strength", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_vrs_strength", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "strength", + "type": "float", + "meta": "float" + } + ] } ], "properties": [ @@ -131889,6 +139156,12 @@ "setter": "set_display_to_lens", "getter": "get_display_to_lens" }, + { + "type": "Rect2", + "name": "offset_rect", + "setter": "set_offset_rect", + "getter": "get_offset_rect" + }, { "type": "float", "name": "oversample", @@ -131906,6 +139179,18 @@ "name": "k2", "setter": "set_k2", "getter": "get_k2" + }, + { + "type": "float", + "name": "vrs_min_radius", + "setter": "set_vrs_min_radius", + "getter": "get_vrs_min_radius" + }, + { + "type": "float", + "name": "vrs_strength", + "setter": "set_vrs_strength", + "getter": "get_vrs_strength" } ] }, @@ -132346,6 +139631,31 @@ } ] }, + { + "name": "set_custom_aabb", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 259215842, + "arguments": [ + { + "name": "aabb", + "type": "AABB" + } + ] + }, + { + "name": "get_custom_aabb", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1068685055, + "return_value": { + "type": "AABB" + } + }, { "name": "get_aabb", "is_const": true, @@ -132402,6 +139712,12 @@ "setter": "set_use_custom_data", "getter": "is_using_custom_data" }, + { + "type": "AABB", + "name": "custom_aabb", + "setter": "set_custom_aabb", + "getter": "get_custom_aabb" + }, { "type": "int", "name": "instance_count", @@ -134131,6 +141447,1662 @@ } ] }, + { + "name": "NativeMenu", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "enums": [ + { + "name": "Feature", + "is_bitfield": false, + "values": [ + { + "name": "FEATURE_GLOBAL_MENU", + "value": 0 + }, + { + "name": "FEATURE_POPUP_MENU", + "value": 1 + }, + { + "name": "FEATURE_OPEN_CLOSE_CALLBACK", + "value": 2 + }, + { + "name": "FEATURE_HOVER_CALLBACK", + "value": 3 + }, + { + "name": "FEATURE_KEY_CALLBACK", + "value": 4 + } + ] + }, + { + "name": "SystemMenus", + "is_bitfield": false, + "values": [ + { + "name": "INVALID_MENU_ID", + "value": 0 + }, + { + "name": "MAIN_MENU_ID", + "value": 1 + }, + { + "name": "APPLICATION_MENU_ID", + "value": 2 + }, + { + "name": "WINDOW_MENU_ID", + "value": 3 + }, + { + "name": "HELP_MENU_ID", + "value": 4 + }, + { + "name": "DOCK_MENU_ID", + "value": 5 + } + ] + } + ], + "methods": [ + { + "name": "has_feature", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1708975490, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "feature", + "type": "enum::NativeMenu.Feature" + } + ] + }, + { + "name": "has_system_menu", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 718213027, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "menu_id", + "type": "enum::NativeMenu.SystemMenus" + } + ] + }, + { + "name": "get_system_menu", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 469707506, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "menu_id", + "type": "enum::NativeMenu.SystemMenus" + } + ] + }, + { + "name": "get_system_menu_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1281499290, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "menu_id", + "type": "enum::NativeMenu.SystemMenus" + } + ] + }, + { + "name": "create_menu", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "has_menu", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "free_menu", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2440833711, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "popup", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2450610377, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "position", + "type": "Vector2i" + } + ] + }, + { + "name": "set_interface_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "is_rtl", + "type": "bool" + } + ] + }, + { + "name": "set_popup_open_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3379118538, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "get_popup_open_callback", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3170603026, + "return_value": { + "type": "Callable" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "set_popup_close_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3379118538, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "get_popup_close_callback", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3170603026, + "return_value": { + "type": "Callable" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "set_minimum_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "width", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_minimum_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "is_opened", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "add_submenu_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1002030223, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "label", + "type": "String" + }, + { + "name": "submenu_rid", + "type": "RID" + }, + { + "name": "tag", + "type": "Variant", + "default_value": "null" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "add_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2553375659, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "label", + "type": "String" + }, + { + "name": "callback", + "type": "Callable", + "default_value": "Callable()" + }, + { + "name": "key_callback", + "type": "Callable", + "default_value": "Callable()" + }, + { + "name": "tag", + "type": "Variant", + "default_value": "null" + }, + { + "name": "accelerator", + "type": "enum::Key", + "default_value": "0" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "add_check_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2553375659, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "label", + "type": "String" + }, + { + "name": "callback", + "type": "Callable", + "default_value": "Callable()" + }, + { + "name": "key_callback", + "type": "Callable", + "default_value": "Callable()" + }, + { + "name": "tag", + "type": "Variant", + "default_value": "null" + }, + { + "name": "accelerator", + "type": "enum::Key", + "default_value": "0" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "add_icon_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2987595282, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "icon", + "type": "Texture2D" + }, + { + "name": "label", + "type": "String" + }, + { + "name": "callback", + "type": "Callable", + "default_value": "Callable()" + }, + { + "name": "key_callback", + "type": "Callable", + "default_value": "Callable()" + }, + { + "name": "tag", + "type": "Variant", + "default_value": "null" + }, + { + "name": "accelerator", + "type": "enum::Key", + "default_value": "0" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "add_icon_check_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2987595282, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "icon", + "type": "Texture2D" + }, + { + "name": "label", + "type": "String" + }, + { + "name": "callback", + "type": "Callable", + "default_value": "Callable()" + }, + { + "name": "key_callback", + "type": "Callable", + "default_value": "Callable()" + }, + { + "name": "tag", + "type": "Variant", + "default_value": "null" + }, + { + "name": "accelerator", + "type": "enum::Key", + "default_value": "0" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "add_radio_check_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2553375659, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "label", + "type": "String" + }, + { + "name": "callback", + "type": "Callable", + "default_value": "Callable()" + }, + { + "name": "key_callback", + "type": "Callable", + "default_value": "Callable()" + }, + { + "name": "tag", + "type": "Variant", + "default_value": "null" + }, + { + "name": "accelerator", + "type": "enum::Key", + "default_value": "0" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "add_icon_radio_check_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2987595282, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "icon", + "type": "Texture2D" + }, + { + "name": "label", + "type": "String" + }, + { + "name": "callback", + "type": "Callable", + "default_value": "Callable()" + }, + { + "name": "key_callback", + "type": "Callable", + "default_value": "Callable()" + }, + { + "name": "tag", + "type": "Variant", + "default_value": "null" + }, + { + "name": "accelerator", + "type": "enum::Key", + "default_value": "0" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "add_multistate_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1558592568, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "label", + "type": "String" + }, + { + "name": "max_states", + "type": "int", + "meta": "int32" + }, + { + "name": "default_state", + "type": "int", + "meta": "int32" + }, + { + "name": "callback", + "type": "Callable", + "default_value": "Callable()" + }, + { + "name": "key_callback", + "type": "Callable", + "default_value": "Callable()" + }, + { + "name": "tag", + "type": "Variant", + "default_value": "null" + }, + { + "name": "accelerator", + "type": "enum::Key", + "default_value": "0" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "add_separator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 448810126, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "find_item_index_with_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1362438794, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "find_item_index_with_tag", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1260085030, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "tag", + "type": "Variant" + } + ] + }, + { + "name": "find_item_index_with_submenu", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 893635918, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "submenu_rid", + "type": "RID" + } + ] + }, + { + "name": "is_item_checked", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3120086654, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_item_checkable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3120086654, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_item_radio_checkable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3120086654, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_callback", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1639989698, + "return_value": { + "type": "Callable" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_key_callback", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1639989698, + "return_value": { + "type": "Callable" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_tag", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4069510997, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1464764419, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_submenu", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1066463050, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_accelerator", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 316800700, + "return_value": { + "type": "enum::Key" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_item_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3120086654, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_item_hidden", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3120086654, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_tooltip", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1464764419, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_state", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1120910005, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_max_states", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1120910005, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_icon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3391850701, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_indentation_level", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1120910005, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_item_checked", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2658558584, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "checked", + "type": "bool" + } + ] + }, + { + "name": "set_item_checkable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2658558584, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "checkable", + "type": "bool" + } + ] + }, + { + "name": "set_item_radio_checkable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2658558584, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "checkable", + "type": "bool" + } + ] + }, + { + "name": "set_item_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2779810226, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "set_item_hover_callbacks", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2779810226, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "set_item_key_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2779810226, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key_callback", + "type": "Callable" + } + ] + }, + { + "name": "set_item_tag", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2706844827, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "tag", + "type": "Variant" + } + ] + }, + { + "name": "set_item_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4153150897, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "set_item_submenu", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2310537182, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "submenu_rid", + "type": "RID" + } + ] + }, + { + "name": "set_item_accelerator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 786300043, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "keycode", + "type": "enum::Key" + } + ] + }, + { + "name": "set_item_disabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2658558584, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "set_item_hidden", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2658558584, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "hidden", + "type": "bool" + } + ] + }, + { + "name": "set_item_tooltip", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4153150897, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "tooltip", + "type": "String" + } + ] + }, + { + "name": "set_item_state", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4288446313, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "state", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_item_max_states", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4288446313, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "max_states", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_item_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1388763257, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "icon", + "type": "Texture2D" + } + ] + }, + { + "name": "set_item_indentation_level", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4288446313, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "level", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "is_system_menu", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "remove_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "rid", + "type": "RID" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + } + ] + }, { "name": "NavigationAgent2D", "is_refcounted": false, @@ -134606,6 +143578,58 @@ "type": "Vector2" } }, + { + "name": "set_simplify_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_simplify_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_simplify_epsilon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "epsilon", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_simplify_epsilon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, { "name": "get_next_path_position", "is_const": false, @@ -135118,6 +144142,18 @@ "setter": "set_path_metadata_flags", "getter": "get_path_metadata_flags" }, + { + "type": "bool", + "name": "simplify_path", + "setter": "set_simplify_path", + "getter": "get_simplify_path" + }, + { + "type": "float", + "name": "simplify_epsilon", + "setter": "set_simplify_epsilon", + "getter": "get_simplify_epsilon" + }, { "type": "bool", "name": "avoidance_enabled", @@ -135795,6 +144831,58 @@ "type": "Vector3" } }, + { + "name": "set_simplify_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_simplify_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_simplify_epsilon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "epsilon", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_simplify_epsilon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, { "name": "get_next_path_position", "is_const": false, @@ -136286,6 +145374,18 @@ "setter": "set_path_metadata_flags", "getter": "get_path_metadata_flags" }, + { + "type": "bool", + "name": "simplify_path", + "setter": "set_simplify_path", + "getter": "get_simplify_path" + }, + { + "type": "float", + "name": "simplify_epsilon", + "setter": "set_simplify_epsilon", + "getter": "get_simplify_epsilon" + }, { "type": "bool", "name": "avoidance_enabled", @@ -136403,6 +145503,17 @@ "inherits": "Node2D", "api_type": "core", "methods": [ + { + "name": "get_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, { "name": "set_enabled", "is_const": false, @@ -136724,6 +145835,17 @@ "inherits": "Node3D", "api_type": "core", "methods": [ + { + "name": "get_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, { "name": "set_enabled", "is_const": false, @@ -137331,6 +146453,33 @@ "meta": "float" } }, + { + "name": "set_border_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "border_size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_border_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, { "name": "set_agent_height", "is_const": false, @@ -137908,6 +147057,12 @@ "setter": "set_cell_height", "getter": "get_cell_height" }, + { + "type": "float", + "name": "border_size", + "setter": "set_border_size", + "getter": "get_border_size" + }, { "type": "float", "name": "agent_height", @@ -138179,6 +147334,34 @@ "type": "typedarray::PackedVector2Array" } }, + { + "name": "append_traversable_outlines", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "traversable_outlines", + "type": "typedarray::PackedVector2Array" + } + ] + }, + { + "name": "append_obstruction_outlines", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "obstruction_outlines", + "type": "typedarray::PackedVector2Array" + } + ] + }, { "name": "add_traversable_outline", "is_const": false, @@ -138206,6 +147389,71 @@ "type": "PackedVector2Array" } ] + }, + { + "name": "merge", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 742424872, + "arguments": [ + { + "name": "other_geometry", + "type": "NavigationMeshSourceGeometryData2D" + } + ] + }, + { + "name": "add_projected_obstruction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3882407395, + "arguments": [ + { + "name": "vertices", + "type": "PackedVector2Array" + }, + { + "name": "carve", + "type": "bool" + } + ] + }, + { + "name": "clear_projected_obstructions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_projected_obstructions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "projected_obstructions", + "type": "Array" + } + ] + }, + { + "name": "get_projected_obstructions", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } } ], "properties": [ @@ -138220,6 +147468,12 @@ "name": "obstruction_outlines", "setter": "set_obstruction_outlines", "getter": "get_obstruction_outlines" + }, + { + "type": "Array", + "name": "projected_obstructions", + "setter": "set_projected_obstructions", + "getter": "get_projected_obstructions" } ] }, @@ -138280,6 +147534,24 @@ "type": "PackedInt32Array" } }, + { + "name": "append_arrays", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3117535015, + "arguments": [ + { + "name": "vertices", + "type": "PackedFloat32Array" + }, + { + "name": "indices", + "type": "PackedInt32Array" + } + ] + }, { "name": "clear", "is_const": false, @@ -138352,6 +147624,81 @@ "type": "Transform3D" } ] + }, + { + "name": "merge", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 655828145, + "arguments": [ + { + "name": "other_geometry", + "type": "NavigationMeshSourceGeometryData3D" + } + ] + }, + { + "name": "add_projected_obstruction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3351846707, + "arguments": [ + { + "name": "vertices", + "type": "PackedVector3Array" + }, + { + "name": "elevation", + "type": "float", + "meta": "float" + }, + { + "name": "height", + "type": "float", + "meta": "float" + }, + { + "name": "carve", + "type": "bool" + } + ] + }, + { + "name": "clear_projected_obstructions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_projected_obstructions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "projected_obstructions", + "type": "Array" + } + ] + }, + { + "name": "get_projected_obstructions", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } } ], "properties": [ @@ -138366,6 +147713,12 @@ "name": "indices", "setter": "set_indices", "getter": "get_indices" + }, + { + "type": "Array", + "name": "projected_obstructions", + "setter": "set_projected_obstructions", + "getter": "get_projected_obstructions" } ] }, @@ -138577,21 +147930,59 @@ "meta": "int32" } ] + }, + { + "name": "set_affect_navigation_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_affect_navigation_mesh", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_carve_navigation_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_carve_navigation_mesh", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } } ], "properties": [ - { - "type": "bool", - "name": "avoidance_enabled", - "setter": "set_avoidance_enabled", - "getter": "get_avoidance_enabled" - }, - { - "type": "Vector2", - "name": "velocity", - "setter": "set_velocity", - "getter": "get_velocity" - }, { "type": "float", "name": "radius", @@ -138604,6 +147995,30 @@ "setter": "set_vertices", "getter": "get_vertices" }, + { + "type": "bool", + "name": "affect_navigation_mesh", + "setter": "set_affect_navigation_mesh", + "getter": "get_affect_navigation_mesh" + }, + { + "type": "bool", + "name": "carve_navigation_mesh", + "setter": "set_carve_navigation_mesh", + "getter": "get_carve_navigation_mesh" + }, + { + "type": "bool", + "name": "avoidance_enabled", + "setter": "set_avoidance_enabled", + "getter": "get_avoidance_enabled" + }, + { + "type": "Vector2", + "name": "velocity", + "setter": "set_velocity", + "getter": "get_velocity" + }, { "type": "int", "name": "avoidance_layers", @@ -138872,21 +148287,59 @@ "return_value": { "type": "bool" } + }, + { + "name": "set_affect_navigation_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_affect_navigation_mesh", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_carve_navigation_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_carve_navigation_mesh", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } } ], "properties": [ - { - "type": "bool", - "name": "avoidance_enabled", - "setter": "set_avoidance_enabled", - "getter": "get_avoidance_enabled" - }, - { - "type": "Vector3", - "name": "velocity", - "setter": "set_velocity", - "getter": "get_velocity" - }, { "type": "float", "name": "radius", @@ -138905,6 +148358,30 @@ "setter": "set_vertices", "getter": "get_vertices" }, + { + "type": "bool", + "name": "affect_navigation_mesh", + "setter": "set_affect_navigation_mesh", + "getter": "get_affect_navigation_mesh" + }, + { + "type": "bool", + "name": "carve_navigation_mesh", + "setter": "set_carve_navigation_mesh", + "getter": "get_carve_navigation_mesh" + }, + { + "type": "bool", + "name": "avoidance_enabled", + "setter": "set_avoidance_enabled", + "getter": "get_avoidance_enabled" + }, + { + "type": "Vector3", + "name": "velocity", + "setter": "set_velocity", + "getter": "get_velocity" + }, { "type": "int", "name": "avoidance_layers", @@ -139154,6 +148631,58 @@ "return_value": { "type": "bitfield::NavigationPathQueryParameters2D.PathMetadataFlags" } + }, + { + "name": "set_simplify_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_simplify_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_simplify_epsilon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "epsilon", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_simplify_epsilon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } } ], "properties": [ @@ -139198,6 +148727,18 @@ "name": "metadata_flags", "setter": "set_metadata_flags", "getter": "get_metadata_flags" + }, + { + "type": "bool", + "name": "simplify_path", + "setter": "set_simplify_path", + "getter": "get_simplify_path" + }, + { + "type": "float", + "name": "simplify_epsilon", + "setter": "set_simplify_epsilon", + "getter": "get_simplify_epsilon" } ] }, @@ -139436,6 +148977,58 @@ "return_value": { "type": "bitfield::NavigationPathQueryParameters3D.PathMetadataFlags" } + }, + { + "name": "set_simplify_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_simplify_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_simplify_epsilon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "epsilon", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_simplify_epsilon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } } ], "properties": [ @@ -139480,6 +149073,18 @@ "name": "metadata_flags", "setter": "set_metadata_flags", "getter": "get_metadata_flags" + }, + { + "type": "bool", + "name": "simplify_path", + "setter": "set_simplify_path", + "getter": "get_simplify_path" + }, + { + "type": "float", + "name": "simplify_epsilon", + "setter": "set_simplify_epsilon", + "getter": "get_simplify_epsilon" } ] }, @@ -140082,6 +149687,33 @@ "meta": "float" } }, + { + "name": "set_border_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "border_size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_border_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, { "name": "set_parsed_geometry_type", "is_const": false, @@ -140248,6 +149880,56 @@ "meta": "float" } }, + { + "name": "set_baking_rect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2046264180, + "arguments": [ + { + "name": "rect", + "type": "Rect2" + } + ] + }, + { + "name": "get_baking_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1639390495, + "return_value": { + "type": "Rect2" + } + }, + { + "name": "set_baking_rect_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "rect_offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_baking_rect_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, { "name": "clear", "is_const": false, @@ -140306,11 +149988,29 @@ "setter": "set_cell_size", "getter": "get_cell_size" }, + { + "type": "float", + "name": "border_size", + "setter": "set_border_size", + "getter": "get_border_size" + }, { "type": "float", "name": "agent_radius", "setter": "set_agent_radius", "getter": "get_agent_radius" + }, + { + "type": "Rect2", + "name": "baking_rect", + "setter": "set_baking_rect", + "getter": "get_baking_rect" + }, + { + "type": "Vector2", + "name": "baking_rect_offset", + "setter": "set_baking_rect_offset", + "getter": "get_baking_rect_offset" } ] }, @@ -140321,6 +150021,17 @@ "inherits": "Node2D", "api_type": "core", "methods": [ + { + "name": "get_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, { "name": "set_navigation_polygon", "is_const": false, @@ -140485,95 +150196,6 @@ } ] }, - { - "name": "set_constrain_avoidance", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2586408642, - "arguments": [ - { - "name": "enabled", - "type": "bool" - } - ] - }, - { - "name": "get_constrain_avoidance", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 36873697, - "return_value": { - "type": "bool" - } - }, - { - "name": "set_avoidance_layers", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 1286410249, - "arguments": [ - { - "name": "layers", - "type": "int", - "meta": "uint32" - } - ] - }, - { - "name": "get_avoidance_layers", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3905245786, - "return_value": { - "type": "int", - "meta": "uint32" - } - }, - { - "name": "set_avoidance_layer_value", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 300928843, - "arguments": [ - { - "name": "layer_number", - "type": "int", - "meta": "int32" - }, - { - "name": "value", - "type": "bool" - } - ] - }, - { - "name": "get_avoidance_layer_value", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 1116898809, - "return_value": { - "type": "bool" - }, - "arguments": [ - { - "name": "layer_number", - "type": "int", - "meta": "int32" - } - ] - }, { "name": "get_region_rid", "is_const": true, @@ -140653,6 +150275,17 @@ "default_value": "true" } ] + }, + { + "name": "is_baking", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } } ], "signals": [ @@ -140699,18 +150332,6 @@ "name": "travel_cost", "setter": "set_travel_cost", "getter": "get_travel_cost" - }, - { - "type": "bool", - "name": "constrain_avoidance", - "setter": "set_constrain_avoidance", - "getter": "get_constrain_avoidance" - }, - { - "type": "int", - "name": "avoidance_layers", - "setter": "set_avoidance_layers", - "getter": "get_avoidance_layers" } ] }, @@ -140721,6 +150342,17 @@ "inherits": "Node3D", "api_type": "core", "methods": [ + { + "name": "get_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, { "name": "set_navigation_mesh", "is_const": false, @@ -140964,6 +150596,17 @@ "default_value": "true" } ] + }, + { + "name": "is_baking", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } } ], "signals": [ @@ -141385,6 +151028,50 @@ } ] }, + { + "name": "map_get_iteration_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "map_get_random_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3271000763, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + }, + { + "name": "navigation_layers", + "type": "int", + "meta": "uint32" + }, + { + "name": "uniformly", + "type": "bool" + } + ] + }, { "name": "query_path", "is_const": true, @@ -141706,6 +151393,23 @@ } ] }, + { + "name": "region_get_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 213527486, + "return_value": { + "type": "Transform2D" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + } + ] + }, { "name": "region_set_navigation_polygon", "is_const": false, @@ -141786,6 +151490,32 @@ } ] }, + { + "name": "region_get_random_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3271000763, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "navigation_layers", + "type": "int", + "meta": "uint32" + }, + { + "name": "uniformly", + "type": "bool" + } + ] + }, { "name": "link_create", "is_const": false, @@ -142255,6 +151985,24 @@ } ] }, + { + "name": "agent_get_neighbor_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "agent_set_max_neighbors", "is_const": false, @@ -142274,6 +152022,24 @@ } ] }, + { + "name": "agent_get_max_neighbors", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "agent_set_time_horizon_agents", "is_const": false, @@ -142293,6 +152059,24 @@ } ] }, + { + "name": "agent_get_time_horizon_agents", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "agent_set_time_horizon_obstacles", "is_const": false, @@ -142312,6 +152096,24 @@ } ] }, + { + "name": "agent_get_time_horizon_obstacles", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "agent_set_radius", "is_const": false, @@ -142331,6 +152133,24 @@ } ] }, + { + "name": "agent_get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "agent_set_max_speed", "is_const": false, @@ -142350,6 +152170,24 @@ } ] }, + { + "name": "agent_get_max_speed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "agent_set_velocity_forced", "is_const": false, @@ -142386,6 +152224,23 @@ } ] }, + { + "name": "agent_get_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2440833711, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "agent_set_position", "is_const": false, @@ -142404,6 +152259,23 @@ } ] }, + { + "name": "agent_get_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2440833711, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "agent_is_map_changed", "is_const": true, @@ -142439,6 +152311,23 @@ } ] }, + { + "name": "agent_has_avoidance_callback", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "agent_set_avoidance_layers", "is_const": false, @@ -142458,6 +152347,24 @@ } ] }, + { + "name": "agent_get_avoidance_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "agent_set_avoidance_mask", "is_const": false, @@ -142477,6 +152384,24 @@ } ] }, + { + "name": "agent_get_avoidance_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "agent_set_avoidance_priority", "is_const": false, @@ -142496,6 +152421,24 @@ } ] }, + { + "name": "agent_get_avoidance_priority", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "obstacle_create", "is_const": false, @@ -142631,6 +152574,24 @@ } ] }, + { + "name": "obstacle_get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "obstacle", + "type": "RID" + } + ] + }, { "name": "obstacle_set_velocity", "is_const": false, @@ -142649,6 +152610,23 @@ } ] }, + { + "name": "obstacle_get_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2440833711, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "obstacle", + "type": "RID" + } + ] + }, { "name": "obstacle_set_position", "is_const": false, @@ -142667,6 +152645,23 @@ } ] }, + { + "name": "obstacle_get_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2440833711, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "obstacle", + "type": "RID" + } + ] + }, { "name": "obstacle_set_vertices", "is_const": false, @@ -142685,6 +152680,23 @@ } ] }, + { + "name": "obstacle_get_vertices", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2222557395, + "return_value": { + "type": "PackedVector2Array" + }, + "arguments": [ + { + "name": "obstacle", + "type": "RID" + } + ] + }, { "name": "obstacle_set_avoidance_layers", "is_const": false, @@ -142704,6 +152716,24 @@ } ] }, + { + "name": "obstacle_get_avoidance_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "obstacle", + "type": "RID" + } + ] + }, { "name": "parse_source_geometry_data", "is_const": false, @@ -142777,6 +152807,74 @@ } ] }, + { + "name": "is_baking_navigation_polygon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3729405808, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "navigation_polygon", + "type": "NavigationPolygon" + } + ] + }, + { + "name": "source_geometry_parser_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "source_geometry_parser_set_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3379118538, + "arguments": [ + { + "name": "parser", + "type": "RID" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "simplify_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2457191505, + "return_value": { + "type": "PackedVector2Array" + }, + "arguments": [ + { + "name": "path", + "type": "PackedVector2Array" + }, + { + "name": "epsilon", + "type": "float", + "meta": "float" + } + ] + }, { "name": "free_rid", "is_const": false, @@ -143049,6 +153147,43 @@ } ] }, + { + "name": "map_set_merge_rasterizer_cell_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "map", + "type": "RID" + }, + { + "name": "scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "map_get_merge_rasterizer_cell_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, { "name": "map_set_use_edge_connections", "is_const": false, @@ -143371,6 +153506,50 @@ } ] }, + { + "name": "map_get_iteration_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "map_get_random_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 722801526, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + }, + { + "name": "navigation_layers", + "type": "int", + "meta": "uint32" + }, + { + "name": "uniformly", + "type": "bool" + } + ] + }, { "name": "query_path", "is_const": true, @@ -143692,6 +153871,23 @@ } ] }, + { + "name": "region_get_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1128465797, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + } + ] + }, { "name": "region_set_navigation_mesh", "is_const": false, @@ -143790,6 +153986,32 @@ } ] }, + { + "name": "region_get_random_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 722801526, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "navigation_layers", + "type": "int", + "meta": "uint32" + }, + { + "name": "uniformly", + "type": "bool" + } + ] + }, { "name": "link_create", "is_const": false, @@ -144294,6 +154516,24 @@ } ] }, + { + "name": "agent_get_neighbor_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "agent_set_max_neighbors", "is_const": false, @@ -144313,6 +154553,24 @@ } ] }, + { + "name": "agent_get_max_neighbors", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "agent_set_time_horizon_agents", "is_const": false, @@ -144332,6 +154590,24 @@ } ] }, + { + "name": "agent_get_time_horizon_agents", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "agent_set_time_horizon_obstacles", "is_const": false, @@ -144351,6 +154627,24 @@ } ] }, + { + "name": "agent_get_time_horizon_obstacles", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "agent_set_radius", "is_const": false, @@ -144370,6 +154664,24 @@ } ] }, + { + "name": "agent_get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "agent_set_height", "is_const": false, @@ -144389,6 +154701,24 @@ } ] }, + { + "name": "agent_get_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "agent_set_max_speed", "is_const": false, @@ -144408,6 +154738,24 @@ } ] }, + { + "name": "agent_get_max_speed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "agent_set_velocity_forced", "is_const": false, @@ -144444,6 +154792,23 @@ } ] }, + { + "name": "agent_get_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 531438156, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "agent_set_position", "is_const": false, @@ -144462,6 +154827,23 @@ } ] }, + { + "name": "agent_get_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 531438156, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "agent_is_map_changed", "is_const": true, @@ -144497,6 +154879,23 @@ } ] }, + { + "name": "agent_has_avoidance_callback", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "agent_set_avoidance_layers", "is_const": false, @@ -144516,6 +154915,24 @@ } ] }, + { + "name": "agent_get_avoidance_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "agent_set_avoidance_mask", "is_const": false, @@ -144535,6 +154952,24 @@ } ] }, + { + "name": "agent_get_avoidance_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "agent_set_avoidance_priority", "is_const": false, @@ -144554,6 +154989,24 @@ } ] }, + { + "name": "agent_get_avoidance_priority", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, { "name": "obstacle_create", "is_const": false, @@ -144724,6 +155177,24 @@ } ] }, + { + "name": "obstacle_get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "obstacle", + "type": "RID" + } + ] + }, { "name": "obstacle_set_height", "is_const": false, @@ -144743,6 +155214,24 @@ } ] }, + { + "name": "obstacle_get_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "obstacle", + "type": "RID" + } + ] + }, { "name": "obstacle_set_velocity", "is_const": false, @@ -144761,6 +155250,23 @@ } ] }, + { + "name": "obstacle_get_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 531438156, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "obstacle", + "type": "RID" + } + ] + }, { "name": "obstacle_set_position", "is_const": false, @@ -144779,6 +155285,23 @@ } ] }, + { + "name": "obstacle_get_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 531438156, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "obstacle", + "type": "RID" + } + ] + }, { "name": "obstacle_set_vertices", "is_const": false, @@ -144797,6 +155320,23 @@ } ] }, + { + "name": "obstacle_get_vertices", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 808965560, + "return_value": { + "type": "PackedVector3Array" + }, + "arguments": [ + { + "name": "obstacle", + "type": "RID" + } + ] + }, { "name": "obstacle_set_avoidance_layers", "is_const": false, @@ -144816,6 +155356,24 @@ } ] }, + { + "name": "obstacle_get_avoidance_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "obstacle", + "type": "RID" + } + ] + }, { "name": "parse_source_geometry_data", "is_const": false, @@ -144898,6 +155456,74 @@ } ] }, + { + "name": "is_baking_navigation_mesh", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3142026141, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "navigation_mesh", + "type": "NavigationMesh" + } + ] + }, + { + "name": "source_geometry_parser_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "source_geometry_parser_set_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3379118538, + "arguments": [ + { + "name": "parser", + "type": "RID" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "simplify_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2344122170, + "return_value": { + "type": "PackedVector3Array" + }, + "arguments": [ + { + "name": "path", + "type": "PackedVector3Array" + }, + { + "name": "epsilon", + "type": "float", + "meta": "float" + } + ] + }, { "name": "free_rid", "is_const": false, @@ -145331,6 +155957,10 @@ "name": "NOTIFICATION_ENABLED", "value": 29 }, + { + "name": "NOTIFICATION_RESET_PHYSICS_INTERPOLATION", + "value": 2001 + }, { "name": "NOTIFICATION_EDITOR_PRE_SAVE", "value": 9001 @@ -145483,6 +156113,24 @@ } ] }, + { + "name": "PhysicsInterpolationMode", + "is_bitfield": false, + "values": [ + { + "name": "PHYSICS_INTERPOLATION_MODE_INHERIT", + "value": 0 + }, + { + "name": "PHYSICS_INTERPOLATION_MODE_ON", + "value": 1 + }, + { + "name": "PHYSICS_INTERPOLATION_MODE_OFF", + "value": 2 + } + ] + }, { "name": "DuplicateFlags", "is_bitfield": false, @@ -145522,6 +156170,24 @@ "value": 2 } ] + }, + { + "name": "AutoTranslateMode", + "is_bitfield": false, + "values": [ + { + "name": "AUTO_TRANSLATE_MODE_INHERIT", + "value": 0 + }, + { + "name": "AUTO_TRANSLATE_MODE_ALWAYS", + "value": 1 + }, + { + "name": "AUTO_TRANSLATE_MODE_DISABLED", + "value": 2 + } + ] } ], "methods": [ @@ -146000,6 +156666,17 @@ "type": "bool" } }, + { + "name": "is_part_of_edited_scene", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "is_ancestor_of", "is_const": true, @@ -146712,6 +157389,86 @@ "type": "bool" } }, + { + "name": "set_physics_interpolation_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3202404928, + "arguments": [ + { + "name": "mode", + "type": "enum::Node.PhysicsInterpolationMode" + } + ] + }, + { + "name": "get_physics_interpolation_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920385216, + "return_value": { + "type": "enum::Node.PhysicsInterpolationMode" + } + }, + { + "name": "is_physics_interpolated", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_physics_interpolated_and_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "reset_physics_interpolation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_auto_translate_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 776149714, + "arguments": [ + { + "name": "mode", + "type": "enum::Node.AutoTranslateMode" + } + ] + }, + { + "name": "get_auto_translate_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2498906432, + "return_value": { + "type": "enum::Node.AutoTranslateMode" + } + }, { "name": "get_window", "is_const": true, @@ -147017,6 +157774,59 @@ "type": "bool" } }, + { + "name": "atr", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3344478075, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "message", + "type": "String" + }, + { + "name": "context", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "atr_n", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 259354841, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "message", + "type": "String" + }, + { + "name": "plural_message", + "type": "StringName" + }, + { + "name": "n", + "type": "int", + "meta": "int32" + }, + { + "name": "context", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, { "name": "rpc", "is_const": false, @@ -147209,6 +158019,15 @@ "type": "Node" } ] + }, + { + "name": "editor_description_changed", + "arguments": [ + { + "name": "node", + "type": "Node" + } + ] } ], "properties": [ @@ -147277,6 +158096,18 @@ "setter": "set_process_thread_messages", "getter": "get_process_thread_messages" }, + { + "type": "int", + "name": "physics_interpolation_mode", + "setter": "set_physics_interpolation_mode", + "getter": "get_physics_interpolation_mode" + }, + { + "type": "int", + "name": "auto_translate_mode", + "setter": "set_auto_translate_mode", + "getter": "get_auto_translate_mode" + }, { "type": "String", "name": "editor_description", @@ -149875,6 +160706,10 @@ { "name": "RENDERING_DRIVER_OPENGL3", "value": 1 + }, + { + "name": "RENDERING_DRIVER_D3D12", + "value": 2 } ] }, @@ -150242,6 +161077,27 @@ } ] }, + { + "name": "execute_with_pipe", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3845631403, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "arguments", + "type": "PackedStringArray" + } + ] + }, { "name": "create_process", "is_const": false, @@ -150365,6 +161221,25 @@ } ] }, + { + "name": "get_process_exit_code", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "pid", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "get_process_id", "is_const": true, @@ -150997,6 +161872,10 @@ { "name": "NOTIFICATION_PREDELETE", "value": 1 + }, + { + "name": "NOTIFICATION_EXTENSION_RELOADED", + "value": 2 } ], "enums": [ @@ -151367,6 +162246,20 @@ } ] }, + { + "name": "remove_user_signal", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "signal", + "type": "StringName" + } + ] + }, { "name": "emit_signal", "is_const": false, @@ -151474,6 +162367,24 @@ } ] }, + { + "name": "get_method_argument_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2458036349, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "method", + "type": "StringName" + } + ] + }, { "name": "has_signal", "is_const": true, @@ -151663,8 +162574,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1195764410, + "hash": 2475554935, "hash_compatibility": [ + 1195764410, 2475554935 ], "return_value": { @@ -151678,7 +162590,7 @@ { "name": "context", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -151688,8 +162600,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 162698058, + "hash": 4021311862, "hash_compatibility": [ + 162698058, 4021311862 ], "return_value": { @@ -151712,7 +162625,7 @@ { "name": "context", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -152255,6 +163168,26 @@ "is_instantiable": true, "inherits": "RefCounted", "api_type": "core", + "enums": [ + { + "name": "OpenXRAlphaBlendModeSupport", + "is_bitfield": false, + "values": [ + { + "name": "OPENXR_ALPHA_BLEND_MODE_SUPPORT_NONE", + "value": 0 + }, + { + "name": "OPENXR_ALPHA_BLEND_MODE_SUPPORT_REAL", + "value": 1 + }, + { + "name": "OPENXR_ALPHA_BLEND_MODE_SUPPORT_EMULATING", + "value": 2 + } + ] + } + ], "methods": [ { "name": "get_instance", @@ -152440,6 +163373,18 @@ "meta": "uint64" } }, + { + "name": "get_predicted_display_time", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int64" + } + }, { "name": "get_next_frame_time", "is_const": false, @@ -152462,6 +163407,78 @@ "return_value": { "type": "bool" } + }, + { + "name": "get_hand_tracker", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3744713108, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "hand_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "register_composition_layer_provider", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1997997368, + "arguments": [ + { + "name": "extension", + "type": "OpenXRExtensionWrapperExtension" + } + ] + }, + { + "name": "unregister_composition_layer_provider", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1997997368, + "arguments": [ + { + "name": "extension", + "type": "OpenXRExtensionWrapperExtension" + } + ] + }, + { + "name": "set_emulate_environment_blend_mode_alpha_blend", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_environment_blend_mode_alpha_supported", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1579290861, + "return_value": { + "type": "enum::OpenXRAPIExtension.OpenXRAlphaBlendModeSupport" + } } ] }, @@ -152970,6 +163987,536 @@ } ] }, + { + "name": "OpenXRCompositionLayer", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Node3D", + "api_type": "core", + "methods": [ + { + "name": "set_layer_viewport", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3888077664, + "arguments": [ + { + "name": "viewport", + "type": "SubViewport" + } + ] + }, + { + "name": "get_layer_viewport", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3750751911, + "return_value": { + "type": "SubViewport" + } + }, + { + "name": "set_enable_hole_punch", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_enable_hole_punch", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_sort_order", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "order", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_sort_order", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_alpha_blend", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_alpha_blend", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_natively_supported", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "intersects_ray", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1091262597, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "origin", + "type": "Vector3" + }, + { + "name": "direction", + "type": "Vector3" + } + ] + } + ], + "properties": [ + { + "type": "Object", + "name": "layer_viewport", + "setter": "set_layer_viewport", + "getter": "get_layer_viewport" + }, + { + "type": "int", + "name": "sort_order", + "setter": "set_sort_order", + "getter": "get_sort_order" + }, + { + "type": "bool", + "name": "alpha_blend", + "setter": "set_alpha_blend", + "getter": "get_alpha_blend" + }, + { + "type": "bool", + "name": "enable_hole_punch", + "setter": "set_enable_hole_punch", + "getter": "get_enable_hole_punch" + } + ] + }, + { + "name": "OpenXRCompositionLayerCylinder", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "OpenXRCompositionLayer", + "api_type": "core", + "methods": [ + { + "name": "set_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_aspect_ratio", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "aspect_ratio", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_aspect_ratio", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_central_angle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "angle", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_central_angle", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_fallback_segments", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "segments", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_fallback_segments", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + } + ], + "properties": [ + { + "type": "float", + "name": "radius", + "setter": "set_radius", + "getter": "get_radius" + }, + { + "type": "float", + "name": "aspect_ratio", + "setter": "set_aspect_ratio", + "getter": "get_aspect_ratio" + }, + { + "type": "float", + "name": "central_angle", + "setter": "set_central_angle", + "getter": "get_central_angle" + }, + { + "type": "int", + "name": "fallback_segments", + "setter": "set_fallback_segments", + "getter": "get_fallback_segments" + } + ] + }, + { + "name": "OpenXRCompositionLayerEquirect", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "OpenXRCompositionLayer", + "api_type": "core", + "methods": [ + { + "name": "set_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_central_horizontal_angle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "angle", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_central_horizontal_angle", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_upper_vertical_angle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "angle", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_upper_vertical_angle", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_lower_vertical_angle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "angle", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_lower_vertical_angle", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_fallback_segments", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "segments", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_fallback_segments", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + } + ], + "properties": [ + { + "type": "float", + "name": "radius", + "setter": "set_radius", + "getter": "get_radius" + }, + { + "type": "float", + "name": "central_horizontal_angle", + "setter": "set_central_horizontal_angle", + "getter": "get_central_horizontal_angle" + }, + { + "type": "float", + "name": "upper_vertical_angle", + "setter": "set_upper_vertical_angle", + "getter": "get_upper_vertical_angle" + }, + { + "type": "float", + "name": "lower_vertical_angle", + "setter": "set_lower_vertical_angle", + "getter": "get_lower_vertical_angle" + }, + { + "type": "int", + "name": "fallback_segments", + "setter": "set_fallback_segments", + "getter": "get_fallback_segments" + } + ] + }, + { + "name": "OpenXRCompositionLayerQuad", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "OpenXRCompositionLayer", + "api_type": "core", + "methods": [ + { + "name": "set_quad_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "size", + "type": "Vector2" + } + ] + }, + { + "name": "get_quad_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + } + ], + "properties": [ + { + "type": "Vector2", + "name": "quad_size", + "setter": "set_quad_size", + "getter": "get_quad_size" + } + ] + }, { "name": "OpenXRExtensionWrapperExtension", "is_refcounted": false, @@ -153055,6 +164602,85 @@ } ] }, + { + "name": "_set_hand_joint_locations_and_get_next_pointer", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "hand_index", + "type": "int", + "meta": "int32" + }, + { + "name": "next_pointer", + "type": "void*" + } + ] + }, + { + "name": "_get_composition_layer_count", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_get_composition_layer", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_composition_layer_order", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_suggested_tracker_names", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + } + }, { "name": "_on_register_metadata", "is_const": false, @@ -153118,6 +164744,13 @@ "is_vararg": false, "is_virtual": true }, + { + "name": "_on_main_swapchains_created", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, { "name": "_on_session_destroyed", "is_const": false, @@ -153197,6 +164830,64 @@ } ] }, + { + "name": "_set_viewport_composition_layer_and_get_next_pointer", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "layer", + "type": "const void*" + }, + { + "name": "property_values", + "type": "Dictionary" + }, + { + "name": "next_pointer", + "type": "void*" + } + ] + }, + { + "name": "_get_viewport_composition_layer_extension_properties", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::Dictionary" + } + }, + { + "name": "_get_viewport_composition_layer_extension_property_defaults", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "_on_viewport_composition_layer_destroyed", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "layer", + "type": "const void*" + } + ] + }, { "name": "get_openxr_api", "is_const": false, @@ -153260,6 +164951,42 @@ "value": 2 } ] + }, + { + "name": "SkeletonRig", + "is_bitfield": false, + "values": [ + { + "name": "SKELETON_RIG_OPENXR", + "value": 0 + }, + { + "name": "SKELETON_RIG_HUMANOID", + "value": 1 + }, + { + "name": "SKELETON_RIG_MAX", + "value": 2 + } + ] + }, + { + "name": "BoneUpdate", + "is_bitfield": false, + "values": [ + { + "name": "BONE_UPDATE_FULL", + "value": 0 + }, + { + "name": "BONE_UPDATE_ROTATION_ONLY", + "value": 1 + }, + { + "name": "BONE_UPDATE_MAX", + "value": 2 + } + ] } ], "methods": [ @@ -153337,6 +165064,56 @@ "return_value": { "type": "enum::OpenXRHand.MotionRange" } + }, + { + "name": "set_skeleton_rig", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1528072213, + "arguments": [ + { + "name": "skeleton_rig", + "type": "enum::OpenXRHand.SkeletonRig" + } + ] + }, + { + "name": "get_skeleton_rig", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 968409338, + "return_value": { + "type": "enum::OpenXRHand.SkeletonRig" + } + }, + { + "name": "set_bone_update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3144625444, + "arguments": [ + { + "name": "bone_update", + "type": "enum::OpenXRHand.BoneUpdate" + } + ] + }, + { + "name": "get_bone_update", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1310695248, + "return_value": { + "type": "enum::OpenXRHand.BoneUpdate" + } } ], "properties": [ @@ -153357,6 +165134,18 @@ "name": "hand_skeleton", "setter": "set_hand_skeleton", "getter": "get_hand_skeleton" + }, + { + "type": "int", + "name": "skeleton_rig", + "setter": "set_skeleton_rig", + "getter": "get_skeleton_rig" + }, + { + "type": "int", + "name": "bone_update", + "setter": "set_bone_update", + "getter": "get_bone_update" } ] }, @@ -153741,6 +165530,28 @@ } ] }, + { + "name": "HandTrackedSource", + "is_bitfield": false, + "values": [ + { + "name": "HAND_TRACKED_SOURCE_UNKNOWN", + "value": 0 + }, + { + "name": "HAND_TRACKED_SOURCE_UNOBSTRUCTED", + "value": 1 + }, + { + "name": "HAND_TRACKED_SOURCE_CONTROLLER", + "value": 2 + }, + { + "name": "HAND_TRACKED_SOURCE_MAX", + "value": 3 + } + ] + }, { "name": "HandJoints", "is_bitfield": false, @@ -154100,6 +165911,23 @@ } ] }, + { + "name": "get_hand_tracking_source", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4092421202, + "return_value": { + "type": "enum::OpenXRInterface.HandTrackedSource" + }, + "arguments": [ + { + "name": "hand", + "type": "enum::OpenXRInterface.Hand" + } + ] + }, { "name": "get_hand_joint_flags", "is_const": true, @@ -154238,6 +166066,17 @@ "type": "bool" } }, + { + "name": "is_hand_interaction_supported", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "is_eye_gaze_interaction_supported", "is_const": false, @@ -154248,6 +166087,60 @@ "return_value": { "type": "bool" } + }, + { + "name": "get_vrs_min_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_vrs_min_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_vrs_strength", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_vrs_strength", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "strength", + "type": "float", + "meta": "float" + } + ] } ], "signals": [ @@ -154263,8 +166156,23 @@ { "name": "session_visible" }, + { + "name": "session_loss_pending" + }, + { + "name": "instance_exiting" + }, { "name": "pose_recentered" + }, + { + "name": "refresh_rate_changed", + "arguments": [ + { + "name": "refresh_rate", + "type": "float" + } + ] } ], "properties": [ @@ -154291,6 +166199,18 @@ "name": "foveation_dynamic", "setter": "set_foveation_dynamic", "getter": "get_foveation_dynamic" + }, + { + "type": "float", + "name": "vrs_min_radius", + "setter": "set_vrs_min_radius", + "getter": "get_vrs_min_radius" + }, + { + "type": "float", + "name": "vrs_strength", + "setter": "set_vrs_strength", + "getter": "get_vrs_strength" } ] }, @@ -154885,12 +166805,6 @@ } ], "properties": [ - { - "type": "int", - "name": "item_count", - "setter": "set_item_count", - "getter": "get_item_count" - }, { "type": "int", "name": "selected", @@ -154908,6 +166822,12 @@ "name": "allow_reselect", "setter": "set_allow_reselect", "getter": "get_allow_reselect" + }, + { + "type": "int", + "name": "item_count", + "setter": "set_item_count", + "getter": "get_item_count" } ] }, @@ -155844,6 +167764,33 @@ "return_value": { "type": "bool" } + }, + { + "name": "set_energy_multiplier", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "multiplier", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_energy_multiplier", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } } ], "properties": [ @@ -155858,6 +167805,335 @@ "name": "filter", "setter": "set_filtering_enabled", "getter": "is_filtering_enabled" + }, + { + "type": "float", + "name": "energy_multiplier", + "setter": "set_energy_multiplier", + "getter": "get_energy_multiplier" + } + ] + }, + { + "name": "Parallax2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "set_scroll_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "scale", + "type": "Vector2" + } + ] + }, + { + "name": "get_scroll_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_repeat_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "repeat_size", + "type": "Vector2" + } + ] + }, + { + "name": "get_repeat_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_repeat_times", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "repeat_times", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_repeat_times", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_autoscroll", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "autoscroll", + "type": "Vector2" + } + ] + }, + { + "name": "get_autoscroll", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_scroll_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_scroll_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_screen_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_screen_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_limit_begin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_limit_begin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_limit_end", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_limit_end", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_follow_viewport", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "follow", + "type": "bool" + } + ] + }, + { + "name": "get_follow_viewport", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_ignore_camera_scroll", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "ignore", + "type": "bool" + } + ] + }, + { + "name": "is_ignore_camera_scroll", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "Vector2", + "name": "scroll_scale", + "setter": "set_scroll_scale", + "getter": "get_scroll_scale" + }, + { + "type": "Vector2", + "name": "scroll_offset", + "setter": "set_scroll_offset", + "getter": "get_scroll_offset" + }, + { + "type": "Vector2", + "name": "repeat_size", + "setter": "set_repeat_size", + "getter": "get_repeat_size" + }, + { + "type": "Vector2", + "name": "autoscroll", + "setter": "set_autoscroll", + "getter": "get_autoscroll" + }, + { + "type": "int", + "name": "repeat_times", + "setter": "set_repeat_times", + "getter": "get_repeat_times" + }, + { + "type": "Vector2", + "name": "limit_begin", + "setter": "set_limit_begin", + "getter": "get_limit_begin" + }, + { + "type": "Vector2", + "name": "limit_end", + "setter": "set_limit_end", + "getter": "get_limit_end" + }, + { + "type": "bool", + "name": "follow_viewport", + "setter": "set_follow_viewport", + "getter": "get_follow_viewport" + }, + { + "type": "bool", + "name": "ignore_camera_scroll", + "setter": "set_ignore_camera_scroll", + "getter": "is_ignore_camera_scroll" + }, + { + "type": "Vector2", + "name": "screen_offset", + "setter": "set_screen_offset", + "getter": "get_screen_offset" } ] }, @@ -156471,6 +168747,41 @@ "meta": "float" } }, + { + "name": "set_param", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 676779352, + "arguments": [ + { + "name": "param", + "type": "enum::ParticleProcessMaterial.Parameter" + }, + { + "name": "value", + "type": "Vector2" + } + ] + }, + { + "name": "get_param", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2623708480, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "param", + "type": "enum::ParticleProcessMaterial.Parameter" + } + ] + }, { "name": "set_param_min", "is_const": false, @@ -157682,6 +169993,13 @@ "setter": "set_emission_ring_inner_radius", "getter": "get_emission_ring_inner_radius" }, + { + "type": "Vector2", + "name": "angle", + "setter": "set_param", + "getter": "get_param", + "index": 7 + }, { "type": "float", "name": "angle_min", @@ -157733,6 +170051,13 @@ "setter": "set_flatness", "getter": "get_flatness" }, + { + "type": "Vector2", + "name": "initial_velocity", + "setter": "set_param", + "getter": "get_param", + "index": 0 + }, { "type": "float", "name": "initial_velocity_min", @@ -157747,6 +170072,13 @@ "getter": "get_param_max", "index": 0 }, + { + "type": "Vector2", + "name": "angular_velocity", + "setter": "set_param", + "getter": "get_param", + "index": 1 + }, { "type": "float", "name": "angular_velocity_min", @@ -157768,6 +170100,13 @@ "getter": "get_param_texture", "index": 1 }, + { + "type": "Vector2", + "name": "directional_velocity", + "setter": "set_param", + "getter": "get_param", + "index": 16 + }, { "type": "float", "name": "directional_velocity_min", @@ -157789,6 +170128,13 @@ "getter": "get_param_texture", "index": 16 }, + { + "type": "Vector2", + "name": "orbit_velocity", + "setter": "set_param", + "getter": "get_param", + "index": 2 + }, { "type": "float", "name": "orbit_velocity_min", @@ -157810,6 +170156,13 @@ "getter": "get_param_texture", "index": 2 }, + { + "type": "Vector2", + "name": "radial_velocity", + "setter": "set_param", + "getter": "get_param", + "index": 15 + }, { "type": "float", "name": "radial_velocity_min", @@ -157843,6 +170196,13 @@ "setter": "set_gravity", "getter": "get_gravity" }, + { + "type": "Vector2", + "name": "linear_accel", + "setter": "set_param", + "getter": "get_param", + "index": 3 + }, { "type": "float", "name": "linear_accel_min", @@ -157864,6 +170224,13 @@ "getter": "get_param_texture", "index": 3 }, + { + "type": "Vector2", + "name": "radial_accel", + "setter": "set_param", + "getter": "get_param", + "index": 4 + }, { "type": "float", "name": "radial_accel_min", @@ -157885,6 +170252,13 @@ "getter": "get_param_texture", "index": 4 }, + { + "type": "Vector2", + "name": "tangential_accel", + "setter": "set_param", + "getter": "get_param", + "index": 5 + }, { "type": "float", "name": "tangential_accel_min", @@ -157906,6 +170280,13 @@ "getter": "get_param_texture", "index": 5 }, + { + "type": "Vector2", + "name": "damping", + "setter": "set_param", + "getter": "get_param", + "index": 6 + }, { "type": "float", "name": "damping_min", @@ -157933,6 +170314,13 @@ "setter": "set_attractor_interaction_enabled", "getter": "is_attractor_interaction_enabled" }, + { + "type": "Vector2", + "name": "scale", + "setter": "set_param", + "getter": "get_param", + "index": 8 + }, { "type": "float", "name": "scale_min", @@ -157954,6 +170342,13 @@ "getter": "get_param_texture", "index": 8 }, + { + "type": "Vector2", + "name": "scale_over_velocity", + "setter": "set_param", + "getter": "get_param", + "index": 17 + }, { "type": "float", "name": "scale_over_velocity_min", @@ -158005,6 +170400,13 @@ "setter": "set_emission_curve", "getter": "get_emission_curve" }, + { + "type": "Vector2", + "name": "hue_variation", + "setter": "set_param", + "getter": "get_param", + "index": 9 + }, { "type": "float", "name": "hue_variation_min", @@ -158026,6 +170428,13 @@ "getter": "get_param_texture", "index": 9 }, + { + "type": "Vector2", + "name": "anim_speed", + "setter": "set_param", + "getter": "get_param", + "index": 10 + }, { "type": "float", "name": "anim_speed_min", @@ -158047,6 +170456,13 @@ "getter": "get_param_texture", "index": 10 }, + { + "type": "Vector2", + "name": "anim_offset", + "setter": "set_param", + "getter": "get_param", + "index": 11 + }, { "type": "float", "name": "anim_offset_min", @@ -158098,6 +170514,13 @@ "setter": "set_turbulence_noise_speed_random", "getter": "get_turbulence_noise_speed_random" }, + { + "type": "Vector2", + "name": "turbulence_influence", + "setter": "set_param", + "getter": "get_param", + "index": 13 + }, { "type": "float", "name": "turbulence_influence_min", @@ -158112,6 +170535,13 @@ "getter": "get_param_max", "index": 13 }, + { + "type": "Vector2", + "name": "turbulence_initial_displacement", + "setter": "set_param", + "getter": "get_param", + "index": 14 + }, { "type": "float", "name": "turbulence_initial_displacement_min", @@ -159967,6 +172397,77 @@ } ] }, + { + "name": "PhysicalBoneSimulator3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "SkeletonModifier3D", + "api_type": "core", + "methods": [ + { + "name": "is_simulating_physics", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "physical_bones_stop_simulation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "physical_bones_start_simulation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2787316981, + "arguments": [ + { + "name": "bones", + "type": "typedarray::StringName", + "default_value": "[]" + } + ] + }, + { + "name": "physical_bones_add_collision_exception", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "exception", + "type": "RID" + } + ] + }, + { + "name": "physical_bones_remove_collision_exception", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "exception", + "type": "RID" + } + ] + } + ] + }, { "name": "PhysicalSkyMaterial", "is_refcounted": true, @@ -160414,6 +172915,17 @@ } ] }, + { + "name": "get_gravity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, { "name": "get_collision_exceptions", "is_const": false, @@ -160550,6 +173062,17 @@ } ] }, + { + "name": "get_gravity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, { "name": "set_axis_lock", "is_const": false, @@ -170843,6 +183366,18 @@ "name": "G6DOF_JOINT_LINEAR_MOTOR_FORCE_LIMIT", "value": 6 }, + { + "name": "G6DOF_JOINT_LINEAR_SPRING_STIFFNESS", + "value": 7 + }, + { + "name": "G6DOF_JOINT_LINEAR_SPRING_DAMPING", + "value": 8 + }, + { + "name": "G6DOF_JOINT_LINEAR_SPRING_EQUILIBRIUM_POINT", + "value": 9 + }, { "name": "G6DOF_JOINT_ANGULAR_LOWER_LIMIT", "value": 10 @@ -170878,6 +183413,22 @@ { "name": "G6DOF_JOINT_ANGULAR_MOTOR_FORCE_LIMIT", "value": 18 + }, + { + "name": "G6DOF_JOINT_ANGULAR_SPRING_STIFFNESS", + "value": 19 + }, + { + "name": "G6DOF_JOINT_ANGULAR_SPRING_DAMPING", + "value": 20 + }, + { + "name": "G6DOF_JOINT_ANGULAR_SPRING_EQUILIBRIUM_POINT", + "value": 21 + }, + { + "name": "G6DOF_JOINT_MAX", + "value": 22 } ] }, @@ -170893,6 +183444,14 @@ "name": "G6DOF_JOINT_FLAG_ENABLE_ANGULAR_LIMIT", "value": 1 }, + { + "name": "G6DOF_JOINT_FLAG_ENABLE_ANGULAR_SPRING", + "value": 2 + }, + { + "name": "G6DOF_JOINT_FLAG_ENABLE_LINEAR_SPRING", + "value": 3 + }, { "name": "G6DOF_JOINT_FLAG_ENABLE_MOTOR", "value": 4 @@ -170900,6 +183459,10 @@ { "name": "G6DOF_JOINT_FLAG_ENABLE_LINEAR_MOTOR", "value": 5 + }, + { + "name": "G6DOF_JOINT_FLAG_MAX", + "value": 6 } ] }, @@ -171383,6 +183946,25 @@ } ] }, + { + "name": "shape_set_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "shape", + "type": "RID" + }, + { + "name": "margin", + "type": "float", + "meta": "float" + } + ] + }, { "name": "shape_get_type", "is_const": true, @@ -171417,6 +183999,24 @@ } ] }, + { + "name": "shape_get_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "shape", + "type": "RID" + } + ] + }, { "name": "space_create", "is_const": false, @@ -173095,6 +185695,88 @@ } ] }, + { + "name": "soft_body_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "soft_body_update_rendering_server", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2218179753, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "rendering_server_handler", + "type": "PhysicsServer3DRenderingServerHandler" + } + ] + }, + { + "name": "soft_body_set_space", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "soft_body_get_space", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814569979, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "soft_body_set_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "mesh", + "type": "RID" + } + ] + }, { "name": "soft_body_get_bounds", "is_const": true, @@ -173112,6 +185794,521 @@ } ] }, + { + "name": "soft_body_set_collision_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "soft_body_get_collision_layer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "soft_body_set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "soft_body_get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "soft_body_add_collision_exception", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "body_b", + "type": "RID" + } + ] + }, + { + "name": "soft_body_remove_collision_exception", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "body_b", + "type": "RID" + } + ] + }, + { + "name": "soft_body_set_state", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 599977762, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "state", + "type": "enum::PhysicsServer3D.BodyState" + }, + { + "name": "variant", + "type": "Variant" + } + ] + }, + { + "name": "soft_body_get_state", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1850449534, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "state", + "type": "enum::PhysicsServer3D.BodyState" + } + ] + }, + { + "name": "soft_body_set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3935195649, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "soft_body_set_ray_pickable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "soft_body_set_simulation_precision", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "simulation_precision", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "soft_body_get_simulation_precision", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "soft_body_set_total_mass", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "total_mass", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "soft_body_get_total_mass", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "soft_body_set_linear_stiffness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "stiffness", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "soft_body_get_linear_stiffness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "soft_body_set_pressure_coefficient", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "pressure_coefficient", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "soft_body_get_pressure_coefficient", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "soft_body_set_damping_coefficient", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "damping_coefficient", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "soft_body_get_damping_coefficient", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "soft_body_set_drag_coefficient", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "drag_coefficient", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "soft_body_get_drag_coefficient", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "soft_body_move_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 831953689, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "point_index", + "type": "int", + "meta": "int32" + }, + { + "name": "global_position", + "type": "Vector3" + } + ] + }, + { + "name": "soft_body_get_point_global_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3440143363, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "point_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "soft_body_remove_all_pinned_points", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "soft_body_pin_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2658558584, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "point_index", + "type": "int", + "meta": "int32" + }, + { + "name": "pin", + "type": "bool" + } + ] + }, + { + "name": "soft_body_is_point_pinned", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3120086654, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "point_index", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "joint_create", "is_const": false, @@ -177901,7 +191098,7 @@ "getter": "get_margin" }, { - "type": "Vector2", + "type": "Vector3", "name": "motion", "setter": "set_motion", "getter": "get_motion" @@ -180465,6 +193662,31 @@ } ] }, + { + "name": "set_prefer_native_menu", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_prefer_native_menu", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "add_item", "is_const": false, @@ -180905,6 +194127,30 @@ } ] }, + { + "name": "add_submenu_node_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1325455216, + "arguments": [ + { + "name": "label", + "type": "String" + }, + { + "name": "submenu", + "type": "PopupMenu" + }, + { + "name": "id", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, { "name": "set_item_text", "is_const": false, @@ -181135,6 +194381,25 @@ } ] }, + { + "name": "set_item_submenu_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1068370740, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "submenu", + "type": "PopupMenu" + } + ] + }, { "name": "set_item_as_separator", "is_const": false, @@ -181275,6 +194540,26 @@ } ] }, + { + "name": "set_item_multistate_max", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "max_states", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "set_item_shortcut_disabled", "is_const": false, @@ -181561,6 +194846,24 @@ } ] }, + { + "name": "get_item_submenu_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2100501353, + "return_value": { + "type": "PopupMenu" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "is_item_separator", "is_const": true, @@ -181688,6 +194991,44 @@ } ] }, + { + "name": "get_item_multistate_max", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_multistate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "set_focused_item", "is_const": false, @@ -181937,6 +195278,42 @@ "return_value": { "type": "bool" } + }, + { + "name": "is_system_menu", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_system_menu", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 600639674, + "arguments": [ + { + "name": "system_menu_id", + "type": "enum::NativeMenu.SystemMenus" + } + ] + }, + { + "name": "get_system_menu", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1222557358, + "return_value": { + "type": "enum::NativeMenu.SystemMenus" + } } ], "signals": [ @@ -182002,6 +195379,18 @@ "setter": "set_allow_search", "getter": "get_allow_search" }, + { + "type": "int", + "name": "system_menu_id", + "setter": "set_system_menu", + "getter": "get_system_menu" + }, + { + "type": "bool", + "name": "prefer_native_menu", + "setter": "set_prefer_native_menu", + "getter": "is_prefer_native_menu" + }, { "type": "int", "name": "item_count", @@ -182355,6 +195744,14 @@ "type": "float", "meta": "float" } + }, + { + "name": "request_update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 } ], "properties": [ @@ -182907,6 +196304,33 @@ "return_value": { "type": "bool" } + }, + { + "name": "set_energy_multiplier", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "multiplier", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_energy_multiplier", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } } ], "properties": [ @@ -182987,6 +196411,12 @@ "name": "use_debanding", "setter": "set_use_debanding", "getter": "get_use_debanding" + }, + { + "type": "float", + "name": "energy_multiplier", + "setter": "set_energy_multiplier", + "getter": "get_energy_multiplier" } ] }, @@ -183072,6 +196502,56 @@ "return_value": { "type": "bool" } + }, + { + "name": "set_indeterminate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "indeterminate", + "type": "bool" + } + ] + }, + { + "name": "is_indeterminate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_editor_preview_indeterminate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "preview_indeterminate", + "type": "bool" + } + ] + }, + { + "name": "is_editor_preview_indeterminate_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } } ], "properties": [ @@ -183086,6 +196566,18 @@ "name": "show_percentage", "setter": "set_show_percentage", "getter": "is_percentage_shown" + }, + { + "type": "bool", + "name": "indeterminate", + "setter": "set_indeterminate", + "getter": "is_indeterminate" + }, + { + "type": "bool", + "name": "editor_preview_indeterminate", + "setter": "set_editor_preview_indeterminate", + "getter": "is_editor_preview_indeterminate_enabled" } ] }, @@ -183498,6 +196990,23 @@ } ] }, + { + "name": "set_custom_interpolator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3174170268, + "return_value": { + "type": "PropertyTweener" + }, + "arguments": [ + { + "name": "interpolator_method", + "type": "Callable" + } + ] + }, { "name": "set_delay", "is_const": false, @@ -187426,6 +200935,24 @@ } ] }, + { + "name": "rand_weighted", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4189642986, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "weights", + "type": "PackedFloat32Array" + } + ] + }, { "name": "randomize", "is_const": false, @@ -189320,6 +202847,33 @@ "meta": "uint32" } }, + { + "name": "set_reflection_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "layers", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_reflection_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, { "name": "set_update_mode", "is_const": false, @@ -189401,6 +202955,12 @@ "setter": "set_cull_mask", "getter": "get_cull_mask" }, + { + "type": "int", + "name": "reflection_mask", + "setter": "set_reflection_mask", + "getter": "get_reflection_mask" + }, { "type": "float", "name": "mesh_lod_threshold", @@ -190103,6 +203663,115 @@ } ] }, + { + "name": "RenderData", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "get_render_scene_buffers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2793216201, + "return_value": { + "type": "RenderSceneBuffers" + } + }, + { + "name": "get_render_scene_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1288715698, + "return_value": { + "type": "RenderSceneData" + } + }, + { + "name": "get_environment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_camera_attributes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + } + ] + }, + { + "name": "RenderDataExtension", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "RenderData", + "api_type": "core", + "methods": [ + { + "name": "_get_render_scene_buffers", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RenderSceneBuffers" + } + }, + { + "name": "_get_render_scene_data", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RenderSceneData" + } + }, + { + "name": "_get_environment", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_get_camera_attributes", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + } + ] + }, + { + "name": "RenderDataRD", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "RenderData", + "api_type": "core" + }, { "name": "RenderSceneBuffers", "is_refcounted": true, @@ -190488,7 +204157,7 @@ { "name": "RenderSceneBuffersRD", "is_refcounted": true, - "is_instantiable": false, + "is_instantiable": true, "inherits": "RenderSceneBuffers", "api_type": "core", "methods": [ @@ -190801,10 +204470,20 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 529393457, + "hash": 3050822880, + "hash_compatibility": [ + 529393457 + ], "return_value": { "type": "RID" - } + }, + "arguments": [ + { + "name": "msaa", + "type": "bool", + "default_value": "false" + } + ] }, { "name": "get_color_layer", @@ -190812,7 +204491,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 937000113, + "hash": 3087988589, + "hash_compatibility": [ + 937000113 + ], "return_value": { "type": "RID" }, @@ -190821,6 +204503,11 @@ "name": "layer", "type": "int", "meta": "uint32" + }, + { + "name": "msaa", + "type": "bool", + "default_value": "false" } ] }, @@ -190830,10 +204517,20 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 529393457, + "hash": 3050822880, + "hash_compatibility": [ + 529393457 + ], "return_value": { "type": "RID" - } + }, + "arguments": [ + { + "name": "msaa", + "type": "bool", + "default_value": "false" + } + ] }, { "name": "get_depth_layer", @@ -190841,7 +204538,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 937000113, + "hash": 3087988589, + "hash_compatibility": [ + 937000113 + ], "return_value": { "type": "RID" }, @@ -190850,6 +204550,11 @@ "name": "layer", "type": "int", "meta": "uint32" + }, + { + "name": "msaa", + "type": "bool", + "default_value": "false" } ] }, @@ -190859,10 +204564,20 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 529393457, + "hash": 3050822880, + "hash_compatibility": [ + 529393457 + ], "return_value": { "type": "RID" - } + }, + "arguments": [ + { + "name": "msaa", + "type": "bool", + "default_value": "false" + } + ] }, { "name": "get_velocity_layer", @@ -190870,7 +204585,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 937000113, + "hash": 3087988589, + "hash_compatibility": [ + 937000113 + ], "return_value": { "type": "RID" }, @@ -190879,6 +204597,11 @@ "name": "layer", "type": "int", "meta": "uint32" + }, + { + "name": "msaa", + "type": "bool", + "default_value": "false" } ] }, @@ -190916,6 +204639,17 @@ "type": "Vector2i" } }, + { + "name": "get_msaa_3d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3109158617, + "return_value": { + "type": "enum::RenderingServer.ViewportMSAA" + } + }, { "name": "get_use_taa", "is_const": true, @@ -190929,6 +204663,187 @@ } ] }, + { + "name": "RenderSceneData", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "get_cam_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3229777777, + "return_value": { + "type": "Transform3D" + } + }, + { + "name": "get_cam_projection", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2910717950, + "return_value": { + "type": "Projection" + } + }, + { + "name": "get_view_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "get_view_eye_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 711720468, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "view", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_view_projection", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3179846605, + "return_value": { + "type": "Projection" + }, + "arguments": [ + { + "name": "view", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_uniform_buffer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + } + ] + }, + { + "name": "RenderSceneDataExtension", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "RenderSceneData", + "api_type": "core", + "methods": [ + { + "name": "_get_cam_transform", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Transform3D" + } + }, + { + "name": "_get_cam_projection", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Projection" + } + }, + { + "name": "_get_view_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "_get_view_eye_offset", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "view", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "_get_view_projection", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Projection" + }, + "arguments": [ + { + "name": "view", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "_get_uniform_buffer", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + } + ] + }, + { + "name": "RenderSceneDataRD", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "RenderSceneData", + "api_type": "core" + }, { "name": "RenderingDevice", "is_refcounted": false, @@ -190980,6 +204895,58 @@ "name": "DriverResource", "is_bitfield": false, "values": [ + { + "name": "DRIVER_RESOURCE_LOGICAL_DEVICE", + "value": 0 + }, + { + "name": "DRIVER_RESOURCE_PHYSICAL_DEVICE", + "value": 1 + }, + { + "name": "DRIVER_RESOURCE_TOPMOST_OBJECT", + "value": 2 + }, + { + "name": "DRIVER_RESOURCE_COMMAND_QUEUE", + "value": 3 + }, + { + "name": "DRIVER_RESOURCE_QUEUE_FAMILY", + "value": 4 + }, + { + "name": "DRIVER_RESOURCE_TEXTURE", + "value": 5 + }, + { + "name": "DRIVER_RESOURCE_TEXTURE_VIEW", + "value": 6 + }, + { + "name": "DRIVER_RESOURCE_TEXTURE_DATA_FORMAT", + "value": 7 + }, + { + "name": "DRIVER_RESOURCE_SAMPLER", + "value": 8 + }, + { + "name": "DRIVER_RESOURCE_UNIFORM_SET", + "value": 9 + }, + { + "name": "DRIVER_RESOURCE_BUFFER", + "value": 10 + }, + { + "name": "DRIVER_RESOURCE_COMPUTE_PIPELINE", + "value": 11 + }, + { + "name": "DRIVER_RESOURCE_RENDER_PIPELINE", + "value": 12 + }, { "name": "DRIVER_RESOURCE_VULKAN_DEVICE", "value": 0 @@ -192693,32 +206660,40 @@ "is_bitfield": false, "values": [ { - "name": "INITIAL_ACTION_CLEAR", + "name": "INITIAL_ACTION_LOAD", "value": 0 }, + { + "name": "INITIAL_ACTION_CLEAR", + "value": 1 + }, + { + "name": "INITIAL_ACTION_DISCARD", + "value": 2 + }, + { + "name": "INITIAL_ACTION_MAX", + "value": 3 + }, { "name": "INITIAL_ACTION_CLEAR_REGION", "value": 1 }, { "name": "INITIAL_ACTION_CLEAR_REGION_CONTINUE", - "value": 2 + "value": 1 }, { "name": "INITIAL_ACTION_KEEP", - "value": 3 + "value": 0 }, { "name": "INITIAL_ACTION_DROP", - "value": 4 + "value": 2 }, { "name": "INITIAL_ACTION_CONTINUE", - "value": 5 - }, - { - "name": "INITIAL_ACTION_MAX", - "value": 6 + "value": 0 } ] }, @@ -192727,7 +206702,7 @@ "is_bitfield": false, "values": [ { - "name": "FINAL_ACTION_READ", + "name": "FINAL_ACTION_STORE", "value": 0 }, { @@ -192735,12 +206710,16 @@ "value": 1 }, { - "name": "FINAL_ACTION_CONTINUE", + "name": "FINAL_ACTION_MAX", "value": 2 }, { - "name": "FINAL_ACTION_MAX", - "value": 3 + "name": "FINAL_ACTION_READ", + "value": 0 + }, + { + "name": "FINAL_ACTION_CONTINUE", + "value": 0 } ] }, @@ -193155,8 +207134,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2096463824, + "hash": 1349464008, "hash_compatibility": [ + 2096463824, 2736912341 ], "return_value": { @@ -193175,11 +207155,6 @@ { "name": "data", "type": "PackedByteArray" - }, - { - "name": "post_barrier", - "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "32767" } ] }, @@ -193266,8 +207241,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2339493201, + "hash": 2859522160, "hash_compatibility": [ + 2339493201, 3741367532 ], "return_value": { @@ -193313,11 +207289,6 @@ "name": "dst_layer", "type": "int", "meta": "uint32" - }, - { - "name": "post_barrier", - "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "32767" } ] }, @@ -193327,8 +207298,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3396867530, + "hash": 3477703247, "hash_compatibility": [ + 3396867530, 3423681478 ], "return_value": { @@ -193362,11 +207334,6 @@ "name": "layer_count", "type": "int", "meta": "uint32" - }, - { - "name": "post_barrier", - "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "32767" } ] }, @@ -193376,8 +207343,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 594679454, + "hash": 3181288260, "hash_compatibility": [ + 594679454, 2126834943 ], "return_value": { @@ -193391,11 +207359,6 @@ { "name": "to_texture", "type": "RID" - }, - { - "name": "post_barrier", - "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "32767" } ] }, @@ -194116,14 +208079,51 @@ } ] }, + { + "name": "buffer_copy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 864257779, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "src_buffer", + "type": "RID" + }, + { + "name": "dst_buffer", + "type": "RID" + }, + { + "name": "src_offset", + "type": "int", + "meta": "uint32" + }, + { + "name": "dst_offset", + "type": "int", + "meta": "uint32" + }, + { + "name": "size", + "type": "int", + "meta": "uint32" + } + ] + }, { "name": "buffer_update", "is_const": false, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3793150683, + "hash": 3454956949, "hash_compatibility": [ + 3793150683, 652628289 ], "return_value": { @@ -194147,11 +208147,6 @@ { "name": "data", "type": "PackedByteArray" - }, - { - "name": "post_barrier", - "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "32767" } ] }, @@ -194161,8 +208156,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2797041220, + "hash": 2452320800, "hash_compatibility": [ + 2797041220, 1645170096 ], "return_value": { @@ -194182,11 +208178,6 @@ "name": "size_bytes", "type": "int", "meta": "uint32" - }, - { - "name": "post_barrier", - "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "32767" } ] }, @@ -194393,11 +208384,22 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3905245786, + "hash": 1591665591, + "hash_compatibility": [ + 3905245786 + ], "return_value": { "type": "int", "meta": "int64" - } + }, + "arguments": [ + { + "name": "screen", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] }, { "name": "draw_list_begin_for_screen", @@ -194430,8 +208432,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2468082605, + "hash": 2686605154, "hash_compatibility": [ + 2468082605, 4252992020 ], "return_value": { @@ -194480,11 +208483,6 @@ "name": "region", "type": "Rect2", "default_value": "Rect2(0, 0, 0, 0)" - }, - { - "name": "storage_textures", - "type": "typedarray::RID", - "default_value": "Array[RID]([])" } ] }, @@ -194787,16 +208785,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3920951950, + "hash": 3218959716, "hash_compatibility": [ - 422991495 - ], - "arguments": [ - { - "name": "post_barrier", - "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "32767" - } + 422991495, + 3920951950 ] }, { @@ -194805,18 +208797,14 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 968564752, + "hash": 2455072627, + "hash_compatibility": [ + 968564752 + ], "return_value": { "type": "int", "meta": "int64" - }, - "arguments": [ - { - "name": "allow_draw_overlap", - "type": "bool", - "default_value": "false" - } - ] + } }, { "name": "compute_list_bind_compute_pipeline", @@ -194915,6 +208903,30 @@ } ] }, + { + "name": "compute_list_dispatch_indirect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 749655778, + "arguments": [ + { + "name": "compute_list", + "type": "int", + "meta": "int64" + }, + { + "name": "buffer", + "type": "RID" + }, + { + "name": "offset", + "type": "int", + "meta": "uint32" + } + ] + }, { "name": "compute_list_add_barrier", "is_const": false, @@ -194936,16 +208948,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3920951950, + "hash": 3218959716, "hash_compatibility": [ - 422991495 - ], - "arguments": [ - { - "name": "post_barrier", - "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "32767" - } + 422991495, + 3920951950 ] }, { @@ -195321,6 +209327,10 @@ "name": "MAX_2D_DIRECTIONAL_LIGHTS", "value": 8 }, + { + "name": "MAX_MESH_SURFACES", + "value": 256 + }, { "name": "MATERIAL_RENDER_PRIORITY_MIN", "value": -128 @@ -196468,8 +210478,12 @@ "value": 1 }, { - "name": "VIEWPORT_RENDER_INFO_TYPE_MAX", + "name": "VIEWPORT_RENDER_INFO_TYPE_CANVAS", "value": 2 + }, + { + "name": "VIEWPORT_RENDER_INFO_TYPE_MAX", + "value": 3 } ] }, @@ -196609,6 +210623,28 @@ } ] }, + { + "name": "ViewportVRSUpdateMode", + "is_bitfield": false, + "values": [ + { + "name": "VIEWPORT_VRS_UPDATE_DISABLED", + "value": 0 + }, + { + "name": "VIEWPORT_VRS_UPDATE_ONCE", + "value": 1 + }, + { + "name": "VIEWPORT_VRS_UPDATE_ALWAYS", + "value": 2 + }, + { + "name": "VIEWPORT_VRS_UPDATE_MAX", + "value": 3 + } + ] + }, { "name": "SkyMode", "is_bitfield": false, @@ -196631,6 +210667,62 @@ } ] }, + { + "name": "CompositorEffectFlags", + "is_bitfield": false, + "values": [ + { + "name": "COMPOSITOR_EFFECT_FLAG_ACCESS_RESOLVED_COLOR", + "value": 1 + }, + { + "name": "COMPOSITOR_EFFECT_FLAG_ACCESS_RESOLVED_DEPTH", + "value": 2 + }, + { + "name": "COMPOSITOR_EFFECT_FLAG_NEEDS_MOTION_VECTORS", + "value": 4 + }, + { + "name": "COMPOSITOR_EFFECT_FLAG_NEEDS_ROUGHNESS", + "value": 8 + }, + { + "name": "COMPOSITOR_EFFECT_FLAG_NEEDS_SEPARATE_SPECULAR", + "value": 16 + } + ] + }, + { + "name": "CompositorEffectCallbackType", + "is_bitfield": false, + "values": [ + { + "name": "COMPOSITOR_EFFECT_CALLBACK_TYPE_PRE_OPAQUE", + "value": 0 + }, + { + "name": "COMPOSITOR_EFFECT_CALLBACK_TYPE_POST_OPAQUE", + "value": 1 + }, + { + "name": "COMPOSITOR_EFFECT_CALLBACK_TYPE_POST_SKY", + "value": 2 + }, + { + "name": "COMPOSITOR_EFFECT_CALLBACK_TYPE_PRE_TRANSPARENT", + "value": 3 + }, + { + "name": "COMPOSITOR_EFFECT_CALLBACK_TYPE_POST_TRANSPARENT", + "value": 4 + }, + { + "name": "COMPOSITOR_EFFECT_CALLBACK_TYPE_ANY", + "value": -1 + } + ] + }, { "name": "EnvironmentBG", "is_bitfield": false, @@ -196731,6 +210823,20 @@ } ] }, + { + "name": "EnvironmentFogMode", + "is_bitfield": false, + "values": [ + { + "name": "ENV_FOG_MODE_EXPONENTIAL", + "value": 0 + }, + { + "name": "ENV_FOG_MODE_DEPTH", + "value": 1 + } + ] + }, { "name": "EnvironmentToneMapper", "is_bitfield": false, @@ -198982,6 +213088,41 @@ } ] }, + { + "name": "multimesh_set_custom_aabb", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3696536120, + "arguments": [ + { + "name": "multimesh", + "type": "RID" + }, + { + "name": "aabb", + "type": "AABB" + } + ] + }, + { + "name": "multimesh_get_custom_aabb", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 974181306, + "return_value": { + "type": "AABB" + }, + "arguments": [ + { + "name": "multimesh", + "type": "RID" + } + ] + }, { "name": "multimesh_instance_get_transform", "is_const": true, @@ -199902,6 +214043,25 @@ } ] }, + { + "name": "reflection_probe_set_reflection_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "probe", + "type": "RID" + }, + { + "name": "layers", + "type": "int", + "meta": "uint32" + } + ] + }, { "name": "reflection_probe_set_resolution", "is_const": false, @@ -201833,6 +215993,24 @@ } ] }, + { + "name": "camera_set_compositor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "camera", + "type": "RID" + }, + { + "name": "compositor", + "type": "RID" + } + ] + }, { "name": "camera_set_use_vertical_aspect", "is_const": false, @@ -202098,6 +216276,23 @@ } ] }, + { + "name": "viewport_get_update_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3803901472, + "return_value": { + "type": "enum::RenderingServer.ViewportUpdateMode" + }, + "arguments": [ + { + "name": "viewport", + "type": "RID" + } + ] + }, { "name": "viewport_set_clear_mode", "is_const": false, @@ -202775,6 +216970,24 @@ } ] }, + { + "name": "viewport_set_vrs_update_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2696154815, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "mode", + "type": "enum::RenderingServer.ViewportVRSUpdateMode" + } + ] + }, { "name": "viewport_set_vrs_texture", "is_const": false, @@ -202889,6 +217102,108 @@ } ] }, + { + "name": "compositor_effect_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "compositor_effect_set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "effect", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "compositor_effect_set_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 487412485, + "arguments": [ + { + "name": "effect", + "type": "RID" + }, + { + "name": "callback_type", + "type": "enum::RenderingServer.CompositorEffectCallbackType" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "compositor_effect_set_flag", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3659527075, + "arguments": [ + { + "name": "effect", + "type": "RID" + }, + { + "name": "flag", + "type": "enum::RenderingServer.CompositorEffectFlags" + }, + { + "name": "set", + "type": "bool" + } + ] + }, + { + "name": "compositor_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "compositor_set_compositor_effects", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 684822712, + "arguments": [ + { + "name": "compositor", + "type": "RID" + }, + { + "name": "effects", + "type": "typedarray::RID" + } + ] + }, { "name": "environment_create", "is_const": false, @@ -203318,7 +217633,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2793577733, + "hash": 105051629, + "hash_compatibility": [ + 2793577733 + ], "arguments": [ { "name": "env", @@ -203366,6 +217684,11 @@ "name": "sky_affect", "type": "float", "meta": "float" + }, + { + "name": "fog_mode", + "type": "enum::RenderingServer.EnvironmentFogMode", + "default_value": "0" } ] }, @@ -203984,6 +218307,24 @@ } ] }, + { + "name": "scenario_set_compositor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "scenario", + "type": "RID" + }, + { + "name": "compositor", + "type": "RID" + } + ] + }, { "name": "instance_create2", "is_const": false, @@ -204684,6 +219025,29 @@ } ] }, + { + "name": "canvas_set_item_repeat", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1739512717, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "repeat_size", + "type": "Vector2" + }, + { + "name": "repeat_times", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "canvas_set_modulate", "is_const": false, @@ -205063,6 +219427,56 @@ } ] }, + { + "name": "canvas_item_set_interpolated", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "interpolated", + "type": "bool" + } + ] + }, + { + "name": "canvas_item_reset_physics_interpolation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "item", + "type": "RID" + } + ] + }, + { + "name": "canvas_item_transform_physics_interpolation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1246044741, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform2D" + } + ] + }, { "name": "canvas_item_add_line", "is_const": false, @@ -205145,8 +219559,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2088642721, + "hash": 3098767073, "hash_compatibility": [ + 2088642721, 3176074788 ], "arguments": [ @@ -205167,6 +219582,11 @@ "type": "float", "meta": "float", "default_value": "-1.0" + }, + { + "name": "antialiased", + "type": "bool", + "default_value": "false" } ] }, @@ -205176,7 +219596,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 934531857, + "hash": 3523446176, + "hash_compatibility": [ + 934531857 + ], "arguments": [ { "name": "item", @@ -205189,6 +219612,11 @@ { "name": "color", "type": "Color" + }, + { + "name": "antialiased", + "type": "bool", + "default_value": "false" } ] }, @@ -205198,7 +219626,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2439351960, + "hash": 333077949, + "hash_compatibility": [ + 2439351960 + ], "arguments": [ { "name": "item", @@ -205216,6 +219647,11 @@ { "name": "color", "type": "Color" + }, + { + "name": "antialiased", + "type": "bool", + "default_value": "false" } ] }, @@ -205939,6 +220375,23 @@ } ] }, + { + "name": "debug_canvas_item_get_rect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 624227424, + "return_value": { + "type": "Rect2" + }, + "arguments": [ + { + "name": "item", + "type": "RID" + } + ] + }, { "name": "canvas_light_create", "is_const": false, @@ -206310,6 +220763,56 @@ } ] }, + { + "name": "canvas_light_set_interpolated", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "interpolated", + "type": "bool" + } + ] + }, + { + "name": "canvas_light_reset_physics_interpolation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "light", + "type": "RID" + } + ] + }, + { + "name": "canvas_light_transform_physics_interpolation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1246044741, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform2D" + } + ] + }, { "name": "canvas_light_occluder_create", "is_const": false, @@ -206430,6 +220933,56 @@ } ] }, + { + "name": "canvas_light_occluder_set_interpolated", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "occluder", + "type": "RID" + }, + { + "name": "interpolated", + "type": "bool" + } + ] + }, + { + "name": "canvas_light_occluder_reset_physics_interpolation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "occluder", + "type": "RID" + } + ] + }, + { + "name": "canvas_light_occluder_transform_physics_interpolation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1246044741, + "arguments": [ + { + "name": "occluder", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform2D" + } + ] + }, { "name": "canvas_occluder_polygon_create", "is_const": false, @@ -206830,23 +221383,6 @@ } ] }, - { - "name": "has_feature", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 598462696, - "return_value": { - "type": "bool" - }, - "arguments": [ - { - "name": "feature", - "type": "enum::RenderingServer.Features" - } - ] - }, { "name": "has_os_feature", "is_const": true, @@ -206966,6 +221502,17 @@ "type": "RenderingDevice" } }, + { + "name": "is_on_render_thread", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, { "name": "call_on_render_thread", "is_const": false, @@ -206979,6 +221526,23 @@ "type": "Callable" } ] + }, + { + "name": "has_feature", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 598462696, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "feature", + "type": "enum::RenderingServer.Features" + } + ] } ], "signals": [ @@ -207131,6 +221695,42 @@ "is_virtual": false, "hash": 3218959716 }, + { + "name": "generate_scene_unique_id", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2841200299, + "return_value": { + "type": "String" + } + }, + { + "name": "set_scene_unique_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "id", + "type": "String" + } + ] + }, + { + "name": "get_scene_unique_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, { "name": "emit_changed", "is_const": false, @@ -207184,6 +221784,12 @@ "name": "resource_name", "setter": "set_name", "getter": "get_name" + }, + { + "type": "String", + "name": "resource_scene_unique_id", + "setter": "set_scene_unique_id", + "getter": "get_scene_unique_id" } ] }, @@ -207209,6 +221815,14 @@ { "name": "CACHE_MODE_REPLACE", "value": 2 + }, + { + "name": "CACHE_MODE_IGNORE_DEEP", + "value": 3 + }, + { + "name": "CACHE_MODE_REPLACE_DEEP", + "value": 4 } ] } @@ -207596,7 +222210,7 @@ "is_refcounted": true, "is_instantiable": true, "inherits": "ResourceImporter", - "api_type": "core" + "api_type": "editor" }, { "name": "ResourceImporterOBJ", @@ -207610,7 +222224,7 @@ "is_refcounted": true, "is_instantiable": true, "inherits": "ResourceImporter", - "api_type": "core", + "api_type": "editor", "methods": [ { "name": "load_from_buffer", @@ -207727,6 +222341,14 @@ { "name": "CACHE_MODE_REPLACE", "value": 2 + }, + { + "name": "CACHE_MODE_IGNORE_DEEP", + "value": 3 + }, + { + "name": "CACHE_MODE_REPLACE_DEEP", + "value": 4 } ] } @@ -208668,6 +223290,24 @@ } ] }, + { + "name": "MetaUnderline", + "is_bitfield": false, + "values": [ + { + "name": "META_UNDERLINE_NEVER", + "value": 0 + }, + { + "name": "META_UNDERLINE_ALWAYS", + "value": 1 + }, + { + "name": "META_UNDERLINE_ON_HOVER", + "value": 2 + } + ] + }, { "name": "ImageUpdateMask", "is_bitfield": true, @@ -208890,6 +223530,32 @@ "is_vararg": false, "is_static": false, "is_virtual": false, + "hash": 3262369265, + "hash_compatibility": [ + 3067735520 + ], + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "paragraph", + "type": "int", + "meta": "int32" + }, + { + "name": "no_invalidate", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "invalidate_paragraph", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, "hash": 3067735520, "return_value": { "type": "bool" @@ -209118,11 +223784,19 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1114965689, + "hash": 2206155733, + "hash_compatibility": [ + 1114965689 + ], "arguments": [ { "name": "data", "type": "Variant" + }, + { + "name": "underline_mode", + "type": "enum::RichTextLabel.MetaUnderline", + "default_value": "1" } ] }, @@ -211583,18 +226257,18 @@ "setter": "set_continuous_collision_detection_mode", "getter": "get_continuous_collision_detection_mode" }, - { - "type": "int", - "name": "max_contacts_reported", - "setter": "set_max_contacts_reported", - "getter": "get_max_contacts_reported" - }, { "type": "bool", "name": "contact_monitor", "setter": "set_contact_monitor", "getter": "is_contact_monitor_enabled" }, + { + "type": "int", + "name": "max_contacts_reported", + "setter": "set_max_contacts_reported", + "getter": "get_max_contacts_reported" + }, { "type": "Vector2", "name": "linear_velocity", @@ -212637,18 +227311,18 @@ "setter": "set_use_continuous_collision_detection", "getter": "is_using_continuous_collision_detection" }, - { - "type": "int", - "name": "max_contacts_reported", - "setter": "set_max_contacts_reported", - "getter": "get_max_contacts_reported" - }, { "type": "bool", "name": "contact_monitor", "setter": "set_contact_monitor", "getter": "is_contact_monitor_enabled" }, + { + "type": "int", + "name": "max_contacts_reported", + "setter": "set_max_contacts_reported", + "getter": "get_max_contacts_reported" + }, { "type": "Vector3", "name": "linear_velocity", @@ -214280,6 +228954,31 @@ } ] }, + { + "name": "set_physics_interpolation_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_physics_interpolation_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "queue_delete", "is_const": false, @@ -214460,6 +229159,24 @@ } ] }, + { + "name": "get_node_count_in_group", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2458036349, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "group", + "type": "StringName" + } + ] + }, { "name": "set_current_scene", "is_const": false, @@ -214710,6 +229427,12 @@ "name": "multiplayer_poll", "setter": "set_multiplayer_poll_enabled", "getter": "is_multiplayer_poll_enabled" + }, + { + "type": "bool", + "name": "physics_interpolation", + "setter": "set_physics_interpolation_enabled", + "getter": "is_physics_interpolation_enabled" } ] }, @@ -214873,6 +229596,17 @@ "type": "StringName" } }, + { + "name": "get_global_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, { "name": "has_script_signal", "is_const": true, @@ -215145,6 +229879,20 @@ "type": "String" } ] + }, + { + "name": "goto_help", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "topic", + "type": "String" + } + ] } ], "signals": [ @@ -215233,6 +229981,15 @@ { "name": "request_save_history" }, + { + "name": "request_save_previous_state", + "arguments": [ + { + "name": "line", + "type": "int" + } + ] + }, { "name": "go_to_help", "arguments": [ @@ -215510,6 +230267,22 @@ } ] }, + { + "name": "_get_script_method_argument_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "method", + "type": "StringName" + } + ] + }, { "name": "_get_method_info", "is_const": true, @@ -215715,7 +230488,31 @@ "is_refcounted": false, "is_instantiable": false, "inherits": "Object", - "api_type": "core" + "api_type": "core", + "enums": [ + { + "name": "ScriptNameCasing", + "is_bitfield": false, + "values": [ + { + "name": "SCRIPT_NAME_CASING_AUTO", + "value": 0 + }, + { + "name": "SCRIPT_NAME_CASING_PASCAL_CASE", + "value": 1 + }, + { + "name": "SCRIPT_NAME_CASING_SNAKE_CASE", + "value": 2 + }, + { + "name": "SCRIPT_NAME_CASING_KEBAB_CASE", + "value": 3 + } + ] + } + ] }, { "name": "ScriptLanguageExtension", @@ -216108,11 +230905,11 @@ }, "arguments": [ { - "name": "class_name", + "name": "function", "type": "String" }, { - "name": "function_name", + "name": "code", "type": "String" } ] @@ -216141,6 +230938,16 @@ } ] }, + { + "name": "_can_make_function", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, { "name": "_open_in_external_editor", "is_const": false, @@ -216177,6 +230984,16 @@ "type": "bool" } }, + { + "name": "_preferred_file_name_casing", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::ScriptLanguage.ScriptNameCasing" + } + }, { "name": "_complete_code", "is_const": true, @@ -216372,6 +231189,23 @@ } ] }, + { + "name": "_debug_get_stack_level_source", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "level", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "_debug_get_stack_level_locals", "is_const": false, @@ -216584,6 +231418,19 @@ "is_vararg": false, "is_virtual": true }, + { + "name": "_profiling_set_save_native_calls", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, { "name": "_profiling_get_accumulated_data", "is_const": false, @@ -219256,6 +234103,22 @@ "value": 50 } ], + "enums": [ + { + "name": "ModifierCallbackModeProcess", + "is_bitfield": false, + "values": [ + { + "name": "MODIFIER_CALLBACK_MODE_PROCESS_PHYSICS", + "value": 0 + }, + { + "name": "MODIFIER_CALLBACK_MODE_PROCESS_IDLE", + "value": 1 + } + ] + } + ], "methods": [ { "name": "add_bone", @@ -219263,7 +234126,14 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 83702148, + "hash": 1597066294, + "hash_compatibility": [ + 83702148 + ], + "return_value": { + "type": "int", + "meta": "int32" + }, "arguments": [ { "name": "name", @@ -219326,6 +234196,17 @@ } ] }, + { + "name": "get_concatenated_bone_names", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, { "name": "get_bone_parent", "is_const": true, @@ -219550,6 +234431,25 @@ } ] }, + { + "name": "set_bone_pose", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3616898986, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "pose", + "type": "Transform3D" + } + ] + }, { "name": "set_bone_pose_position", "is_const": false, @@ -219725,61 +234625,6 @@ } ] }, - { - "name": "clear_bones_global_pose_override", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3218959716 - }, - { - "name": "set_bone_global_pose_override", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3483398371, - "arguments": [ - { - "name": "bone_idx", - "type": "int", - "meta": "int32" - }, - { - "name": "pose", - "type": "Transform3D" - }, - { - "name": "amount", - "type": "float", - "meta": "float" - }, - { - "name": "persistent", - "type": "bool", - "default_value": "false" - } - ] - }, - { - "name": "get_bone_global_pose_override", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 1965739696, - "return_value": { - "type": "Transform3D" - }, - "arguments": [ - { - "name": "bone_idx", - "type": "int", - "meta": "int32" - } - ] - }, { "name": "get_bone_global_pose", "is_const": true, @@ -219799,20 +234644,21 @@ ] }, { - "name": "get_bone_global_pose_no_override", - "is_const": true, + "name": "set_bone_global_pose", + "is_const": false, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1965739696, - "return_value": { - "type": "Transform3D" - }, + "hash": 3616898986, "arguments": [ { "name": "bone_idx", "type": "int", "meta": "int32" + }, + { + "name": "pose", + "type": "Transform3D" } ] }, @@ -219891,6 +234737,104 @@ "type": "bool" } }, + { + "name": "set_modifier_callback_mode_process", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3916362634, + "arguments": [ + { + "name": "mode", + "type": "enum::Skeleton3D.ModifierCallbackModeProcess" + } + ] + }, + { + "name": "get_modifier_callback_mode_process", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 997182536, + "return_value": { + "type": "enum::Skeleton3D.ModifierCallbackModeProcess" + } + }, + { + "name": "clear_bones_global_pose_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_bone_global_pose_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3483398371, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "pose", + "type": "Transform3D" + }, + { + "name": "amount", + "type": "float", + "meta": "float" + }, + { + "name": "persistent", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_bone_global_pose_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1965739696, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bone_global_pose_no_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1965739696, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "set_animate_physical_bones", "is_const": false, @@ -219973,13 +234917,7 @@ "name": "pose_updated" }, { - "name": "bone_pose_changed", - "arguments": [ - { - "name": "bone_idx", - "type": "int" - } - ] + "name": "skeleton_updated" }, { "name": "bone_enabled_changed", @@ -219990,6 +234928,9 @@ } ] }, + { + "name": "bone_list_changed" + }, { "name": "show_rest_only_changed" } @@ -220008,10 +234949,10 @@ "getter": "is_show_rest_only" }, { - "type": "bool", - "name": "animate_physical_bones", - "setter": "set_animate_physical_bones", - "getter": "get_animate_physical_bones" + "type": "int", + "name": "modifier_callback_mode_process", + "setter": "set_modifier_callback_mode_process", + "getter": "get_modifier_callback_mode_process" } ] }, @@ -220019,7 +234960,7 @@ "name": "SkeletonIK3D", "is_refcounted": false, "is_instantiable": true, - "inherits": "Node", + "inherits": "SkeletonModifier3D", "api_type": "core", "methods": [ { @@ -220072,33 +235013,6 @@ "type": "StringName" } }, - { - "name": "set_interpolation", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 373806689, - "arguments": [ - { - "name": "interpolation", - "type": "float", - "meta": "float" - } - ] - }, - { - "name": "get_interpolation", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 1740695150, - "return_value": { - "type": "float", - "meta": "float" - } - }, { "name": "set_target_transform", "is_const": false, @@ -220322,6 +235236,33 @@ "is_static": false, "is_virtual": false, "hash": 3218959716 + }, + { + "name": "set_interpolation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "interpolation", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_interpolation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } } ], "properties": [ @@ -220337,12 +235278,6 @@ "setter": "set_tip_bone", "getter": "get_tip_bone" }, - { - "type": "float", - "name": "interpolation", - "setter": "set_interpolation", - "getter": "get_interpolation" - }, { "type": "Transform3D", "name": "target", @@ -220384,6 +235319,12 @@ "name": "max_iterations", "setter": "set_max_iterations", "getter": "get_max_iterations" + }, + { + "type": "float", + "name": "interpolation", + "setter": "set_interpolation", + "getter": "get_interpolation" } ] }, @@ -222649,6 +237590,104 @@ } ] }, + { + "name": "SkeletonModifier3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "methods": [ + { + "name": "_process_modification", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "get_skeleton", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1488626673, + "return_value": { + "type": "Skeleton3D" + } + }, + { + "name": "set_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "is_active", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_influence", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "influence", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_influence", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "signals": [ + { + "name": "modification_processed" + } + ], + "properties": [ + { + "type": "bool", + "name": "active", + "setter": "set_active", + "getter": "is_active" + }, + { + "type": "float", + "name": "influence", + "setter": "set_influence", + "getter": "get_influence" + } + ] + }, { "name": "SkeletonProfile", "is_refcounted": true, @@ -223130,6 +238169,43 @@ "type": "StringName" } ] + }, + { + "name": "is_required", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_required", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "required", + "type": "bool" + } + ] } ], "signals": [ @@ -223543,7 +238619,7 @@ ], "properties": [ { - "type": "ShaderMaterial,PanoramaSkyMaterial,ProceduralSkyMaterial,PhysicalSkyMaterial", + "type": "PanoramaSkyMaterial,ProceduralSkyMaterial,PhysicalSkyMaterial,ShaderMaterial", "name": "sky_material", "setter": "set_material", "getter": "get_material" @@ -227191,6 +242267,167 @@ } ] }, + { + "name": "StatusIndicator", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node", + "api_type": "core", + "methods": [ + { + "name": "set_tooltip", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "tooltip", + "type": "String" + } + ] + }, + { + "name": "get_tooltip", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_icon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "visible", + "type": "bool" + } + ] + }, + { + "name": "is_visible", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_menu", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "menu", + "type": "NodePath" + } + ] + }, + { + "name": "get_menu", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "get_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1639390495, + "return_value": { + "type": "Rect2" + } + } + ], + "signals": [ + { + "name": "pressed", + "arguments": [ + { + "name": "mouse_button", + "type": "int" + }, + { + "name": "mouse_position", + "type": "Vector2i" + } + ] + } + ], + "properties": [ + { + "type": "String", + "name": "tooltip", + "setter": "set_tooltip", + "getter": "get_tooltip" + }, + { + "type": "Texture2D", + "name": "icon", + "setter": "set_icon", + "getter": "get_icon" + }, + { + "type": "NodePath", + "name": "menu", + "setter": "set_menu", + "getter": "get_menu" + }, + { + "type": "bool", + "name": "visible", + "setter": "set_visible", + "getter": "is_visible" + } + ] + }, { "name": "StreamPeer", "is_refcounted": true, @@ -230478,6 +245715,25 @@ } ] }, + { + "name": "create_from_arrays", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1894639680, + "arguments": [ + { + "name": "arrays", + "type": "Array" + }, + { + "name": "primitive_type", + "type": "enum::Mesh.PrimitiveType", + "default_value": "3" + } + ] + }, { "name": "create_from_blend_shape", "is_const": false, @@ -230678,6 +245934,31 @@ "type": "enum::TextServer.FontAntialiasing" } }, + { + "name": "set_disable_embedded_bitmaps", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "disable_embedded_bitmaps", + "type": "bool" + } + ] + }, + { + "name": "get_disable_embedded_bitmaps", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "set_generate_mipmaps", "is_const": false, @@ -231027,6 +246308,12 @@ "setter": "set_generate_mipmaps", "getter": "get_generate_mipmaps" }, + { + "type": "bool", + "name": "disable_embedded_bitmaps", + "setter": "set_disable_embedded_bitmaps", + "getter": "get_disable_embedded_bitmaps" + }, { "type": "bool", "name": "allow_system_fallback", @@ -231414,6 +246701,43 @@ } ] }, + { + "name": "set_tab_tooltip", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "tooltip", + "type": "String" + } + ] + }, + { + "name": "get_tab_tooltip", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "set_tab_text_direction", "is_const": false, @@ -232070,6 +247394,31 @@ "type": "bool" } }, + { + "name": "set_deselect_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_deselect_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "clear_tabs", "is_const": false, @@ -232154,12 +247503,6 @@ } ], "properties": [ - { - "type": "int", - "name": "tab_count", - "setter": "set_tab_count", - "getter": "get_tab_count" - }, { "type": "int", "name": "current_tab", @@ -232219,6 +247562,18 @@ "name": "select_with_rmb", "setter": "set_select_with_rmb", "getter": "get_select_with_rmb" + }, + { + "type": "bool", + "name": "deselect_enabled", + "setter": "set_deselect_enabled", + "getter": "get_deselect_enabled" + }, + { + "type": "int", + "name": "tab_count", + "setter": "set_tab_count", + "getter": "get_tab_count" } ] }, @@ -232228,6 +247583,26 @@ "is_instantiable": true, "inherits": "Container", "api_type": "core", + "enums": [ + { + "name": "TabPosition", + "is_bitfield": false, + "values": [ + { + "name": "POSITION_TOP", + "value": 0 + }, + { + "name": "POSITION_BOTTOM", + "value": 1 + }, + { + "name": "POSITION_MAX", + "value": 2 + } + ] + } + ], "methods": [ { "name": "get_tab_count", @@ -232367,6 +247742,31 @@ "type": "enum::TabBar.AlignmentMode" } }, + { + "name": "set_tabs_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 256673370, + "arguments": [ + { + "name": "tabs_position", + "type": "enum::TabContainer.TabPosition" + } + ] + }, + { + "name": "get_tabs_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 919937023, + "return_value": { + "type": "enum::TabContainer.TabPosition" + } + }, { "name": "set_clip_tabs", "is_const": false, @@ -232479,6 +247879,43 @@ } ] }, + { + "name": "set_tab_tooltip", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "tooltip", + "type": "String" + } + ] + }, + { + "name": "get_tab_tooltip", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "set_tab_icon", "is_const": false, @@ -232516,6 +247953,45 @@ } ] }, + { + "name": "set_tab_icon_max_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "width", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_tab_icon_max_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "set_tab_disabled", "is_const": false, @@ -232826,6 +248302,31 @@ "return_value": { "type": "enum::Control.FocusMode" } + }, + { + "name": "set_deselect_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_deselect_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } } ], "signals": [ @@ -232900,6 +248401,12 @@ "setter": "set_current_tab", "getter": "get_current_tab" }, + { + "type": "int", + "name": "tabs_position", + "setter": "set_tabs_position", + "getter": "get_tabs_position" + }, { "type": "bool", "name": "clip_tabs", @@ -232941,6 +248448,12 @@ "name": "tab_focus_mode", "setter": "set_tab_focus_mode", "getter": "get_tab_focus_mode" + }, + { + "type": "bool", + "name": "deselect_enabled", + "setter": "set_deselect_enabled", + "getter": "get_deselect_enabled" } ] }, @@ -233295,6 +248808,22 @@ "type": "bool" } }, + { + "name": "cancel_ime", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "apply_ime", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, { "name": "set_editable", "is_const": false, @@ -233447,6 +248976,31 @@ "meta": "int32" } }, + { + "name": "set_indent_wrapped_lines", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_indent_wrapped_lines", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "set_overtype_mode_enabled", "is_const": false, @@ -233796,6 +249350,26 @@ } ] }, + { + "name": "remove_line_at", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 972357352, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "move_carets_down", + "type": "bool", + "default_value": "true" + } + ] + }, { "name": "insert_text_at_caret", "is_const": false, @@ -233819,6 +249393,40 @@ } ] }, + { + "name": "insert_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1881564334, + "arguments": [ + { + "name": "text", + "type": "String" + }, + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "before_selection_begin", + "type": "bool", + "default_value": "true" + }, + { + "name": "before_selection_end", + "type": "bool", + "default_value": "false" + } + ] + }, { "name": "remove_text", "is_const": false, @@ -234164,7 +249772,7 @@ "meta": "int32" }, { - "name": "from_colum", + "name": "from_column", "type": "int", "meta": "int32" } @@ -234533,7 +250141,7 @@ "meta": "int32" }, { - "name": "col", + "name": "column", "type": "int", "meta": "int32" } @@ -234562,14 +250170,6 @@ "is_virtual": false, "hash": 3218959716 }, - { - "name": "merge_overlapping_carets", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3218959716 - }, { "name": "get_caret_count", "is_const": true, @@ -234597,36 +250197,38 @@ ] }, { - "name": "get_caret_index_edit_order", - "is_const": false, + "name": "get_sorted_carets", + "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 969006518, + "hash": 2131714034, "return_value": { "type": "PackedInt32Array" - } + }, + "arguments": [ + { + "name": "include_ignored_carets", + "type": "bool", + "default_value": "false" + } + ] }, { - "name": "adjust_carets_after_edit", + "name": "collapse_carets", "is_const": false, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1770277138, + "hash": 228654177, "arguments": [ - { - "name": "caret", - "type": "int", - "meta": "int32" - }, { "name": "from_line", "type": "int", "meta": "int32" }, { - "name": "from_col", + "name": "from_column", "type": "int", "meta": "int32" }, @@ -234636,7 +250238,65 @@ "meta": "int32" }, { - "name": "to_col", + "name": "to_column", + "type": "int", + "meta": "int32" + }, + { + "name": "inclusive", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "merge_overlapping_carets", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "begin_multicaret_edit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "end_multicaret_edit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "is_in_mulitcaret_edit", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "multicaret_edit_ignore_caret", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "caret_index", "type": "int", "meta": "int32" } @@ -234909,32 +250569,15 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1443345937, + "hash": 1658801786, "hash_compatibility": [ + 1443345937, 2920622473 ], "arguments": [ { "name": "mode", "type": "enum::TextEdit.SelectionMode" - }, - { - "name": "line", - "type": "int", - "meta": "int32", - "default_value": "-1" - }, - { - "name": "column", - "type": "int", - "meta": "int32", - "default_value": "-1" - }, - { - "name": "caret_index", - "type": "int", - "meta": "int32", - "default_value": "0" } ] }, @@ -234981,6 +250624,14 @@ "is_virtual": false, "hash": 3218959716 }, + { + "name": "skip_selection_for_next_occurrence", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, { "name": "select", "is_const": false, @@ -234993,22 +250644,22 @@ ], "arguments": [ { - "name": "from_line", + "name": "origin_line", "type": "int", "meta": "int32" }, { - "name": "from_column", + "name": "origin_column", "type": "int", "meta": "int32" }, { - "name": "to_line", + "name": "caret_line", "type": "int", "meta": "int32" }, { - "name": "to_column", + "name": "caret_column", "type": "int", "meta": "int32" }, @@ -235059,7 +250710,64 @@ ] }, { - "name": "get_selection_line", + "name": "get_selection_at_line_column", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1810224333, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "include_edges", + "type": "bool", + "default_value": "true" + }, + { + "name": "only_selections", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "get_line_ranges_from_carets", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2393089247, + "return_value": { + "type": "typedarray::Vector2i" + }, + "arguments": [ + { + "name": "only_selections", + "type": "bool", + "default_value": "false" + }, + { + "name": "merge_adjacent", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "get_selection_origin_line", "is_const": true, "is_vararg": false, "is_static": false, @@ -235079,7 +250787,7 @@ ] }, { - "name": "get_selection_column", + "name": "get_selection_origin_column", "is_const": true, "is_vararg": false, "is_static": false, @@ -235098,6 +250806,59 @@ } ] }, + { + "name": "set_selection_origin_line", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 195434140, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "can_be_hidden", + "type": "bool", + "default_value": "true" + }, + { + "name": "wrap_index", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "set_selection_origin_column", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2230941749, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, { "name": "get_selection_from_line", "is_const": true, @@ -235178,6 +250939,25 @@ } ] }, + { + "name": "is_caret_after_selection_origin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1051549951, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, { "name": "deselect", "is_const": false, @@ -236573,6 +252353,92 @@ "meta": "int32" } ] + }, + { + "name": "adjust_carets_after_edit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1770277138, + "arguments": [ + { + "name": "caret", + "type": "int", + "meta": "int32" + }, + { + "name": "from_line", + "type": "int", + "meta": "int32" + }, + { + "name": "from_col", + "type": "int", + "meta": "int32" + }, + { + "name": "to_line", + "type": "int", + "meta": "int32" + }, + { + "name": "to_col", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_caret_index_edit_order", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 969006518, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "get_selection_line", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1591665591, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_selection_column", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1591665591, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] } ], "signals": [ @@ -236691,6 +252557,12 @@ "setter": "set_autowrap_mode", "getter": "get_autowrap_mode" }, + { + "type": "bool", + "name": "indent_wrapped_lines", + "setter": "set_indent_wrapped_lines", + "getter": "is_indent_wrapped_lines" + }, { "type": "bool", "name": "scroll_smooth", @@ -237203,6 +253075,31 @@ "type": "enum::TextServer.OverrunBehavior" } }, + { + "name": "set_ellipsis_char", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "char", + "type": "String" + } + ] + }, + { + "name": "get_ellipsis_char", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, { "name": "get_objects", "is_const": true, @@ -237439,6 +253336,12 @@ "name": "text_overrun_behavior", "setter": "set_text_overrun_behavior", "getter": "get_text_overrun_behavior" + }, + { + "type": "String", + "name": "ellipsis_char", + "setter": "set_ellipsis_char", + "getter": "get_ellipsis_char" } ] }, @@ -238453,6 +254356,31 @@ "type": "enum::TextServer.OverrunBehavior" } }, + { + "name": "set_ellipsis_char", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "char", + "type": "String" + } + ] + }, + { + "name": "get_ellipsis_char", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, { "name": "set_width", "is_const": false, @@ -239043,6 +254971,12 @@ "setter": "set_text_overrun_behavior", "getter": "get_text_overrun_behavior" }, + { + "type": "String", + "name": "ellipsis_char", + "setter": "set_ellipsis_char", + "getter": "get_ellipsis_char" + }, { "type": "float", "name": "width", @@ -239239,6 +255173,10 @@ { "name": "BREAK_TRIM_EDGE_SPACES", "value": 16 + }, + { + "name": "BREAK_TRIM_INDENT", + "value": 32 } ] }, @@ -239379,6 +255317,10 @@ { "name": "GRAPHEME_IS_EMBEDDED_OBJECT", "value": 4096 + }, + { + "name": "GRAPHEME_IS_SOFT_HYPHEN", + "value": 8192 } ] }, @@ -240124,6 +256066,41 @@ } ] }, + { + "name": "font_set_disable_embedded_bitmaps", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "disable_embedded_bitmaps", + "type": "bool" + } + ] + }, + { + "name": "font_get_disable_embedded_bitmaps", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, { "name": "font_set_generate_mipmaps", "is_const": false, @@ -240562,6 +256539,43 @@ } ] }, + { + "name": "font_set_baseline_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "baseline_offset", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "font_get_baseline_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, { "name": "font_set_transform", "is_const": false, @@ -242380,6 +258394,43 @@ } ] }, + { + "name": "shaped_text_set_custom_ellipsis", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "char", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "shaped_text_get_custom_ellipsis", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, { "name": "shaped_text_set_orientation", "is_const": false, @@ -243041,8 +259092,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 185957063, + "hash": 4099476853, "hash_compatibility": [ + 185957063, 3299477123 ], "return_value": { @@ -243057,6 +259109,11 @@ "name": "grapheme_flags", "type": "bitfield::TextServer.GraphemeFlag", "default_value": "264" + }, + { + "name": "skip_grapheme_flags", + "type": "bitfield::TextServer.GraphemeFlag", + "default_value": "4" } ] }, @@ -243197,6 +259254,49 @@ } ] }, + { + "name": "shaped_text_get_object_range", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2524675647, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "key", + "type": "Variant" + } + ] + }, + { + "name": "shaped_text_get_object_glyph", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1260085030, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "key", + "type": "Variant" + } + ] + }, { "name": "shaped_text_get_size", "is_const": true, @@ -243867,6 +259967,24 @@ } ] }, + { + "name": "is_valid_letter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "unicode", + "type": "int", + "meta": "uint64" + } + ] + }, { "name": "string_to_upper", "is_const": true, @@ -243917,6 +260035,28 @@ } ] }, + { + "name": "string_to_title", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2664628024, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "string", + "type": "String" + }, + { + "name": "language", + "type": "String", + "default_value": "\"\"" + } + ] + }, { "name": "parse_structured_text", "is_const": true, @@ -244468,6 +260608,39 @@ } ] }, + { + "name": "_font_set_disable_embedded_bitmaps", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "disable_embedded_bitmaps", + "type": "bool" + } + ] + }, + { + "name": "_font_get_disable_embedded_bitmaps", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, { "name": "_font_set_generate_mipmaps", "is_const": false, @@ -244882,6 +261055,41 @@ } ] }, + { + "name": "_font_set_baseline_offset", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "baseline_offset", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "_font_get_baseline_offset", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, { "name": "_font_set_transform", "is_const": false, @@ -246605,6 +262813,41 @@ } ] }, + { + "name": "_shaped_text_set_custom_ellipsis", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "char", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_shaped_text_get_custom_ellipsis", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, { "name": "_shaped_text_set_orientation", "is_const": false, @@ -247226,6 +263469,10 @@ { "name": "grapheme_flags", "type": "bitfield::TextServer.GraphemeFlag" + }, + { + "name": "skip_grapheme_flags", + "type": "bitfield::TextServer.GraphemeFlag" } ] }, @@ -247354,6 +263601,47 @@ } ] }, + { + "name": "_shaped_text_get_object_range", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "key", + "type": "Variant" + } + ] + }, + { + "name": "_shaped_text_get_object_glyph", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "key", + "type": "Variant" + } + ] + }, { "name": "_shaped_text_get_size", "is_const": true, @@ -247807,7 +264095,7 @@ }, "arguments": [ { - "name": "string", + "name": "number", "type": "String" }, { @@ -247827,7 +264115,7 @@ }, "arguments": [ { - "name": "string", + "name": "number", "type": "String" }, { @@ -247884,6 +264172,23 @@ } ] }, + { + "name": "_is_valid_letter", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "unicode", + "type": "int", + "meta": "uint64" + } + ] + }, { "name": "_string_get_word_breaks", "is_const": true, @@ -248006,6 +264311,26 @@ } ] }, + { + "name": "_string_to_title", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "string", + "type": "String" + }, + { + "name": "language", + "type": "String" + } + ] + }, { "name": "_parse_structured_text", "is_const": true, @@ -248039,6 +264364,13 @@ } ] }, + { + "name": "TextServerFallback", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "TextServerExtension", + "api_type": "core" + }, { "name": "TextServerManager", "is_refcounted": false, @@ -249785,6 +266117,24 @@ "setter": "set_fill_mode", "getter": "get_fill_mode" }, + { + "type": "float", + "name": "radial_initial_angle", + "setter": "set_radial_initial_angle", + "getter": "get_radial_initial_angle" + }, + { + "type": "float", + "name": "radial_fill_degrees", + "setter": "set_fill_degrees", + "getter": "get_fill_degrees" + }, + { + "type": "Vector2", + "name": "radial_center_offset", + "setter": "set_radial_center_offset", + "getter": "get_radial_center_offset" + }, { "type": "bool", "name": "nine_patch_stretch", @@ -249860,24 +266210,6 @@ "name": "tint_progress", "setter": "set_tint_progress", "getter": "get_tint_progress" - }, - { - "type": "float", - "name": "radial_initial_angle", - "setter": "set_radial_initial_angle", - "getter": "get_radial_initial_angle" - }, - { - "type": "float", - "name": "radial_fill_degrees", - "setter": "set_fill_degrees", - "getter": "get_fill_degrees" - }, - { - "type": "Vector2", - "name": "radial_center_offset", - "setter": "set_radial_center_offset", - "getter": "get_radial_center_offset" } ] }, @@ -251941,7 +268273,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2458574231, + "hash": 2377324099, + "hash_compatibility": [ + 2458574231 + ], "return_value": { "type": "OccluderPolygon2D" }, @@ -251950,6 +268285,21 @@ "name": "layer_id", "type": "int", "meta": "int32" + }, + { + "name": "flip_h", + "type": "bool", + "default_value": "false" + }, + { + "name": "flip_v", + "type": "bool", + "default_value": "false" + }, + { + "name": "transpose", + "type": "bool", + "default_value": "false" } ] }, @@ -252337,6 +268687,23 @@ } ] }, + { + "name": "is_valid_terrain_peering_bit", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 845723972, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "peering_bit", + "type": "enum::TileSet.CellNeighbor" + } + ] + }, { "name": "set_navigation_polygon", "is_const": false, @@ -252362,7 +268729,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3991786031, + "hash": 2907127272, + "hash_compatibility": [ + 3991786031 + ], "return_value": { "type": "NavigationPolygon" }, @@ -252371,6 +268741,21 @@ "name": "layer_id", "type": "int", "meta": "int32" + }, + { + "name": "flip_h", + "type": "bool", + "default_value": "false" + }, + { + "name": "flip_v", + "type": "bool", + "default_value": "false" + }, + { + "name": "transpose", + "type": "bool", + "default_value": "false" } ] }, @@ -253126,11 +269511,14 @@ }, { "name": "get_collision_visibility_mode", - "is_const": false, + "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2026313073, + "hash": 1697018252, + "hash_compatibility": [ + 2026313073 + ], "return_value": { "type": "enum::TileMap.VisibilityMode" } @@ -253151,11 +269539,14 @@ }, { "name": "get_navigation_visibility_mode", - "is_const": false, + "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2026313073, + "hash": 1697018252, + "hash_compatibility": [ + 2026313073 + ], "return_value": { "type": "enum::TileMap.VisibilityMode" } @@ -253743,6 +270134,868 @@ } ] }, + { + "name": "TileMapLayer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "enums": [ + { + "name": "DebugVisibilityMode", + "is_bitfield": false, + "values": [ + { + "name": "DEBUG_VISIBILITY_MODE_DEFAULT", + "value": 0 + }, + { + "name": "DEBUG_VISIBILITY_MODE_FORCE_HIDE", + "value": 2 + }, + { + "name": "DEBUG_VISIBILITY_MODE_FORCE_SHOW", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "_use_tile_data_runtime_update", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "coords", + "type": "Vector2i" + } + ] + }, + { + "name": "_tile_data_runtime_update", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "coords", + "type": "Vector2i" + }, + { + "name": "tile_data", + "type": "TileData" + } + ] + }, + { + "name": "set_cell", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2428518503, + "arguments": [ + { + "name": "coords", + "type": "Vector2i" + }, + { + "name": "source_id", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "atlas_coords", + "type": "Vector2i", + "default_value": "Vector2i(-1, -1)" + }, + { + "name": "alternative_tile", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "erase_cell", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "coords", + "type": "Vector2i" + } + ] + }, + { + "name": "fix_invalid_tiles", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_cell_source_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2485466453, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "coords", + "type": "Vector2i" + } + ] + }, + { + "name": "get_cell_atlas_coords", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3050897911, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "coords", + "type": "Vector2i" + } + ] + }, + { + "name": "get_cell_alternative_tile", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2485466453, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "coords", + "type": "Vector2i" + } + ] + }, + { + "name": "get_cell_tile_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 205084707, + "return_value": { + "type": "TileData" + }, + "arguments": [ + { + "name": "coords", + "type": "Vector2i" + } + ] + }, + { + "name": "get_used_cells", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Vector2i" + } + }, + { + "name": "get_used_cells_by_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4175304538, + "return_value": { + "type": "typedarray::Vector2i" + }, + "arguments": [ + { + "name": "source_id", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "atlas_coords", + "type": "Vector2i", + "default_value": "Vector2i(-1, -1)" + }, + { + "name": "alternative_tile", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "get_used_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 410525958, + "return_value": { + "type": "Rect2i" + } + }, + { + "name": "get_pattern", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3820813253, + "return_value": { + "type": "TileMapPattern" + }, + "arguments": [ + { + "name": "coords_array", + "type": "typedarray::Vector2i" + } + ] + }, + { + "name": "set_pattern", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1491151770, + "arguments": [ + { + "name": "position", + "type": "Vector2i" + }, + { + "name": "pattern", + "type": "TileMapPattern" + } + ] + }, + { + "name": "set_cells_terrain_connect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 748968311, + "arguments": [ + { + "name": "cells", + "type": "typedarray::Vector2i" + }, + { + "name": "terrain_set", + "type": "int", + "meta": "int32" + }, + { + "name": "terrain", + "type": "int", + "meta": "int32" + }, + { + "name": "ignore_empty_terrains", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "set_cells_terrain_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 748968311, + "arguments": [ + { + "name": "path", + "type": "typedarray::Vector2i" + }, + { + "name": "terrain_set", + "type": "int", + "meta": "int32" + }, + { + "name": "terrain", + "type": "int", + "meta": "int32" + }, + { + "name": "ignore_empty_terrains", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "has_body_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "get_coords_for_body_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 733700038, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "update_internals", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "notify_runtime_tile_data_update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2275361663 + }, + { + "name": "map_pattern", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1864516957, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "position_in_tilemap", + "type": "Vector2i" + }, + { + "name": "coords_in_pattern", + "type": "Vector2i" + }, + { + "name": "pattern", + "type": "TileMapPattern" + } + ] + }, + { + "name": "get_surrounding_cells", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2673526557, + "return_value": { + "type": "typedarray::Vector2i" + }, + "arguments": [ + { + "name": "coords", + "type": "Vector2i" + } + ] + }, + { + "name": "get_neighbor_cell", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 986575103, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "coords", + "type": "Vector2i" + }, + { + "name": "neighbor", + "type": "enum::TileSet.CellNeighbor" + } + ] + }, + { + "name": "map_to_local", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 108438297, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "map_position", + "type": "Vector2i" + } + ] + }, + { + "name": "local_to_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 837806996, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "local_position", + "type": "Vector2" + } + ] + }, + { + "name": "set_tile_map_data_from_array", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2971499966, + "arguments": [ + { + "name": "tile_map_layer_data", + "type": "PackedByteArray" + } + ] + }, + { + "name": "get_tile_map_data_as_array", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2362200018, + "return_value": { + "type": "PackedByteArray" + } + }, + { + "name": "set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_tile_set", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 774531446, + "arguments": [ + { + "name": "tile_set", + "type": "TileSet" + } + ] + }, + { + "name": "get_tile_set", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2678226422, + "return_value": { + "type": "TileSet" + } + }, + { + "name": "set_y_sort_origin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "y_sort_origin", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_y_sort_origin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_x_draw_order_reversed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "x_draw_order_reversed", + "type": "bool" + } + ] + }, + { + "name": "is_x_draw_order_reversed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_rendering_quadrant_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_rendering_quadrant_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_collision_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_collision_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_use_kinematic_bodies", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "use_kinematic_bodies", + "type": "bool" + } + ] + }, + { + "name": "is_using_kinematic_bodies", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_collision_visibility_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3508099847, + "arguments": [ + { + "name": "visibility_mode", + "type": "enum::TileMapLayer.DebugVisibilityMode" + } + ] + }, + { + "name": "get_collision_visibility_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 338220793, + "return_value": { + "type": "enum::TileMapLayer.DebugVisibilityMode" + } + }, + { + "name": "set_navigation_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_navigation_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_navigation_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "get_navigation_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_navigation_visibility_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3508099847, + "arguments": [ + { + "name": "show_navigation", + "type": "enum::TileMapLayer.DebugVisibilityMode" + } + ] + }, + { + "name": "get_navigation_visibility_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 338220793, + "return_value": { + "type": "enum::TileMapLayer.DebugVisibilityMode" + } + } + ], + "signals": [ + { + "name": "changed" + } + ], + "properties": [ + { + "type": "PackedByteArray", + "name": "tile_map_data", + "setter": "set_tile_map_data_from_array", + "getter": "get_tile_map_data_as_array" + }, + { + "type": "bool", + "name": "enabled", + "setter": "set_enabled", + "getter": "is_enabled" + }, + { + "type": "TileSet", + "name": "tile_set", + "setter": "set_tile_set", + "getter": "get_tile_set" + }, + { + "type": "int", + "name": "y_sort_origin", + "setter": "set_y_sort_origin", + "getter": "get_y_sort_origin" + }, + { + "type": "bool", + "name": "x_draw_order_reversed", + "setter": "set_x_draw_order_reversed", + "getter": "is_x_draw_order_reversed" + }, + { + "type": "int", + "name": "rendering_quadrant_size", + "setter": "set_rendering_quadrant_size", + "getter": "get_rendering_quadrant_size" + }, + { + "type": "bool", + "name": "collision_enabled", + "setter": "set_collision_enabled", + "getter": "is_collision_enabled" + }, + { + "type": "bool", + "name": "use_kinematic_bodies", + "setter": "set_use_kinematic_bodies", + "getter": "is_using_kinematic_bodies" + }, + { + "type": "int", + "name": "collision_visibility_mode", + "setter": "set_collision_visibility_mode", + "getter": "get_collision_visibility_mode" + }, + { + "type": "bool", + "name": "navigation_enabled", + "setter": "set_navigation_enabled", + "getter": "is_navigation_enabled" + }, + { + "type": "int", + "name": "navigation_visibility_mode", + "setter": "set_navigation_visibility_mode", + "getter": "get_navigation_visibility_mode" + } + ] + }, { "name": "TileMapPattern", "is_refcounted": true, @@ -258085,8 +275338,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3898530326, + "hash": 971803314, "hash_compatibility": [ + 3898530326, 971803314 ], "arguments": [ @@ -258101,7 +275355,7 @@ { "name": "context", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -258111,8 +275365,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2356982266, + "hash": 360316719, "hash_compatibility": [ + 2356982266, 360316719 ], "arguments": [ @@ -258127,7 +275382,7 @@ { "name": "context", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -258137,8 +275392,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1829228469, + "hash": 58037827, "hash_compatibility": [ + 1829228469, 58037827 ], "return_value": { @@ -258152,7 +275408,7 @@ { "name": "context", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -258162,8 +275418,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 229954002, + "hash": 1333931916, "hash_compatibility": [ + 229954002, 1333931916 ], "return_value": { @@ -258186,7 +275443,7 @@ { "name": "context", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -258196,8 +275453,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3959009644, + "hash": 3919944288, "hash_compatibility": [ + 3959009644, 3919944288 ], "arguments": [ @@ -258208,7 +275466,7 @@ { "name": "context", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -258451,8 +275709,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1829228469, + "hash": 58037827, "hash_compatibility": [ + 1829228469, 58037827 ], "return_value": { @@ -258466,7 +275725,7 @@ { "name": "context", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -258476,8 +275735,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 229954002, + "hash": 1333931916, "hash_compatibility": [ + 229954002, 1333931916 ], "return_value": { @@ -258500,7 +275760,7 @@ { "name": "context", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -259621,7 +276881,7 @@ "name": "item_mouse_selected", "arguments": [ { - "name": "position", + "name": "mouse_position", "type": "Vector2" }, { @@ -259634,7 +276894,7 @@ "name": "empty_clicked", "arguments": [ { - "name": "position", + "name": "click_position", "type": "Vector2" }, { @@ -260609,6 +277869,43 @@ } ] }, + { + "name": "set_custom_draw_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 957362965, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "get_custom_draw_callback", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1317077508, + "return_value": { + "type": "Callable" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "set_collapsed", "is_const": false, @@ -260691,6 +277988,17 @@ "type": "bool" } }, + { + "name": "is_visible_in_tree", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "uncollapse_tree", "is_const": false, @@ -261198,6 +278506,29 @@ } ] }, + { + "name": "get_button_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2165839948, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "get_button", "is_const": true, @@ -263825,6 +281156,33 @@ "meta": "uint64" } }, + { + "name": "set_max_steps", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "max_steps", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_steps", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, { "name": "redo", "is_const": false, @@ -263852,6 +281210,49 @@ { "name": "version_changed" } + ], + "properties": [ + { + "type": "int", + "name": "max_steps", + "setter": "set_max_steps", + "getter": "get_max_steps" + } + ] + }, + { + "name": "UniformSetCacheRD", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "get_cache", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 658571723, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "shader", + "type": "RID" + }, + { + "name": "set", + "type": "int", + "meta": "uint32" + }, + { + "name": "uniforms", + "type": "typedarray::RDUniform" + } + ] + } ] }, { @@ -265339,8 +282740,12 @@ "value": 1 }, { - "name": "RENDER_INFO_TYPE_MAX", + "name": "RENDER_INFO_TYPE_CANVAS", "value": 2 + }, + { + "name": "RENDER_INFO_TYPE_MAX", + "value": 3 } ] }, @@ -265575,6 +282980,28 @@ "value": 3 } ] + }, + { + "name": "VRSUpdateMode", + "is_bitfield": false, + "values": [ + { + "name": "VRS_UPDATE_DISABLED", + "value": 0 + }, + { + "name": "VRS_UPDATE_ONCE", + "value": 1 + }, + { + "name": "VRS_UPDATE_ALWAYS", + "value": 2 + }, + { + "name": "VRS_UPDATE_MAX", + "value": 3 + } + ] } ], "methods": [ @@ -266005,6 +283432,31 @@ "type": "bool" } }, + { + "name": "set_physics_object_picking_first_only", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_physics_object_picking_first_only", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, { "name": "get_viewport_rid", "is_const": true, @@ -266068,42 +283520,6 @@ } ] }, - { - "name": "get_camera_2d", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3551466917, - "return_value": { - "type": "Camera2D" - } - }, - { - "name": "set_as_audio_listener_2d", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2586408642, - "arguments": [ - { - "name": "enable", - "type": "bool" - } - ] - }, - { - "name": "is_audio_listener_2d", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 36873697, - "return_value": { - "type": "bool" - } - }, { "name": "get_mouse_position", "is_const": true, @@ -266189,6 +283605,17 @@ "type": "Control" } }, + { + "name": "gui_get_hovered_control", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2783021301, + "return_value": { + "type": "Control" + } + }, { "name": "set_disable_input", "is_const": false, @@ -266649,6 +284076,42 @@ "meta": "float" } }, + { + "name": "set_as_audio_listener_2d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_audio_listener_2d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_camera_2d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3551466917, + "return_value": { + "type": "Camera2D" + } + }, { "name": "set_world_3d", "is_const": false, @@ -266927,6 +284390,31 @@ "type": "enum::Viewport.VRSMode" } }, + { + "name": "set_vrs_update_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3182412319, + "arguments": [ + { + "name": "mode", + "type": "enum::Viewport.VRSUpdateMode" + } + ] + }, + { + "name": "get_vrs_update_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2255951583, + "return_value": { + "type": "enum::Viewport.VRSUpdateMode" + } + }, { "name": "set_vrs_texture", "is_const": false, @@ -267106,6 +284594,12 @@ "setter": "set_vrs_mode", "getter": "get_vrs_mode" }, + { + "type": "int", + "name": "vrs_update_mode", + "setter": "set_vrs_update_mode", + "getter": "get_vrs_update_mode" + }, { "type": "Texture2D", "name": "vrs_texture", @@ -267148,6 +284642,12 @@ "setter": "set_physics_object_picking_sort", "getter": "get_physics_object_picking_sort" }, + { + "type": "bool", + "name": "physics_object_picking_first_only", + "setter": "set_physics_object_picking_first_only", + "getter": "get_physics_object_picking_first_only" + }, { "type": "bool", "name": "gui_disable_input", @@ -268314,6 +285814,49 @@ "type": "Vector2" } }, + { + "name": "attach_node_to_frame", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2479945279, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShader.Type" + }, + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "frame", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "detach_node_from_frame", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844050912, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShader.Type" + }, + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "add_varying", "is_const": false, @@ -268566,6 +286109,33 @@ "return_value": { "type": "Array" } + }, + { + "name": "set_frame", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "frame", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_frame", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } } ], "properties": [ @@ -268586,6 +286156,12 @@ "name": "expanded_output_ports", "setter": "_set_output_ports_expanded", "getter": "_get_output_ports_expanded" + }, + { + "type": "int", + "name": "linked_parent_graph_frame", + "setter": "set_frame", + "getter": "get_frame" } ] }, @@ -269162,34 +286738,9 @@ "name": "VisualShaderNodeComment", "is_refcounted": true, "is_instantiable": true, - "inherits": "VisualShaderNodeResizableBase", + "inherits": "VisualShaderNodeFrame", "api_type": "core", "methods": [ - { - "name": "set_title", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 83702148, - "arguments": [ - { - "name": "title", - "type": "String" - } - ] - }, - { - "name": "get_title", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 201670096, - "return_value": { - "type": "String" - } - }, { "name": "set_description", "is_const": false, @@ -269217,12 +286768,6 @@ } ], "properties": [ - { - "type": "String", - "name": "title", - "setter": "set_title", - "getter": "get_title" - }, { "type": "String", "name": "description", @@ -270833,6 +288378,202 @@ } ] }, + { + "name": "VisualShaderNodeFrame", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeResizableBase", + "api_type": "core", + "methods": [ + { + "name": "set_title", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "title", + "type": "String" + } + ] + }, + { + "name": "get_title", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_tint_color_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_tint_color_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_tint_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_tint_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_autoshrink_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_autoshrink_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "add_attached_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "node", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_attached_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "node", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_attached_nodes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614634198, + "arguments": [ + { + "name": "attached_nodes", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "get_attached_nodes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1930428628, + "return_value": { + "type": "PackedInt32Array" + } + } + ], + "properties": [ + { + "type": "String", + "name": "title", + "setter": "set_title", + "getter": "get_title" + }, + { + "type": "bool", + "name": "tint_color_enabled", + "setter": "set_tint_color_enabled", + "getter": "is_tint_color_enabled" + }, + { + "type": "Color", + "name": "tint_color", + "setter": "set_tint_color", + "getter": "get_tint_color" + }, + { + "type": "bool", + "name": "autoshrink", + "setter": "set_autoshrink_enabled", + "getter": "is_autoshrink_enabled" + }, + { + "type": "PackedInt32Array", + "name": "attached_nodes", + "setter": "set_attached_nodes", + "getter": "get_attached_nodes" + } + ] + }, { "name": "VisualShaderNodeFresnel", "is_refcounted": true, @@ -272521,6 +290262,34 @@ "inherits": "VisualShaderNode", "api_type": "core" }, + { + "name": "VisualShaderNodeReroute", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "methods": [ + { + "name": "get_port_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1287173294, + "return_value": { + "type": "enum::VisualShaderNode.PortType" + } + } + ], + "properties": [ + { + "type": "int", + "name": "port_type", + "setter": "_set_port_type", + "getter": "get_port_type" + } + ] + }, { "name": "VisualShaderNodeResizableBase", "is_refcounted": true, @@ -277564,6 +295333,17 @@ "type": "String" } }, + { + "name": "get_enabled_features", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, { "name": "set_requested_reference_space_types", "is_const": false, @@ -277613,9 +295393,12 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 636011756, + "hash": 399776966, + "hash_compatibility": [ + 636011756 + ], "return_value": { - "type": "XRPositionalTracker" + "type": "XRControllerTracker" }, "arguments": [ { @@ -277816,6 +295599,11 @@ "name": "reference_space_type", "getter": "get_reference_space_type" }, + { + "type": "String", + "name": "enabled_features", + "getter": "get_enabled_features" + }, { "type": "String", "name": "visibility_state", @@ -278410,6 +296198,31 @@ "type": "bool" } }, + { + "name": "set_transient_to_focused", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_transient_to_focused", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "set_exclusive", "is_const": false, @@ -278529,6 +296342,31 @@ "type": "Vector2" } }, + { + "name": "set_force_native", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "force_native", + "type": "bool" + } + ] + }, + { + "name": "get_force_native", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "set_content_scale_size", "is_const": false, @@ -279030,8 +296868,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3163973443, + "hash": 2336455395, "hash_compatibility": [ + 3163973443, 2336455395 ], "return_value": { @@ -279045,7 +296884,7 @@ { "name": "theme_type", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -279055,8 +296894,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 604739069, + "hash": 2759935355, "hash_compatibility": [ + 604739069, 2759935355 ], "return_value": { @@ -279070,7 +296910,7 @@ { "name": "theme_type", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -279080,8 +296920,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2826986490, + "hash": 387378635, "hash_compatibility": [ + 2826986490, 387378635 ], "return_value": { @@ -279095,7 +296936,7 @@ { "name": "theme_type", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -279105,8 +296946,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1327056374, + "hash": 229578101, "hash_compatibility": [ + 1327056374, 229578101 ], "return_value": { @@ -279121,7 +296963,7 @@ { "name": "theme_type", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -279131,8 +296973,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2798751242, + "hash": 2377051548, "hash_compatibility": [ + 2798751242, 2377051548 ], "return_value": { @@ -279146,7 +296989,7 @@ { "name": "theme_type", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -279156,8 +296999,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1327056374, + "hash": 229578101, "hash_compatibility": [ + 1327056374, 229578101 ], "return_value": { @@ -279172,7 +297016,7 @@ { "name": "theme_type", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -279284,8 +297128,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 866386512, + "hash": 1187511791, "hash_compatibility": [ + 866386512, 1187511791 ], "return_value": { @@ -279299,7 +297144,7 @@ { "name": "theme_type", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -279309,8 +297154,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 866386512, + "hash": 1187511791, "hash_compatibility": [ + 866386512, 1187511791 ], "return_value": { @@ -279324,7 +297170,7 @@ { "name": "theme_type", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -279334,8 +297180,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 866386512, + "hash": 1187511791, "hash_compatibility": [ + 866386512, 1187511791 ], "return_value": { @@ -279349,7 +297196,7 @@ { "name": "theme_type", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -279359,8 +297206,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 866386512, + "hash": 1187511791, "hash_compatibility": [ + 866386512, 1187511791 ], "return_value": { @@ -279374,7 +297222,7 @@ { "name": "theme_type", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -279384,8 +297232,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 866386512, + "hash": 1187511791, "hash_compatibility": [ + 866386512, 1187511791 ], "return_value": { @@ -279399,7 +297248,7 @@ { "name": "theme_type", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -279409,8 +297258,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 866386512, + "hash": 1187511791, "hash_compatibility": [ + 866386512, 1187511791 ], "return_value": { @@ -279424,7 +297274,7 @@ { "name": "theme_type", "type": "StringName", - "default_value": "\"\"" + "default_value": "&\"\"" } ] }, @@ -279833,6 +297683,12 @@ "setter": "set_transient", "getter": "is_transient" }, + { + "type": "bool", + "name": "transient_to_focused", + "setter": "set_transient_to_focused", + "getter": "is_transient_to_focused" + }, { "type": "bool", "name": "exclusive", @@ -279895,6 +297751,12 @@ "getter": "get_flag", "index": 7 }, + { + "type": "bool", + "name": "force_native", + "setter": "set_force_native", + "getter": "get_force_native" + }, { "type": "Vector2i", "name": "min_size", @@ -280549,6 +298411,31 @@ "return_value": { "type": "CameraAttributes" } + }, + { + "name": "set_compositor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1586754307, + "arguments": [ + { + "name": "compositor", + "type": "Compositor" + } + ] + }, + { + "name": "get_compositor", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3647707413, + "return_value": { + "type": "Compositor" + } } ], "properties": [ @@ -280563,6 +298450,12 @@ "name": "camera_attributes", "setter": "set_camera_attributes", "getter": "get_camera_attributes" + }, + { + "type": "Compositor", + "name": "compositor", + "setter": "set_compositor", + "getter": "get_compositor" } ] }, @@ -280951,6 +298844,647 @@ } ] }, + { + "name": "XRBodyModifier3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "SkeletonModifier3D", + "api_type": "core", + "enums": [ + { + "name": "BodyUpdate", + "is_bitfield": true, + "values": [ + { + "name": "BODY_UPDATE_UPPER_BODY", + "value": 1 + }, + { + "name": "BODY_UPDATE_LOWER_BODY", + "value": 2 + }, + { + "name": "BODY_UPDATE_HANDS", + "value": 4 + } + ] + }, + { + "name": "BoneUpdate", + "is_bitfield": false, + "values": [ + { + "name": "BONE_UPDATE_FULL", + "value": 0 + }, + { + "name": "BONE_UPDATE_ROTATION_ONLY", + "value": 1 + }, + { + "name": "BONE_UPDATE_MAX", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_body_tracker", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "tracker_name", + "type": "StringName" + } + ] + }, + { + "name": "get_body_tracker", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "set_body_update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2211199417, + "arguments": [ + { + "name": "body_update", + "type": "bitfield::XRBodyModifier3D.BodyUpdate" + } + ] + }, + { + "name": "get_body_update", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2642335328, + "return_value": { + "type": "bitfield::XRBodyModifier3D.BodyUpdate" + } + }, + { + "name": "set_bone_update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3356796943, + "arguments": [ + { + "name": "bone_update", + "type": "enum::XRBodyModifier3D.BoneUpdate" + } + ] + }, + { + "name": "get_bone_update", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1309305964, + "return_value": { + "type": "enum::XRBodyModifier3D.BoneUpdate" + } + } + ], + "properties": [ + { + "type": "String", + "name": "body_tracker", + "setter": "set_body_tracker", + "getter": "get_body_tracker" + }, + { + "type": "int", + "name": "body_update", + "setter": "set_body_update", + "getter": "get_body_update" + }, + { + "type": "int", + "name": "bone_update", + "setter": "set_bone_update", + "getter": "get_bone_update" + } + ] + }, + { + "name": "XRBodyTracker", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "XRPositionalTracker", + "api_type": "core", + "enums": [ + { + "name": "BodyFlags", + "is_bitfield": true, + "values": [ + { + "name": "BODY_FLAG_UPPER_BODY_SUPPORTED", + "value": 1 + }, + { + "name": "BODY_FLAG_LOWER_BODY_SUPPORTED", + "value": 2 + }, + { + "name": "BODY_FLAG_HANDS_SUPPORTED", + "value": 4 + } + ] + }, + { + "name": "Joint", + "is_bitfield": false, + "values": [ + { + "name": "JOINT_ROOT", + "value": 0 + }, + { + "name": "JOINT_HIPS", + "value": 1 + }, + { + "name": "JOINT_SPINE", + "value": 2 + }, + { + "name": "JOINT_CHEST", + "value": 3 + }, + { + "name": "JOINT_UPPER_CHEST", + "value": 4 + }, + { + "name": "JOINT_NECK", + "value": 5 + }, + { + "name": "JOINT_HEAD", + "value": 6 + }, + { + "name": "JOINT_HEAD_TIP", + "value": 7 + }, + { + "name": "JOINT_LEFT_SHOULDER", + "value": 8 + }, + { + "name": "JOINT_LEFT_UPPER_ARM", + "value": 9 + }, + { + "name": "JOINT_LEFT_LOWER_ARM", + "value": 10 + }, + { + "name": "JOINT_RIGHT_SHOULDER", + "value": 11 + }, + { + "name": "JOINT_RIGHT_UPPER_ARM", + "value": 12 + }, + { + "name": "JOINT_RIGHT_LOWER_ARM", + "value": 13 + }, + { + "name": "JOINT_LEFT_UPPER_LEG", + "value": 14 + }, + { + "name": "JOINT_LEFT_LOWER_LEG", + "value": 15 + }, + { + "name": "JOINT_LEFT_FOOT", + "value": 16 + }, + { + "name": "JOINT_LEFT_TOES", + "value": 17 + }, + { + "name": "JOINT_RIGHT_UPPER_LEG", + "value": 18 + }, + { + "name": "JOINT_RIGHT_LOWER_LEG", + "value": 19 + }, + { + "name": "JOINT_RIGHT_FOOT", + "value": 20 + }, + { + "name": "JOINT_RIGHT_TOES", + "value": 21 + }, + { + "name": "JOINT_LEFT_HAND", + "value": 22 + }, + { + "name": "JOINT_LEFT_PALM", + "value": 23 + }, + { + "name": "JOINT_LEFT_WRIST", + "value": 24 + }, + { + "name": "JOINT_LEFT_THUMB_METACARPAL", + "value": 25 + }, + { + "name": "JOINT_LEFT_THUMB_PHALANX_PROXIMAL", + "value": 26 + }, + { + "name": "JOINT_LEFT_THUMB_PHALANX_DISTAL", + "value": 27 + }, + { + "name": "JOINT_LEFT_THUMB_TIP", + "value": 28 + }, + { + "name": "JOINT_LEFT_INDEX_FINGER_METACARPAL", + "value": 29 + }, + { + "name": "JOINT_LEFT_INDEX_FINGER_PHALANX_PROXIMAL", + "value": 30 + }, + { + "name": "JOINT_LEFT_INDEX_FINGER_PHALANX_INTERMEDIATE", + "value": 31 + }, + { + "name": "JOINT_LEFT_INDEX_FINGER_PHALANX_DISTAL", + "value": 32 + }, + { + "name": "JOINT_LEFT_INDEX_FINGER_TIP", + "value": 33 + }, + { + "name": "JOINT_LEFT_MIDDLE_FINGER_METACARPAL", + "value": 34 + }, + { + "name": "JOINT_LEFT_MIDDLE_FINGER_PHALANX_PROXIMAL", + "value": 35 + }, + { + "name": "JOINT_LEFT_MIDDLE_FINGER_PHALANX_INTERMEDIATE", + "value": 36 + }, + { + "name": "JOINT_LEFT_MIDDLE_FINGER_PHALANX_DISTAL", + "value": 37 + }, + { + "name": "JOINT_LEFT_MIDDLE_FINGER_TIP", + "value": 38 + }, + { + "name": "JOINT_LEFT_RING_FINGER_METACARPAL", + "value": 39 + }, + { + "name": "JOINT_LEFT_RING_FINGER_PHALANX_PROXIMAL", + "value": 40 + }, + { + "name": "JOINT_LEFT_RING_FINGER_PHALANX_INTERMEDIATE", + "value": 41 + }, + { + "name": "JOINT_LEFT_RING_FINGER_PHALANX_DISTAL", + "value": 42 + }, + { + "name": "JOINT_LEFT_RING_FINGER_TIP", + "value": 43 + }, + { + "name": "JOINT_LEFT_PINKY_FINGER_METACARPAL", + "value": 44 + }, + { + "name": "JOINT_LEFT_PINKY_FINGER_PHALANX_PROXIMAL", + "value": 45 + }, + { + "name": "JOINT_LEFT_PINKY_FINGER_PHALANX_INTERMEDIATE", + "value": 46 + }, + { + "name": "JOINT_LEFT_PINKY_FINGER_PHALANX_DISTAL", + "value": 47 + }, + { + "name": "JOINT_LEFT_PINKY_FINGER_TIP", + "value": 48 + }, + { + "name": "JOINT_RIGHT_HAND", + "value": 49 + }, + { + "name": "JOINT_RIGHT_PALM", + "value": 50 + }, + { + "name": "JOINT_RIGHT_WRIST", + "value": 51 + }, + { + "name": "JOINT_RIGHT_THUMB_METACARPAL", + "value": 52 + }, + { + "name": "JOINT_RIGHT_THUMB_PHALANX_PROXIMAL", + "value": 53 + }, + { + "name": "JOINT_RIGHT_THUMB_PHALANX_DISTAL", + "value": 54 + }, + { + "name": "JOINT_RIGHT_THUMB_TIP", + "value": 55 + }, + { + "name": "JOINT_RIGHT_INDEX_FINGER_METACARPAL", + "value": 56 + }, + { + "name": "JOINT_RIGHT_INDEX_FINGER_PHALANX_PROXIMAL", + "value": 57 + }, + { + "name": "JOINT_RIGHT_INDEX_FINGER_PHALANX_INTERMEDIATE", + "value": 58 + }, + { + "name": "JOINT_RIGHT_INDEX_FINGER_PHALANX_DISTAL", + "value": 59 + }, + { + "name": "JOINT_RIGHT_INDEX_FINGER_TIP", + "value": 60 + }, + { + "name": "JOINT_RIGHT_MIDDLE_FINGER_METACARPAL", + "value": 61 + }, + { + "name": "JOINT_RIGHT_MIDDLE_FINGER_PHALANX_PROXIMAL", + "value": 62 + }, + { + "name": "JOINT_RIGHT_MIDDLE_FINGER_PHALANX_INTERMEDIATE", + "value": 63 + }, + { + "name": "JOINT_RIGHT_MIDDLE_FINGER_PHALANX_DISTAL", + "value": 64 + }, + { + "name": "JOINT_RIGHT_MIDDLE_FINGER_TIP", + "value": 65 + }, + { + "name": "JOINT_RIGHT_RING_FINGER_METACARPAL", + "value": 66 + }, + { + "name": "JOINT_RIGHT_RING_FINGER_PHALANX_PROXIMAL", + "value": 67 + }, + { + "name": "JOINT_RIGHT_RING_FINGER_PHALANX_INTERMEDIATE", + "value": 68 + }, + { + "name": "JOINT_RIGHT_RING_FINGER_PHALANX_DISTAL", + "value": 69 + }, + { + "name": "JOINT_RIGHT_RING_FINGER_TIP", + "value": 70 + }, + { + "name": "JOINT_RIGHT_PINKY_FINGER_METACARPAL", + "value": 71 + }, + { + "name": "JOINT_RIGHT_PINKY_FINGER_PHALANX_PROXIMAL", + "value": 72 + }, + { + "name": "JOINT_RIGHT_PINKY_FINGER_PHALANX_INTERMEDIATE", + "value": 73 + }, + { + "name": "JOINT_RIGHT_PINKY_FINGER_PHALANX_DISTAL", + "value": 74 + }, + { + "name": "JOINT_RIGHT_PINKY_FINGER_TIP", + "value": 75 + }, + { + "name": "JOINT_MAX", + "value": 76 + } + ] + }, + { + "name": "JointFlags", + "is_bitfield": true, + "values": [ + { + "name": "JOINT_FLAG_ORIENTATION_VALID", + "value": 1 + }, + { + "name": "JOINT_FLAG_ORIENTATION_TRACKED", + "value": 2 + }, + { + "name": "JOINT_FLAG_POSITION_VALID", + "value": 4 + }, + { + "name": "JOINT_FLAG_POSITION_TRACKED", + "value": 8 + } + ] + } + ], + "methods": [ + { + "name": "set_has_tracking_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "has_data", + "type": "bool" + } + ] + }, + { + "name": "get_has_tracking_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_body_flags", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2103235750, + "arguments": [ + { + "name": "flags", + "type": "bitfield::XRBodyTracker.BodyFlags" + } + ] + }, + { + "name": "get_body_flags", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3543166366, + "return_value": { + "type": "bitfield::XRBodyTracker.BodyFlags" + } + }, + { + "name": "set_joint_flags", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 592144999, + "arguments": [ + { + "name": "joint", + "type": "enum::XRBodyTracker.Joint" + }, + { + "name": "flags", + "type": "bitfield::XRBodyTracker.JointFlags" + } + ] + }, + { + "name": "get_joint_flags", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1030162609, + "return_value": { + "type": "bitfield::XRBodyTracker.JointFlags" + }, + "arguments": [ + { + "name": "joint", + "type": "enum::XRBodyTracker.Joint" + } + ] + }, + { + "name": "set_joint_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2635424328, + "arguments": [ + { + "name": "joint", + "type": "enum::XRBodyTracker.Joint" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "get_joint_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3474811534, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "joint", + "type": "enum::XRBodyTracker.Joint" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "has_tracking_data", + "setter": "set_has_tracking_data", + "getter": "get_has_tracking_data" + }, + { + "type": "int", + "name": "body_flags", + "setter": "set_body_flags", + "getter": "get_body_flags" + } + ] + }, { "name": "XRCamera3D", "is_refcounted": false, @@ -281090,6 +299624,1269 @@ "type": "Vector2" } ] + }, + { + "name": "profile_changed", + "arguments": [ + { + "name": "role", + "type": "String" + } + ] + } + ] + }, + { + "name": "XRControllerTracker", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "XRPositionalTracker", + "api_type": "core" + }, + { + "name": "XRFaceModifier3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "methods": [ + { + "name": "set_face_tracker", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "tracker_name", + "type": "StringName" + } + ] + }, + { + "name": "get_face_tracker", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "set_target", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "target", + "type": "NodePath" + } + ] + }, + { + "name": "get_target", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + } + ], + "properties": [ + { + "type": "String", + "name": "face_tracker", + "setter": "set_face_tracker", + "getter": "get_face_tracker" + }, + { + "type": "NodePath", + "name": "target", + "setter": "set_target", + "getter": "get_target" + } + ] + }, + { + "name": "XRFaceTracker", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "XRTracker", + "api_type": "core", + "enums": [ + { + "name": "BlendShapeEntry", + "is_bitfield": false, + "values": [ + { + "name": "FT_EYE_LOOK_OUT_RIGHT", + "value": 0 + }, + { + "name": "FT_EYE_LOOK_IN_RIGHT", + "value": 1 + }, + { + "name": "FT_EYE_LOOK_UP_RIGHT", + "value": 2 + }, + { + "name": "FT_EYE_LOOK_DOWN_RIGHT", + "value": 3 + }, + { + "name": "FT_EYE_LOOK_OUT_LEFT", + "value": 4 + }, + { + "name": "FT_EYE_LOOK_IN_LEFT", + "value": 5 + }, + { + "name": "FT_EYE_LOOK_UP_LEFT", + "value": 6 + }, + { + "name": "FT_EYE_LOOK_DOWN_LEFT", + "value": 7 + }, + { + "name": "FT_EYE_CLOSED_RIGHT", + "value": 8 + }, + { + "name": "FT_EYE_CLOSED_LEFT", + "value": 9 + }, + { + "name": "FT_EYE_SQUINT_RIGHT", + "value": 10 + }, + { + "name": "FT_EYE_SQUINT_LEFT", + "value": 11 + }, + { + "name": "FT_EYE_WIDE_RIGHT", + "value": 12 + }, + { + "name": "FT_EYE_WIDE_LEFT", + "value": 13 + }, + { + "name": "FT_EYE_DILATION_RIGHT", + "value": 14 + }, + { + "name": "FT_EYE_DILATION_LEFT", + "value": 15 + }, + { + "name": "FT_EYE_CONSTRICT_RIGHT", + "value": 16 + }, + { + "name": "FT_EYE_CONSTRICT_LEFT", + "value": 17 + }, + { + "name": "FT_BROW_PINCH_RIGHT", + "value": 18 + }, + { + "name": "FT_BROW_PINCH_LEFT", + "value": 19 + }, + { + "name": "FT_BROW_LOWERER_RIGHT", + "value": 20 + }, + { + "name": "FT_BROW_LOWERER_LEFT", + "value": 21 + }, + { + "name": "FT_BROW_INNER_UP_RIGHT", + "value": 22 + }, + { + "name": "FT_BROW_INNER_UP_LEFT", + "value": 23 + }, + { + "name": "FT_BROW_OUTER_UP_RIGHT", + "value": 24 + }, + { + "name": "FT_BROW_OUTER_UP_LEFT", + "value": 25 + }, + { + "name": "FT_NOSE_SNEER_RIGHT", + "value": 26 + }, + { + "name": "FT_NOSE_SNEER_LEFT", + "value": 27 + }, + { + "name": "FT_NASAL_DILATION_RIGHT", + "value": 28 + }, + { + "name": "FT_NASAL_DILATION_LEFT", + "value": 29 + }, + { + "name": "FT_NASAL_CONSTRICT_RIGHT", + "value": 30 + }, + { + "name": "FT_NASAL_CONSTRICT_LEFT", + "value": 31 + }, + { + "name": "FT_CHEEK_SQUINT_RIGHT", + "value": 32 + }, + { + "name": "FT_CHEEK_SQUINT_LEFT", + "value": 33 + }, + { + "name": "FT_CHEEK_PUFF_RIGHT", + "value": 34 + }, + { + "name": "FT_CHEEK_PUFF_LEFT", + "value": 35 + }, + { + "name": "FT_CHEEK_SUCK_RIGHT", + "value": 36 + }, + { + "name": "FT_CHEEK_SUCK_LEFT", + "value": 37 + }, + { + "name": "FT_JAW_OPEN", + "value": 38 + }, + { + "name": "FT_MOUTH_CLOSED", + "value": 39 + }, + { + "name": "FT_JAW_RIGHT", + "value": 40 + }, + { + "name": "FT_JAW_LEFT", + "value": 41 + }, + { + "name": "FT_JAW_FORWARD", + "value": 42 + }, + { + "name": "FT_JAW_BACKWARD", + "value": 43 + }, + { + "name": "FT_JAW_CLENCH", + "value": 44 + }, + { + "name": "FT_JAW_MANDIBLE_RAISE", + "value": 45 + }, + { + "name": "FT_LIP_SUCK_UPPER_RIGHT", + "value": 46 + }, + { + "name": "FT_LIP_SUCK_UPPER_LEFT", + "value": 47 + }, + { + "name": "FT_LIP_SUCK_LOWER_RIGHT", + "value": 48 + }, + { + "name": "FT_LIP_SUCK_LOWER_LEFT", + "value": 49 + }, + { + "name": "FT_LIP_SUCK_CORNER_RIGHT", + "value": 50 + }, + { + "name": "FT_LIP_SUCK_CORNER_LEFT", + "value": 51 + }, + { + "name": "FT_LIP_FUNNEL_UPPER_RIGHT", + "value": 52 + }, + { + "name": "FT_LIP_FUNNEL_UPPER_LEFT", + "value": 53 + }, + { + "name": "FT_LIP_FUNNEL_LOWER_RIGHT", + "value": 54 + }, + { + "name": "FT_LIP_FUNNEL_LOWER_LEFT", + "value": 55 + }, + { + "name": "FT_LIP_PUCKER_UPPER_RIGHT", + "value": 56 + }, + { + "name": "FT_LIP_PUCKER_UPPER_LEFT", + "value": 57 + }, + { + "name": "FT_LIP_PUCKER_LOWER_RIGHT", + "value": 58 + }, + { + "name": "FT_LIP_PUCKER_LOWER_LEFT", + "value": 59 + }, + { + "name": "FT_MOUTH_UPPER_UP_RIGHT", + "value": 60 + }, + { + "name": "FT_MOUTH_UPPER_UP_LEFT", + "value": 61 + }, + { + "name": "FT_MOUTH_LOWER_DOWN_RIGHT", + "value": 62 + }, + { + "name": "FT_MOUTH_LOWER_DOWN_LEFT", + "value": 63 + }, + { + "name": "FT_MOUTH_UPPER_DEEPEN_RIGHT", + "value": 64 + }, + { + "name": "FT_MOUTH_UPPER_DEEPEN_LEFT", + "value": 65 + }, + { + "name": "FT_MOUTH_UPPER_RIGHT", + "value": 66 + }, + { + "name": "FT_MOUTH_UPPER_LEFT", + "value": 67 + }, + { + "name": "FT_MOUTH_LOWER_RIGHT", + "value": 68 + }, + { + "name": "FT_MOUTH_LOWER_LEFT", + "value": 69 + }, + { + "name": "FT_MOUTH_CORNER_PULL_RIGHT", + "value": 70 + }, + { + "name": "FT_MOUTH_CORNER_PULL_LEFT", + "value": 71 + }, + { + "name": "FT_MOUTH_CORNER_SLANT_RIGHT", + "value": 72 + }, + { + "name": "FT_MOUTH_CORNER_SLANT_LEFT", + "value": 73 + }, + { + "name": "FT_MOUTH_FROWN_RIGHT", + "value": 74 + }, + { + "name": "FT_MOUTH_FROWN_LEFT", + "value": 75 + }, + { + "name": "FT_MOUTH_STRETCH_RIGHT", + "value": 76 + }, + { + "name": "FT_MOUTH_STRETCH_LEFT", + "value": 77 + }, + { + "name": "FT_MOUTH_DIMPLE_RIGHT", + "value": 78 + }, + { + "name": "FT_MOUTH_DIMPLE_LEFT", + "value": 79 + }, + { + "name": "FT_MOUTH_RAISER_UPPER", + "value": 80 + }, + { + "name": "FT_MOUTH_RAISER_LOWER", + "value": 81 + }, + { + "name": "FT_MOUTH_PRESS_RIGHT", + "value": 82 + }, + { + "name": "FT_MOUTH_PRESS_LEFT", + "value": 83 + }, + { + "name": "FT_MOUTH_TIGHTENER_RIGHT", + "value": 84 + }, + { + "name": "FT_MOUTH_TIGHTENER_LEFT", + "value": 85 + }, + { + "name": "FT_TONGUE_OUT", + "value": 86 + }, + { + "name": "FT_TONGUE_UP", + "value": 87 + }, + { + "name": "FT_TONGUE_DOWN", + "value": 88 + }, + { + "name": "FT_TONGUE_RIGHT", + "value": 89 + }, + { + "name": "FT_TONGUE_LEFT", + "value": 90 + }, + { + "name": "FT_TONGUE_ROLL", + "value": 91 + }, + { + "name": "FT_TONGUE_BLEND_DOWN", + "value": 92 + }, + { + "name": "FT_TONGUE_CURL_UP", + "value": 93 + }, + { + "name": "FT_TONGUE_SQUISH", + "value": 94 + }, + { + "name": "FT_TONGUE_FLAT", + "value": 95 + }, + { + "name": "FT_TONGUE_TWIST_RIGHT", + "value": 96 + }, + { + "name": "FT_TONGUE_TWIST_LEFT", + "value": 97 + }, + { + "name": "FT_SOFT_PALATE_CLOSE", + "value": 98 + }, + { + "name": "FT_THROAT_SWALLOW", + "value": 99 + }, + { + "name": "FT_NECK_FLEX_RIGHT", + "value": 100 + }, + { + "name": "FT_NECK_FLEX_LEFT", + "value": 101 + }, + { + "name": "FT_EYE_CLOSED", + "value": 102 + }, + { + "name": "FT_EYE_WIDE", + "value": 103 + }, + { + "name": "FT_EYE_SQUINT", + "value": 104 + }, + { + "name": "FT_EYE_DILATION", + "value": 105 + }, + { + "name": "FT_EYE_CONSTRICT", + "value": 106 + }, + { + "name": "FT_BROW_DOWN_RIGHT", + "value": 107 + }, + { + "name": "FT_BROW_DOWN_LEFT", + "value": 108 + }, + { + "name": "FT_BROW_DOWN", + "value": 109 + }, + { + "name": "FT_BROW_UP_RIGHT", + "value": 110 + }, + { + "name": "FT_BROW_UP_LEFT", + "value": 111 + }, + { + "name": "FT_BROW_UP", + "value": 112 + }, + { + "name": "FT_NOSE_SNEER", + "value": 113 + }, + { + "name": "FT_NASAL_DILATION", + "value": 114 + }, + { + "name": "FT_NASAL_CONSTRICT", + "value": 115 + }, + { + "name": "FT_CHEEK_PUFF", + "value": 116 + }, + { + "name": "FT_CHEEK_SUCK", + "value": 117 + }, + { + "name": "FT_CHEEK_SQUINT", + "value": 118 + }, + { + "name": "FT_LIP_SUCK_UPPER", + "value": 119 + }, + { + "name": "FT_LIP_SUCK_LOWER", + "value": 120 + }, + { + "name": "FT_LIP_SUCK", + "value": 121 + }, + { + "name": "FT_LIP_FUNNEL_UPPER", + "value": 122 + }, + { + "name": "FT_LIP_FUNNEL_LOWER", + "value": 123 + }, + { + "name": "FT_LIP_FUNNEL", + "value": 124 + }, + { + "name": "FT_LIP_PUCKER_UPPER", + "value": 125 + }, + { + "name": "FT_LIP_PUCKER_LOWER", + "value": 126 + }, + { + "name": "FT_LIP_PUCKER", + "value": 127 + }, + { + "name": "FT_MOUTH_UPPER_UP", + "value": 128 + }, + { + "name": "FT_MOUTH_LOWER_DOWN", + "value": 129 + }, + { + "name": "FT_MOUTH_OPEN", + "value": 130 + }, + { + "name": "FT_MOUTH_RIGHT", + "value": 131 + }, + { + "name": "FT_MOUTH_LEFT", + "value": 132 + }, + { + "name": "FT_MOUTH_SMILE_RIGHT", + "value": 133 + }, + { + "name": "FT_MOUTH_SMILE_LEFT", + "value": 134 + }, + { + "name": "FT_MOUTH_SMILE", + "value": 135 + }, + { + "name": "FT_MOUTH_SAD_RIGHT", + "value": 136 + }, + { + "name": "FT_MOUTH_SAD_LEFT", + "value": 137 + }, + { + "name": "FT_MOUTH_SAD", + "value": 138 + }, + { + "name": "FT_MOUTH_STRETCH", + "value": 139 + }, + { + "name": "FT_MOUTH_DIMPLE", + "value": 140 + }, + { + "name": "FT_MOUTH_TIGHTENER", + "value": 141 + }, + { + "name": "FT_MOUTH_PRESS", + "value": 142 + }, + { + "name": "FT_MAX", + "value": 143 + } + ] + } + ], + "methods": [ + { + "name": "get_blend_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 330010046, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "blend_shape", + "type": "enum::XRFaceTracker.BlendShapeEntry" + } + ] + }, + { + "name": "set_blend_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2352588791, + "arguments": [ + { + "name": "blend_shape", + "type": "enum::XRFaceTracker.BlendShapeEntry" + }, + { + "name": "weight", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_blend_shapes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 675695659, + "return_value": { + "type": "PackedFloat32Array" + } + }, + { + "name": "set_blend_shapes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2899603908, + "arguments": [ + { + "name": "weights", + "type": "PackedFloat32Array" + } + ] + } + ], + "properties": [ + { + "type": "PackedFloat32Array", + "name": "blend_shapes", + "setter": "set_blend_shapes", + "getter": "get_blend_shapes" + } + ] + }, + { + "name": "XRHandModifier3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "SkeletonModifier3D", + "api_type": "core", + "enums": [ + { + "name": "BoneUpdate", + "is_bitfield": false, + "values": [ + { + "name": "BONE_UPDATE_FULL", + "value": 0 + }, + { + "name": "BONE_UPDATE_ROTATION_ONLY", + "value": 1 + }, + { + "name": "BONE_UPDATE_MAX", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_hand_tracker", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "tracker_name", + "type": "StringName" + } + ] + }, + { + "name": "get_hand_tracker", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "set_bone_update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635701455, + "arguments": [ + { + "name": "bone_update", + "type": "enum::XRHandModifier3D.BoneUpdate" + } + ] + }, + { + "name": "get_bone_update", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2873665691, + "return_value": { + "type": "enum::XRHandModifier3D.BoneUpdate" + } + } + ], + "properties": [ + { + "type": "String", + "name": "hand_tracker", + "setter": "set_hand_tracker", + "getter": "get_hand_tracker" + }, + { + "type": "int", + "name": "bone_update", + "setter": "set_bone_update", + "getter": "get_bone_update" + } + ] + }, + { + "name": "XRHandTracker", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "XRPositionalTracker", + "api_type": "core", + "enums": [ + { + "name": "HandTrackingSource", + "is_bitfield": false, + "values": [ + { + "name": "HAND_TRACKING_SOURCE_UNKNOWN", + "value": 0 + }, + { + "name": "HAND_TRACKING_SOURCE_UNOBSTRUCTED", + "value": 1 + }, + { + "name": "HAND_TRACKING_SOURCE_CONTROLLER", + "value": 2 + }, + { + "name": "HAND_TRACKING_SOURCE_MAX", + "value": 3 + } + ] + }, + { + "name": "HandJoint", + "is_bitfield": false, + "values": [ + { + "name": "HAND_JOINT_PALM", + "value": 0 + }, + { + "name": "HAND_JOINT_WRIST", + "value": 1 + }, + { + "name": "HAND_JOINT_THUMB_METACARPAL", + "value": 2 + }, + { + "name": "HAND_JOINT_THUMB_PHALANX_PROXIMAL", + "value": 3 + }, + { + "name": "HAND_JOINT_THUMB_PHALANX_DISTAL", + "value": 4 + }, + { + "name": "HAND_JOINT_THUMB_TIP", + "value": 5 + }, + { + "name": "HAND_JOINT_INDEX_FINGER_METACARPAL", + "value": 6 + }, + { + "name": "HAND_JOINT_INDEX_FINGER_PHALANX_PROXIMAL", + "value": 7 + }, + { + "name": "HAND_JOINT_INDEX_FINGER_PHALANX_INTERMEDIATE", + "value": 8 + }, + { + "name": "HAND_JOINT_INDEX_FINGER_PHALANX_DISTAL", + "value": 9 + }, + { + "name": "HAND_JOINT_INDEX_FINGER_TIP", + "value": 10 + }, + { + "name": "HAND_JOINT_MIDDLE_FINGER_METACARPAL", + "value": 11 + }, + { + "name": "HAND_JOINT_MIDDLE_FINGER_PHALANX_PROXIMAL", + "value": 12 + }, + { + "name": "HAND_JOINT_MIDDLE_FINGER_PHALANX_INTERMEDIATE", + "value": 13 + }, + { + "name": "HAND_JOINT_MIDDLE_FINGER_PHALANX_DISTAL", + "value": 14 + }, + { + "name": "HAND_JOINT_MIDDLE_FINGER_TIP", + "value": 15 + }, + { + "name": "HAND_JOINT_RING_FINGER_METACARPAL", + "value": 16 + }, + { + "name": "HAND_JOINT_RING_FINGER_PHALANX_PROXIMAL", + "value": 17 + }, + { + "name": "HAND_JOINT_RING_FINGER_PHALANX_INTERMEDIATE", + "value": 18 + }, + { + "name": "HAND_JOINT_RING_FINGER_PHALANX_DISTAL", + "value": 19 + }, + { + "name": "HAND_JOINT_RING_FINGER_TIP", + "value": 20 + }, + { + "name": "HAND_JOINT_PINKY_FINGER_METACARPAL", + "value": 21 + }, + { + "name": "HAND_JOINT_PINKY_FINGER_PHALANX_PROXIMAL", + "value": 22 + }, + { + "name": "HAND_JOINT_PINKY_FINGER_PHALANX_INTERMEDIATE", + "value": 23 + }, + { + "name": "HAND_JOINT_PINKY_FINGER_PHALANX_DISTAL", + "value": 24 + }, + { + "name": "HAND_JOINT_PINKY_FINGER_TIP", + "value": 25 + }, + { + "name": "HAND_JOINT_MAX", + "value": 26 + } + ] + }, + { + "name": "HandJointFlags", + "is_bitfield": true, + "values": [ + { + "name": "HAND_JOINT_FLAG_ORIENTATION_VALID", + "value": 1 + }, + { + "name": "HAND_JOINT_FLAG_ORIENTATION_TRACKED", + "value": 2 + }, + { + "name": "HAND_JOINT_FLAG_POSITION_VALID", + "value": 4 + }, + { + "name": "HAND_JOINT_FLAG_POSITION_TRACKED", + "value": 8 + }, + { + "name": "HAND_JOINT_FLAG_LINEAR_VELOCITY_VALID", + "value": 16 + }, + { + "name": "HAND_JOINT_FLAG_ANGULAR_VELOCITY_VALID", + "value": 32 + } + ] + } + ], + "methods": [ + { + "name": "set_has_tracking_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "has_data", + "type": "bool" + } + ] + }, + { + "name": "get_has_tracking_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_hand_tracking_source", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2958308861, + "arguments": [ + { + "name": "source", + "type": "enum::XRHandTracker.HandTrackingSource" + } + ] + }, + { + "name": "get_hand_tracking_source", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2475045250, + "return_value": { + "type": "enum::XRHandTracker.HandTrackingSource" + } + }, + { + "name": "set_hand_joint_flags", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3028437365, + "arguments": [ + { + "name": "joint", + "type": "enum::XRHandTracker.HandJoint" + }, + { + "name": "flags", + "type": "bitfield::XRHandTracker.HandJointFlags" + } + ] + }, + { + "name": "get_hand_joint_flags", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1730972401, + "return_value": { + "type": "bitfield::XRHandTracker.HandJointFlags" + }, + "arguments": [ + { + "name": "joint", + "type": "enum::XRHandTracker.HandJoint" + } + ] + }, + { + "name": "set_hand_joint_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2529959613, + "arguments": [ + { + "name": "joint", + "type": "enum::XRHandTracker.HandJoint" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "get_hand_joint_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1090840196, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "joint", + "type": "enum::XRHandTracker.HandJoint" + } + ] + }, + { + "name": "set_hand_joint_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2723659615, + "arguments": [ + { + "name": "joint", + "type": "enum::XRHandTracker.HandJoint" + }, + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_hand_joint_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3400025734, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "joint", + "type": "enum::XRHandTracker.HandJoint" + } + ] + }, + { + "name": "set_hand_joint_linear_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1978646737, + "arguments": [ + { + "name": "joint", + "type": "enum::XRHandTracker.HandJoint" + }, + { + "name": "linear_velocity", + "type": "Vector3" + } + ] + }, + { + "name": "get_hand_joint_linear_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 547240792, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "joint", + "type": "enum::XRHandTracker.HandJoint" + } + ] + }, + { + "name": "set_hand_joint_angular_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1978646737, + "arguments": [ + { + "name": "joint", + "type": "enum::XRHandTracker.HandJoint" + }, + { + "name": "angular_velocity", + "type": "Vector3" + } + ] + }, + { + "name": "get_hand_joint_angular_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 547240792, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "joint", + "type": "enum::XRHandTracker.HandJoint" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "has_tracking_data", + "setter": "set_has_tracking_data", + "getter": "get_has_tracking_data" + }, + { + "type": "int", + "name": "hand_tracking_source", + "setter": "set_hand_tracking_source", + "getter": "get_hand_tracking_source" } ] }, @@ -282150,7 +301947,7 @@ { "name": "XRNode3D", "is_refcounted": false, - "is_instantiable": false, + "is_instantiable": true, "inherits": "Node3D", "api_type": "core", "methods": [ @@ -282204,6 +302001,31 @@ "type": "StringName" } }, + { + "name": "set_show_when_tracked", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "show", + "type": "bool" + } + ] + }, + { + "name": "get_show_when_tracked", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "get_is_active", "is_const": true, @@ -282295,6 +302117,12 @@ "name": "pose", "setter": "set_pose_name", "getter": "get_pose_name" + }, + { + "type": "bool", + "name": "show_when_tracked", + "setter": "set_show_when_tracked", + "getter": "get_show_when_tracked" } ] }, @@ -282605,7 +302433,7 @@ "name": "XRPositionalTracker", "is_refcounted": true, "is_instantiable": true, - "inherits": "RefCounted", + "inherits": "XRTracker", "api_type": "core", "enums": [ { @@ -282623,86 +302451,15 @@ { "name": "TRACKER_HAND_RIGHT", "value": 2 + }, + { + "name": "TRACKER_HAND_MAX", + "value": 3 } ] } ], "methods": [ - { - "name": "get_tracker_type", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2784508102, - "return_value": { - "type": "enum::XRServer.TrackerType" - } - }, - { - "name": "set_tracker_type", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3055763575, - "arguments": [ - { - "name": "type", - "type": "enum::XRServer.TrackerType" - } - ] - }, - { - "name": "get_tracker_name", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2002593661, - "return_value": { - "type": "StringName" - } - }, - { - "name": "set_tracker_name", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3304788590, - "arguments": [ - { - "name": "name", - "type": "StringName" - } - ] - }, - { - "name": "get_tracker_desc", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 201670096, - "return_value": { - "type": "String" - } - }, - { - "name": "set_tracker_desc", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 83702148, - "arguments": [ - { - "name": "description", - "type": "String" - } - ] - }, { "name": "get_tracker_profile", "is_const": true, @@ -282941,24 +302698,6 @@ } ], "properties": [ - { - "type": "int", - "name": "type", - "setter": "set_tracker_type", - "getter": "get_tracker_type" - }, - { - "type": "String", - "name": "name", - "setter": "set_tracker_name", - "getter": "get_tracker_name" - }, - { - "type": "String", - "name": "description", - "setter": "set_tracker_desc", - "getter": "get_tracker_desc" - }, { "type": "String", "name": "profile", @@ -283000,6 +302739,18 @@ "name": "TRACKER_ANCHOR", "value": 8 }, + { + "name": "TRACKER_HAND", + "value": 16 + }, + { + "name": "TRACKER_BODY", + "value": 32 + }, + { + "name": "TRACKER_FACE", + "value": 64 + }, { "name": "TRACKER_ANY_KNOWN", "value": 127 @@ -283097,6 +302848,14 @@ "type": "Transform3D" } }, + { + "name": "clear_reference_frame", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, { "name": "center_on_hmd", "is_const": false, @@ -283218,11 +302977,14 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2692800323, + "hash": 684804553, + "hash_compatibility": [ + 2692800323 + ], "arguments": [ { "name": "tracker", - "type": "XRPositionalTracker" + "type": "XRTracker" } ] }, @@ -283232,11 +302994,14 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2692800323, + "hash": 684804553, + "hash_compatibility": [ + 2692800323 + ], "arguments": [ { "name": "tracker", - "type": "XRPositionalTracker" + "type": "XRTracker" } ] }, @@ -283264,9 +303029,12 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2742084544, + "hash": 147382240, + "hash_compatibility": [ + 2742084544 + ], "return_value": { - "type": "XRPositionalTracker" + "type": "XRTracker" }, "arguments": [ { @@ -283302,6 +303070,9 @@ } ], "signals": [ + { + "name": "reference_frame_changed" + }, { "name": "interface_added", "arguments": [ @@ -283381,6 +303152,208 @@ } ] }, + { + "name": "XRTracker", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "get_tracker_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2784508102, + "return_value": { + "type": "enum::XRServer.TrackerType" + } + }, + { + "name": "set_tracker_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3055763575, + "arguments": [ + { + "name": "type", + "type": "enum::XRServer.TrackerType" + } + ] + }, + { + "name": "get_tracker_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "set_tracker_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_tracker_desc", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_tracker_desc", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "description", + "type": "String" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "type", + "setter": "set_tracker_type", + "getter": "get_tracker_type" + }, + { + "type": "String", + "name": "name", + "setter": "set_tracker_name", + "getter": "get_tracker_name" + }, + { + "type": "String", + "name": "description", + "setter": "set_tracker_desc", + "getter": "get_tracker_desc" + } + ] + }, + { + "name": "XRVRS", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "get_vrs_min_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_vrs_min_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_vrs_strength", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_vrs_strength", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "strength", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "make_vrs_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3647044786, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "target_size", + "type": "Vector2" + }, + { + "name": "eye_foci", + "type": "PackedVector2Array" + } + ] + } + ], + "properties": [ + { + "type": "float", + "name": "vrs_min_radius", + "setter": "set_vrs_min_radius", + "getter": "get_vrs_min_radius" + }, + { + "type": "float", + "name": "vrs_strength", + "setter": "set_vrs_strength", + "getter": "get_vrs_strength" + } + ] + }, { "name": "ZIPPacker", "is_refcounted": true, @@ -283699,25 +303672,21 @@ "name": "JavaScriptBridge", "type": "JavaScriptBridge" }, - { - "name": "DisplayServer", - "type": "DisplayServer" - }, - { - "name": "RenderingServer", - "type": "RenderingServer" - }, { "name": "AudioServer", "type": "AudioServer" }, { - "name": "PhysicsServer2D", - "type": "PhysicsServer2D" + "name": "CameraServer", + "type": "CameraServer" }, { - "name": "PhysicsServer3D", - "type": "PhysicsServer3D" + "name": "DisplayServer", + "type": "DisplayServer" + }, + { + "name": "NativeMenu", + "type": "NativeMenu" }, { "name": "NavigationServer2D", @@ -283728,12 +303697,20 @@ "type": "NavigationServer3D" }, { - "name": "XRServer", - "type": "XRServer" + "name": "RenderingServer", + "type": "RenderingServer" }, { - "name": "CameraServer", - "type": "CameraServer" + "name": "PhysicsServer2D", + "type": "PhysicsServer2D" + }, + { + "name": "PhysicsServer3D", + "type": "PhysicsServer3D" + }, + { + "name": "XRServer", + "type": "XRServer" } ], "native_structures": [ diff --git a/gdextension/gdextension_interface.h b/gdextension/gdextension_interface.h index c3e64efc..d6c1df9c 100644 --- a/gdextension/gdextension_interface.h +++ b/gdextension/gdextension_interface.h @@ -96,6 +96,7 @@ typedef enum { GDEXTENSION_VARIANT_TYPE_PACKED_VECTOR2_ARRAY, GDEXTENSION_VARIANT_TYPE_PACKED_VECTOR3_ARRAY, GDEXTENSION_VARIANT_TYPE_PACKED_COLOR_ARRAY, + GDEXTENSION_VARIANT_TYPE_PACKED_VECTOR4_ARRAY, GDEXTENSION_VARIANT_TYPE_VARIANT_MAX } GDExtensionVariantType; @@ -256,6 +257,7 @@ typedef struct { typedef const GDExtensionPropertyInfo *(*GDExtensionClassGetPropertyList)(GDExtensionClassInstancePtr p_instance, uint32_t *r_count); typedef void (*GDExtensionClassFreePropertyList)(GDExtensionClassInstancePtr p_instance, const GDExtensionPropertyInfo *p_list); +typedef void (*GDExtensionClassFreePropertyList2)(GDExtensionClassInstancePtr p_instance, const GDExtensionPropertyInfo *p_list, uint32_t p_count); typedef GDExtensionBool (*GDExtensionClassPropertyCanRevert)(GDExtensionClassInstancePtr p_instance, GDExtensionConstStringNamePtr p_name); typedef GDExtensionBool (*GDExtensionClassPropertyGetRevert)(GDExtensionClassInstancePtr p_instance, GDExtensionConstStringNamePtr p_name, GDExtensionVariantPtr r_ret); typedef GDExtensionBool (*GDExtensionClassValidateProperty)(GDExtensionClassInstancePtr p_instance, GDExtensionPropertyInfo *p_property); @@ -333,7 +335,7 @@ typedef struct { GDExtensionClassSet set_func; GDExtensionClassGet get_func; GDExtensionClassGetPropertyList get_property_list_func; - GDExtensionClassFreePropertyList free_property_list_func; + GDExtensionClassFreePropertyList2 free_property_list_func; GDExtensionClassPropertyCanRevert property_can_revert_func; GDExtensionClassPropertyGetRevert property_get_revert_func; GDExtensionClassValidateProperty validate_property_func; @@ -535,6 +537,8 @@ typedef void (*GDExtensionScriptInstanceFreeMethodList2)(GDExtensionScriptInstan typedef GDExtensionBool (*GDExtensionScriptInstanceHasMethod)(GDExtensionScriptInstanceDataPtr p_instance, GDExtensionConstStringNamePtr p_name); +typedef GDExtensionInt (*GDExtensionScriptInstanceGetMethodArgumentCount)(GDExtensionScriptInstanceDataPtr p_instance, GDExtensionConstStringNamePtr p_name, GDExtensionBool *r_is_valid); + typedef void (*GDExtensionScriptInstanceCall)(GDExtensionScriptInstanceDataPtr p_self, GDExtensionConstStringNamePtr p_method, const GDExtensionConstVariantPtr *p_args, GDExtensionInt p_argument_count, GDExtensionVariantPtr r_return, GDExtensionCallError *r_error); typedef void (*GDExtensionScriptInstanceNotification)(GDExtensionScriptInstanceDataPtr p_instance, int32_t p_what); // Deprecated. Use GDExtensionScriptInstanceNotification2 instead. typedef void (*GDExtensionScriptInstanceNotification2)(GDExtensionScriptInstanceDataPtr p_instance, int32_t p_what, GDExtensionBool p_reversed); @@ -654,6 +658,8 @@ typedef struct { GDExtensionScriptInstanceHasMethod has_method_func; + GDExtensionScriptInstanceGetMethodArgumentCount get_method_argument_count_func; + GDExtensionScriptInstanceCall call_func; GDExtensionScriptInstanceNotification2 notification_func; @@ -1576,6 +1582,7 @@ typedef void (*GDExtensionInterfaceStringNewWithLatin1CharsAndLen)(GDExtensionUn /** * @name string_new_with_utf8_chars_and_len * @since 4.1 + * @deprecated in Godot 4.3. Use `string_new_with_utf8_chars_and_len2` instead. * * Creates a String from a UTF-8 encoded C string with the given length. * @@ -1585,9 +1592,24 @@ typedef void (*GDExtensionInterfaceStringNewWithLatin1CharsAndLen)(GDExtensionUn */ typedef void (*GDExtensionInterfaceStringNewWithUtf8CharsAndLen)(GDExtensionUninitializedStringPtr r_dest, const char *p_contents, GDExtensionInt p_size); +/** + * @name string_new_with_utf8_chars_and_len2 + * @since 4.3 + * + * Creates a String from a UTF-8 encoded C string with the given length. + * + * @param r_dest A pointer to a Variant to hold the newly created String. + * @param p_contents A pointer to a UTF-8 encoded C string. + * @param p_size The number of bytes (not code units). + * + * @return Error code signifying if the operation successful. + */ +typedef GDExtensionInt (*GDExtensionInterfaceStringNewWithUtf8CharsAndLen2)(GDExtensionUninitializedStringPtr r_dest, const char *p_contents, GDExtensionInt p_size); + /** * @name string_new_with_utf16_chars_and_len * @since 4.1 + * @deprecated in Godot 4.3. Use `string_new_with_utf16_chars_and_len2` instead. * * Creates a String from a UTF-16 encoded C string with the given length. * @@ -1597,6 +1619,21 @@ typedef void (*GDExtensionInterfaceStringNewWithUtf8CharsAndLen)(GDExtensionUnin */ typedef void (*GDExtensionInterfaceStringNewWithUtf16CharsAndLen)(GDExtensionUninitializedStringPtr r_dest, const char16_t *p_contents, GDExtensionInt p_char_count); +/** + * @name string_new_with_utf16_chars_and_len2 + * @since 4.3 + * + * Creates a String from a UTF-16 encoded C string with the given length. + * + * @param r_dest A pointer to a Variant to hold the newly created String. + * @param p_contents A pointer to a UTF-16 encoded C string. + * @param p_size The number of characters (not bytes). + * @param p_default_little_endian If true, UTF-16 use little endian. + * + * @return Error code signifying if the operation successful. + */ +typedef GDExtensionInt (*GDExtensionInterfaceStringNewWithUtf16CharsAndLen2)(GDExtensionUninitializedStringPtr r_dest, const char16_t *p_contents, GDExtensionInt p_char_count, GDExtensionBool p_default_little_endian); + /** * @name string_new_with_utf32_chars_and_len * @since 4.1 @@ -1893,6 +1930,36 @@ typedef void (*GDExtensionInterfaceFileAccessStoreBuffer)(GDExtensionObjectPtr p */ typedef uint64_t (*GDExtensionInterfaceFileAccessGetBuffer)(GDExtensionConstObjectPtr p_instance, uint8_t *p_dst, uint64_t p_length); +/* INTERFACE: Image Utilities */ + +/** + * @name image_ptrw + * @since 4.3 + * + * Returns writable pointer to internal Image buffer. + * + * @param p_instance A pointer to a Image object. + * + * @return Pointer to internal Image buffer. + * + * @see Image::ptrw() + */ +typedef uint8_t *(*GDExtensionInterfaceImagePtrw)(GDExtensionObjectPtr p_instance); + +/** + * @name image_ptr + * @since 4.3 + * + * Returns read only pointer to internal Image buffer. + * + * @param p_instance A pointer to a Image object. + * + * @return Pointer to internal Image buffer. + * + * @see Image::ptr() + */ +typedef const uint8_t *(*GDExtensionInterfaceImagePtr)(GDExtensionObjectPtr p_instance); + /* INTERFACE: WorkerThreadPool Utilities */ /** @@ -1958,32 +2025,6 @@ typedef uint8_t *(*GDExtensionInterfacePackedByteArrayOperatorIndex)(GDExtension */ typedef const uint8_t *(*GDExtensionInterfacePackedByteArrayOperatorIndexConst)(GDExtensionConstTypePtr p_self, GDExtensionInt p_index); -/** - * @name packed_color_array_operator_index - * @since 4.1 - * - * Gets a pointer to a color in a PackedColorArray. - * - * @param p_self A pointer to a PackedColorArray object. - * @param p_index The index of the Color to get. - * - * @return A pointer to the requested Color. - */ -typedef GDExtensionTypePtr (*GDExtensionInterfacePackedColorArrayOperatorIndex)(GDExtensionTypePtr p_self, GDExtensionInt p_index); - -/** - * @name packed_color_array_operator_index_const - * @since 4.1 - * - * Gets a const pointer to a color in a PackedColorArray. - * - * @param p_self A const pointer to a const PackedColorArray object. - * @param p_index The index of the Color to get. - * - * @return A const pointer to the requested Color. - */ -typedef GDExtensionTypePtr (*GDExtensionInterfacePackedColorArrayOperatorIndexConst)(GDExtensionConstTypePtr p_self, GDExtensionInt p_index); - /** * @name packed_float32_array_operator_index * @since 4.1 @@ -2166,6 +2207,58 @@ typedef GDExtensionTypePtr (*GDExtensionInterfacePackedVector3ArrayOperatorIndex */ typedef GDExtensionTypePtr (*GDExtensionInterfacePackedVector3ArrayOperatorIndexConst)(GDExtensionConstTypePtr p_self, GDExtensionInt p_index); +/** + * @name packed_vector4_array_operator_index + * @since 4.3 + * + * Gets a pointer to a Vector4 in a PackedVector4Array. + * + * @param p_self A pointer to a PackedVector4Array object. + * @param p_index The index of the Vector4 to get. + * + * @return A pointer to the requested Vector4. + */ +typedef GDExtensionTypePtr (*GDExtensionInterfacePackedVector4ArrayOperatorIndex)(GDExtensionTypePtr p_self, GDExtensionInt p_index); + +/** + * @name packed_vector4_array_operator_index_const + * @since 4.3 + * + * Gets a const pointer to a Vector4 in a PackedVector4Array. + * + * @param p_self A const pointer to a PackedVector4Array object. + * @param p_index The index of the Vector4 to get. + * + * @return A const pointer to the requested Vector4. + */ +typedef GDExtensionTypePtr (*GDExtensionInterfacePackedVector4ArrayOperatorIndexConst)(GDExtensionConstTypePtr p_self, GDExtensionInt p_index); + +/** + * @name packed_color_array_operator_index + * @since 4.1 + * + * Gets a pointer to a color in a PackedColorArray. + * + * @param p_self A pointer to a PackedColorArray object. + * @param p_index The index of the Color to get. + * + * @return A pointer to the requested Color. + */ +typedef GDExtensionTypePtr (*GDExtensionInterfacePackedColorArrayOperatorIndex)(GDExtensionTypePtr p_self, GDExtensionInt p_index); + +/** + * @name packed_color_array_operator_index_const + * @since 4.1 + * + * Gets a const pointer to a color in a PackedColorArray. + * + * @param p_self A const pointer to a PackedColorArray object. + * @param p_index The index of the Color to get. + * + * @return A const pointer to the requested Color. + */ +typedef GDExtensionTypePtr (*GDExtensionInterfacePackedColorArrayOperatorIndexConst)(GDExtensionConstTypePtr p_self, GDExtensionInt p_index); + /** * @name array_operator_index * @since 4.1 @@ -2352,6 +2445,9 @@ typedef void (*GDExtensionInterfaceObjectSetInstance)(GDExtensionObjectPtr p_o, * * Gets the class name of an Object. * + * If the GDExtension wraps the Godot object in an abstraction specific to its class, this is the + * function that should be used to determine which wrapper to use. + * * @param p_object A pointer to the Object. * @param p_library A pointer the library received by the GDExtension's entry point function. * @param r_class_name A pointer to a String to receive the class name. @@ -2626,7 +2722,7 @@ typedef void *(*GDExtensionInterfaceClassdbGetClassTag)(GDExtensionConstStringNa /** * @name classdb_register_extension_class * @since 4.1 - * @deprecated in Godot 4.2. Use `classdb_register_extension_class2` instead. + * @deprecated in Godot 4.2. Use `classdb_register_extension_class3` instead. * * Registers an extension class in the ClassDB. * @@ -2642,6 +2738,7 @@ typedef void (*GDExtensionInterfaceClassdbRegisterExtensionClass)(GDExtensionCla /** * @name classdb_register_extension_class2 * @since 4.2 + * @deprecated in Godot 4.3. Use `classdb_register_extension_class3` instead. * * Registers an extension class in the ClassDB. * @@ -2831,6 +2928,31 @@ typedef void (*GDExtensionInterfaceEditorAddPlugin)(GDExtensionConstStringNamePt */ typedef void (*GDExtensionInterfaceEditorRemovePlugin)(GDExtensionConstStringNamePtr p_class_name); +/** + * @name editor_help_load_xml_from_utf8_chars + * @since 4.3 + * + * Loads new XML-formatted documentation data in the editor. + * + * The provided pointer can be immediately freed once the function returns. + * + * @param p_data A pointer to a UTF-8 encoded C string (null terminated). + */ +typedef void (*GDExtensionsInterfaceEditorHelpLoadXmlFromUtf8Chars)(const char *p_data); + +/** + * @name editor_help_load_xml_from_utf8_chars_and_len + * @since 4.3 + * + * Loads new XML-formatted documentation data in the editor. + * + * The provided pointer can be immediately freed once the function returns. + * + * @param p_data A pointer to a UTF-8 encoded C string. + * @param p_size The number of bytes (not code units). + */ +typedef void (*GDExtensionsInterfaceEditorHelpLoadXmlFromUtf8CharsAndLen)(const char *p_data, GDExtensionInt p_size); + #ifdef __cplusplus } #endif diff --git a/include/godot_cpp/classes/editor_plugin_registration.hpp b/include/godot_cpp/classes/editor_plugin_registration.hpp index 1ccde314..7870bfc7 100644 --- a/include/godot_cpp/classes/editor_plugin_registration.hpp +++ b/include/godot_cpp/classes/editor_plugin_registration.hpp @@ -47,11 +47,11 @@ public: static void remove_plugin_class(const StringName &p_class_name); static void deinitialize(GDExtensionInitializationLevel p_level); - template + template static void add_by_type() { add_plugin_class(T::get_class_static()); } - template + template static void remove_by_type() { remove_plugin_class(T::get_class_static()); } diff --git a/include/godot_cpp/classes/ref.hpp b/include/godot_cpp/classes/ref.hpp index f3fc3e94..137b677b 100644 --- a/include/godot_cpp/classes/ref.hpp +++ b/include/godot_cpp/classes/ref.hpp @@ -45,7 +45,7 @@ namespace godot { class RefCounted; -template +template class Ref { T *reference = nullptr; @@ -108,7 +108,7 @@ public: ref(p_from); } - template + template void operator=(const Ref &p_from) { RefCounted *refb = const_cast(static_cast(p_from.ptr())); if (!refb) { @@ -144,7 +144,7 @@ public: } } - template + template void reference_ptr(T_Other *p_ptr) { if (reference == p_ptr) { return; @@ -161,7 +161,7 @@ public: ref(p_from); } - template + template Ref(const Ref &p_from) { RefCounted *refb = const_cast(static_cast(p_from.ptr())); if (!refb) { @@ -226,7 +226,7 @@ public: } }; -template +template struct PtrToArg> { _FORCE_INLINE_ static Ref convert(const void *p_ptr) { GDExtensionRefPtr ref = (GDExtensionRefPtr)p_ptr; @@ -248,7 +248,7 @@ struct PtrToArg> { } }; -template +template struct PtrToArg &> { typedef Ref EncodeT; @@ -259,20 +259,20 @@ struct PtrToArg &> { } }; -template +template struct GetTypeInfo, typename EnableIf::value>::type> { - static const GDExtensionVariantType VARIANT_TYPE = GDEXTENSION_VARIANT_TYPE_OBJECT; - static const GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; + static constexpr GDExtensionVariantType VARIANT_TYPE = GDEXTENSION_VARIANT_TYPE_OBJECT; + static constexpr GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; static inline PropertyInfo get_class_info() { return make_property_info(Variant::Type::OBJECT, "", PROPERTY_HINT_RESOURCE_TYPE, T::get_class_static()); } }; -template +template struct GetTypeInfo &, typename EnableIf::value>::type> { - static const GDExtensionVariantType VARIANT_TYPE = GDEXTENSION_VARIANT_TYPE_OBJECT; - static const GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; + static constexpr GDExtensionVariantType VARIANT_TYPE = GDEXTENSION_VARIANT_TYPE_OBJECT; + static constexpr GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; static inline PropertyInfo get_class_info() { return make_property_info(Variant::Type::OBJECT, "", PROPERTY_HINT_RESOURCE_TYPE, T::get_class_static()); diff --git a/include/godot_cpp/classes/wrapped.hpp b/include/godot_cpp/classes/wrapped.hpp index fba855d3..9cc1d391 100644 --- a/include/godot_cpp/classes/wrapped.hpp +++ b/include/godot_cpp/classes/wrapped.hpp @@ -46,13 +46,31 @@ class ClassDB; typedef void GodotObject; +template ::value, bool> = true> +_ALWAYS_INLINE_ void _pre_initialize(); + // Base for all engine classes, to contain the pointer to the engine instance. class Wrapped { friend class GDExtensionBinding; friend class ClassDB; friend void postinitialize_handler(Wrapped *); + template ::value, bool>> + friend _ALWAYS_INLINE_ void _pre_initialize(); + + thread_local static const StringName *_constructing_extension_class_name; + thread_local static const GDExtensionInstanceBindingCallbacks *_constructing_class_binding_callbacks; + + template + _ALWAYS_INLINE_ static void _set_construct_info() { + _constructing_extension_class_name = T::_get_extension_class_name(); + _constructing_class_binding_callbacks = &T::_gde_binding_callbacks; + } + protected: + virtual bool _is_extension_class() const { return false; } + static const StringName *_get_extension_class_name(); // This is needed to retrieve the class name before the godot object has its _extension and _extension_instance members assigned. + #ifdef HOT_RELOAD_ENABLED struct RecreateInstance { GDExtensionClassInstancePtr wrapper; @@ -62,9 +80,6 @@ protected: inline static RecreateInstance *recreate_instance = nullptr; #endif - virtual const StringName *_get_extension_class_name() const; // This is needed to retrieve the class name before the godot object has its _extension and _extension_instance members assigned. - virtual const GDExtensionInstanceBindingCallbacks *_get_bindings_callbacks() const = 0; - void _notification(int p_what) {} bool _set(const StringName &p_name, const Variant &p_property) { return false; } bool _get(const StringName &p_name, Variant &r_property) const { return false; } @@ -78,7 +93,7 @@ protected: static GDExtensionBool set_bind(GDExtensionClassInstancePtr p_instance, GDExtensionConstStringNamePtr p_name, GDExtensionConstVariantPtr p_value) { return false; } static GDExtensionBool get_bind(GDExtensionClassInstancePtr p_instance, GDExtensionConstStringNamePtr p_name, GDExtensionVariantPtr r_ret) { return false; } static const GDExtensionPropertyInfo *get_property_list_bind(GDExtensionClassInstancePtr p_instance, uint32_t *r_count) { return nullptr; } - static void free_property_list_bind(GDExtensionClassInstancePtr p_instance, const GDExtensionPropertyInfo *p_list) {} + static void free_property_list_bind(GDExtensionClassInstancePtr p_instance, const GDExtensionPropertyInfo *p_list, uint32_t p_count) {} static GDExtensionBool property_can_revert_bind(GDExtensionClassInstancePtr p_instance, GDExtensionConstStringNamePtr p_name) { return false; } static GDExtensionBool property_get_revert_bind(GDExtensionClassInstancePtr p_instance, GDExtensionConstStringNamePtr p_name, GDExtensionVariantPtr r_ret) { return false; } static GDExtensionBool validate_property_bind(GDExtensionClassInstancePtr p_instance, GDExtensionPropertyInfo *p_property) { return false; } @@ -89,14 +104,15 @@ protected: ::godot::List<::godot::PropertyInfo> plist_owned; void _postinitialize(); + virtual void _notificationv(int32_t p_what, bool p_reversed = false) {} Wrapped(const StringName p_godot_class); Wrapped(GodotObject *p_godot_object); virtual ~Wrapped() {} public: - static StringName &get_class_static() { - static StringName string_name = StringName("Wrapped"); + static const StringName &get_class_static() { + static const StringName string_name = StringName("Wrapped"); return string_name; } @@ -108,6 +124,11 @@ public: GodotObject *_owner = nullptr; }; +template ::value, bool>> +_ALWAYS_INLINE_ void _pre_initialize() { + Wrapped::_set_construct_info(); +} + _FORCE_INLINE_ void snarray_add_str(Vector &arr) { } @@ -115,13 +136,13 @@ _FORCE_INLINE_ void snarray_add_str(Vector &arr, const StringName &p arr.push_back(p_str); } -template +template _FORCE_INLINE_ void snarray_add_str(Vector &arr, const StringName &p_str, P... p_args) { arr.push_back(p_str); snarray_add_str(arr, p_args...); } -template +template _FORCE_INLINE_ Vector snarray(P... p_args) { Vector arr; snarray_add_str(arr, p_args...); @@ -138,7 +159,7 @@ void add_engine_class_registration_callback(EngineClassRegistrationCallback p_ca void register_engine_class(const StringName &p_name, const GDExtensionInstanceBindingCallbacks *p_callbacks); void register_engine_classes(); -template +template struct EngineClassRegistration { EngineClassRegistration() { add_engine_class_registration_callback(&EngineClassRegistration::callback); @@ -160,15 +181,14 @@ struct EngineClassRegistration { private: \ void operator=(const m_class &p_rval) {} \ friend class ::godot::ClassDB; \ + friend class ::godot::Wrapped; \ \ protected: \ - virtual const ::godot::StringName *_get_extension_class_name() const override { \ - static ::godot::StringName string_name = get_class_static(); \ - return &string_name; \ - } \ + virtual bool _is_extension_class() const override { return true; } \ \ - virtual const GDExtensionInstanceBindingCallbacks *_get_bindings_callbacks() const override { \ - return &_gde_binding_callbacks; \ + static const ::godot::StringName *_get_extension_class_name() { \ + const ::godot::StringName &string_name = get_class_static(); \ + return &string_name; \ } \ \ static void (*_get_bind_methods())() { \ @@ -207,13 +227,14 @@ protected: return (::godot::String(::godot::Wrapped::*)() const) & m_class::_to_string; \ } \ \ - template \ + template \ static void register_virtuals() { \ m_inherits::register_virtuals(); \ } \ \ public: \ typedef m_class self_type; \ + typedef m_inherits parent_type; \ \ static void initialize_class() { \ static bool initialized = false; \ @@ -228,12 +249,12 @@ public: initialized = true; \ } \ \ - static ::godot::StringName &get_class_static() { \ - static ::godot::StringName string_name = ::godot::StringName(#m_class); \ + static const ::godot::StringName &get_class_static() { \ + static const ::godot::StringName string_name = ::godot::StringName(#m_class); \ return string_name; \ } \ \ - static ::godot::StringName &get_parent_class_static() { \ + static const ::godot::StringName &get_parent_class_static() { \ return m_inherits::get_class_static(); \ } \ \ @@ -291,11 +312,10 @@ public: return ::godot::internal::create_c_property_list(plist_cpp, r_count); \ } \ \ - static void free_property_list_bind(GDExtensionClassInstancePtr p_instance, const GDExtensionPropertyInfo *p_list) { \ + static void free_property_list_bind(GDExtensionClassInstancePtr p_instance, const GDExtensionPropertyInfo *p_list, uint32_t p_count) { \ if (p_instance) { \ m_class *cls = reinterpret_cast(p_instance); \ cls->plist_owned.clear(); \ - /* TODO `GDExtensionClassFreePropertyList` is ill-defined, we need a non-const pointer to free this. */ \ ::godot::internal::free_c_property_list(const_cast(p_list)); \ } \ } \ @@ -374,6 +394,11 @@ public: _gde_binding_reference_callback, \ }; \ \ +protected: \ + virtual void _notificationv(int32_t p_what, bool p_reversed = false) override { \ + m_class::notification_bind(this, p_what, p_reversed); \ + } \ + \ private: // Don't use this for your classes, use GDCLASS() instead. @@ -381,15 +406,15 @@ private: private: \ inline static ::godot::internal::EngineClassRegistration _gde_engine_class_registration_helper; \ void operator=(const m_class &p_rval) {} \ + friend class ::godot::ClassDB; \ + friend class ::godot::Wrapped; \ \ protected: \ - virtual const GDExtensionInstanceBindingCallbacks *_get_bindings_callbacks() const override { \ - return &_gde_binding_callbacks; \ - } \ - \ m_class(const char *p_godot_class) : m_inherits(p_godot_class) {} \ m_class(GodotObject *p_godot_object) : m_inherits(p_godot_object) {} \ \ + static void _bind_methods() {} \ + \ static void (*_get_bind_methods())() { \ return nullptr; \ } \ @@ -432,15 +457,16 @@ protected: \ public: \ typedef m_class self_type; \ + typedef m_inherits parent_type; \ \ static void initialize_class() {} \ \ - static ::godot::StringName &get_class_static() { \ - static ::godot::StringName string_name = ::godot::StringName(#m_alias_for); \ + static const ::godot::StringName &get_class_static() { \ + static const ::godot::StringName string_name = ::godot::StringName(#m_alias_for); \ return string_name; \ } \ \ - static ::godot::StringName &get_parent_class_static() { \ + static const ::godot::StringName &get_parent_class_static() { \ return m_inherits::get_class_static(); \ } \ \ diff --git a/include/godot_cpp/core/binder_common.hpp b/include/godot_cpp/core/binder_common.hpp index ce90acda..26ed4ca3 100644 --- a/include/godot_cpp/core/binder_common.hpp +++ b/include/godot_cpp/core/binder_common.hpp @@ -83,7 +83,7 @@ namespace godot { }; \ } -template +template struct VariantCaster { static _FORCE_INLINE_ T cast(const Variant &p_variant) { using TStripped = std::remove_pointer_t; @@ -95,7 +95,7 @@ struct VariantCaster { } }; -template +template struct VariantCaster { static _FORCE_INLINE_ T cast(const Variant &p_variant) { using TStripped = std::remove_pointer_t; @@ -107,7 +107,7 @@ struct VariantCaster { } }; -template +template struct VariantCaster { static _FORCE_INLINE_ T cast(const Variant &p_variant) { using TStripped = std::remove_pointer_t; @@ -144,7 +144,7 @@ struct VariantObjectClassChecker &> { } }; -template +template struct VariantCasterAndValidate { static _FORCE_INLINE_ T cast(const Variant **p_args, uint32_t p_arg_idx, GDExtensionCallError &r_error) { GDExtensionVariantType argtype = GDExtensionVariantType(GetTypeInfo::VARIANT_TYPE); @@ -159,7 +159,7 @@ struct VariantCasterAndValidate { } }; -template +template struct VariantCasterAndValidate { static _FORCE_INLINE_ T cast(const Variant **p_args, uint32_t p_arg_idx, GDExtensionCallError &r_error) { GDExtensionVariantType argtype = GDExtensionVariantType(GetTypeInfo::VARIANT_TYPE); @@ -174,7 +174,7 @@ struct VariantCasterAndValidate { } }; -template +template struct VariantCasterAndValidate { static _FORCE_INLINE_ T cast(const Variant **p_args, uint32_t p_arg_idx, GDExtensionCallError &r_error) { GDExtensionVariantType argtype = GDExtensionVariantType(GetTypeInfo::VARIANT_TYPE); @@ -189,47 +189,47 @@ struct VariantCasterAndValidate { } }; -template +template void call_with_ptr_args_helper(T *p_instance, void (T::*p_method)(P...), const GDExtensionConstTypePtr *p_args, IndexSequence) { (p_instance->*p_method)(PtrToArg

::convert(p_args[Is])...); } -template +template void call_with_ptr_argsc_helper(T *p_instance, void (T::*p_method)(P...) const, const GDExtensionConstTypePtr *p_args, IndexSequence) { (p_instance->*p_method)(PtrToArg

::convert(p_args[Is])...); } -template +template void call_with_ptr_args_ret_helper(T *p_instance, R (T::*p_method)(P...), const GDExtensionConstTypePtr *p_args, void *r_ret, IndexSequence) { PtrToArg::encode((p_instance->*p_method)(PtrToArg

::convert(p_args[Is])...), r_ret); } -template +template void call_with_ptr_args_retc_helper(T *p_instance, R (T::*p_method)(P...) const, const GDExtensionConstTypePtr *p_args, void *r_ret, IndexSequence) { PtrToArg::encode((p_instance->*p_method)(PtrToArg

::convert(p_args[Is])...), r_ret); } -template +template void call_with_ptr_args(T *p_instance, void (T::*p_method)(P...), const GDExtensionConstTypePtr *p_args, void * /*ret*/) { call_with_ptr_args_helper(p_instance, p_method, p_args, BuildIndexSequence{}); } -template +template void call_with_ptr_args(T *p_instance, void (T::*p_method)(P...) const, const GDExtensionConstTypePtr *p_args, void * /*ret*/) { call_with_ptr_argsc_helper(p_instance, p_method, p_args, BuildIndexSequence{}); } -template +template void call_with_ptr_args(T *p_instance, R (T::*p_method)(P...), const GDExtensionConstTypePtr *p_args, void *r_ret) { call_with_ptr_args_ret_helper(p_instance, p_method, p_args, r_ret, BuildIndexSequence{}); } -template +template void call_with_ptr_args(T *p_instance, R (T::*p_method)(P...) const, const GDExtensionConstTypePtr *p_args, void *r_ret) { call_with_ptr_args_retc_helper(p_instance, p_method, p_args, r_ret, BuildIndexSequence{}); } -template +template void call_with_variant_args_helper(T *p_instance, void (T::*p_method)(P...), const Variant **p_args, GDExtensionCallError &r_error, IndexSequence) { r_error.error = GDEXTENSION_CALL_OK; @@ -241,7 +241,7 @@ void call_with_variant_args_helper(T *p_instance, void (T::*p_method)(P...), con (void)(p_args); // Avoid warning. } -template +template void call_with_variant_argsc_helper(T *p_instance, void (T::*p_method)(P...) const, const Variant **p_args, GDExtensionCallError &r_error, IndexSequence) { r_error.error = GDEXTENSION_CALL_OK; @@ -253,7 +253,7 @@ void call_with_variant_argsc_helper(T *p_instance, void (T::*p_method)(P...) con (void)(p_args); // Avoid warning. } -template +template void call_with_variant_args_ret_helper(T *p_instance, R (T::*p_method)(P...), const Variant **p_args, Variant &r_ret, GDExtensionCallError &r_error, IndexSequence) { r_error.error = GDEXTENSION_CALL_OK; @@ -264,7 +264,7 @@ void call_with_variant_args_ret_helper(T *p_instance, R (T::*p_method)(P...), co #endif } -template +template void call_with_variant_args_retc_helper(T *p_instance, R (T::*p_method)(P...) const, const Variant **p_args, Variant &r_ret, GDExtensionCallError &r_error, IndexSequence) { r_error.error = GDEXTENSION_CALL_OK; @@ -276,7 +276,7 @@ void call_with_variant_args_retc_helper(T *p_instance, R (T::*p_method)(P...) co (void)p_args; } -template +template void call_with_variant_args(T *p_instance, void (T::*p_method)(P...), const Variant **p_args, int p_argcount, GDExtensionCallError &r_error) { #ifdef DEBUG_ENABLED if ((size_t)p_argcount > sizeof...(P)) { @@ -294,7 +294,7 @@ void call_with_variant_args(T *p_instance, void (T::*p_method)(P...), const Vari call_with_variant_args_helper(p_instance, p_method, p_args, r_error, BuildIndexSequence{}); } -template +template void call_with_variant_args_ret(T *p_instance, R (T::*p_method)(P...), const Variant **p_args, int p_argcount, Variant &r_ret, GDExtensionCallError &r_error) { #ifdef DEBUG_ENABLED if ((size_t)p_argcount > sizeof...(P)) { @@ -312,7 +312,7 @@ void call_with_variant_args_ret(T *p_instance, R (T::*p_method)(P...), const Var call_with_variant_args_ret_helper(p_instance, p_method, p_args, r_ret, r_error, BuildIndexSequence{}); } -template +template void call_with_variant_args_retc(T *p_instance, R (T::*p_method)(P...) const, const Variant **p_args, int p_argcount, Variant &r_ret, GDExtensionCallError &r_error) { #ifdef DEBUG_ENABLED if ((size_t)p_argcount > sizeof...(P)) { @@ -330,7 +330,7 @@ void call_with_variant_args_retc(T *p_instance, R (T::*p_method)(P...) const, co call_with_variant_args_retc_helper(p_instance, p_method, p_args, r_ret, r_error, BuildIndexSequence{}); } -template +template void call_with_variant_args_dv(T *p_instance, void (T::*p_method)(P...), const GDExtensionConstVariantPtr *p_args, int p_argcount, GDExtensionCallError &r_error, const std::vector &default_values) { #ifdef DEBUG_ENABLED if ((size_t)p_argcount > sizeof...(P)) { @@ -365,7 +365,7 @@ void call_with_variant_args_dv(T *p_instance, void (T::*p_method)(P...), const G call_with_variant_args_helper(p_instance, p_method, argsp.data(), r_error, BuildIndexSequence{}); } -template +template void call_with_variant_argsc_dv(T *p_instance, void (T::*p_method)(P...) const, const GDExtensionConstVariantPtr *p_args, int p_argcount, GDExtensionCallError &r_error, const std::vector &default_values) { #ifdef DEBUG_ENABLED if ((size_t)p_argcount > sizeof...(P)) { @@ -400,7 +400,7 @@ void call_with_variant_argsc_dv(T *p_instance, void (T::*p_method)(P...) const, call_with_variant_argsc_helper(p_instance, p_method, argsp.data(), r_error, BuildIndexSequence{}); } -template +template void call_with_variant_args_ret_dv(T *p_instance, R (T::*p_method)(P...), const GDExtensionConstVariantPtr *p_args, int p_argcount, Variant &r_ret, GDExtensionCallError &r_error, const std::vector &default_values) { #ifdef DEBUG_ENABLED if ((size_t)p_argcount > sizeof...(P)) { @@ -435,7 +435,7 @@ void call_with_variant_args_ret_dv(T *p_instance, R (T::*p_method)(P...), const call_with_variant_args_ret_helper(p_instance, p_method, argsp.data(), r_ret, r_error, BuildIndexSequence{}); } -template +template void call_with_variant_args_retc_dv(T *p_instance, R (T::*p_method)(P...) const, const GDExtensionConstVariantPtr *p_args, int p_argcount, Variant &r_ret, GDExtensionCallError &r_error, const std::vector &default_values) { #ifdef DEBUG_ENABLED if ((size_t)p_argcount > sizeof...(P)) { @@ -477,7 +477,7 @@ void call_with_variant_args_retc_dv(T *p_instance, R (T::*p_method)(P...) const, #pragma GCC diagnostic ignored "-Wunused-but-set-parameter" #endif -template +template void call_get_argument_type_helper(int p_arg, int &index, GDExtensionVariantType &type) { if (p_arg == index) { type = GDExtensionVariantType(GetTypeInfo::VARIANT_TYPE); @@ -485,7 +485,7 @@ void call_get_argument_type_helper(int p_arg, int &index, GDExtensionVariantType index++; } -template +template GDExtensionVariantType call_get_argument_type(int p_arg) { GDExtensionVariantType type = GDEXTENSION_VARIANT_TYPE_NIL; int index = 0; @@ -497,7 +497,7 @@ GDExtensionVariantType call_get_argument_type(int p_arg) { return type; } -template +template void call_get_argument_type_info_helper(int p_arg, int &index, PropertyInfo &info) { if (p_arg == index) { info = GetTypeInfo::get_class_info(); @@ -505,7 +505,7 @@ void call_get_argument_type_info_helper(int p_arg, int &index, PropertyInfo &inf index++; } -template +template void call_get_argument_type_info(int p_arg, PropertyInfo &info) { int index = 0; // I think rocket science is simpler than modern C++. @@ -515,7 +515,7 @@ void call_get_argument_type_info(int p_arg, PropertyInfo &info) { (void)index; // Suppress GCC warning. } -template +template void call_get_argument_metadata_helper(int p_arg, int &index, GDExtensionClassMethodArgumentMetadata &md) { if (p_arg == index) { md = GetTypeInfo::METADATA; @@ -523,7 +523,7 @@ void call_get_argument_metadata_helper(int p_arg, int &index, GDExtensionClassMe index++; } -template +template GDExtensionClassMethodArgumentMetadata call_get_argument_metadata(int p_arg) { GDExtensionClassMethodArgumentMetadata md = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; @@ -536,7 +536,7 @@ GDExtensionClassMethodArgumentMetadata call_get_argument_metadata(int p_arg) { return md; } -template +template void call_with_variant_args_static(void (*p_method)(P...), const Variant **p_args, GDExtensionCallError &r_error, IndexSequence) { r_error.error = GDEXTENSION_CALL_OK; @@ -547,7 +547,7 @@ void call_with_variant_args_static(void (*p_method)(P...), const Variant **p_arg #endif } -template +template void call_with_variant_args_static_dv(void (*p_method)(P...), const GDExtensionConstVariantPtr *p_args, int p_argcount, GDExtensionCallError &r_error, const std::vector &default_values) { #ifdef DEBUG_ENABLED if ((size_t)p_argcount > sizeof...(P)) { @@ -582,17 +582,17 @@ void call_with_variant_args_static_dv(void (*p_method)(P...), const GDExtensionC call_with_variant_args_static(p_method, argsp.data(), r_error, BuildIndexSequence{}); } -template +template void call_with_ptr_args_static_method_helper(void (*p_method)(P...), const GDExtensionConstTypePtr *p_args, IndexSequence) { p_method(PtrToArg

::convert(p_args[Is])...); } -template +template void call_with_ptr_args_static_method(void (*p_method)(P...), const GDExtensionConstTypePtr *p_args) { call_with_ptr_args_static_method_helper(p_method, p_args, BuildIndexSequence{}); } -template +template void call_with_variant_args_static_ret(R (*p_method)(P...), const Variant **p_args, int p_argcount, Variant &r_ret, GDExtensionCallError &r_error) { #ifdef DEBUG_ENABLED if ((size_t)p_argcount > sizeof...(P)) { @@ -610,7 +610,7 @@ void call_with_variant_args_static_ret(R (*p_method)(P...), const Variant **p_ar call_with_variant_args_static_ret(p_method, p_args, r_ret, r_error, BuildIndexSequence{}); } -template +template void call_with_variant_args_static_ret(void (*p_method)(P...), const Variant **p_args, int p_argcount, Variant &r_ret, GDExtensionCallError &r_error) { #ifdef DEBUG_ENABLED if ((size_t)p_argcount > sizeof...(P)) { @@ -628,7 +628,7 @@ void call_with_variant_args_static_ret(void (*p_method)(P...), const Variant **p call_with_variant_args_static(p_method, p_args, r_error, BuildIndexSequence{}); } -template +template void call_with_variant_args_static_ret(R (*p_method)(P...), const Variant **p_args, Variant &r_ret, GDExtensionCallError &r_error, IndexSequence) { r_error.error = GDEXTENSION_CALL_OK; @@ -639,7 +639,7 @@ void call_with_variant_args_static_ret(R (*p_method)(P...), const Variant **p_ar #endif } -template +template void call_with_variant_args_static_ret_dv(R (*p_method)(P...), const GDExtensionConstVariantPtr *p_args, int p_argcount, Variant &r_ret, GDExtensionCallError &r_error, const std::vector &default_values) { #ifdef DEBUG_ENABLED if ((size_t)p_argcount > sizeof...(P)) { @@ -674,12 +674,12 @@ void call_with_variant_args_static_ret_dv(R (*p_method)(P...), const GDExtension call_with_variant_args_static_ret(p_method, argsp.data(), r_ret, r_error, BuildIndexSequence{}); } -template +template void call_with_ptr_args_static_method_ret_helper(R (*p_method)(P...), const GDExtensionConstTypePtr *p_args, void *r_ret, IndexSequence) { PtrToArg::encode(p_method(PtrToArg

::convert(p_args[Is])...), r_ret); } -template +template void call_with_ptr_args_static_method_ret(R (*p_method)(P...), const GDExtensionConstTypePtr *p_args, void *r_ret) { call_with_ptr_args_static_method_ret_helper(p_method, p_args, r_ret, BuildIndexSequence{}); } diff --git a/include/godot_cpp/core/builtin_ptrcall.hpp b/include/godot_cpp/core/builtin_ptrcall.hpp index 19250d84..286051fa 100644 --- a/include/godot_cpp/core/builtin_ptrcall.hpp +++ b/include/godot_cpp/core/builtin_ptrcall.hpp @@ -40,7 +40,7 @@ namespace godot { namespace internal { -template +template O *_call_builtin_method_ptr_ret_obj(const GDExtensionPtrBuiltInMethod method, GDExtensionTypePtr base, const Args &...args) { GodotObject *ret = nullptr; std::array call_args = { { (GDExtensionConstTypePtr)args... } }; @@ -51,13 +51,13 @@ O *_call_builtin_method_ptr_ret_obj(const GDExtensionPtrBuiltInMethod method, GD return reinterpret_cast(internal::get_object_instance_binding(ret)); } -template +template void _call_builtin_constructor(const GDExtensionPtrConstructor constructor, GDExtensionTypePtr base, Args... args) { std::array call_args = { { (GDExtensionConstTypePtr)args... } }; constructor(base, call_args.data()); } -template +template T _call_builtin_method_ptr_ret(const GDExtensionPtrBuiltInMethod method, GDExtensionTypePtr base, Args... args) { T ret; std::array call_args = { { (GDExtensionConstTypePtr)args... } }; @@ -65,20 +65,20 @@ T _call_builtin_method_ptr_ret(const GDExtensionPtrBuiltInMethod method, GDExten return ret; } -template +template void _call_builtin_method_ptr_no_ret(const GDExtensionPtrBuiltInMethod method, GDExtensionTypePtr base, Args... args) { std::array call_args = { { (GDExtensionConstTypePtr)args... } }; method(base, call_args.data(), nullptr, sizeof...(Args)); } -template +template T _call_builtin_operator_ptr(const GDExtensionPtrOperatorEvaluator op, GDExtensionConstTypePtr left, GDExtensionConstTypePtr right) { T ret; op(left, right, &ret); return ret; } -template +template T _call_builtin_ptr_getter(const GDExtensionPtrGetter getter, GDExtensionConstTypePtr base) { T ret; getter(base, &ret); diff --git a/include/godot_cpp/core/class_db.hpp b/include/godot_cpp/core/class_db.hpp index 65960a83..988277b0 100644 --- a/include/godot_cpp/core/class_db.hpp +++ b/include/godot_cpp/core/class_db.hpp @@ -45,6 +45,7 @@ #include #include +#include #include #include #include @@ -104,15 +105,17 @@ private: static std::unordered_map instance_binding_callbacks; // Used to remember the custom class registration order. static std::vector class_register_order; + static std::unordered_map engine_singletons; + static std::mutex engine_singletons_mutex; static MethodBind *bind_methodfi(uint32_t p_flags, MethodBind *p_bind, const MethodDefinition &method_name, const void **p_defs, int p_defcount); static void initialize_class(const ClassInfo &cl); static void bind_method_godot(const StringName &p_class_name, MethodBind *p_method); - template + template static void _register_class(bool p_virtual = false, bool p_exposed = true, bool p_runtime = false); - template + template static GDExtensionObjectPtr _create_instance_func(void *data) { if constexpr (!std::is_abstract_v) { T *new_object = memnew(T); @@ -122,7 +125,7 @@ private: } } - template + template static GDExtensionClassInstancePtr _recreate_instance_func(void *data, GDExtensionObjectPtr obj) { if constexpr (!std::is_abstract_v) { #ifdef HOT_RELOAD_ENABLED @@ -140,26 +143,41 @@ private: } public: - template + template static void register_class(bool p_virtual = false); - template + template static void register_abstract_class(); - template + template static void register_internal_class(); - template + template static void register_runtime_class(); _FORCE_INLINE_ static void _register_engine_class(const StringName &p_name, const GDExtensionInstanceBindingCallbacks *p_callbacks) { instance_binding_callbacks[p_name] = p_callbacks; } - template + static void _register_engine_singleton(const StringName &p_class_name, Object *p_singleton) { + std::lock_guard lock(engine_singletons_mutex); + std::unordered_map::const_iterator i = engine_singletons.find(p_class_name); + if (i != engine_singletons.end()) { + ERR_FAIL_COND((*i).second != p_singleton); + return; + } + engine_singletons[p_class_name] = p_singleton; + } + + static void _unregister_engine_singleton(const StringName &p_class_name) { + std::lock_guard lock(engine_singletons_mutex); + engine_singletons.erase(p_class_name); + } + + template static MethodBind *bind_method(N p_method_name, M p_method, VarArgs... p_args); - template + template static MethodBind *bind_static_method(StringName p_class, N p_method_name, M p_method, VarArgs... p_args); - template + template static MethodBind *bind_vararg_method(uint32_t p_flags, StringName p_name, M p_method, const MethodInfo &p_info = MethodInfo(), const std::vector &p_default_args = std::vector{}, bool p_return_nil_is_variant = true); static void add_property_group(const StringName &p_class, const String &p_name, const String &p_prefix); @@ -200,9 +218,11 @@ public: ::godot::ClassDB::bind_virtual_method(m_class::get_class_static(), #m_method, _call##m_method); \ } -template +template void ClassDB::_register_class(bool p_virtual, bool p_exposed, bool p_runtime) { static_assert(TypesAreSame::value, "Class not declared properly, please use GDCLASS."); + static_assert(!FunctionsAreSame::value, "Class must declare 'static void _bind_methods'."); + static_assert(!std::is_abstract_v || is_abstract, "Class is abstract, please use GDREGISTER_ABSTRACT_CLASS."); instance_binding_callbacks[T::get_class_static()] = &T::_gde_binding_callbacks; // Register this class within our plugin @@ -227,7 +247,7 @@ void ClassDB::_register_class(bool p_virtual, bool p_exposed, bool p_runtime) { T::set_bind, // GDExtensionClassSet set_func; T::get_bind, // GDExtensionClassGet get_func; T::has_get_property_list() ? T::get_property_list_bind : nullptr, // GDExtensionClassGetPropertyList get_property_list_func; - T::free_property_list_bind, // GDExtensionClassFreePropertyList free_property_list_func; + T::free_property_list_bind, // GDExtensionClassFreePropertyList2 free_property_list_func; T::property_can_revert_bind, // GDExtensionClassPropertyCanRevert property_can_revert_func; T::property_get_revert_bind, // GDExtensionClassPropertyGetRevert property_get_revert_func; T::validate_property_bind, // GDExtensionClassValidateProperty validate_property_func; @@ -254,27 +274,27 @@ void ClassDB::_register_class(bool p_virtual, bool p_exposed, bool p_runtime) { initialize_class(classes[cl.name]); } -template +template void ClassDB::register_class(bool p_virtual) { ClassDB::_register_class(p_virtual); } -template +template void ClassDB::register_abstract_class() { ClassDB::_register_class(); } -template +template void ClassDB::register_internal_class() { ClassDB::_register_class(false, false); } -template +template void ClassDB::register_runtime_class() { ClassDB::_register_class(false, true, true); } -template +template MethodBind *ClassDB::bind_method(N p_method_name, M p_method, VarArgs... p_args) { Variant args[sizeof...(p_args) + 1] = { p_args..., Variant() }; // +1 makes sure zero sized arrays are also supported. const Variant *argptrs[sizeof...(p_args) + 1]; @@ -285,7 +305,7 @@ MethodBind *ClassDB::bind_method(N p_method_name, M p_method, VarArgs... p_args) return bind_methodfi(METHOD_FLAGS_DEFAULT, bind, p_method_name, sizeof...(p_args) == 0 ? nullptr : (const void **)argptrs, sizeof...(p_args)); } -template +template MethodBind *ClassDB::bind_static_method(StringName p_class, N p_method_name, M p_method, VarArgs... p_args) { Variant args[sizeof...(p_args) + 1] = { p_args..., Variant() }; // +1 makes sure zero sized arrays are also supported. const Variant *argptrs[sizeof...(p_args) + 1]; @@ -297,7 +317,7 @@ MethodBind *ClassDB::bind_static_method(StringName p_class, N p_method_name, M p return bind_methodfi(0, bind, p_method_name, sizeof...(p_args) == 0 ? nullptr : (const void **)argptrs, sizeof...(p_args)); } -template +template MethodBind *ClassDB::bind_vararg_method(uint32_t p_flags, StringName p_name, M p_method, const MethodInfo &p_info, const std::vector &p_default_args, bool p_return_nil_is_variant) { MethodBind *bind = create_vararg_method_bind(p_method, p_info, p_return_nil_is_variant); ERR_FAIL_NULL_V(bind, nullptr); @@ -329,12 +349,14 @@ MethodBind *ClassDB::bind_vararg_method(uint32_t p_flags, StringName p_name, M p return bind; } -#define GDREGISTER_CLASS(m_class) ClassDB::register_class(); -#define GDREGISTER_VIRTUAL_CLASS(m_class) ClassDB::register_class(true); -#define GDREGISTER_ABSTRACT_CLASS(m_class) ClassDB::register_abstract_class(); -#define GDREGISTER_INTERNAL_CLASS(m_class) ClassDB::register_internal_class(); -#define GDREGISTER_RUNTIME_CLASS(m_class) ClassDB::register_runtime_class(); +#define GDREGISTER_CLASS(m_class) ::godot::ClassDB::register_class(); +#define GDREGISTER_VIRTUAL_CLASS(m_class) ::godot::ClassDB::register_class(true); +#define GDREGISTER_ABSTRACT_CLASS(m_class) ::godot::ClassDB::register_abstract_class(); +#define GDREGISTER_INTERNAL_CLASS(m_class) ::godot::ClassDB::register_internal_class(); +#define GDREGISTER_RUNTIME_CLASS(m_class) ::godot::ClassDB::register_runtime_class(); } // namespace godot +CLASSDB_SINGLETON_VARIANT_CAST; + #endif // GODOT_CLASS_DB_HPP diff --git a/include/godot_cpp/core/defs.hpp b/include/godot_cpp/core/defs.hpp index c03db503..16812c2b 100644 --- a/include/godot_cpp/core/defs.hpp +++ b/include/godot_cpp/core/defs.hpp @@ -108,7 +108,7 @@ typedef float real_t; // Generic swap template. #ifndef SWAP #define SWAP(m_x, m_y) __swap_tmpl((m_x), (m_y)) -template +template inline void __swap_tmpl(T &x, T &y) { T aux = x; x = y; diff --git a/include/godot_cpp/core/engine_ptrcall.hpp b/include/godot_cpp/core/engine_ptrcall.hpp index 69ab196b..555806b8 100644 --- a/include/godot_cpp/core/engine_ptrcall.hpp +++ b/include/godot_cpp/core/engine_ptrcall.hpp @@ -43,7 +43,7 @@ namespace godot { namespace internal { -template +template O *_call_native_mb_ret_obj(const GDExtensionMethodBindPtr mb, void *instance, const Args &...args) { GodotObject *ret = nullptr; std::array mb_args = { { (GDExtensionConstTypePtr)args... } }; @@ -54,7 +54,7 @@ O *_call_native_mb_ret_obj(const GDExtensionMethodBindPtr mb, void *instance, co return reinterpret_cast(internal::get_object_instance_binding(ret)); } -template +template R _call_native_mb_ret(const GDExtensionMethodBindPtr mb, void *instance, const Args &...args) { R ret; std::array mb_args = { { (GDExtensionConstTypePtr)args... } }; @@ -62,13 +62,13 @@ R _call_native_mb_ret(const GDExtensionMethodBindPtr mb, void *instance, const A return ret; } -template +template void _call_native_mb_no_ret(const GDExtensionMethodBindPtr mb, void *instance, const Args &...args) { std::array mb_args = { { (GDExtensionConstTypePtr)args... } }; internal::gdextension_interface_object_method_bind_ptrcall(mb, instance, mb_args.data(), nullptr); } -template +template R _call_utility_ret(GDExtensionPtrUtilityFunction func, const Args &...args) { R ret; std::array mb_args = { { (GDExtensionConstTypePtr)args... } }; @@ -76,15 +76,15 @@ R _call_utility_ret(GDExtensionPtrUtilityFunction func, const Args &...args) { return ret; } -template -Object *_call_utility_ret_obj(const GDExtensionPtrUtilityFunction func, void *instance, const Args &...args) { +template +Object *_call_utility_ret_obj(const GDExtensionPtrUtilityFunction func, const Args &...args) { GodotObject *ret = nullptr; std::array mb_args = { { (GDExtensionConstTypePtr)args... } }; func(&ret, mb_args.data(), mb_args.size()); return (Object *)internal::get_object_instance_binding(ret); } -template +template void _call_utility_no_ret(const GDExtensionPtrUtilityFunction func, const Args &...args) { std::array mb_args = { { (GDExtensionConstTypePtr)args... } }; func(nullptr, mb_args.data(), mb_args.size()); diff --git a/include/godot_cpp/core/math.hpp b/include/godot_cpp/core/math.hpp index db97ba5d..1949360a 100644 --- a/include/godot_cpp/core/math.hpp +++ b/include/godot_cpp/core/math.hpp @@ -84,7 +84,7 @@ constexpr auto CLAMP(const T m_a, const T2 m_min, const T3 m_max) { // Generic swap template. #ifndef SWAP #define SWAP(m_x, m_y) __swap_tmpl((m_x), (m_y)) -template +template inline void __swap_tmpl(T &x, T &y) { T aux = x; x = y; @@ -138,7 +138,7 @@ static inline int get_shift_from_power_of_2(unsigned int p_bits) { return -1; } -template +template static _FORCE_INLINE_ T nearest_power_of_2_templated(T x) { --x; @@ -613,6 +613,14 @@ inline bool is_inf(double p_val) { return std::isinf(p_val); } +inline bool is_finite(float p_val) { + return std::isfinite(p_val); +} + +inline bool is_finite(double p_val) { + return std::isfinite(p_val); +} + inline bool is_equal_approx(float a, float b) { // Check for exact equality first, required to handle "infinity" values. if (a == b) { diff --git a/include/godot_cpp/core/memory.hpp b/include/godot_cpp/core/memory.hpp index 6775cf76..1934ee45 100644 --- a/include/godot_cpp/core/memory.hpp +++ b/include/godot_cpp/core/memory.hpp @@ -82,9 +82,12 @@ public: static void free_static(void *p_ptr, bool p_pad_align = false); }; +template ::value, bool> = true> +_ALWAYS_INLINE_ void _pre_initialize() {} + _ALWAYS_INLINE_ void postinitialize_handler(void *) {} -template +template _ALWAYS_INLINE_ T *_post_initialize(T *p_obj) { postinitialize_handler(p_obj); return p_obj; @@ -94,18 +97,18 @@ _ALWAYS_INLINE_ T *_post_initialize(T *p_obj) { #define memrealloc(m_mem, m_size) ::godot::Memory::realloc_static(m_mem, m_size) #define memfree(m_mem) ::godot::Memory::free_static(m_mem) -#define memnew(m_class) ::godot::_post_initialize(new ("", "") m_class) +#define memnew(m_class) (::godot::_pre_initialize>(), ::godot::_post_initialize(new ("", "") m_class)) -#define memnew_allocator(m_class, m_allocator) ::godot::_post_initialize(new ("", m_allocator::alloc) m_class) -#define memnew_placement(m_placement, m_class) ::godot::_post_initialize(new ("", m_placement, sizeof(m_class), "") m_class) +#define memnew_allocator(m_class, m_allocator) (::godot::_pre_initialize>(), ::godot::_post_initialize(new ("", m_allocator::alloc) m_class)) +#define memnew_placement(m_placement, m_class) (::godot::_pre_initialize>(), ::godot::_post_initialize(new ("", m_placement, sizeof(m_class), "") m_class)) // Generic comparator used in Map, List, etc. -template +template struct Comparator { _ALWAYS_INLINE_ bool operator()(const T &p_a, const T &p_b) const { return (p_a < p_b); } }; -template +template void memdelete(T *p_class, typename std::enable_if>::type * = nullptr) { if constexpr (!std::is_trivially_destructible_v) { p_class->~T(); @@ -114,12 +117,12 @@ void memdelete(T *p_class, typename std::enable_if, bool> = true> +template , bool> = true> void memdelete(T *p_class) { godot::internal::gdextension_interface_object_destroy(p_class->_owner); } -template +template void memdelete_allocator(T *p_class) { if constexpr (!std::is_trivially_destructible_v) { p_class->~T(); @@ -134,10 +137,10 @@ public: _ALWAYS_INLINE_ static void free(void *p_ptr) { Memory::free_static(p_ptr); } }; -template +template class DefaultTypedAllocator { public: - template + template _ALWAYS_INLINE_ T *new_allocation(const Args &&...p_args) { return memnew(T(p_args...)); } _ALWAYS_INLINE_ void delete_allocation(T *p_allocation) { memdelete(p_allocation); } }; diff --git a/include/godot_cpp/core/method_bind.hpp b/include/godot_cpp/core/method_bind.hpp index 37ae7317..eabd6ece 100644 --- a/include/godot_cpp/core/method_bind.hpp +++ b/include/godot_cpp/core/method_bind.hpp @@ -147,7 +147,7 @@ public: virtual ~MethodBind(); }; -template +template class MethodBindVarArgBase : public MethodBind { protected: R(T::*method) @@ -208,7 +208,7 @@ private: } }; -template +template class MethodBindVarArgT : public MethodBindVarArgBase, T, void, false> { friend class MethodBindVarArgBase, T, void, false>; @@ -231,14 +231,14 @@ private: } }; -template +template MethodBind *create_vararg_method_bind(void (T::*p_method)(const Variant **, GDExtensionInt, GDExtensionCallError &), const MethodInfo &p_info, bool p_return_nil_is_variant) { MethodBind *a = memnew((MethodBindVarArgT)(p_method, p_info, p_return_nil_is_variant)); a->set_instance_class(T::get_class_static()); return a; } -template +template class MethodBindVarArgTR : public MethodBindVarArgBase, T, R, true> { friend class MethodBindVarArgBase, T, R, true>; @@ -260,7 +260,7 @@ private: } }; -template +template MethodBind *create_vararg_method_bind(R (T::*p_method)(const Variant **, GDExtensionInt, GDExtensionCallError &), const MethodInfo &p_info, bool p_return_nil_is_variant) { MethodBind *a = memnew((MethodBindVarArgTR)(p_method, p_info, p_return_nil_is_variant)); a->set_instance_class(T::get_class_static()); @@ -277,9 +277,9 @@ class _gde_UnexistingClass; // No return, not const. #ifdef TYPED_METHOD_BIND -template +template #else -template +template #endif // TYPED_METHOD_BIND class MethodBindT : public MethodBind { void (MB_T::*method)(P...); @@ -339,7 +339,7 @@ public: } }; -template +template MethodBind *create_method_bind(void (T::*p_method)(P...)) { #ifdef TYPED_METHOD_BIND MethodBind *a = memnew((MethodBindT)(p_method)); @@ -353,9 +353,9 @@ MethodBind *create_method_bind(void (T::*p_method)(P...)) { // No return, const. #ifdef TYPED_METHOD_BIND -template +template #else -template +template #endif // TYPED_METHOD_BIND class MethodBindTC : public MethodBind { void (MB_T::*method)(P...) const; @@ -412,10 +412,11 @@ public: method = p_method; generate_argument_types(sizeof...(P)); set_argument_count(sizeof...(P)); + set_const(true); } }; -template +template MethodBind *create_method_bind(void (T::*p_method)(P...) const) { #ifdef TYPED_METHOD_BIND MethodBind *a = memnew((MethodBindTC)(p_method)); @@ -429,9 +430,9 @@ MethodBind *create_method_bind(void (T::*p_method)(P...) const) { // Return, not const. #ifdef TYPED_METHOD_BIND -template +template #else -template +template #endif // TYPED_METHOD_BIND class MethodBindTR : public MethodBind { R(MB_T::*method) @@ -498,7 +499,7 @@ public: } }; -template +template MethodBind *create_method_bind(R (T::*p_method)(P...)) { #ifdef TYPED_METHOD_BIND MethodBind *a = memnew((MethodBindTR)(p_method)); @@ -512,9 +513,9 @@ MethodBind *create_method_bind(R (T::*p_method)(P...)) { // Return, const. #ifdef TYPED_METHOD_BIND -template +template #else -template +template #endif // TYPED_METHOD_BIND class MethodBindTRC : public MethodBind { R(MB_T::*method) @@ -578,10 +579,11 @@ public: generate_argument_types(sizeof...(P)); set_argument_count(sizeof...(P)); set_return(true); + set_const(true); } }; -template +template MethodBind *create_method_bind(R (T::*p_method)(P...) const) { #ifdef TYPED_METHOD_BIND MethodBind *a = memnew((MethodBindTRC)(p_method)); @@ -596,7 +598,7 @@ MethodBind *create_method_bind(R (T::*p_method)(P...) const) { // no return -template +template class MethodBindTS : public MethodBind { void (*function)(P...); @@ -652,7 +654,7 @@ public: } }; -template +template MethodBind *create_static_method_bind(void (*p_method)(P...)) { MethodBind *a = memnew((MethodBindTS)(p_method)); return a; @@ -660,7 +662,7 @@ MethodBind *create_static_method_bind(void (*p_method)(P...)) { // return -template +template class MethodBindTRS : public MethodBind { R(*function) (P...); @@ -722,7 +724,7 @@ public: } }; -template +template MethodBind *create_static_method_bind(R (*p_method)(P...)) { MethodBind *a = memnew((MethodBindTRS)(p_method)); return a; diff --git a/include/godot_cpp/core/method_ptrcall.hpp b/include/godot_cpp/core/method_ptrcall.hpp index 32f3f459..b12a7e64 100644 --- a/include/godot_cpp/core/method_ptrcall.hpp +++ b/include/godot_cpp/core/method_ptrcall.hpp @@ -39,7 +39,7 @@ namespace godot { -template +template struct PtrToArg {}; #define MAKE_PTRARG(m_type) \ @@ -166,27 +166,27 @@ MAKE_PTRARG_BY_REFERENCE(Variant); // This is for Object. -template +template struct PtrToArg { static_assert(std::is_base_of::value, "Cannot encode non-Object value as an Object"); _FORCE_INLINE_ static T *convert(const void *p_ptr) { - return reinterpret_cast(godot::internal::get_object_instance_binding(*reinterpret_cast(const_cast(p_ptr)))); + return likely(p_ptr) ? reinterpret_cast(godot::internal::get_object_instance_binding(*reinterpret_cast(const_cast(p_ptr)))) : nullptr; } typedef Object *EncodeT; _FORCE_INLINE_ static void encode(T *p_var, void *p_ptr) { - *reinterpret_cast(p_ptr) = p_var ? p_var->_owner : nullptr; + *reinterpret_cast(p_ptr) = likely(p_var) ? p_var->_owner : nullptr; } }; -template +template struct PtrToArg { static_assert(std::is_base_of::value, "Cannot encode non-Object value as an Object"); _FORCE_INLINE_ static const T *convert(const void *p_ptr) { - return reinterpret_cast(godot::internal::get_object_instance_binding(*reinterpret_cast(const_cast(p_ptr)))); + return likely(p_ptr) ? reinterpret_cast(godot::internal::get_object_instance_binding(*reinterpret_cast(const_cast(p_ptr)))) : nullptr; } typedef const Object *EncodeT; _FORCE_INLINE_ static void encode(T *p_var, void *p_ptr) { - *reinterpret_cast(p_ptr) = p_var ? p_var->_owner : nullptr; + *reinterpret_cast(p_ptr) = likely(p_var) ? p_var->_owner : nullptr; } }; diff --git a/include/godot_cpp/core/object.hpp b/include/godot_cpp/core/object.hpp index 12de6580..917ec6cc 100644 --- a/include/godot_cpp/core/object.hpp +++ b/include/godot_cpp/core/object.hpp @@ -80,31 +80,31 @@ struct MethodInfo { MethodInfo(); MethodInfo(StringName p_name); - template + template MethodInfo(StringName p_name, const Args &...args); MethodInfo(Variant::Type ret); MethodInfo(Variant::Type ret, StringName p_name); - template + template MethodInfo(Variant::Type ret, StringName p_name, const Args &...args); MethodInfo(const PropertyInfo &p_ret, StringName p_name); - template + template MethodInfo(const PropertyInfo &p_ret, StringName p_name, const Args &...); }; -template +template MethodInfo::MethodInfo(StringName p_name, const Args &...args) : name(p_name), flags(GDEXTENSION_METHOD_FLAG_NORMAL) { arguments = { args... }; } -template +template MethodInfo::MethodInfo(Variant::Type ret, StringName p_name, const Args &...args) : name(p_name), flags(GDEXTENSION_METHOD_FLAG_NORMAL) { return_val.type = ret; arguments = { args... }; } -template +template MethodInfo::MethodInfo(const PropertyInfo &p_ret, StringName p_name, const Args &...args) : name(p_name), return_val(p_ret), flags(GDEXTENSION_METHOD_FLAG_NORMAL) { arguments = { args... }; @@ -121,7 +121,7 @@ public: } }; -template +template T *Object::cast_to(Object *p_object) { if (p_object == nullptr) { return nullptr; @@ -134,7 +134,7 @@ T *Object::cast_to(Object *p_object) { return dynamic_cast(internal::get_object_instance_binding(casted)); } -template +template const T *Object::cast_to(const Object *p_object) { if (p_object == nullptr) { return nullptr; diff --git a/include/godot_cpp/core/property_info.hpp b/include/godot_cpp/core/property_info.hpp index f610f3fd..dd71d48a 100644 --- a/include/godot_cpp/core/property_info.hpp +++ b/include/godot_cpp/core/property_info.hpp @@ -47,9 +47,9 @@ struct PropertyInfo { Variant::Type type = Variant::NIL; StringName name; StringName class_name; - uint32_t hint = 0; + uint32_t hint = PROPERTY_HINT_NONE; String hint_string; - uint32_t usage = 7; + uint32_t usage = PROPERTY_USAGE_DEFAULT; PropertyInfo() = default; @@ -72,6 +72,40 @@ struct PropertyInfo { PropertyInfo(const GDExtensionPropertyInfo *p_info) : PropertyInfo(p_info->type, *reinterpret_cast(p_info->name), (PropertyHint)p_info->hint, *reinterpret_cast(p_info->hint_string), p_info->usage, *reinterpret_cast(p_info->class_name)) {} + operator Dictionary() const { + Dictionary dict; + dict["name"] = name; + dict["class_name"] = class_name; + dict["type"] = type; + dict["hint"] = hint; + dict["hint_string"] = hint_string; + dict["usage"] = usage; + return dict; + } + + static PropertyInfo from_dict(const Dictionary &p_dict) { + PropertyInfo pi; + if (p_dict.has("type")) { + pi.type = Variant::Type(int(p_dict["type"])); + } + if (p_dict.has("name")) { + pi.name = p_dict["name"]; + } + if (p_dict.has("class_name")) { + pi.class_name = p_dict["class_name"]; + } + if (p_dict.has("hint")) { + pi.hint = PropertyHint(int(p_dict["hint"])); + } + if (p_dict.has("hint_string")) { + pi.hint_string = p_dict["hint_string"]; + } + if (p_dict.has("usage")) { + pi.usage = p_dict["usage"]; + } + return pi; + } + void _update(GDExtensionPropertyInfo *p_info) { p_info->type = (GDExtensionVariantType)type; *(reinterpret_cast(p_info->name)) = name; diff --git a/include/godot_cpp/core/type_info.hpp b/include/godot_cpp/core/type_info.hpp index 9a8b8403..19f37250 100644 --- a/include/godot_cpp/core/type_info.hpp +++ b/include/godot_cpp/core/type_info.hpp @@ -58,6 +58,16 @@ struct TypesAreSame { static bool const value = true; }; +template +struct FunctionsAreSame { + static bool const value = false; +}; + +template +struct FunctionsAreSame { + static bool const value = true; +}; + template struct TypeInherits { static D *get_d(); @@ -90,7 +100,7 @@ static PropertyInfo make_property_info(Variant::Type p_type, const StringName &p // instead of a forward declaration. You can always forward declare 'T' in a header file, and then // include the actual declaration of 'T' in the source file where 'GetTypeInfo' is instantiated. -template +template struct GetTypeInfo; #define MAKE_TYPE_INFO(m_type, m_var_type) \ @@ -198,8 +208,8 @@ struct GetTypeInfo { template struct GetTypeInfo::value>::type> { - static const GDExtensionVariantType VARIANT_TYPE = GDEXTENSION_VARIANT_TYPE_OBJECT; - static const GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; + static constexpr GDExtensionVariantType VARIANT_TYPE = GDEXTENSION_VARIANT_TYPE_OBJECT; + static constexpr GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; static inline PropertyInfo get_class_info() { return make_property_info(Variant::Type::OBJECT, "", PROPERTY_HINT_RESOURCE_TYPE, T::get_class_static()); } @@ -207,8 +217,8 @@ struct GetTypeInfo::value>::type> template struct GetTypeInfo::value>::type> { - static const GDExtensionVariantType VARIANT_TYPE = GDEXTENSION_VARIANT_TYPE_OBJECT; - static const GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; + static constexpr GDExtensionVariantType VARIANT_TYPE = GDEXTENSION_VARIANT_TYPE_OBJECT; + static constexpr GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; static inline PropertyInfo get_class_info() { return make_property_info(Variant::Type::OBJECT, "", PROPERTY_HINT_RESOURCE_TYPE, T::get_class_static()); } @@ -226,8 +236,8 @@ inline String enum_qualified_name_to_class_info_name(const String &p_qualified_n #define TEMPL_MAKE_ENUM_TYPE_INFO(m_enum, m_impl) \ template <> \ struct GetTypeInfo { \ - static const Variant::Type VARIANT_TYPE = Variant::INT; \ - static const GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; \ + static constexpr Variant::Type VARIANT_TYPE = Variant::INT; \ + static constexpr GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; \ static inline PropertyInfo get_class_info() { \ return make_property_info(Variant::Type::INT, "", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_CLASS_IS_ENUM, \ enum_qualified_name_to_class_info_name(#m_enum)); \ @@ -248,7 +258,7 @@ inline StringName _gde_constant_get_enum_name(T param, StringName p_constant) { return GetTypeInfo::get_class_info().class_name; } -template +template class BitField { int64_t value = 0; @@ -264,8 +274,8 @@ public: #define TEMPL_MAKE_BITFIELD_TYPE_INFO(m_enum, m_impl) \ template <> \ struct GetTypeInfo { \ - static const Variant::Type VARIANT_TYPE = Variant::INT; \ - static const GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; \ + static constexpr Variant::Type VARIANT_TYPE = Variant::INT; \ + static constexpr GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; \ static inline PropertyInfo get_class_info() { \ return make_property_info(Variant::Type::INT, "", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_CLASS_IS_BITFIELD, \ enum_qualified_name_to_class_info_name(#m_enum)); \ @@ -273,8 +283,8 @@ public: }; \ template <> \ struct GetTypeInfo> { \ - static const Variant::Type VARIANT_TYPE = Variant::INT; \ - static const GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; \ + static constexpr Variant::Type VARIANT_TYPE = Variant::INT; \ + static constexpr GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; \ static inline PropertyInfo get_class_info() { \ return make_property_info(Variant::Type::INT, "", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_CLASS_IS_BITFIELD, \ enum_qualified_name_to_class_info_name(#m_enum)); \ @@ -295,7 +305,7 @@ inline StringName _gde_constant_get_bitfield_name(T param, StringName p_constant return GetTypeInfo>::get_class_info().class_name; } -template +template struct PtrToArg> { _FORCE_INLINE_ static TypedArray convert(const void *p_ptr) { return TypedArray(*reinterpret_cast(p_ptr)); @@ -306,7 +316,7 @@ struct PtrToArg> { } }; -template +template struct PtrToArg &> { typedef Array EncodeT; _FORCE_INLINE_ static TypedArray diff --git a/include/godot_cpp/godot.hpp b/include/godot_cpp/godot.hpp index 5a629302..61dbb960 100644 --- a/include/godot_cpp/godot.hpp +++ b/include/godot_cpp/godot.hpp @@ -108,7 +108,9 @@ extern "C" GDExtensionInterfaceStringNewWithUtf32Chars gdextension_interface_str extern "C" GDExtensionInterfaceStringNewWithWideChars gdextension_interface_string_new_with_wide_chars; extern "C" GDExtensionInterfaceStringNewWithLatin1CharsAndLen gdextension_interface_string_new_with_latin1_chars_and_len; extern "C" GDExtensionInterfaceStringNewWithUtf8CharsAndLen gdextension_interface_string_new_with_utf8_chars_and_len; +extern "C" GDExtensionInterfaceStringNewWithUtf8CharsAndLen2 gdextension_interface_string_new_with_utf8_chars_and_len2; extern "C" GDExtensionInterfaceStringNewWithUtf16CharsAndLen gdextension_interface_string_new_with_utf16_chars_and_len; +extern "C" GDExtensionInterfaceStringNewWithUtf16CharsAndLen2 gdextension_interface_string_new_with_utf16_chars_and_len2; extern "C" GDExtensionInterfaceStringNewWithUtf32CharsAndLen gdextension_interface_string_new_with_utf32_chars_and_len; extern "C" GDExtensionInterfaceStringNewWithWideCharsAndLen gdextension_interface_string_new_with_wide_chars_and_len; extern "C" GDExtensionInterfaceStringToLatin1Chars gdextension_interface_string_to_latin1_chars; @@ -148,6 +150,8 @@ extern "C" GDExtensionInterfacePackedVector2ArrayOperatorIndex gdextension_inter extern "C" GDExtensionInterfacePackedVector2ArrayOperatorIndexConst gdextension_interface_packed_vector2_array_operator_index_const; extern "C" GDExtensionInterfacePackedVector3ArrayOperatorIndex gdextension_interface_packed_vector3_array_operator_index; extern "C" GDExtensionInterfacePackedVector3ArrayOperatorIndexConst gdextension_interface_packed_vector3_array_operator_index_const; +extern "C" GDExtensionInterfacePackedVector4ArrayOperatorIndex gdextension_interface_packed_vector4_array_operator_index; +extern "C" GDExtensionInterfacePackedVector4ArrayOperatorIndexConst gdextension_interface_packed_vector4_array_operator_index_const; extern "C" GDExtensionInterfaceArrayOperatorIndex gdextension_interface_array_operator_index; extern "C" GDExtensionInterfaceArrayOperatorIndexConst gdextension_interface_array_operator_index_const; extern "C" GDExtensionInterfaceArrayRef gdextension_interface_array_ref; @@ -160,6 +164,7 @@ extern "C" GDExtensionInterfaceObjectDestroy gdextension_interface_object_destro extern "C" GDExtensionInterfaceGlobalGetSingleton gdextension_interface_global_get_singleton; extern "C" GDExtensionInterfaceObjectGetInstanceBinding gdextension_interface_object_get_instance_binding; extern "C" GDExtensionInterfaceObjectSetInstanceBinding gdextension_interface_object_set_instance_binding; +extern "C" GDExtensionInterfaceObjectFreeInstanceBinding gdextension_interface_object_free_instance_binding; extern "C" GDExtensionInterfaceObjectSetInstance gdextension_interface_object_set_instance; extern "C" GDExtensionInterfaceObjectGetClassName gdextension_interface_object_get_class_name; extern "C" GDExtensionInterfaceObjectCastTo gdextension_interface_object_cast_to; @@ -190,6 +195,15 @@ extern "C" GDExtensionInterfaceClassdbUnregisterExtensionClass gdextension_inter extern "C" GDExtensionInterfaceGetLibraryPath gdextension_interface_get_library_path; extern "C" GDExtensionInterfaceEditorAddPlugin gdextension_interface_editor_add_plugin; extern "C" GDExtensionInterfaceEditorRemovePlugin gdextension_interface_editor_remove_plugin; +extern "C" GDExtensionsInterfaceEditorHelpLoadXmlFromUtf8Chars gdextension_interface_editor_help_load_xml_from_utf8_chars; +extern "C" GDExtensionsInterfaceEditorHelpLoadXmlFromUtf8CharsAndLen gdextension_interface_editor_help_load_xml_from_utf8_chars_and_len; +extern "C" GDExtensionInterfaceImagePtrw gdextension_interface_image_ptrw; +extern "C" GDExtensionInterfaceImagePtr gdextension_interface_image_ptr; + +class DocDataRegistration { +public: + DocDataRegistration(const char *p_hash, int p_uncompressed_size, int p_compressed_size, const unsigned char *p_data); +}; } // namespace internal diff --git a/include/godot_cpp/templates/cowdata.hpp b/include/godot_cpp/templates/cowdata.hpp index f2959d19..dcb74ecc 100644 --- a/include/godot_cpp/templates/cowdata.hpp +++ b/include/godot_cpp/templates/cowdata.hpp @@ -43,13 +43,13 @@ namespace godot { -template +template class Vector; -template +template class VMap; -template +template class CharStringT; static_assert(std::is_trivially_destructible_v>); @@ -60,15 +60,15 @@ static_assert(std::is_trivially_destructible_v>); #pragma GCC diagnostic ignored "-Wplacement-new" #endif -template +template class CowData { - template + template friend class Vector; - template + template friend class VMap; - template + template friend class CharStringT; public: @@ -248,7 +248,7 @@ public: _FORCE_INLINE_ CowData(CowData &p_from) { _ref(p_from); }; }; -template +template void CowData::_unref(void *p_data) { if (!p_data) { return; @@ -275,7 +275,7 @@ void CowData::_unref(void *p_data) { Memory::free_static(((uint8_t *)p_data) - DATA_OFFSET, false); } -template +template typename CowData::USize CowData::_copy_on_write() { if (!_ptr) { return 0; @@ -315,7 +315,7 @@ typename CowData::USize CowData::_copy_on_write() { return rc; } -template +template template Error CowData::resize(Size p_size) { ERR_FAIL_COND_V(p_size < 0, ERR_INVALID_PARAMETER); @@ -407,7 +407,7 @@ Error CowData::resize(Size p_size) { return OK; } -template +template typename CowData::Size CowData::find(const T &p_val, Size p_from) const { Size ret = -1; @@ -425,7 +425,7 @@ typename CowData::Size CowData::find(const T &p_val, Size p_from) const { return ret; } -template +template typename CowData::Size CowData::rfind(const T &p_val, Size p_from) const { const Size s = size(); @@ -444,7 +444,7 @@ typename CowData::Size CowData::rfind(const T &p_val, Size p_from) const { return -1; } -template +template typename CowData::Size CowData::count(const T &p_val) const { Size amount = 0; for (Size i = 0; i < size(); i++) { @@ -455,12 +455,12 @@ typename CowData::Size CowData::count(const T &p_val) const { return amount; } -template +template void CowData::_ref(const CowData *p_from) { _ref(*p_from); } -template +template void CowData::_ref(const CowData &p_from) { if (_ptr == p_from._ptr) { return; // self assign, do nothing. @@ -478,7 +478,7 @@ void CowData::_ref(const CowData &p_from) { } } -template +template CowData::~CowData() { _unref(_ptr); } diff --git a/include/godot_cpp/templates/hash_map.hpp b/include/godot_cpp/templates/hash_map.hpp index 77c7b7a9..59cd8e0b 100644 --- a/include/godot_cpp/templates/hash_map.hpp +++ b/include/godot_cpp/templates/hash_map.hpp @@ -52,7 +52,7 @@ namespace godot { * The assignment operator copy the pairs from one map to the other. */ -template +template struct HashMapElement { HashMapElement *next = nullptr; HashMapElement *prev = nullptr; @@ -62,10 +62,10 @@ struct HashMapElement { data(p_key, p_value) {} }; -template , - class Allocator = DefaultTypedAllocator>> +template , + typename Allocator = DefaultTypedAllocator>> class HashMap { public: const uint32_t MIN_CAPACITY_INDEX = 2; // Use a prime. diff --git a/include/godot_cpp/templates/hash_set.hpp b/include/godot_cpp/templates/hash_set.hpp index 884ae4db..1845a1bb 100644 --- a/include/godot_cpp/templates/hash_set.hpp +++ b/include/godot_cpp/templates/hash_set.hpp @@ -48,9 +48,9 @@ namespace godot { * */ -template > +template > class HashSet { public: static constexpr uint32_t MIN_CAPACITY_INDEX = 2; // Use a prime. diff --git a/include/godot_cpp/templates/hashfuncs.hpp b/include/godot_cpp/templates/hashfuncs.hpp index d6f34002..40b10a9e 100644 --- a/include/godot_cpp/templates/hashfuncs.hpp +++ b/include/godot_cpp/templates/hashfuncs.hpp @@ -253,7 +253,7 @@ static _FORCE_INLINE_ uint32_t hash_djb2_one_float(double p_in, uint32_t p_prev return ((p_prev << 5) + p_prev) + hash_one_uint64(u.i); } -template +template static _FORCE_INLINE_ uint32_t hash_make_uint32_t(T p_in) { union { T t; @@ -286,7 +286,7 @@ static _FORCE_INLINE_ uint64_t hash_djb2_one_64(uint64_t p_in, uint64_t p_prev = return ((p_prev << 5) + p_prev) ^ p_in; } -template +template static _FORCE_INLINE_ uint64_t hash_make_uint64_t(T p_in) { union { T t; @@ -298,15 +298,15 @@ static _FORCE_INLINE_ uint64_t hash_make_uint64_t(T p_in) { return _u._u64; } -template +template class Ref; struct HashMapHasherDefault { // Generic hash function for any type. - template + template static _FORCE_INLINE_ uint32_t hash(const T *p_pointer) { return hash_one_uint64((uint64_t)p_pointer); } - template + template static _FORCE_INLINE_ uint32_t hash(const Ref &p_ref) { return hash_one_uint64((uint64_t)p_ref.operator->()); } static _FORCE_INLINE_ uint32_t hash(const String &p_string) { return p_string.hash(); } diff --git a/include/godot_cpp/templates/list.hpp b/include/godot_cpp/templates/list.hpp index 2c8a7c87..fa596056 100644 --- a/include/godot_cpp/templates/list.hpp +++ b/include/godot_cpp/templates/list.hpp @@ -45,7 +45,7 @@ namespace godot { -template +template class List { struct _Data; @@ -139,31 +139,6 @@ public: typedef T ValueType; - struct Iterator { - _FORCE_INLINE_ T &operator*() const { - return E->get(); - } - _FORCE_INLINE_ T *operator->() const { return &E->get(); } - _FORCE_INLINE_ Iterator &operator++() { - E = E->next(); - return *this; - } - _FORCE_INLINE_ Iterator &operator--() { - E = E->prev(); - return *this; - } - - _FORCE_INLINE_ bool operator==(const Iterator &b) const { return E == b.E; } - _FORCE_INLINE_ bool operator!=(const Iterator &b) const { return E != b.E; } - - Iterator(Element *p_E) { E = p_E; } - Iterator() {} - Iterator(const Iterator &p_it) { E = p_it.E; } - - private: - Element *E = nullptr; - }; - struct ConstIterator { _FORCE_INLINE_ const T &operator*() const { return E->get(); @@ -189,6 +164,35 @@ public: const Element *E = nullptr; }; + struct Iterator { + _FORCE_INLINE_ T &operator*() const { + return E->get(); + } + _FORCE_INLINE_ T *operator->() const { return &E->get(); } + _FORCE_INLINE_ Iterator &operator++() { + E = E->next(); + return *this; + } + _FORCE_INLINE_ Iterator &operator--() { + E = E->prev(); + return *this; + } + + _FORCE_INLINE_ bool operator==(const Iterator &b) const { return E == b.E; } + _FORCE_INLINE_ bool operator!=(const Iterator &b) const { return E != b.E; } + + Iterator(Element *p_E) { E = p_E; } + Iterator() {} + Iterator(const Iterator &p_it) { E = p_it.E; } + + operator ConstIterator() const { + return ConstIterator(E); + } + + private: + Element *E = nullptr; + }; + _FORCE_INLINE_ Iterator begin() { return Iterator(front()); } @@ -410,7 +414,7 @@ public: /** * find an element in the list, */ - template + template Element *find(const T_v &p_val) { Element *it = front(); while (it) { @@ -519,7 +523,14 @@ public: } } - T &operator[](int p_index) { + // Index operator, kept for compatibility. + _FORCE_INLINE_ T &operator[](int p_index) { + return get(p_index); + } + + // Random access to elements, use with care, + // do not use for iteration. + T &get(int p_index) { CRASH_BAD_INDEX(p_index, size()); Element *I = front(); @@ -532,7 +543,14 @@ public: return I->get(); } - const T &operator[](int p_index) const { + // Index operator, kept for compatibility. + _FORCE_INLINE_ const T &operator[](int p_index) const { + return get(p_index); + } + + // Random access to elements, use with care, + // do not use for iteration. + const T &get(int p_index) const { CRASH_BAD_INDEX(p_index, size()); const Element *I = front(); @@ -646,7 +664,7 @@ public: sort_custom>(); } - template + template void sort_custom_inplace() { if (size() < 2) { return; @@ -693,7 +711,7 @@ public: _data->last = to; } - template + template struct AuxiliaryComparator { C compare; _FORCE_INLINE_ bool operator()(const Element *a, const Element *b) const { @@ -701,7 +719,7 @@ public: } }; - template + template void sort_custom() { // this version uses auxiliary memory for speed. // if you don't want to use auxiliary memory, use the in_place version diff --git a/include/godot_cpp/templates/local_vector.hpp b/include/godot_cpp/templates/local_vector.hpp index 8ce4e655..10af2a90 100644 --- a/include/godot_cpp/templates/local_vector.hpp +++ b/include/godot_cpp/templates/local_vector.hpp @@ -43,7 +43,7 @@ namespace godot { // If tight, it grows strictly as much as needed. // Otherwise, it grows exponentially (the default and what you want in most cases). -template +template class LocalVector { private: U count = 0; @@ -257,7 +257,11 @@ public: return -1; } - template + bool has(const T &p_val) const { + return find(p_val) != -1; + } + + template void sort_custom() { U len = count; if (len == 0) { @@ -331,7 +335,7 @@ public: } }; -template +template using TightLocalVector = LocalVector; } // namespace godot diff --git a/include/godot_cpp/templates/pair.hpp b/include/godot_cpp/templates/pair.hpp index ed35302b..f8754130 100644 --- a/include/godot_cpp/templates/pair.hpp +++ b/include/godot_cpp/templates/pair.hpp @@ -33,7 +33,7 @@ namespace godot { -template +template struct Pair { F first; S second; @@ -49,17 +49,17 @@ struct Pair { } }; -template +template bool operator==(const Pair &pair, const Pair &other) { return (pair.first == other.first) && (pair.second == other.second); } -template +template bool operator!=(const Pair &pair, const Pair &other) { return (pair.first != other.first) || (pair.second != other.second); } -template +template struct PairSort { bool operator()(const Pair &A, const Pair &B) const { if (A.first != B.first) { @@ -69,7 +69,7 @@ struct PairSort { } }; -template +template struct KeyValue { const K key; V value; @@ -85,17 +85,17 @@ struct KeyValue { } }; -template +template bool operator==(const KeyValue &pair, const KeyValue &other) { return (pair.key == other.key) && (pair.value == other.value); } -template +template bool operator!=(const KeyValue &pair, const KeyValue &other) { return (pair.key != other.key) || (pair.value != other.value); } -template +template struct KeyValueSort { bool operator()(const KeyValue &A, const KeyValue &B) const { return A.key < B.key; diff --git a/include/godot_cpp/templates/rb_map.hpp b/include/godot_cpp/templates/rb_map.hpp index cce1e91b..6ab71fd7 100644 --- a/include/godot_cpp/templates/rb_map.hpp +++ b/include/godot_cpp/templates/rb_map.hpp @@ -40,7 +40,7 @@ namespace godot { // based on the very nice implementation of rb-trees by: // https://web.archive.org/web/20120507164830/https://web.mit.edu/~emin/www/source_code/red_black_tree/index.html -template , class A = DefaultAllocator> +template , typename A = DefaultAllocator> class RBMap { enum Color { RED, diff --git a/include/godot_cpp/templates/rb_set.hpp b/include/godot_cpp/templates/rb_set.hpp index c803f818..69aa8d7f 100644 --- a/include/godot_cpp/templates/rb_set.hpp +++ b/include/godot_cpp/templates/rb_set.hpp @@ -38,7 +38,7 @@ namespace godot { -template , class A = DefaultAllocator> +template , typename A = DefaultAllocator> class RBSet { enum Color { RED, diff --git a/include/godot_cpp/templates/rid_owner.hpp b/include/godot_cpp/templates/rid_owner.hpp index 005fc876..1dd4a393 100644 --- a/include/godot_cpp/templates/rid_owner.hpp +++ b/include/godot_cpp/templates/rid_owner.hpp @@ -42,7 +42,7 @@ namespace godot { -template +template class RID_Alloc { T **chunks = nullptr; uint32_t **free_list_chunks = nullptr; @@ -347,7 +347,7 @@ public: } }; -template +template class RID_PtrOwner { RID_Alloc alloc; @@ -406,7 +406,7 @@ public: alloc(p_target_chunk_byte_size) {} }; -template +template class RID_Owner { RID_Alloc alloc; diff --git a/include/godot_cpp/templates/safe_refcount.hpp b/include/godot_cpp/templates/safe_refcount.hpp index 519bbf74..12e6840a 100644 --- a/include/godot_cpp/templates/safe_refcount.hpp +++ b/include/godot_cpp/templates/safe_refcount.hpp @@ -57,7 +57,7 @@ namespace godot { static_assert(sizeof(SafeFlag) == sizeof(bool)); \ static_assert(alignof(SafeFlag) == alignof(bool)); -template +template class SafeNumeric { std::atomic value; @@ -195,7 +195,7 @@ public: #else -template +template class SafeNumeric { protected: T value; diff --git a/include/godot_cpp/templates/search_array.hpp b/include/godot_cpp/templates/search_array.hpp index ce2713bd..11a9db52 100644 --- a/include/godot_cpp/templates/search_array.hpp +++ b/include/godot_cpp/templates/search_array.hpp @@ -35,7 +35,7 @@ namespace godot { -template > +template > class SearchArray { public: Comparator compare; diff --git a/include/godot_cpp/templates/self_list.hpp b/include/godot_cpp/templates/self_list.hpp index 3bb13a35..f7a65f68 100644 --- a/include/godot_cpp/templates/self_list.hpp +++ b/include/godot_cpp/templates/self_list.hpp @@ -36,7 +36,7 @@ namespace godot { -template +template class SelfList { public: class List { diff --git a/include/godot_cpp/templates/sort_array.hpp b/include/godot_cpp/templates/sort_array.hpp index 5dda5782..7ce5c784 100644 --- a/include/godot_cpp/templates/sort_array.hpp +++ b/include/godot_cpp/templates/sort_array.hpp @@ -41,7 +41,7 @@ namespace godot { break; \ } -template +template struct _DefaultComparator { _FORCE_INLINE_ bool operator()(const T &a, const T &b) const { return (a < b); } }; @@ -52,7 +52,7 @@ struct _DefaultComparator { #define SORT_ARRAY_VALIDATE_ENABLED false #endif -template , bool Validate = SORT_ARRAY_VALIDATE_ENABLED> +template , bool Validate = SORT_ARRAY_VALIDATE_ENABLED> class SortArray { enum { INTROSORT_THRESHOLD = 16 diff --git a/include/godot_cpp/templates/thread_work_pool.hpp b/include/godot_cpp/templates/thread_work_pool.hpp index a3efd42e..cb20c6e9 100644 --- a/include/godot_cpp/templates/thread_work_pool.hpp +++ b/include/godot_cpp/templates/thread_work_pool.hpp @@ -52,7 +52,7 @@ class ThreadWorkPool { virtual ~BaseWork() = default; }; - template + template struct Work : public BaseWork { C *instance; M method; @@ -94,7 +94,7 @@ class ThreadWorkPool { } public: - template + template void begin_work(uint32_t p_elements, C *p_instance, M p_method, U p_userdata) { ERR_FAIL_NULL(threads); // Never initialized. ERR_FAIL_COND(current_work != nullptr); @@ -145,7 +145,7 @@ public: current_work = nullptr; } - template + template void do_work(uint32_t p_elements, C *p_instance, M p_method, U p_userdata) { switch (p_elements) { case 0: diff --git a/include/godot_cpp/templates/vector.hpp b/include/godot_cpp/templates/vector.hpp index 05b7184c..aaa84f33 100644 --- a/include/godot_cpp/templates/vector.hpp +++ b/include/godot_cpp/templates/vector.hpp @@ -47,7 +47,7 @@ namespace godot { -template +template class VectorWriteProxy { public: _FORCE_INLINE_ T &operator[](typename CowData::Size p_index) { @@ -57,7 +57,7 @@ public: } }; -template +template class Vector { friend class VectorWriteProxy; @@ -110,7 +110,7 @@ public: sort_custom<_DefaultComparator>(); } - template + template void sort_custom(Args &&...args) { Size len = _cowdata.size(); if (len == 0) { @@ -126,7 +126,7 @@ public: return bsearch_custom<_DefaultComparator>(p_value, p_before); } - template + template Size bsearch_custom(const Value &p_value, bool p_before, Args &&...args) { SearchArray search{ args... }; return search.bisect(ptrw(), size(), p_value, p_before); @@ -293,7 +293,7 @@ public: _FORCE_INLINE_ ~Vector() {} }; -template +template void Vector::reverse() { for (Size i = 0; i < size() / 2; i++) { T *p = ptrw(); @@ -301,7 +301,7 @@ void Vector::reverse() { } } -template +template void Vector::append_array(Vector p_other) { const Size ds = p_other.size(); if (ds == 0) { @@ -314,7 +314,7 @@ void Vector::append_array(Vector p_other) { } } -template +template bool Vector::push_back(T p_elem) { Error err = resize(size() + 1); ERR_FAIL_COND_V(err, true); @@ -323,7 +323,7 @@ bool Vector::push_back(T p_elem) { return false; } -template +template void Vector::fill(T p_elem) { T *p = ptrw(); for (Size i = 0; i < size(); i++) { diff --git a/include/godot_cpp/templates/vmap.hpp b/include/godot_cpp/templates/vmap.hpp index 881ac25e..926ccd39 100644 --- a/include/godot_cpp/templates/vmap.hpp +++ b/include/godot_cpp/templates/vmap.hpp @@ -35,7 +35,7 @@ namespace godot { -template +template class VMap { public: struct Pair { diff --git a/include/godot_cpp/templates/vset.hpp b/include/godot_cpp/templates/vset.hpp index 29f0cefe..ce21ba83 100644 --- a/include/godot_cpp/templates/vset.hpp +++ b/include/godot_cpp/templates/vset.hpp @@ -35,7 +35,7 @@ namespace godot { -template +template class VSet { Vector _data; diff --git a/include/godot_cpp/variant/aabb.hpp b/include/godot_cpp/variant/aabb.hpp index 7706d511..b827112a 100644 --- a/include/godot_cpp/variant/aabb.hpp +++ b/include/godot_cpp/variant/aabb.hpp @@ -65,6 +65,7 @@ struct _NO_DISCARD_ AABB { bool operator!=(const AABB &p_rval) const; bool is_equal_approx(const AABB &p_aabb) const; + bool is_finite() const; _FORCE_INLINE_ bool intersects(const AABB &p_aabb) const; /// Both AABBs overlap _FORCE_INLINE_ bool intersects_inclusive(const AABB &p_aabb) const; /// Both AABBs (or their faces) overlap _FORCE_INLINE_ bool encloses(const AABB &p_aabb) const; /// p_aabb is completely inside this @@ -102,7 +103,7 @@ struct _NO_DISCARD_ AABB { _FORCE_INLINE_ void expand_to(const Vector3 &p_vector); /** expand to contain a point if necessary */ _FORCE_INLINE_ AABB abs() const { - return AABB(Vector3(position.x + MIN(size.x, (real_t)0), position.y + MIN(size.y, (real_t)0), position.z + MIN(size.z, (real_t)0)), size.abs()); + return AABB(position + size.minf(0), size.abs()); } Variant intersects_segment_bind(const Vector3 &p_from, const Vector3 &p_to) const; diff --git a/include/godot_cpp/variant/basis.hpp b/include/godot_cpp/variant/basis.hpp index a365b024..e740a64a 100644 --- a/include/godot_cpp/variant/basis.hpp +++ b/include/godot_cpp/variant/basis.hpp @@ -128,6 +128,7 @@ struct _NO_DISCARD_ Basis { } bool is_equal_approx(const Basis &p_basis) const; + bool is_finite() const; bool operator==(const Basis &p_matrix) const; bool operator!=(const Basis &p_matrix) const; diff --git a/include/godot_cpp/variant/callable_method_pointer.hpp b/include/godot_cpp/variant/callable_method_pointer.hpp index 0c0ff340..f3d688b4 100644 --- a/include/godot_cpp/variant/callable_method_pointer.hpp +++ b/include/godot_cpp/variant/callable_method_pointer.hpp @@ -60,7 +60,7 @@ Callable create_callable_from_ccmp(CallableCustomMethodPointerBase *p_callable_m // No return value. // -template +template class CallableCustomMethodPointer : public CallableCustomMethodPointerBase { struct Data { T *instance; @@ -90,7 +90,7 @@ public: } }; -template +template Callable create_custom_callable_function_pointer(T *p_instance, void (T::*p_method)(P...)) { typedef CallableCustomMethodPointer CCMP; CCMP *ccmp = memnew(CCMP(p_instance, p_method)); @@ -101,7 +101,7 @@ Callable create_custom_callable_function_pointer(T *p_instance, void (T::*p_meth // With return value. // -template +template class CallableCustomMethodPointerRet : public CallableCustomMethodPointerBase { struct Data { T *instance; @@ -132,7 +132,7 @@ public: } }; -template +template Callable create_custom_callable_function_pointer(T *p_instance, R (T::*p_method)(P...)) { typedef CallableCustomMethodPointerRet CCMP; // Messes with memnew otherwise. CCMP *ccmp = memnew(CCMP(p_instance, p_method)); @@ -143,7 +143,7 @@ Callable create_custom_callable_function_pointer(T *p_instance, R (T::*p_method) // Const with return value. // -template +template class CallableCustomMethodPointerRetC : public CallableCustomMethodPointerBase { struct Data { T *instance; @@ -174,7 +174,7 @@ public: } }; -template +template Callable create_custom_callable_function_pointer(const T *p_instance, R (T::*p_method)(P...) const) { typedef CallableCustomMethodPointerRetC CCMP; // Messes with memnew otherwise. CCMP *ccmp = memnew(CCMP(p_instance, p_method)); @@ -185,7 +185,7 @@ Callable create_custom_callable_function_pointer(const T *p_instance, R (T::*p_m // Static method with no return value. // -template +template class CallableCustomStaticMethodPointer : public CallableCustomMethodPointerBase { struct Data { void (*method)(P...); @@ -214,7 +214,7 @@ public: } }; -template +template Callable create_custom_callable_static_function_pointer(void (*p_method)(P...)) { typedef CallableCustomStaticMethodPointer CCMP; CCMP *ccmp = memnew(CCMP(p_method)); @@ -225,7 +225,7 @@ Callable create_custom_callable_static_function_pointer(void (*p_method)(P...)) // Static method with return value. // -template +template class CallableCustomStaticMethodPointerRet : public CallableCustomMethodPointerBase { struct Data { R(*method) @@ -254,7 +254,7 @@ public: } }; -template +template Callable create_custom_callable_static_function_pointer(R (*p_method)(P...)) { typedef CallableCustomStaticMethodPointerRet CCMP; CCMP *ccmp = memnew(CCMP(p_method)); diff --git a/include/godot_cpp/variant/char_string.hpp b/include/godot_cpp/variant/char_string.hpp index 993d0467..991c0392 100644 --- a/include/godot_cpp/variant/char_string.hpp +++ b/include/godot_cpp/variant/char_string.hpp @@ -38,12 +38,12 @@ namespace godot { -template +template class CharStringT; -template +template class CharProxy { - template + template friend class CharStringT; const int64_t _index; @@ -80,7 +80,7 @@ public: } }; -template +template class CharStringT { friend class String; diff --git a/include/godot_cpp/variant/plane.hpp b/include/godot_cpp/variant/plane.hpp index 727f4f54..829f801f 100644 --- a/include/godot_cpp/variant/plane.hpp +++ b/include/godot_cpp/variant/plane.hpp @@ -77,6 +77,7 @@ struct _NO_DISCARD_ Plane { Plane operator-() const { return Plane(-normal, -d); } bool is_equal_approx(const Plane &p_plane) const; bool is_equal_approx_any_side(const Plane &p_plane) const; + bool is_finite() const; _FORCE_INLINE_ bool operator==(const Plane &p_plane) const; _FORCE_INLINE_ bool operator!=(const Plane &p_plane) const; diff --git a/include/godot_cpp/variant/quaternion.hpp b/include/godot_cpp/variant/quaternion.hpp index 3816b666..5de91b20 100644 --- a/include/godot_cpp/variant/quaternion.hpp +++ b/include/godot_cpp/variant/quaternion.hpp @@ -55,6 +55,7 @@ struct _NO_DISCARD_ Quaternion { } _FORCE_INLINE_ real_t length_squared() const; bool is_equal_approx(const Quaternion &p_quaternion) const; + bool is_finite() const; real_t length() const; void normalize(); Quaternion normalized() const; diff --git a/include/godot_cpp/variant/rect2.hpp b/include/godot_cpp/variant/rect2.hpp index cfd24b2f..e643035a 100644 --- a/include/godot_cpp/variant/rect2.hpp +++ b/include/godot_cpp/variant/rect2.hpp @@ -154,14 +154,12 @@ struct _NO_DISCARD_ Rect2 { return Rect2(); } - new_rect.position.x = Math::max(p_rect.position.x, position.x); - new_rect.position.y = Math::max(p_rect.position.y, position.y); + new_rect.position = p_rect.position.max(position); Point2 p_rect_end = p_rect.position + p_rect.size; Point2 end = position + size; - new_rect.size.x = Math::min(p_rect_end.x, end.x) - new_rect.position.x; - new_rect.size.y = Math::min(p_rect_end.y, end.y) - new_rect.position.y; + new_rect.size = p_rect_end.min(end) - new_rect.position; return new_rect; } @@ -174,11 +172,9 @@ struct _NO_DISCARD_ Rect2 { #endif Rect2 new_rect; - new_rect.position.x = Math::min(p_rect.position.x, position.x); - new_rect.position.y = Math::min(p_rect.position.y, position.y); + new_rect.position = p_rect.position.min(position); - new_rect.size.x = Math::max(p_rect.position.x + p_rect.size.x, position.x + size.x); - new_rect.size.y = Math::max(p_rect.position.y + p_rect.size.y, position.y + size.y); + new_rect.size = (p_rect.position + p_rect.size).max(position + size); new_rect.size = new_rect.size - new_rect.position; // Make relative again. @@ -209,6 +205,7 @@ struct _NO_DISCARD_ Rect2 { } bool is_equal_approx(const Rect2 &p_rect) const; + bool is_finite() const; bool operator==(const Rect2 &p_rect) const { return position == p_rect.position && size == p_rect.size; } bool operator!=(const Rect2 &p_rect) const { return position != p_rect.position || size != p_rect.size; } @@ -283,7 +280,7 @@ struct _NO_DISCARD_ Rect2 { } _FORCE_INLINE_ Rect2 abs() const { - return Rect2(Point2(position.x + Math::min(size.x, (real_t)0), position.y + Math::min(size.y, (real_t)0)), size.abs()); + return Rect2(position + size.minf(0), size.abs()); } Vector2 get_support(const Vector2 &p_normal) const { diff --git a/include/godot_cpp/variant/rect2i.hpp b/include/godot_cpp/variant/rect2i.hpp index c2a15ac3..eff49583 100644 --- a/include/godot_cpp/variant/rect2i.hpp +++ b/include/godot_cpp/variant/rect2i.hpp @@ -97,14 +97,12 @@ struct _NO_DISCARD_ Rect2i { return Rect2i(); } - new_rect.position.x = Math::max(p_rect.position.x, position.x); - new_rect.position.y = Math::max(p_rect.position.y, position.y); + new_rect.position = p_rect.position.max(position); Point2i p_rect_end = p_rect.position + p_rect.size; Point2i end = position + size; - new_rect.size.x = Math::min(p_rect_end.x, end.x) - new_rect.position.x; - new_rect.size.y = Math::min(p_rect_end.y, end.y) - new_rect.position.y; + new_rect.size = p_rect_end.min(end) - new_rect.position; return new_rect; } @@ -117,11 +115,9 @@ struct _NO_DISCARD_ Rect2i { #endif Rect2i new_rect; - new_rect.position.x = Math::min(p_rect.position.x, position.x); - new_rect.position.y = Math::min(p_rect.position.y, position.y); + new_rect.position = p_rect.position.min(position); - new_rect.size.x = Math::max(p_rect.position.x + p_rect.size.x, position.x + size.x); - new_rect.size.y = Math::max(p_rect.position.y + p_rect.size.y, position.y + size.y); + new_rect.size = (p_rect.position + p_rect.size).max(position + size); new_rect.size = new_rect.size - new_rect.position; // Make relative again. @@ -219,7 +215,7 @@ struct _NO_DISCARD_ Rect2i { } _FORCE_INLINE_ Rect2i abs() const { - return Rect2i(Point2i(position.x + Math::min(size.x, 0), position.y + Math::min(size.y, 0)), size.abs()); + return Rect2i(position + size.mini(0), size.abs()); } _FORCE_INLINE_ void set_end(const Vector2i &p_end) { diff --git a/include/godot_cpp/variant/transform2d.hpp b/include/godot_cpp/variant/transform2d.hpp index 5a483985..d73323f3 100644 --- a/include/godot_cpp/variant/transform2d.hpp +++ b/include/godot_cpp/variant/transform2d.hpp @@ -99,6 +99,7 @@ struct _NO_DISCARD_ Transform2D { void orthonormalize(); Transform2D orthonormalized() const; bool is_equal_approx(const Transform2D &p_transform) const; + bool is_finite() const; Transform2D looking_at(const Vector2 &p_target) const; diff --git a/include/godot_cpp/variant/transform3d.hpp b/include/godot_cpp/variant/transform3d.hpp index 3a54c0b2..6fa5999e 100644 --- a/include/godot_cpp/variant/transform3d.hpp +++ b/include/godot_cpp/variant/transform3d.hpp @@ -78,6 +78,7 @@ struct _NO_DISCARD_ Transform3D { void orthogonalize(); Transform3D orthogonalized() const; bool is_equal_approx(const Transform3D &p_transform) const; + bool is_finite() const; bool operator==(const Transform3D &p_transform) const; bool operator!=(const Transform3D &p_transform) const; diff --git a/include/godot_cpp/variant/typed_array.hpp b/include/godot_cpp/variant/typed_array.hpp index 2261509a..47b74107 100644 --- a/include/godot_cpp/variant/typed_array.hpp +++ b/include/godot_cpp/variant/typed_array.hpp @@ -36,7 +36,7 @@ namespace godot { -template +template class TypedArray : public Array { public: _FORCE_INLINE_ void operator=(const Array &p_array) { diff --git a/include/godot_cpp/variant/variant.hpp b/include/godot_cpp/variant/variant.hpp index 7ec04d29..5b09a15e 100644 --- a/include/godot_cpp/variant/variant.hpp +++ b/include/godot_cpp/variant/variant.hpp @@ -269,7 +269,7 @@ public: void callp(const StringName &method, const Variant **args, int argcount, Variant &r_ret, GDExtensionCallError &r_error); - template + template Variant call(const StringName &method, Args... args) { std::array vargs = { args... }; std::array argptrs; @@ -284,7 +284,7 @@ public: static void callp_static(Variant::Type type, const StringName &method, const Variant **args, int argcount, Variant &r_ret, GDExtensionCallError &r_error); - template + template static Variant call_static(Variant::Type type, const StringName &method, Args... args) { std::array vargs = { args... }; std::array argptrs; diff --git a/include/godot_cpp/variant/vector2.hpp b/include/godot_cpp/variant/vector2.hpp index 13c0da6f..8f08985f 100644 --- a/include/godot_cpp/variant/vector2.hpp +++ b/include/godot_cpp/variant/vector2.hpp @@ -91,10 +91,18 @@ struct _NO_DISCARD_ Vector2 { return Vector2(MIN(x, p_vector2.x), MIN(y, p_vector2.y)); } + Vector2 minf(real_t p_scalar) const { + return Vector2(MIN(x, p_scalar), MIN(y, p_scalar)); + } + Vector2 max(const Vector2 &p_vector2) const { return Vector2(MAX(x, p_vector2.x), MAX(y, p_vector2.y)); } + Vector2 maxf(real_t p_scalar) const { + return Vector2(MAX(x, p_scalar), MAX(y, p_scalar)); + } + real_t distance_to(const Vector2 &p_vector2) const; real_t distance_squared_to(const Vector2 &p_vector2) const; real_t angle_to(const Vector2 &p_vector2) const; @@ -123,6 +131,7 @@ struct _NO_DISCARD_ Vector2 { bool is_equal_approx(const Vector2 &p_v) const; bool is_zero_approx() const; + bool is_finite() const; Vector2 operator+(const Vector2 &p_v) const; void operator+=(const Vector2 &p_v); @@ -168,7 +177,9 @@ struct _NO_DISCARD_ Vector2 { Vector2 ceil() const; Vector2 round() const; Vector2 snapped(const Vector2 &p_by) const; + Vector2 snappedf(real_t p_by) const; Vector2 clamp(const Vector2 &p_min, const Vector2 &p_max) const; + Vector2 clampf(real_t p_min, real_t p_max) const; real_t aspect() const { return width / height; } operator String() const; diff --git a/include/godot_cpp/variant/vector2i.hpp b/include/godot_cpp/variant/vector2i.hpp index afeaeead..0d787c3f 100644 --- a/include/godot_cpp/variant/vector2i.hpp +++ b/include/godot_cpp/variant/vector2i.hpp @@ -83,10 +83,18 @@ struct _NO_DISCARD_ Vector2i { return Vector2i(MIN(x, p_vector2i.x), MIN(y, p_vector2i.y)); } + Vector2i mini(int32_t p_scalar) const { + return Vector2i(MIN(x, p_scalar), MIN(y, p_scalar)); + } + Vector2i max(const Vector2i &p_vector2i) const { return Vector2i(MAX(x, p_vector2i.x), MAX(y, p_vector2i.y)); } + Vector2i maxi(int32_t p_scalar) const { + return Vector2i(MAX(x, p_scalar), MAX(y, p_scalar)); + } + Vector2i operator+(const Vector2i &p_v) const; void operator+=(const Vector2i &p_v); Vector2i operator-(const Vector2i &p_v) const; @@ -123,7 +131,10 @@ struct _NO_DISCARD_ Vector2i { real_t aspect() const { return width / (real_t)height; } Vector2i sign() const { return Vector2i(SIGN(x), SIGN(y)); } Vector2i abs() const { return Vector2i(Math::abs(x), Math::abs(y)); } + Vector2i snapped(const Vector2i &p_step) const; + Vector2i snappedi(int32_t p_step) const; Vector2i clamp(const Vector2i &p_min, const Vector2i &p_max) const; + Vector2i clampi(int32_t p_min, int32_t p_max) const; operator String() const; operator Vector2() const; diff --git a/include/godot_cpp/variant/vector3.hpp b/include/godot_cpp/variant/vector3.hpp index a8d96ed0..f256c389 100644 --- a/include/godot_cpp/variant/vector3.hpp +++ b/include/godot_cpp/variant/vector3.hpp @@ -82,10 +82,18 @@ struct _NO_DISCARD_ Vector3 { return Vector3(MIN(x, p_vector3.x), MIN(y, p_vector3.y), MIN(z, p_vector3.z)); } + Vector3 minf(real_t p_scalar) const { + return Vector3(MIN(x, p_scalar), MIN(y, p_scalar), MIN(z, p_scalar)); + } + Vector3 max(const Vector3 &p_vector3) const { return Vector3(MAX(x, p_vector3.x), MAX(y, p_vector3.y), MAX(z, p_vector3.z)); } + Vector3 maxf(real_t p_scalar) const { + return Vector3(MAX(x, p_scalar), MAX(y, p_scalar), MAX(z, p_scalar)); + } + _FORCE_INLINE_ real_t length() const; _FORCE_INLINE_ real_t length_squared() const; @@ -98,7 +106,9 @@ struct _NO_DISCARD_ Vector3 { _FORCE_INLINE_ void zero(); void snap(const Vector3 p_val); + void snapf(real_t p_val); Vector3 snapped(const Vector3 p_val) const; + Vector3 snappedf(real_t p_val) const; void rotate(const Vector3 &p_axis, const real_t p_angle); Vector3 rotated(const Vector3 &p_axis, const real_t p_angle) const; @@ -128,6 +138,7 @@ struct _NO_DISCARD_ Vector3 { _FORCE_INLINE_ Vector3 ceil() const; _FORCE_INLINE_ Vector3 round() const; Vector3 clamp(const Vector3 &p_min, const Vector3 &p_max) const; + Vector3 clampf(real_t p_min, real_t p_max) const; _FORCE_INLINE_ real_t distance_to(const Vector3 &p_to) const; _FORCE_INLINE_ real_t distance_squared_to(const Vector3 &p_to) const; @@ -146,6 +157,7 @@ struct _NO_DISCARD_ Vector3 { bool is_equal_approx(const Vector3 &p_v) const; bool is_zero_approx() const; + bool is_finite() const; /* Operators */ diff --git a/include/godot_cpp/variant/vector3i.hpp b/include/godot_cpp/variant/vector3i.hpp index ae5148ff..b2cdbbdf 100644 --- a/include/godot_cpp/variant/vector3i.hpp +++ b/include/godot_cpp/variant/vector3i.hpp @@ -75,10 +75,18 @@ struct _NO_DISCARD_ Vector3i { return Vector3i(MIN(x, p_vector3i.x), MIN(y, p_vector3i.y), MIN(z, p_vector3i.z)); } + Vector3i mini(int32_t p_scalar) const { + return Vector3i(MIN(x, p_scalar), MIN(y, p_scalar), MIN(z, p_scalar)); + } + Vector3i max(const Vector3i &p_vector3i) const { return Vector3i(MAX(x, p_vector3i.x), MAX(y, p_vector3i.y), MAX(z, p_vector3i.z)); } + Vector3i maxi(int32_t p_scalar) const { + return Vector3i(MAX(x, p_scalar), MAX(y, p_scalar), MAX(z, p_scalar)); + } + _FORCE_INLINE_ int64_t length_squared() const; _FORCE_INLINE_ double length() const; @@ -89,7 +97,10 @@ struct _NO_DISCARD_ Vector3i { _FORCE_INLINE_ Vector3i abs() const; _FORCE_INLINE_ Vector3i sign() const; + Vector3i snapped(const Vector3i &p_step) const; + Vector3i snappedi(int32_t p_step) const; Vector3i clamp(const Vector3i &p_min, const Vector3i &p_max) const; + Vector3i clampi(int32_t p_min, int32_t p_max) const; /* Operators */ diff --git a/include/godot_cpp/variant/vector4.hpp b/include/godot_cpp/variant/vector4.hpp index 26c57c35..866e522b 100644 --- a/include/godot_cpp/variant/vector4.hpp +++ b/include/godot_cpp/variant/vector4.hpp @@ -74,13 +74,22 @@ struct _NO_DISCARD_ Vector4 { return Vector4(MIN(x, p_vector4.x), MIN(y, p_vector4.y), MIN(z, p_vector4.z), MIN(w, p_vector4.w)); } + Vector4 minf(real_t p_scalar) const { + return Vector4(MIN(x, p_scalar), MIN(y, p_scalar), MIN(z, p_scalar), MIN(w, p_scalar)); + } + Vector4 max(const Vector4 &p_vector4) const { return Vector4(MAX(x, p_vector4.x), MAX(y, p_vector4.y), MAX(z, p_vector4.z), MAX(w, p_vector4.w)); } + Vector4 maxf(real_t p_scalar) const { + return Vector4(MAX(x, p_scalar), MAX(y, p_scalar), MAX(z, p_scalar), MAX(w, p_scalar)); + } + _FORCE_INLINE_ real_t length_squared() const; bool is_equal_approx(const Vector4 &p_vec4) const; bool is_zero_approx() const; + bool is_finite() const; real_t length() const; void normalize(); Vector4 normalized() const; @@ -102,8 +111,11 @@ struct _NO_DISCARD_ Vector4 { Vector4 posmod(const real_t p_mod) const; Vector4 posmodv(const Vector4 &p_modv) const; void snap(const Vector4 &p_step); + void snapf(real_t p_step); Vector4 snapped(const Vector4 &p_step) const; + Vector4 snappedf(real_t p_step) const; Vector4 clamp(const Vector4 &p_min, const Vector4 &p_max) const; + Vector4 clampf(real_t p_min, real_t p_max) const; Vector4 inverse() const; _FORCE_INLINE_ real_t dot(const Vector4 &p_vec4) const; diff --git a/include/godot_cpp/variant/vector4i.hpp b/include/godot_cpp/variant/vector4i.hpp index 36f2855e..8e9510fd 100644 --- a/include/godot_cpp/variant/vector4i.hpp +++ b/include/godot_cpp/variant/vector4i.hpp @@ -77,10 +77,18 @@ struct _NO_DISCARD_ Vector4i { return Vector4i(MIN(x, p_vector4i.x), MIN(y, p_vector4i.y), MIN(z, p_vector4i.z), MIN(w, p_vector4i.w)); } + Vector4i mini(int32_t p_scalar) const { + return Vector4i(MIN(x, p_scalar), MIN(y, p_scalar), MIN(z, p_scalar), MIN(w, p_scalar)); + } + Vector4i max(const Vector4i &p_vector4i) const { return Vector4i(MAX(x, p_vector4i.x), MAX(y, p_vector4i.y), MAX(z, p_vector4i.z), MAX(w, p_vector4i.w)); } + Vector4i maxi(int32_t p_scalar) const { + return Vector4i(MAX(x, p_scalar), MAX(y, p_scalar), MAX(z, p_scalar), MAX(w, p_scalar)); + } + _FORCE_INLINE_ int64_t length_squared() const; _FORCE_INLINE_ double length() const; @@ -91,7 +99,10 @@ struct _NO_DISCARD_ Vector4i { _FORCE_INLINE_ Vector4i abs() const; _FORCE_INLINE_ Vector4i sign() const; + Vector4i snapped(const Vector4i &p_step) const; + Vector4i snappedi(int32_t p_step) const; Vector4i clamp(const Vector4i &p_min, const Vector4i &p_max) const; + Vector4i clampi(int32_t p_min, int32_t p_max) const; /* Operators */ diff --git a/src/classes/low_level.cpp b/src/classes/low_level.cpp index b9d0a072..3b6b1613 100644 --- a/src/classes/low_level.cpp +++ b/src/classes/low_level.cpp @@ -29,6 +29,7 @@ /**************************************************************************/ #include +#include #include #include @@ -55,4 +56,12 @@ WorkerThreadPool::GroupID WorkerThreadPool::add_native_group_task(void (*p_func) return (GroupID)internal::gdextension_interface_worker_thread_pool_add_native_group_task(_owner, p_func, p_userdata, p_elements, p_tasks, p_high_priority, (GDExtensionConstStringPtr)&p_description); } +uint8_t *Image::ptrw() { + return internal::gdextension_interface_image_ptrw(_owner); +} + +const uint8_t *Image::ptr() { + return internal::gdextension_interface_image_ptr(_owner); +} + } // namespace godot diff --git a/src/classes/wrapped.cpp b/src/classes/wrapped.cpp index ad0eefb1..52d44955 100644 --- a/src/classes/wrapped.cpp +++ b/src/classes/wrapped.cpp @@ -39,22 +39,17 @@ #include namespace godot { +thread_local const StringName *Wrapped::_constructing_extension_class_name = nullptr; +thread_local const GDExtensionInstanceBindingCallbacks *Wrapped::_constructing_class_binding_callbacks = nullptr; -const StringName *Wrapped::_get_extension_class_name() const { +const StringName *Wrapped::_get_extension_class_name() { return nullptr; } void Wrapped::_postinitialize() { - const StringName *extension_class = _get_extension_class_name(); - if (extension_class) { - godot::internal::gdextension_interface_object_set_instance(_owner, reinterpret_cast(extension_class), this); - } - godot::internal::gdextension_interface_object_set_instance_binding(_owner, godot::internal::token, this, _get_bindings_callbacks()); - if (extension_class) { - Object *obj = dynamic_cast(this); - if (obj) { - obj->notification(Object::NOTIFICATION_POSTINITIALIZE); - } + // Only send NOTIFICATION_POSTINITIALIZE for extension classes. + if (_is_extension_class()) { + _notificationv(Object::NOTIFICATION_POSTINITIALIZE); } } @@ -79,6 +74,19 @@ Wrapped::Wrapped(const StringName p_godot_class) { } #endif _owner = godot::internal::gdextension_interface_classdb_construct_object(reinterpret_cast(p_godot_class._native_ptr())); + + if (_constructing_extension_class_name) { + godot::internal::gdextension_interface_object_set_instance(_owner, reinterpret_cast(_constructing_extension_class_name), this); + _constructing_extension_class_name = nullptr; + } + + if (likely(_constructing_class_binding_callbacks)) { + godot::internal::gdextension_interface_object_set_instance_binding(_owner, godot::internal::token, this, _constructing_class_binding_callbacks); + _constructing_class_binding_callbacks = nullptr; + } else { + ERR_PRINT("BUG: create a Godot Object without binding callbacks."); + CRASH_NOW_MSG("BUG: create a Godot Object without binding callbacks."); + } } Wrapped::Wrapped(GodotObject *p_godot_object) { diff --git a/src/core/class_db.cpp b/src/core/class_db.cpp index acead8bf..5ded7991 100644 --- a/src/core/class_db.cpp +++ b/src/core/class_db.cpp @@ -43,6 +43,8 @@ namespace godot { std::unordered_map ClassDB::classes; std::unordered_map ClassDB::instance_binding_callbacks; std::vector ClassDB::class_register_order; +std::unordered_map ClassDB::engine_singletons; +std::mutex ClassDB::engine_singletons_mutex; GDExtensionInitializationLevel ClassDB::current_level = GDEXTENSION_INITIALIZATION_CORE; MethodDefinition D_METHOD(StringName p_name) { @@ -351,7 +353,7 @@ void ClassDB::add_virtual_method(const StringName &p_class, const MethodInfo &p_ if (mi.argument_count > 0) { mi.arguments = (GDExtensionPropertyInfo *)memalloc(sizeof(GDExtensionPropertyInfo) * mi.argument_count); mi.arguments_metadata = (GDExtensionClassMethodArgumentMetadata *)memalloc(sizeof(GDExtensionClassMethodArgumentMetadata) * mi.argument_count); - for (int i = 0; i < mi.argument_count; i++) { + for (uint32_t i = 0; i < mi.argument_count; i++) { mi.arguments[i] = p_method.arguments[i]._to_gdextension(); mi.arguments_metadata[i] = p_method.arguments_metadata[i]; } @@ -419,6 +421,22 @@ void ClassDB::deinitialize(GDExtensionInitializationLevel p_level) { }); class_register_order.erase(it, class_register_order.end()); } + + if (p_level == GDEXTENSION_INITIALIZATION_CORE) { + // Make a new list of the singleton objects, since freeing the instance bindings will lead to + // elements getting removed from engine_singletons. + std::vector singleton_objects; + { + std::lock_guard lock(engine_singletons_mutex); + singleton_objects.reserve(engine_singletons.size()); + for (const std::pair &pair : engine_singletons) { + singleton_objects.push_back(pair.second); + } + } + for (std::vector::iterator i = singleton_objects.begin(); i != singleton_objects.end(); i++) { + internal::gdextension_interface_object_free_instance_binding((*i)->_owner, internal::token); + } + } } } // namespace godot diff --git a/src/core/object.cpp b/src/core/object.cpp index dc3c8798..410daf85 100644 --- a/src/core/object.cpp +++ b/src/core/object.cpp @@ -60,8 +60,66 @@ Object *get_object_instance_binding(GodotObject *p_engine_object) { return reinterpret_cast(gdextension_interface_object_get_instance_binding(p_engine_object, token, binding_callbacks)); } +TypedArray convert_property_list(const std::vector &p_list) { + TypedArray va; + for (const PropertyInfo &pi : p_list) { + va.push_back(Dictionary(pi)); + } + return va; +} + } // namespace internal +MethodInfo::operator Dictionary() const { + Dictionary dict; + dict["name"] = name; + dict["args"] = internal::convert_property_list(arguments); + Array da; + for (size_t i = 0; i < default_arguments.size(); i++) { + da.push_back(default_arguments[i]); + } + dict["default_args"] = da; + dict["flags"] = flags; + dict["id"] = id; + Dictionary r = return_val; + dict["return"] = r; + return dict; +} + +MethodInfo MethodInfo::from_dict(const Dictionary &p_dict) { + MethodInfo mi; + + if (p_dict.has("name")) { + mi.name = p_dict["name"]; + } + Array args; + if (p_dict.has("args")) { + args = p_dict["args"]; + } + + for (int i = 0; i < args.size(); i++) { + Dictionary d = args[i]; + mi.arguments.push_back(PropertyInfo::from_dict(d)); + } + Array defargs; + if (p_dict.has("default_args")) { + defargs = p_dict["default_args"]; + } + for (int i = 0; i < defargs.size(); i++) { + mi.default_arguments.push_back(defargs[i]); + } + + if (p_dict.has("return")) { + mi.return_val = PropertyInfo::from_dict(p_dict["return"]); + } + + if (p_dict.has("flags")) { + mi.flags = p_dict["flags"]; + } + + return mi; +} + MethodInfo::MethodInfo() : flags(GDEXTENSION_METHOD_FLAG_NORMAL) {} diff --git a/src/godot.cpp b/src/godot.cpp index 8a031be2..f6d0d43c 100644 --- a/src/godot.cpp +++ b/src/godot.cpp @@ -114,7 +114,9 @@ GDExtensionInterfaceStringNewWithUtf32Chars gdextension_interface_string_new_wit GDExtensionInterfaceStringNewWithWideChars gdextension_interface_string_new_with_wide_chars = nullptr; GDExtensionInterfaceStringNewWithLatin1CharsAndLen gdextension_interface_string_new_with_latin1_chars_and_len = nullptr; GDExtensionInterfaceStringNewWithUtf8CharsAndLen gdextension_interface_string_new_with_utf8_chars_and_len = nullptr; +GDExtensionInterfaceStringNewWithUtf8CharsAndLen2 gdextension_interface_string_new_with_utf8_chars_and_len2 = nullptr; GDExtensionInterfaceStringNewWithUtf16CharsAndLen gdextension_interface_string_new_with_utf16_chars_and_len = nullptr; +GDExtensionInterfaceStringNewWithUtf16CharsAndLen2 gdextension_interface_string_new_with_utf16_chars_and_len2 = nullptr; GDExtensionInterfaceStringNewWithUtf32CharsAndLen gdextension_interface_string_new_with_utf32_chars_and_len = nullptr; GDExtensionInterfaceStringNewWithWideCharsAndLen gdextension_interface_string_new_with_wide_chars_and_len = nullptr; GDExtensionInterfaceStringToLatin1Chars gdextension_interface_string_to_latin1_chars = nullptr; @@ -154,6 +156,8 @@ GDExtensionInterfacePackedVector2ArrayOperatorIndex gdextension_interface_packed GDExtensionInterfacePackedVector2ArrayOperatorIndexConst gdextension_interface_packed_vector2_array_operator_index_const = nullptr; GDExtensionInterfacePackedVector3ArrayOperatorIndex gdextension_interface_packed_vector3_array_operator_index = nullptr; GDExtensionInterfacePackedVector3ArrayOperatorIndexConst gdextension_interface_packed_vector3_array_operator_index_const = nullptr; +GDExtensionInterfacePackedVector4ArrayOperatorIndex gdextension_interface_packed_vector4_array_operator_index = nullptr; +GDExtensionInterfacePackedVector4ArrayOperatorIndexConst gdextension_interface_packed_vector4_array_operator_index_const = nullptr; GDExtensionInterfaceArrayOperatorIndex gdextension_interface_array_operator_index = nullptr; GDExtensionInterfaceArrayOperatorIndexConst gdextension_interface_array_operator_index_const = nullptr; GDExtensionInterfaceArrayRef gdextension_interface_array_ref = nullptr; @@ -166,6 +170,7 @@ GDExtensionInterfaceObjectDestroy gdextension_interface_object_destroy = nullptr GDExtensionInterfaceGlobalGetSingleton gdextension_interface_global_get_singleton = nullptr; GDExtensionInterfaceObjectGetInstanceBinding gdextension_interface_object_get_instance_binding = nullptr; GDExtensionInterfaceObjectSetInstanceBinding gdextension_interface_object_set_instance_binding = nullptr; +GDExtensionInterfaceObjectFreeInstanceBinding gdextension_interface_object_free_instance_binding = nullptr; GDExtensionInterfaceObjectSetInstance gdextension_interface_object_set_instance = nullptr; GDExtensionInterfaceObjectGetClassName gdextension_interface_object_get_class_name = nullptr; GDExtensionInterfaceObjectCastTo gdextension_interface_object_cast_to = nullptr; @@ -196,6 +201,40 @@ GDExtensionInterfaceClassdbUnregisterExtensionClass gdextension_interface_classd GDExtensionInterfaceGetLibraryPath gdextension_interface_get_library_path = nullptr; GDExtensionInterfaceEditorAddPlugin gdextension_interface_editor_add_plugin = nullptr; GDExtensionInterfaceEditorRemovePlugin gdextension_interface_editor_remove_plugin = nullptr; +GDExtensionsInterfaceEditorHelpLoadXmlFromUtf8Chars gdextension_interface_editor_help_load_xml_from_utf8_chars = nullptr; +GDExtensionsInterfaceEditorHelpLoadXmlFromUtf8CharsAndLen gdextension_interface_editor_help_load_xml_from_utf8_chars_and_len = nullptr; +GDExtensionInterfaceImagePtrw gdextension_interface_image_ptrw = nullptr; +GDExtensionInterfaceImagePtr gdextension_interface_image_ptr = nullptr; + +struct DocData { + const char *hash = nullptr; + int uncompressed_size = 0; + int compressed_size = 0; + const unsigned char *data = nullptr; + + inline bool is_valid() const { + return hash != nullptr && uncompressed_size > 0 && compressed_size > 0 && data != nullptr; + } + + void load_data() const; +}; + +static DocData &get_doc_data() { + static DocData doc_data; + return doc_data; +} + +DocDataRegistration::DocDataRegistration(const char *p_hash, int p_uncompressed_size, int p_compressed_size, const unsigned char *p_data) { + DocData &doc_data = get_doc_data(); + if (doc_data.is_valid()) { + printf("ERROR: Attempting to register documentation data when we already have some - discarding.\n"); + return; + } + doc_data.hash = p_hash; + doc_data.uncompressed_size = p_uncompressed_size; + doc_data.compressed_size = p_compressed_size; + doc_data.data = p_data; +} } // namespace internal @@ -354,7 +393,9 @@ GDExtensionBool GDExtensionBinding::init(GDExtensionInterfaceGetProcAddress p_ge LOAD_PROC_ADDRESS(string_new_with_wide_chars, GDExtensionInterfaceStringNewWithWideChars); LOAD_PROC_ADDRESS(string_new_with_latin1_chars_and_len, GDExtensionInterfaceStringNewWithLatin1CharsAndLen); LOAD_PROC_ADDRESS(string_new_with_utf8_chars_and_len, GDExtensionInterfaceStringNewWithUtf8CharsAndLen); + LOAD_PROC_ADDRESS(string_new_with_utf8_chars_and_len2, GDExtensionInterfaceStringNewWithUtf8CharsAndLen2); LOAD_PROC_ADDRESS(string_new_with_utf16_chars_and_len, GDExtensionInterfaceStringNewWithUtf16CharsAndLen); + LOAD_PROC_ADDRESS(string_new_with_utf16_chars_and_len2, GDExtensionInterfaceStringNewWithUtf16CharsAndLen2); LOAD_PROC_ADDRESS(string_new_with_utf32_chars_and_len, GDExtensionInterfaceStringNewWithUtf32CharsAndLen); LOAD_PROC_ADDRESS(string_new_with_wide_chars_and_len, GDExtensionInterfaceStringNewWithWideCharsAndLen); LOAD_PROC_ADDRESS(string_to_latin1_chars, GDExtensionInterfaceStringToLatin1Chars); @@ -394,6 +435,8 @@ GDExtensionBool GDExtensionBinding::init(GDExtensionInterfaceGetProcAddress p_ge LOAD_PROC_ADDRESS(packed_vector2_array_operator_index_const, GDExtensionInterfacePackedVector2ArrayOperatorIndexConst); LOAD_PROC_ADDRESS(packed_vector3_array_operator_index, GDExtensionInterfacePackedVector3ArrayOperatorIndex); LOAD_PROC_ADDRESS(packed_vector3_array_operator_index_const, GDExtensionInterfacePackedVector3ArrayOperatorIndexConst); + LOAD_PROC_ADDRESS(packed_vector4_array_operator_index, GDExtensionInterfacePackedVector4ArrayOperatorIndex); + LOAD_PROC_ADDRESS(packed_vector4_array_operator_index_const, GDExtensionInterfacePackedVector4ArrayOperatorIndexConst); LOAD_PROC_ADDRESS(array_operator_index, GDExtensionInterfaceArrayOperatorIndex); LOAD_PROC_ADDRESS(array_operator_index_const, GDExtensionInterfaceArrayOperatorIndexConst); LOAD_PROC_ADDRESS(array_ref, GDExtensionInterfaceArrayRef); @@ -406,6 +449,7 @@ GDExtensionBool GDExtensionBinding::init(GDExtensionInterfaceGetProcAddress p_ge LOAD_PROC_ADDRESS(global_get_singleton, GDExtensionInterfaceGlobalGetSingleton); LOAD_PROC_ADDRESS(object_get_instance_binding, GDExtensionInterfaceObjectGetInstanceBinding); LOAD_PROC_ADDRESS(object_set_instance_binding, GDExtensionInterfaceObjectSetInstanceBinding); + LOAD_PROC_ADDRESS(object_free_instance_binding, GDExtensionInterfaceObjectFreeInstanceBinding); LOAD_PROC_ADDRESS(object_set_instance, GDExtensionInterfaceObjectSetInstance); LOAD_PROC_ADDRESS(object_get_class_name, GDExtensionInterfaceObjectGetClassName); LOAD_PROC_ADDRESS(object_cast_to, GDExtensionInterfaceObjectCastTo); @@ -436,6 +480,10 @@ GDExtensionBool GDExtensionBinding::init(GDExtensionInterfaceGetProcAddress p_ge LOAD_PROC_ADDRESS(get_library_path, GDExtensionInterfaceGetLibraryPath); LOAD_PROC_ADDRESS(editor_add_plugin, GDExtensionInterfaceEditorAddPlugin); LOAD_PROC_ADDRESS(editor_remove_plugin, GDExtensionInterfaceEditorRemovePlugin); + LOAD_PROC_ADDRESS(editor_help_load_xml_from_utf8_chars, GDExtensionsInterfaceEditorHelpLoadXmlFromUtf8Chars); + LOAD_PROC_ADDRESS(editor_help_load_xml_from_utf8_chars_and_len, GDExtensionsInterfaceEditorHelpLoadXmlFromUtf8CharsAndLen); + LOAD_PROC_ADDRESS(image_ptrw, GDExtensionInterfaceImagePtrw); + LOAD_PROC_ADDRESS(image_ptr, GDExtensionInterfaceImagePtr); r_initialization->initialize = initialize_level; r_initialization->deinitialize = deinitialize_level; @@ -465,6 +513,13 @@ void GDExtensionBinding::initialize_level(void *p_userdata, GDExtensionInitializ ClassDB::initialize(p_level); } level_initialized[p_level]++; + + if ((ModuleInitializationLevel)p_level == MODULE_INITIALIZATION_LEVEL_EDITOR) { + const internal::DocData &doc_data = internal::get_doc_data(); + if (doc_data.is_valid()) { + doc_data.load_data(); + } + } } void GDExtensionBinding::deinitialize_level(void *p_userdata, GDExtensionInitializationLevel p_level) { @@ -531,4 +586,15 @@ GDExtensionBool GDExtensionBinding::InitObject::init() const { return GDExtensionBinding::init(get_proc_address, library, init_data, initialization); } +void internal::DocData::load_data() const { + PackedByteArray compressed; + compressed.resize(compressed_size); + memcpy(compressed.ptrw(), data, compressed_size); + + // FileAccess::COMPRESSION_DEFLATE = 1 + PackedByteArray decompressed = compressed.decompress(uncompressed_size, 1); + + internal::gdextension_interface_editor_help_load_xml_from_utf8_chars_and_len(reinterpret_cast(decompressed.ptr()), uncompressed_size); +} + } // namespace godot diff --git a/src/variant/aabb.cpp b/src/variant/aabb.cpp index 92e751b4..ded17d2b 100644 --- a/src/variant/aabb.cpp +++ b/src/variant/aabb.cpp @@ -78,6 +78,10 @@ bool AABB::is_equal_approx(const AABB &p_aabb) const { return position.is_equal_approx(p_aabb.position) && size.is_equal_approx(p_aabb.size); } +bool AABB::is_finite() const { + return position.is_finite() && size.is_finite(); +} + AABB AABB::intersection(const AABB &p_aabb) const { #ifdef MATH_CHECKS if (unlikely(size.x < 0 || size.y < 0 || size.z < 0 || p_aabb.size.x < 0 || p_aabb.size.y < 0 || p_aabb.size.z < 0)) { diff --git a/src/variant/basis.cpp b/src/variant/basis.cpp index 8f78d9f0..8d4176e6 100644 --- a/src/variant/basis.cpp +++ b/src/variant/basis.cpp @@ -692,6 +692,10 @@ bool Basis::is_equal_approx(const Basis &p_basis) const { return rows[0].is_equal_approx(p_basis.rows[0]) && rows[1].is_equal_approx(p_basis.rows[1]) && rows[2].is_equal_approx(p_basis.rows[2]); } +bool Basis::is_finite() const { + return rows[0].is_finite() && rows[1].is_finite() && rows[2].is_finite(); +} + bool Basis::operator==(const Basis &p_matrix) const { for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { diff --git a/src/variant/char_string.cpp b/src/variant/char_string.cpp index 3c1ac108..83a36c51 100644 --- a/src/variant/char_string.cpp +++ b/src/variant/char_string.cpp @@ -65,7 +65,7 @@ _FORCE_INLINE_ bool is_str_less(const L *l_ptr, const R *r_ptr) { } } -template +template bool CharStringT::operator<(const CharStringT &p_right) const { if (length() == 0) { return p_right.length() != 0; @@ -74,7 +74,7 @@ bool CharStringT::operator<(const CharStringT &p_right) const { return is_str_less(get_data(), p_right.get_data()); } -template +template CharStringT &CharStringT::operator+=(T p_char) { const int64_t lhs_len = length(); resize(lhs_len + 2); @@ -86,7 +86,7 @@ CharStringT &CharStringT::operator+=(T p_char) { return *this; } -template +template void CharStringT::operator=(const T *p_cstr) { copy_from(p_cstr); } @@ -127,7 +127,7 @@ const wchar_t *CharStringT::get_data() const { } } -template +template void CharStringT::copy_from(const T *p_cstr) { if (!p_cstr) { resize(0); @@ -178,8 +178,8 @@ String String::utf8(const char *from, int64_t len) { return ret; } -void String::parse_utf8(const char *from, int64_t len) { - internal::gdextension_interface_string_new_with_utf8_chars_and_len(_native_ptr(), from, len); +Error String::parse_utf8(const char *from, int64_t len) { + return (Error)internal::gdextension_interface_string_new_with_utf8_chars_and_len2(_native_ptr(), from, len); } String String::utf16(const char16_t *from, int64_t len) { @@ -188,8 +188,8 @@ String String::utf16(const char16_t *from, int64_t len) { return ret; } -void String::parse_utf16(const char16_t *from, int64_t len) { - internal::gdextension_interface_string_new_with_utf16_chars_and_len(_native_ptr(), from, len); +Error String::parse_utf16(const char16_t *from, int64_t len, bool default_little_endian) { + return (Error)internal::gdextension_interface_string_new_with_utf16_chars_and_len2(_native_ptr(), from, len, default_little_endian); } String String::num_real(double p_num, bool p_trailing) { diff --git a/src/variant/packed_arrays.cpp b/src/variant/packed_arrays.cpp index fe8b3597..4384f7ad 100644 --- a/src/variant/packed_arrays.cpp +++ b/src/variant/packed_arrays.cpp @@ -43,6 +43,7 @@ #include #include #include +#include namespace godot { @@ -198,6 +199,24 @@ Vector3 *PackedVector3Array::ptrw() { return (Vector3 *)internal::gdextension_interface_packed_vector3_array_operator_index((GDExtensionTypePtr *)this, 0); } +const Vector4 &PackedVector4Array::operator[](int64_t p_index) const { + const Vector4 *vec = (const Vector4 *)internal::gdextension_interface_packed_vector4_array_operator_index_const((GDExtensionTypePtr *)this, p_index); + return *vec; +} + +Vector4 &PackedVector4Array::operator[](int64_t p_index) { + Vector4 *vec = (Vector4 *)internal::gdextension_interface_packed_vector4_array_operator_index((GDExtensionTypePtr *)this, p_index); + return *vec; +} + +const Vector4 *PackedVector4Array::ptr() const { + return (const Vector4 *)internal::gdextension_interface_packed_vector4_array_operator_index_const((GDExtensionTypePtr *)this, 0); +} + +Vector4 *PackedVector4Array::ptrw() { + return (Vector4 *)internal::gdextension_interface_packed_vector4_array_operator_index((GDExtensionTypePtr *)this, 0); +} + const Variant &Array::operator[](int64_t p_index) const { const Variant *var = (const Variant *)internal::gdextension_interface_array_operator_index_const((GDExtensionTypePtr *)this, p_index); return *var; diff --git a/src/variant/plane.cpp b/src/variant/plane.cpp index 53dd439a..caea516e 100644 --- a/src/variant/plane.cpp +++ b/src/variant/plane.cpp @@ -178,6 +178,10 @@ bool Plane::is_equal_approx(const Plane &p_plane) const { return normal.is_equal_approx(p_plane.normal) && Math::is_equal_approx(d, p_plane.d); } +bool Plane::is_finite() const { + return normal.is_finite() && Math::is_finite(d); +} + Plane::operator String() const { return "[N: " + normal.operator String() + ", D: " + String::num_real(d, false) + "]"; } diff --git a/src/variant/projection.cpp b/src/variant/projection.cpp index c28e6513..ddedc93f 100644 --- a/src/variant/projection.cpp +++ b/src/variant/projection.cpp @@ -136,7 +136,7 @@ Projection Projection::create_for_hmd(int p_eye, real_t p_aspect, real_t p_intra Projection Projection::create_orthogonal(real_t p_left, real_t p_right, real_t p_bottom, real_t p_top, real_t p_znear, real_t p_zfar) { Projection proj; - proj.set_orthogonal(p_left, p_right, p_bottom, p_top, p_zfar, p_zfar); + proj.set_orthogonal(p_left, p_right, p_bottom, p_top, p_znear, p_zfar); return proj; } diff --git a/src/variant/quaternion.cpp b/src/variant/quaternion.cpp index 9d4d838d..c0108505 100644 --- a/src/variant/quaternion.cpp +++ b/src/variant/quaternion.cpp @@ -81,6 +81,10 @@ bool Quaternion::is_equal_approx(const Quaternion &p_quaternion) const { return Math::is_equal_approx(x, p_quaternion.x) && Math::is_equal_approx(y, p_quaternion.y) && Math::is_equal_approx(z, p_quaternion.z) && Math::is_equal_approx(w, p_quaternion.w); } +bool Quaternion::is_finite() const { + return Math::is_finite(x) && Math::is_finite(y) && Math::is_finite(z) && Math::is_finite(w); +} + real_t Quaternion::length() const { return Math::sqrt(length_squared()); } diff --git a/src/variant/rect2.cpp b/src/variant/rect2.cpp index a70fee63..62730a9d 100644 --- a/src/variant/rect2.cpp +++ b/src/variant/rect2.cpp @@ -40,6 +40,10 @@ bool Rect2::is_equal_approx(const Rect2 &p_rect) const { return position.is_equal_approx(p_rect.position) && size.is_equal_approx(p_rect.size); } +bool Rect2::is_finite() const { + return position.is_finite() && size.is_finite(); +} + bool Rect2::intersects_segment(const Point2 &p_from, const Point2 &p_to, Point2 *r_pos, Point2 *r_normal) const { #ifdef MATH_CHECKS if (unlikely(size.x < 0 || size.y < 0)) { diff --git a/src/variant/transform2d.cpp b/src/variant/transform2d.cpp index 530a99e3..3b2c0b09 100644 --- a/src/variant/transform2d.cpp +++ b/src/variant/transform2d.cpp @@ -170,6 +170,10 @@ bool Transform2D::is_equal_approx(const Transform2D &p_transform) const { return columns[0].is_equal_approx(p_transform.columns[0]) && columns[1].is_equal_approx(p_transform.columns[1]) && columns[2].is_equal_approx(p_transform.columns[2]); } +bool Transform2D::is_finite() const { + return columns[0].is_finite() && columns[1].is_finite() && columns[2].is_finite(); +} + Transform2D Transform2D::looking_at(const Vector2 &p_target) const { Transform2D return_trans = Transform2D(get_rotation(), get_origin()); Vector2 target_position = affine_inverse().xform(p_target); diff --git a/src/variant/transform3d.cpp b/src/variant/transform3d.cpp index 1a4189e2..d71e9191 100644 --- a/src/variant/transform3d.cpp +++ b/src/variant/transform3d.cpp @@ -175,6 +175,10 @@ bool Transform3D::is_equal_approx(const Transform3D &p_transform) const { return basis.is_equal_approx(p_transform.basis) && origin.is_equal_approx(p_transform.origin); } +bool Transform3D::is_finite() const { + return basis.is_finite() && origin.is_finite(); +} + bool Transform3D::operator==(const Transform3D &p_transform) const { return (basis == p_transform.basis && origin == p_transform.origin); } diff --git a/src/variant/vector2.cpp b/src/variant/vector2.cpp index df870805..12201f1f 100644 --- a/src/variant/vector2.cpp +++ b/src/variant/vector2.cpp @@ -137,12 +137,24 @@ Vector2 Vector2::clamp(const Vector2 &p_min, const Vector2 &p_max) const { CLAMP(y, p_min.y, p_max.y)); } +Vector2 Vector2::clampf(real_t p_min, real_t p_max) const { + return Vector2( + CLAMP(x, p_min, p_max), + CLAMP(y, p_min, p_max)); +} + Vector2 Vector2::snapped(const Vector2 &p_step) const { return Vector2( Math::snapped(x, p_step.x), Math::snapped(y, p_step.y)); } +Vector2 Vector2::snappedf(real_t p_step) const { + return Vector2( + Math::snapped(x, p_step), + Math::snapped(y, p_step)); +} + Vector2 Vector2::limit_length(const real_t p_len) const { const real_t l = length(); Vector2 v = *this; @@ -188,6 +200,10 @@ bool Vector2::is_zero_approx() const { return Math::is_zero_approx(x) && Math::is_zero_approx(y); } +bool Vector2::is_finite() const { + return Math::is_finite(x) && Math::is_finite(y); +} + Vector2::operator String() const { return "(" + String::num_real(x, false) + ", " + String::num_real(y, false) + ")"; } diff --git a/src/variant/vector2i.cpp b/src/variant/vector2i.cpp index c1c1ab07..4baff3bb 100644 --- a/src/variant/vector2i.cpp +++ b/src/variant/vector2i.cpp @@ -35,12 +35,30 @@ namespace godot { +Vector2i Vector2i::snapped(const Vector2i &p_step) const { + return Vector2i( + Math::snapped(x, p_step.x), + Math::snapped(y, p_step.y)); +} + +Vector2i Vector2i::snappedi(int32_t p_step) const { + return Vector2i( + Math::snapped(x, p_step), + Math::snapped(y, p_step)); +} + Vector2i Vector2i::clamp(const Vector2i &p_min, const Vector2i &p_max) const { return Vector2i( CLAMP(x, p_min.x, p_max.x), CLAMP(y, p_min.y, p_max.y)); } +Vector2i Vector2i::clampi(int32_t p_min, int32_t p_max) const { + return Vector2i( + CLAMP(x, p_min, p_max), + CLAMP(y, p_min, p_max)); +} + int64_t Vector2i::length_squared() const { return x * (int64_t)x + y * (int64_t)y; } diff --git a/src/variant/vector3.cpp b/src/variant/vector3.cpp index 61536580..d2ad6a9f 100644 --- a/src/variant/vector3.cpp +++ b/src/variant/vector3.cpp @@ -54,18 +54,37 @@ Vector3 Vector3::clamp(const Vector3 &p_min, const Vector3 &p_max) const { CLAMP(z, p_min.z, p_max.z)); } +Vector3 Vector3::clampf(real_t p_min, real_t p_max) const { + return Vector3( + CLAMP(x, p_min, p_max), + CLAMP(y, p_min, p_max), + CLAMP(z, p_min, p_max)); +} + void Vector3::snap(const Vector3 p_step) { x = Math::snapped(x, p_step.x); y = Math::snapped(y, p_step.y); z = Math::snapped(z, p_step.z); } +void Vector3::snapf(real_t p_step) { + x = Math::snapped(x, p_step); + y = Math::snapped(y, p_step); + z = Math::snapped(z, p_step); +} + Vector3 Vector3::snapped(const Vector3 p_step) const { Vector3 v = *this; v.snap(p_step); return v; } +Vector3 Vector3::snappedf(real_t p_step) const { + Vector3 v = *this; + v.snapf(p_step); + return v; +} + Vector3 Vector3::limit_length(const real_t p_len) const { const real_t l = length(); Vector3 v = *this; @@ -141,6 +160,10 @@ bool Vector3::is_zero_approx() const { return Math::is_zero_approx(x) && Math::is_zero_approx(y) && Math::is_zero_approx(z); } +bool Vector3::is_finite() const { + return Math::is_finite(x) && Math::is_finite(y) && Math::is_finite(z); +} + Vector3::operator String() const { return "(" + String::num_real(x, false) + ", " + String::num_real(y, false) + ", " + String::num_real(z, false) + ")"; } diff --git a/src/variant/vector3i.cpp b/src/variant/vector3i.cpp index eef05b87..7b25d897 100644 --- a/src/variant/vector3i.cpp +++ b/src/variant/vector3i.cpp @@ -35,6 +35,20 @@ namespace godot { +Vector3i Vector3i::snapped(const Vector3i &p_step) const { + return Vector3i( + Math::snapped(x, p_step.x), + Math::snapped(y, p_step.y), + Math::snapped(z, p_step.z)); +} + +Vector3i Vector3i::snappedi(int32_t p_step) const { + return Vector3i( + Math::snapped(x, p_step), + Math::snapped(y, p_step), + Math::snapped(z, p_step)); +} + Vector3i::Axis Vector3i::min_axis_index() const { return x < y ? (x < z ? Vector3i::AXIS_X : Vector3i::AXIS_Z) : (y < z ? Vector3i::AXIS_Y : Vector3i::AXIS_Z); } @@ -50,6 +64,13 @@ Vector3i Vector3i::clamp(const Vector3i &p_min, const Vector3i &p_max) const { CLAMP(z, p_min.z, p_max.z)); } +Vector3i Vector3i::clampi(int32_t p_min, int32_t p_max) const { + return Vector3i( + CLAMP(x, p_min, p_max), + CLAMP(y, p_min, p_max), + CLAMP(z, p_min, p_max)); +} + Vector3i::operator String() const { return "(" + itos(x) + ", " + itos(y) + ", " + itos(z) + ")"; } diff --git a/src/variant/vector4.cpp b/src/variant/vector4.cpp index 72c79d1e..2f1bb592 100644 --- a/src/variant/vector4.cpp +++ b/src/variant/vector4.cpp @@ -67,6 +67,10 @@ bool Vector4::is_zero_approx() const { return Math::is_zero_approx(x) && Math::is_zero_approx(y) && Math::is_zero_approx(z) && Math::is_zero_approx(w); } +bool Vector4::is_finite() const { + return Math::is_finite(x) && Math::is_finite(y) && Math::is_finite(z) && Math::is_finite(w); +} + real_t Vector4::length() const { return Math::sqrt(length_squared()); } @@ -169,12 +173,25 @@ void Vector4::snap(const Vector4 &p_step) { w = Math::snapped(w, p_step.w); } +void Vector4::snapf(real_t p_step) { + x = Math::snapped(x, p_step); + y = Math::snapped(y, p_step); + z = Math::snapped(z, p_step); + w = Math::snapped(w, p_step); +} + Vector4 Vector4::snapped(const Vector4 &p_step) const { Vector4 v = *this; v.snap(p_step); return v; } +Vector4 Vector4::snappedf(real_t p_step) const { + Vector4 v = *this; + v.snapf(p_step); + return v; +} + Vector4 Vector4::inverse() const { return Vector4(1.0f / x, 1.0f / y, 1.0f / z, 1.0f / w); } @@ -187,6 +204,14 @@ Vector4 Vector4::clamp(const Vector4 &p_min, const Vector4 &p_max) const { CLAMP(w, p_min.w, p_max.w)); } +Vector4 Vector4::clampf(real_t p_min, real_t p_max) const { + return Vector4( + CLAMP(x, p_min, p_max), + CLAMP(y, p_min, p_max), + CLAMP(z, p_min, p_max), + CLAMP(w, p_min, p_max)); +} + Vector4::operator String() const { return "(" + String::num_real(x, false) + ", " + String::num_real(y, false) + ", " + String::num_real(z, false) + ", " + String::num_real(w, false) + ")"; } diff --git a/src/variant/vector4i.cpp b/src/variant/vector4i.cpp index f1817dc8..b0e330ca 100644 --- a/src/variant/vector4i.cpp +++ b/src/variant/vector4i.cpp @@ -35,6 +35,22 @@ namespace godot { +Vector4i Vector4i::snapped(const Vector4i &p_step) const { + return Vector4i( + Math::snapped(x, p_step.x), + Math::snapped(y, p_step.y), + Math::snapped(z, p_step.z), + Math::snapped(w, p_step.w)); +} + +Vector4i Vector4i::snappedi(int32_t p_step) const { + return Vector4i( + Math::snapped(x, p_step), + Math::snapped(y, p_step), + Math::snapped(z, p_step), + Math::snapped(w, p_step)); +} + Vector4i::Axis Vector4i::min_axis_index() const { uint32_t min_index = 0; int32_t min_value = x; @@ -67,6 +83,14 @@ Vector4i Vector4i::clamp(const Vector4i &p_min, const Vector4i &p_max) const { CLAMP(w, p_min.w, p_max.w)); } +Vector4i Vector4i::clampi(int32_t p_min, int32_t p_max) const { + return Vector4i( + CLAMP(x, p_min, p_max), + CLAMP(y, p_min, p_max), + CLAMP(z, p_min, p_max), + CLAMP(w, p_min, p_max)); +} + Vector4i::operator String() const { return "(" + itos(x) + ", " + itos(y) + ", " + itos(z) + ", " + itos(w) + ")"; } diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 67f3c5c8..42ea6e08 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,5 +1,5 @@ +cmake_minimum_required(VERSION 3.13) project(godot-cpp-test) -cmake_minimum_required(VERSION 3.6) set(GODOT_GDEXTENSION_DIR ../gdextension/ CACHE STRING "Path to GDExtension interface header directory") set(CPP_BINDINGS_PATH ../ CACHE STRING "Path to C++ bindings") diff --git a/test/SConstruct b/test/SConstruct index 9c25917b..7cb25be1 100644 --- a/test/SConstruct +++ b/test/SConstruct @@ -16,6 +16,10 @@ env = SConscript("../SConstruct") env.Append(CPPPATH=["src/"]) sources = Glob("src/*.cpp") +if env["target"] in ["editor", "template_debug"]: + doc_data = env.GodotCPPDocData("src/gen/doc_data.gen.cpp", source=Glob("doc_classes/*.xml")) + sources.append(doc_data) + if env["platform"] == "macos": library = env.SharedLibrary( "project/bin/libgdexample.{}.{}.framework/libgdexample.{}.{}".format( diff --git a/test/doc_classes/Example.xml b/test/doc_classes/Example.xml new file mode 100644 index 00000000..457709d5 --- /dev/null +++ b/test/doc_classes/Example.xml @@ -0,0 +1,25 @@ + + + + A test control defined in GDExtension. + + + A control used for the automated GDExtension tests. + + + + + + + + Tests a simple function call. + + + + + + + + + + diff --git a/test/project/example.gdextension b/test/project/example.gdextension index 4f599ced..8e2f794d 100644 --- a/test/project/example.gdextension +++ b/test/project/example.gdextension @@ -29,8 +29,10 @@ android.debug.arm64 = "res://bin/libgdexample.android.template_debug.arm64.so" android.release.arm64 = "res://bin/libgdexample.android.template_release.arm64.so" ios.debug = "res://bin/libgdexample.ios.template_debug.xcframework" ios.release = "res://bin/libgdexample.ios.template_release.xcframework" -web.debug.wasm32 = "res://bin/libgdexample.web.template_debug.wasm32.wasm" -web.release.wasm32 = "res://bin/libgdexample.web.template_release.wasm32.wasm" +web.debug.threads.wasm32 = "res://bin/libgdexample.web.template_debug.wasm32.wasm" +web.release.threads.wasm32 = "res://bin/libgdexample.web.template_release.wasm32.wasm" +web.debug.wasm32 = "res://bin/libgdexample.web.template_debug.wasm32.nothreads.wasm" +web.release.wasm32 = "res://bin/libgdexample.web.template_release.wasm32.nothreads.wasm" [dependencies] ios.debug = { diff --git a/test/project/main.gd b/test/project/main.gd index 5cf483e2..7533dccd 100644 --- a/test/project/main.gd +++ b/test/project/main.gd @@ -9,12 +9,15 @@ class TestClass: func _ready(): var example: Example = $Example + # Timing of set instance binding. + assert_equal(example.is_object_binding_set_by_parent_constructor(), true) + # Signal. example.emit_custom_signal("Button", 42) assert_equal(custom_signal_emitted, ["Button", 42]) # To string. - assert_equal(example.to_string(),'Example:[ GDExtension::Example <--> Instance ID:%s ]' % example.get_instance_id()) + assert_equal(example.to_string(),'[ GDExtension::Example <--> Instance ID:%s ]' % example.get_instance_id()) # It appears there's a bug with instance ids :-( #assert_equal($Example/ExampleMin.to_string(), 'ExampleMin:[Wrapped:%s]' % $Example/ExampleMin.get_instance_id()) @@ -191,6 +194,10 @@ func _ready(): control.queue_free() sprite.queue_free() + # Test that passing null for objects works as expected too. + var example_null : Example = null + assert_equal(example.test_object_cast_to_node(example_null), false) + # Test conversions to and from Variant. assert_equal(example.test_variant_vector2i_conversion(Vector2i(1, 1)), Vector2i(1, 1)) assert_equal(example.test_variant_vector2i_conversion(Vector2(1.0, 1.0)), Vector2i(1, 1)) @@ -252,6 +259,9 @@ func _ready(): assert_equal(example.test_virtual_implemented_in_script("Virtual", 939), "Implemented") assert_equal(custom_signal_emitted, ["Virtual", 939]) + # Test that we can access an engine singleton. + assert_equal(example.test_use_engine_singleton(), OS.get_name()) + # Test that notifications happen on both parent and child classes. var example_child = $ExampleChild assert_equal(example_child.get_value1(), 11) diff --git a/test/project/project.godot b/test/project/project.godot index 4f51c07f..df3dd70f 100644 --- a/test/project/project.godot +++ b/test/project/project.godot @@ -12,7 +12,7 @@ config_version=5 config/name="GDExtension Test Project" run/main_scene="res://main.tscn" -config/features=PackedStringArray("4.2") +config/features=PackedStringArray("4.3") config/icon="res://icon.png" [native_extensions] diff --git a/test/src/example.cpp b/test/src/example.cpp index 3ec8bca0..a0a0da2a 100644 --- a/test/src/example.cpp +++ b/test/src/example.cpp @@ -11,6 +11,7 @@ #include #include #include +#include #include using namespace godot; @@ -192,6 +193,8 @@ void Example::_bind_methods() { ClassDB::bind_method(D_METHOD("return_extended_ref"), &Example::return_extended_ref); ClassDB::bind_method(D_METHOD("extended_ref_checks", "ref"), &Example::extended_ref_checks); + ClassDB::bind_method(D_METHOD("is_object_binding_set_by_parent_constructor"), &Example::is_object_binding_set_by_parent_constructor); + ClassDB::bind_method(D_METHOD("test_array"), &Example::test_array); ClassDB::bind_method(D_METHOD("test_tarray_arg", "array"), &Example::test_tarray_arg); ClassDB::bind_method(D_METHOD("test_tarray"), &Example::test_tarray); @@ -238,6 +241,9 @@ void Example::_bind_methods() { GDVIRTUAL_BIND(_do_something_virtual, "name", "value"); ClassDB::bind_method(D_METHOD("test_virtual_implemented_in_script"), &Example::test_virtual_implemented_in_script); + GDVIRTUAL_BIND(_do_something_virtual_with_control, "control"); + + ClassDB::bind_method(D_METHOD("test_use_engine_singleton"), &Example::test_use_engine_singleton); ClassDB::bind_static_method("Example", D_METHOD("test_static", "a", "b"), &Example::test_static); ClassDB::bind_static_method("Example", D_METHOD("test_static2"), &Example::test_static2); @@ -287,7 +293,17 @@ void Example::_bind_methods() { BIND_ENUM_CONSTANT(OUTSIDE_OF_CLASS); } -Example::Example() { +bool Example::has_object_instance_binding() const { + return internal::gdextension_interface_object_get_instance_binding(_owner, internal::token, nullptr); +} + +Example::Example() : + object_instance_binding_set_by_parent_constructor(has_object_instance_binding()) { + // Test conversion, to ensure users can use all parent calss functions at this time. + // It would crash if instance binding still not be initialized. + Variant v = Variant(this); + Object *o = (Object *)v; + //UtilityFunctions::print("Constructor."); } @@ -367,6 +383,10 @@ void Example::emit_custom_signal(const String &name, int value) { emit_signal("custom_signal", name, value); } +bool Example::is_object_binding_set_by_parent_constructor() const { + return object_instance_binding_set_by_parent_constructor; +} + Array Example::test_array() const { Array arr; @@ -671,6 +691,10 @@ String Example::test_virtual_implemented_in_script(const String &p_name, int p_v return "Unimplemented"; } +String Example::test_use_engine_singleton() const { + return OS::get_singleton()->get_name(); +} + void ExampleRuntime::_bind_methods() { ClassDB::bind_method(D_METHOD("set_prop_value", "value"), &ExampleRuntime::set_prop_value); ClassDB::bind_method(D_METHOD("get_prop_value"), &ExampleRuntime::get_prop_value); diff --git a/test/src/example.h b/test/src/example.h index 0ad94932..1dcefe34 100644 --- a/test/src/example.h +++ b/test/src/example.h @@ -82,6 +82,9 @@ private: Vector2 dprop[3]; int last_rpc_arg = 0; + const bool object_instance_binding_set_by_parent_constructor; + bool has_object_instance_binding() const; + public: // Constants. enum Constants { @@ -120,6 +123,8 @@ public: void emit_custom_signal(const String &name, int value); int def_args(int p_a = 100, int p_b = 200); + bool is_object_binding_set_by_parent_constructor() const; + Array test_array() const; int test_tarray_arg(const TypedArray &p_array); TypedArray test_tarray() const; @@ -186,6 +191,9 @@ public: GDVIRTUAL2R(String, _do_something_virtual, String, int); String test_virtual_implemented_in_script(const String &p_name, int p_value); + GDVIRTUAL1(_do_something_virtual_with_control, Control *); + + String test_use_engine_singleton() const; }; VARIANT_ENUM_CAST(Example::Constants); diff --git a/test/src/register_types.cpp b/test/src/register_types.cpp index cbede66b..7cfe689e 100644 --- a/test/src/register_types.cpp +++ b/test/src/register_types.cpp @@ -21,15 +21,15 @@ void initialize_example_module(ModuleInitializationLevel p_level) { return; } - ClassDB::register_class(); - ClassDB::register_class(); - ClassDB::register_class(); - ClassDB::register_class(true); - ClassDB::register_abstract_class(); - ClassDB::register_class(); - ClassDB::register_class(); - ClassDB::register_class(); - ClassDB::register_runtime_class(); + GDREGISTER_CLASS(ExampleRef); + GDREGISTER_CLASS(ExampleMin); + GDREGISTER_CLASS(Example); + GDREGISTER_VIRTUAL_CLASS(ExampleVirtual); + GDREGISTER_ABSTRACT_CLASS(ExampleAbstractBase); + GDREGISTER_CLASS(ExampleConcrete); + GDREGISTER_CLASS(ExampleBase); + GDREGISTER_CLASS(ExampleChild); + GDREGISTER_RUNTIME_CLASS(ExampleRuntime); } void uninitialize_example_module(ModuleInitializationLevel p_level) { diff --git a/tools/godotcpp.py b/tools/godotcpp.py index 5ba2742b..d5285dc1 100644 --- a/tools/godotcpp.py +++ b/tools/godotcpp.py @@ -3,6 +3,7 @@ import os, sys, platform from SCons.Variables import EnumVariable, PathVariable, BoolVariable from SCons.Variables.BoolVariable import _text2bool from SCons.Tool import Tool +from SCons.Action import Action from SCons.Builder import Builder from SCons.Errors import UserError from SCons.Script import ARGUMENTS @@ -66,6 +67,67 @@ def get_custom_platforms(env): return platforms +def no_verbose(env): + colors = {} + + # Colors are disabled in non-TTY environments such as pipes. This means + # that if output is redirected to a file, it will not contain color codes + if sys.stdout.isatty(): + colors["blue"] = "\033[0;94m" + colors["bold_blue"] = "\033[1;94m" + colors["reset"] = "\033[0m" + else: + colors["blue"] = "" + colors["bold_blue"] = "" + colors["reset"] = "" + + # There is a space before "..." to ensure that source file names can be + # Ctrl + clicked in the VS Code terminal. + compile_source_message = "{}Compiling {}$SOURCE{} ...{}".format( + colors["blue"], colors["bold_blue"], colors["blue"], colors["reset"] + ) + java_compile_source_message = "{}Compiling {}$SOURCE{} ...{}".format( + colors["blue"], colors["bold_blue"], colors["blue"], colors["reset"] + ) + compile_shared_source_message = "{}Compiling shared {}$SOURCE{} ...{}".format( + colors["blue"], colors["bold_blue"], colors["blue"], colors["reset"] + ) + link_program_message = "{}Linking Program {}$TARGET{} ...{}".format( + colors["blue"], colors["bold_blue"], colors["blue"], colors["reset"] + ) + link_library_message = "{}Linking Static Library {}$TARGET{} ...{}".format( + colors["blue"], colors["bold_blue"], colors["blue"], colors["reset"] + ) + ranlib_library_message = "{}Ranlib Library {}$TARGET{} ...{}".format( + colors["blue"], colors["bold_blue"], colors["blue"], colors["reset"] + ) + link_shared_library_message = "{}Linking Shared Library {}$TARGET{} ...{}".format( + colors["blue"], colors["bold_blue"], colors["blue"], colors["reset"] + ) + java_library_message = "{}Creating Java Archive {}$TARGET{} ...{}".format( + colors["blue"], colors["bold_blue"], colors["blue"], colors["reset"] + ) + compiled_resource_message = "{}Creating Compiled Resource {}$TARGET{} ...{}".format( + colors["blue"], colors["bold_blue"], colors["blue"], colors["reset"] + ) + generated_file_message = "{}Generating {}$TARGET{} ...{}".format( + colors["blue"], colors["bold_blue"], colors["blue"], colors["reset"] + ) + + env.Append(CXXCOMSTR=[compile_source_message]) + env.Append(CCCOMSTR=[compile_source_message]) + env.Append(SHCCCOMSTR=[compile_shared_source_message]) + env.Append(SHCXXCOMSTR=[compile_shared_source_message]) + env.Append(ARCOMSTR=[link_library_message]) + env.Append(RANLIBCOMSTR=[ranlib_library_message]) + env.Append(SHLINKCOMSTR=[link_shared_library_message]) + env.Append(LINKCOMSTR=[link_program_message]) + env.Append(JARCOMSTR=[java_library_message]) + env.Append(JAVACCOMSTR=[java_compile_source_message]) + env.Append(RCCOMSTR=[compiled_resource_message]) + env.Append(GENCOMSTR=[generated_file_message]) + + platforms = ["linux", "macos", "windows", "android", "ios", "web"] # CPU architecture options. @@ -204,6 +266,8 @@ def options(opts, env): ) ) + opts.Add(BoolVariable(key="threads", help="Enable threading support", default=env.get("threads", True))) + # compiledb opts.Add( BoolVariable( @@ -254,6 +318,7 @@ def options(opts, env): ) opts.Add(BoolVariable("debug_symbols", "Build with debugging symbols", True)) opts.Add(BoolVariable("dev_build", "Developer build with dev-only debugging code (DEV_ENABLED)", False)) + opts.Add(BoolVariable("verbose", "Enable verbose output for the compilation", False)) # Add platform options (custom tools can override platforms) for pl in sorted(set(platforms + custom_platforms)): @@ -262,6 +327,51 @@ def options(opts, env): tool.options(opts) +def make_doc_source(target, source, env): + import zlib + + dst = str(target[0]) + g = open(dst, "w", encoding="utf-8") + buf = "" + docbegin = "" + docend = "" + for src in source: + src_path = str(src) + if not src_path.endswith(".xml"): + continue + with open(src_path, "r", encoding="utf-8") as f: + content = f.read() + buf += content + + buf = (docbegin + buf + docend).encode("utf-8") + decomp_size = len(buf) + + # Use maximum zlib compression level to further reduce file size + # (at the cost of initial build times). + buf = zlib.compress(buf, zlib.Z_BEST_COMPRESSION) + + g.write("/* THIS FILE IS GENERATED DO NOT EDIT */\n") + g.write("\n") + g.write("#include \n") + g.write("\n") + + g.write('static const char *_doc_data_hash = "' + str(hash(buf)) + '";\n') + g.write("static const int _doc_data_uncompressed_size = " + str(decomp_size) + ";\n") + g.write("static const int _doc_data_compressed_size = " + str(len(buf)) + ";\n") + g.write("static const unsigned char _doc_data_compressed[] = {\n") + for i in range(len(buf)): + g.write("\t" + str(buf[i]) + ",\n") + g.write("};\n") + g.write("\n") + + g.write( + "static godot::internal::DocDataRegistration _doc_data_registration(_doc_data_hash, _doc_data_uncompressed_size, _doc_data_compressed_size, _doc_data_compressed);\n" + ) + g.write("\n") + + g.close() + + def generate(env): # Default num_jobs to local cpu count if not user specified. # SCons has a peculiarity where user-specified options won't be overridden @@ -330,6 +440,9 @@ def generate(env): tool.generate(env) + if env["threads"]: + env.Append(CPPDEFINES=["THREADS_ENABLED"]) + if env.use_hot_reload: env.Append(CPPDEFINES=["HOT_RELOAD_ENABLED"]) @@ -373,6 +486,8 @@ def generate(env): suffix += "." + env["arch"] if env["ios_simulator"]: suffix += ".simulator" + if not env["threads"]: + suffix += ".nothreads" env["suffix"] = suffix # Exposed when included from another project env["OBJSUFFIX"] = suffix + env["OBJSUFFIX"] @@ -381,8 +496,17 @@ def generate(env): env.Tool("compilation_db") env.Alias("compiledb", env.CompilationDatabase(normalize_path(env["compiledb_file"], env))) + # Formatting + if not env["verbose"]: + no_verbose(env) + # Builders - env.Append(BUILDERS={"GodotCPPBindings": Builder(action=scons_generate_bindings, emitter=scons_emit_files)}) + env.Append( + BUILDERS={ + "GodotCPPBindings": Builder(action=Action(scons_generate_bindings, "$GENCOMSTR"), emitter=scons_emit_files), + "GodotCPPDocData": Builder(action=make_doc_source), + } + ) env.AddMethod(_godot_cpp, "GodotCPP") diff --git a/tools/web.py b/tools/web.py index c7440bcd..61fe96dd 100644 --- a/tools/web.py +++ b/tools/web.py @@ -35,8 +35,9 @@ def generate(env): env["SHLIBSUFFIX"] = ".wasm" # Thread support (via SharedArrayBuffer). - env.Append(CCFLAGS=["-s", "USE_PTHREADS=1"]) - env.Append(LINKFLAGS=["-s", "USE_PTHREADS=1"]) + if env["threads"]: + env.Append(CCFLAGS=["-s", "USE_PTHREADS=1"]) + env.Append(LINKFLAGS=["-s", "USE_PTHREADS=1"]) # Build as side module (shared library). env.Append(CPPFLAGS=["-s", "SIDE_MODULE=1"])