Bläddra i källkod

gdextension: Sync with upstream commit d5ad0556a2c04c50694b5c04dc1b3bf03ecd7113 (4.5-beta6)

David Snopek 2 veckor sedan
förälder
incheckning
4c78d30822
1 ändrade filer med 500 tillägg och 185 borttagningar
  1. 500 185
      gdextension/extension_api.json

+ 500 - 185
gdextension/extension_api.json

@@ -3,9 +3,9 @@
 		"version_major": 4,
 		"version_minor": 5,
 		"version_patch": 0,
-		"version_status": "beta5",
+		"version_status": "beta6",
 		"version_build": "official",
-		"version_full_name": "Godot Engine v4.5.beta5.official",
+		"version_full_name": "Godot Engine v4.5.beta6.official",
 		"precision": "single"
 	},
 	"builtin_class_sizes": [
@@ -63276,6 +63276,9 @@
 							"type": "int"
 						}
 					]
+				},
+				{
+					"name": "camera_feeds_updated"
 				}
 			],
 			"properties": [
@@ -82712,6 +82715,198 @@
 				}
 			]
 		},
+		{
+			"name": "DPITexture",
+			"is_refcounted": true,
+			"is_instantiable": true,
+			"inherits": "Texture2D",
+			"api_type": "core",
+			"methods": [
+				{
+					"name": "create_from_string",
+					"is_const": false,
+					"is_vararg": false,
+					"is_static": true,
+					"is_virtual": false,
+					"hash": 755140520,
+					"return_value": {
+						"type": "DPITexture"
+					},
+					"arguments": [
+						{
+							"name": "source",
+							"type": "String"
+						},
+						{
+							"name": "scale",
+							"type": "float",
+							"meta": "float",
+							"default_value": "1.0"
+						},
+						{
+							"name": "saturation",
+							"type": "float",
+							"meta": "float",
+							"default_value": "1.0"
+						},
+						{
+							"name": "color_map",
+							"type": "Dictionary",
+							"default_value": "{}"
+						}
+					]
+				},
+				{
+					"name": "set_source",
+					"is_const": false,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 83702148,
+					"arguments": [
+						{
+							"name": "source",
+							"type": "String"
+						}
+					]
+				},
+				{
+					"name": "get_source",
+					"is_const": true,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 201670096,
+					"return_value": {
+						"type": "String"
+					}
+				},
+				{
+					"name": "set_base_scale",
+					"is_const": false,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 373806689,
+					"arguments": [
+						{
+							"name": "base_scale",
+							"type": "float",
+							"meta": "float"
+						}
+					]
+				},
+				{
+					"name": "get_base_scale",
+					"is_const": true,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 1740695150,
+					"return_value": {
+						"type": "float",
+						"meta": "float"
+					}
+				},
+				{
+					"name": "set_saturation",
+					"is_const": false,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 373806689,
+					"arguments": [
+						{
+							"name": "saturation",
+							"type": "float",
+							"meta": "float"
+						}
+					]
+				},
+				{
+					"name": "get_saturation",
+					"is_const": true,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 1740695150,
+					"return_value": {
+						"type": "float",
+						"meta": "float"
+					}
+				},
+				{
+					"name": "set_color_map",
+					"is_const": false,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 4155329257,
+					"arguments": [
+						{
+							"name": "color_map",
+							"type": "Dictionary"
+						}
+					]
+				},
+				{
+					"name": "get_color_map",
+					"is_const": true,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 3102165223,
+					"return_value": {
+						"type": "Dictionary"
+					}
+				},
+				{
+					"name": "set_size_override",
+					"is_const": false,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 1130785943,
+					"arguments": [
+						{
+							"name": "size",
+							"type": "Vector2i"
+						}
+					]
+				},
+				{
+					"name": "get_scaled_rid",
+					"is_const": true,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 2944877500,
+					"return_value": {
+						"type": "RID"
+					}
+				}
+			],
+			"properties": [
+				{
+					"type": "float",
+					"name": "base_scale",
+					"setter": "set_base_scale",
+					"getter": "get_base_scale"
+				},
+				{
+					"type": "float",
+					"name": "saturation",
+					"setter": "set_saturation",
+					"getter": "get_saturation"
+				},
+				{
+					"type": "typeddictionary::Color;Color",
+					"name": "color_map",
+					"setter": "set_color_map",
+					"getter": "get_color_map"
+				}
+			]
+		},
 		{
 			"name": "DTLSServer",
 			"is_refcounted": true,
@@ -92794,7 +92989,7 @@
 					"is_vararg": false,
 					"is_static": true,
 					"is_virtual": false,
-					"hash": 3424652832,
+					"hash": 1939331020,
 					"hash_compatibility": [
 						2981934095
 					],
@@ -92804,7 +92999,8 @@
 					"arguments": [
 						{
 							"name": "preset",
-							"type": "EditorExportPreset"
+							"type": "EditorExportPreset",
+							"default_value": "null"
 						}
 					]
 				}
