summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-14 19:12:02 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-14 19:12:02 +0100
commit0068320ff13fd91d16f3a2bdcf7956cd439c2869 (patch)
tree8352748c86efc74e5e5323703b1c05842db6853b
parent8a3faaa64924d99b23fc65de7a27d26079afec65 (diff)
downloadredot-cpp-0068320ff13fd91d16f3a2bdcf7956cd439c2869.tar.gz
gdextension: Sync with upstream commit d2699dc7ab96fbd75faccc1f32f55baebf1d84dc (4.0-rc2)
-rw-r--r--gdextension/extension_api.json116
-rw-r--r--gdextension/gdextension_interface.h2
2 files changed, 110 insertions, 8 deletions
diff --git a/gdextension/extension_api.json b/gdextension/extension_api.json
index 30e0211..5a22648 100644
--- a/gdextension/extension_api.json
+++ b/gdextension/extension_api.json
@@ -3,9 +3,9 @@
"version_major": 4,
"version_minor": 0,
"version_patch": 0,
- "version_status": "rc1",
+ "version_status": "rc2",
"version_build": "official",
- "version_full_name": "Godot Engine v4.0.rc1.official"
+ "version_full_name": "Godot Engine v4.0.rc2.official"
},
"builtin_class_sizes": [
{
@@ -32257,6 +32257,39 @@
}
},
{
+ "name": "get_root_motion_position_accumulator",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 3360562783,
+ "return_value": {
+ "type": "Vector3"
+ }
+ },
+ {
+ "name": "get_root_motion_rotation_accumulator",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 1222331677,
+ "return_value": {
+ "type": "Quaternion"
+ }
+ },
+ {
+ "name": "get_root_motion_scale_accumulator",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 3360562783,
+ "return_value": {
+ "type": "Vector3"
+ }
+ },
+ {
"name": "advance",
"is_const": false,
"is_vararg": false,
@@ -38530,7 +38563,7 @@
"hash": 83702148,
"arguments": [
{
- "name": "output_device",
+ "name": "name",
"type": "String"
}
]
@@ -84946,7 +84979,27 @@
"is_vararg": false,
"is_static": false,
"is_virtual": false,
- "hash": 1327703655,
+ "hash": 1850254898,
+ "return_value": {
+ "type": "enum::Error"
+ },
+ "arguments": [
+ {
+ "name": "language",
+ "type": "ScriptLanguage"
+ }
+ ]
+ },
+ {
+ "name": "unregister_script_language",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 1850254898,
+ "return_value": {
+ "type": "enum::Error"
+ },
"arguments": [
{
"name": "language",
@@ -117040,7 +117093,7 @@
"hash": 1286410249,
"arguments": [
{
- "name": "lines_visible",
+ "name": "visible_lines",
"type": "int",
"meta": "int32"
}
@@ -152613,7 +152666,7 @@
"is_virtual": false,
"hash": 550215980,
"return_value": {
- "type": "typedarray::PackedVector2Array"
+ "type": "typedarray::PackedVector3Array"
},
"arguments": [
{
@@ -181218,7 +181271,7 @@
"is_vararg": false,
"is_static": false,
"is_virtual": false,
- "hash": 1102329001,
+ "hash": 125363422,
"return_value": {
"type": "PackedByteArray"
},
@@ -181226,6 +181279,18 @@
{
"name": "buffer",
"type": "RID"
+ },
+ {
+ "name": "offset_bytes",
+ "type": "int",
+ "meta": "uint32",
+ "default_value": "0"
+ },
+ {
+ "name": "size_bytes",
+ "type": "int",
+ "meta": "uint32",
+ "default_value": "0"
}
]
},
@@ -237948,6 +238013,43 @@
}
},
{
+ "name": "set_navigation_map",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 4040184819,
+ "arguments": [
+ {
+ "name": "layer",
+ "type": "int",
+ "meta": "int32"
+ },
+ {
+ "name": "map",
+ "type": "RID"
+ }
+ ]
+ },
+ {
+ "name": "get_navigation_map",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 495598643,
+ "return_value": {
+ "type": "RID"
+ },
+ "arguments": [
+ {
+ "name": "layer",
+ "type": "int",
+ "meta": "int32"
+ }
+ ]
+ },
+ {
"name": "set_cell",
"is_const": false,
"is_vararg": false,
diff --git a/gdextension/gdextension_interface.h b/gdextension/gdextension_interface.h
index 3865b15..f323b2a 100644
--- a/gdextension/gdextension_interface.h
+++ b/gdextension/gdextension_interface.h
@@ -554,7 +554,7 @@ typedef struct {
GDExtensionVariantPtr (*array_operator_index)(GDExtensionTypePtr p_self, GDExtensionInt p_index); // p_self should be an Array ptr
GDExtensionVariantPtr (*array_operator_index_const)(GDExtensionConstTypePtr p_self, GDExtensionInt p_index); // p_self should be an Array ptr
void (*array_ref)(GDExtensionTypePtr p_self, GDExtensionConstTypePtr p_from); // p_self should be an Array ptr
- void (*array_set_typed)(GDExtensionTypePtr p_self, uint32_t p_type, GDExtensionConstStringNamePtr p_class_name, GDExtensionConstVariantPtr p_script); // p_self should be an Array ptr
+ void (*array_set_typed)(GDExtensionTypePtr p_self, GDExtensionVariantType p_type, GDExtensionConstStringNamePtr p_class_name, GDExtensionConstVariantPtr p_script); // p_self should be an Array ptr
/* Dictionary functions */