@@ -136390,6 +136586,58 @@
 						}
 					]
 				},
+				{
+					"name": "is_action_just_pressed_by_event",
+					"is_const": true,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 551972873,
+					"return_value": {
+						"type": "bool"
+					},
+					"arguments": [
+						{
+							"name": "action",
+							"type": "StringName"
+						},
+						{
+							"name": "event",
+							"type": "InputEvent"
+						},
+						{
+							"name": "exact_match",
+							"type": "bool",
+							"default_value": "false"
+						}
+					]
+				},
+				{
+					"name": "is_action_just_released_by_event",
+					"is_const": true,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 551972873,
+					"return_value": {
+						"type": "bool"
+					},
+					"arguments": [
+						{
+							"name": "action",
+							"type": "StringName"
+						},
+						{
+							"name": "event",
+							"type": "InputEvent"
+						},
+						{
+							"name": "exact_match",
+							"type": "bool",
+							"default_value": "false"
+						}
+					]
+				},
 				{
 					"name": "get_action_strength",
 					"is_const": true,
@@ -195174,6 +195422,60 @@
 						"type": "bool"
 					}
 				},
+				{
+					"name": "set_collision_layer",
+					"is_const": false,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 1286410249,
+					"arguments": [
+						{
+							"name": "layer",
+							"type": "int",
+							"meta": "uint32"
+						}
+					]
+				},
+				{
+					"name": "get_collision_layer",
+					"is_const": true,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 3905245786,
+					"return_value": {
+						"type": "int",
+						"meta": "uint32"
+					}
+				},
+				{
+					"name": "set_collision_mask",
+					"is_const": false,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 1286410249,
+					"arguments": [
+						{
+							"name": "mask",
+							"type": "int",
+							"meta": "uint32"
+						}
+					]
+				},
+				{
+					"name": "get_collision_mask",
+					"is_const": true,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 3905245786,
+					"return_value": {
+						"type": "int",
+						"meta": "uint32"
+					}
+				},
 				{
 					"name": "get_contact_count",
 					"is_const": true,
@@ -195478,6 +195780,18 @@
 					"setter": "set_sleep_state",
 					"getter": "is_sleeping"
 				},
+				{
+					"type": "int",
+					"name": "collision_layer",
+					"setter": "set_collision_layer",
+					"getter": "get_collision_layer"
+				},
+				{
+					"type": "int",
+					"name": "collision_mask",
+					"setter": "set_collision_mask",
+					"getter": "get_collision_mask"
+				},
 				{
 					"type": "Transform2D",
 					"name": "transform",
@@ -195915,6 +196229,64 @@
 						"type": "bool"
 					}
 				},
+				{
+					"name": "_set_collision_layer",
+					"is_const": false,
+					"is_static": false,
+					"is_required": true,
+					"is_vararg": false,
+					"is_virtual": true,
+					"hash": 1286410249,
+					"arguments": [
+						{
+							"name": "layer",
+							"type": "int",
+							"meta": "uint32"
+						}
+					]
+				},
+				{
+					"name": "_get_collision_layer",
+					"is_const": true,
+					"is_static": false,
+					"is_required": true,
+					"is_vararg": false,
+					"is_virtual": true,
+					"hash": 3905245786,
+					"return_value": {
+						"type": "int",
+						"meta": "uint32"
+					}
+				},
+				{
+					"name": "_set_collision_mask",
+					"is_const": false,
+					"is_static": false,
+					"is_required": true,
+					"is_vararg": false,
+					"is_virtual": true,
+					"hash": 1286410249,
+					"arguments": [
+						{
+							"name": "mask",
+							"type": "int",
+							"meta": "uint32"
+						}
+					]
+				},
+				{
+					"name": "_get_collision_mask",
+					"is_const": true,
+					"is_static": false,
+					"is_required": true,
+					"is_vararg": false,
+					"is_virtual": true,
+					"hash": 3905245786,
+					"return_value": {
+						"type": "int",
+						"meta": "uint32"
+					}
+				},
 				{
 					"name": "_get_contact_count",
 					"is_const": true,
@@ -196605,6 +196977,60 @@
 						"type": "bool"
 					}
 				},
+				{
+					"name": "set_collision_layer",
+					"is_const": false,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 1286410249,
+					"arguments": [
+						{
+							"name": "layer",
+							"type": "int",
+							"meta": "uint32"
+						}
+					]
+				},
+				{
+					"name": "get_collision_layer",
+					"is_const": true,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 3905245786,
+					"return_value": {
+						"type": "int",
+						"meta": "uint32"
+					}
+				},
+				{
+					"name": "set_collision_mask",
+					"is_const": false,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 1286410249,
+					"arguments": [
+						{
+							"name": "mask",
+							"type": "int",
+							"meta": "uint32"
+						}
+					]
+				},
+				{
+					"name": "get_collision_mask",
+					"is_const": true,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 3905245786,
+					"return_value": {
+						"type": "int",
+						"meta": "uint32"
+					}
+				},
 				{
 					"name": "get_contact_count",
 					"is_const": true,
@@ -196919,6 +197345,18 @@
 					"setter": "set_sleep_state",
 					"getter": "is_sleeping"
 				},
+				{
+					"type": "int",
+					"name": "collision_layer",
+					"setter": "set_collision_layer",
+					"getter": "get_collision_layer"
+				},
+				{
+					"type": "int",
+					"name": "collision_mask",
+					"setter": "set_collision_mask",
+					"getter": "get_collision_mask"
+				},
 				{
 					"type": "Transform3D",
 					"name": "transform",
@@ -197372,6 +197810,64 @@
 						"type": "bool"
 					}
 				},
+				{
+					"name": "_set_collision_layer",
+					"is_const": false,
+					"is_static": false,
+					"is_required": true,
+					"is_vararg": false,
+					"is_virtual": true,
+					"hash": 1286410249,
+					"arguments": [
+						{
+							"name": "layer",
+							"type": "int",
+							"meta": "uint32"
+						}
+					]
+				},
+				{
+					"name": "_get_collision_layer",
+					"is_const": true,
+					"is_static": false,
+					"is_required": true,
+					"is_vararg": false,
+					"is_virtual": true,
+					"hash": 3905245786,
+					"return_value": {
+						"type": "int",
+						"meta": "uint32"
+					}
+				},
+				{
+					"name": "_set_collision_mask",
+					"is_const": false,
+					"is_static": false,
+					"is_required": true,
+					"is_vararg": false,
+					"is_virtual": true,
+					"hash": 1286410249,
+					"arguments": [
+						{
+							"name": "mask",
+							"type": "int",
+							"meta": "uint32"
+						}
+					]
+				},
+				{
+					"name": "_get_collision_mask",
+					"is_const": true,
+					"is_static": false,
+					"is_required": true,
+					"is_vararg": false,
+					"is_virtual": true,
+					"hash": 3905245786,
+					"return_value": {
+						"type": "int",
+						"meta": "uint32"
+					}
+				},
 				{
 					"name": "_get_contact_count",
 					"is_const": true,
@@ -252895,187 +253391,6 @@
 				}
 			]
 		},
-		{
-			"name": "SVGTexture",
-			"is_refcounted": true,
-			"is_instantiable": true,
-			"inherits": "Texture2D",
-			"api_type": "core",
-			"methods": [
-				{
-					"name": "create_from_string",
-					"is_const": false,
-					"is_vararg": false,
-					"is_static": true,
-					"is_virtual": false,
-					"hash": 2404345842,
-					"return_value": {
-						"type": "SVGTexture"
-					},
-					"arguments": [
-						{
-							"name": "source",
-							"type": "String"
-						},
-						{
-							"name": "scale",
-							"type": "float",
-							"meta": "float",
-							"default_value": "1.0"
-						},
-						{
-							"name": "saturation",
-							"type": "float",
-							"meta": "float",
-							"default_value": "1.0"
-						},
-						{
-							"name": "color_map",
-							"type": "Dictionary",
-							"default_value": "{}"
-						}
-					]
-				},
-				{
-					"name": "set_source",
-					"is_const": false,
-					"is_vararg": false,
-					"is_static": false,
-					"is_virtual": false,
-					"hash": 83702148,
-					"arguments": [
-						{
-							"name": "source",
-							"type": "String"
-						}
-					]
-				},
-				{
-					"name": "get_source",
-					"is_const": true,
-					"is_vararg": false,
-					"is_static": false,
-					"is_virtual": false,
-					"hash": 201670096,
-					"return_value": {
-						"type": "String"
-					}
-				},
-				{
-					"name": "set_base_scale",
-					"is_const": false,
-					"is_vararg": false,
-					"is_static": false,
-					"is_virtual": false,
-					"hash": 373806689,
-					"arguments": [
-						{
-							"name": "base_scale",
-							"type": "float",
-							"meta": "float"
-						}
-					]
-				},
-				{
-					"name": "get_base_scale",
-					"is_const": true,
-					"is_vararg": false,
-					"is_static": false,
-					"is_virtual": false,
-					"hash": 1740695150,
-					"return_value": {
-						"type": "float",
-						"meta": "float"
-					}
-				},
-				{
-					"name": "set_saturation",
-					"is_const": false,
-					"is_vararg": false,
-					"is_static": false,
-					"is_virtual": false,
-					"hash": 373806689,
-					"arguments": [
-						{
-							"name": "saturation",
-							"type": "float",
-							"meta": "float"
-						}
-					]
-				},
-				{
-					"name": "get_saturation",
-					"is_const": true,
-					"is_vararg": false,
-					"is_static": false,
-					"is_virtual": false,
-					"hash": 1740695150,
-					"return_value": {
-						"type": "float",
-						"meta": "float"
-					}
-				},
-				{
-					"name": "set_color_map",
-					"is_const": false,
-					"is_vararg": false,
-					"is_static": false,
-					"is_virtual": false,
-					"hash": 4155329257,
-					"arguments": [
-						{
-							"name": "color_map",
-							"type": "Dictionary"
-						}
-					]
-				},
-				{
-					"name": "get_color_map",
-					"is_const": true,
-					"is_vararg": false,
-					"is_static": false,
-					"is_virtual": false,
-					"hash": 3102165223,
-					"return_value": {
-						"type": "Dictionary"
-					}
-				},
-				{
-					"name": "set_size_override",
-					"is_const": false,
-					"is_vararg": false,
-					"is_static": false,
-					"is_virtual": false,
-					"hash": 1130785943,
-					"arguments": [
-						{
-							"name": "size",
-							"type": "Vector2i"
-						}
-					]
-				}
-			],
-			"properties": [
-				{
-					"type": "float",
-					"name": "base_scale",
-					"setter": "set_base_scale",
-					"getter": "get_base_scale"
-				},
-				{
-					"type": "float",
-					"name": "saturation",
-					"setter": "set_saturation",
-					"getter": "get_saturation"
-				},
-				{
-					"type": "typeddictionary::Color;Color",
-					"name": "color_map",
-					"setter": "set_color_map",
-					"getter": "get_color_map"
-				}
-			]
-		},
 		{
 			"name": "SceneMultiplayer",
 			"is_refcounted": true,