Browse Source

gdextension: Sync with upstream commit b75f0485ba15951b87f1d9a2d8dd0fcd55e178e4 (4.3-beta2)

David Snopek 1 year ago
parent
commit
c414c2b37d
1 changed files with 328 additions and 11 deletions
  1. 328 11
      gdextension/extension_api.json

+ 328 - 11
gdextension/extension_api.json

@@ -3,9 +3,9 @@
 		"version_major": 4,
 		"version_major": 4,
 		"version_minor": 3,
 		"version_minor": 3,
 		"version_patch": 0,
 		"version_patch": 0,
-		"version_status": "beta",
-		"version_build": "custom_build",
-		"version_full_name": "Godot Engine v4.3.beta.custom_build"
+		"version_status": "beta2",
+		"version_build": "official",
+		"version_full_name": "Godot Engine v4.3.beta2.official"
 	},
 	},
 	"builtin_class_sizes": [
 	"builtin_class_sizes": [
 		{
 		{
@@ -40835,6 +40835,20 @@
 				}
 				}
 			]
 			]
 		},
 		},
+		{
+			"name": "AudioSample",
+			"is_refcounted": true,
+			"is_instantiable": true,
+			"inherits": "RefCounted",
+			"api_type": "core"
+		},
+		{
+			"name": "AudioSamplePlayback",
+			"is_refcounted": true,
+			"is_instantiable": true,
+			"inherits": "RefCounted",
+			"api_type": "core"
+		},
 		{
 		{
 			"name": "AudioServer",
 			"name": "AudioServer",
 			"is_refcounted": false,
 			"is_refcounted": false,
@@ -40863,6 +40877,28 @@
 							"value": 3
 							"value": 3
 						}
 						}
 					]
 					]
+				},
+				{
+					"name": "PlaybackType",
+					"is_bitfield": false,
+					"values": [
+						{
+							"name": "PLAYBACK_TYPE_DEFAULT",
+							"value": 0
+						},
+						{
+							"name": "PLAYBACK_TYPE_STREAM",
+							"value": 1
+						},
+						{
+							"name": "PLAYBACK_TYPE_SAMPLE",
+							"value": 2
+						},
+						{
+							"name": "PLAYBACK_TYPE_MAX",
+							"value": 3
+						}
+					]
 				}
 				}
 			],
 			],
 			"methods": [
 			"methods": [
@@ -41659,6 +41695,37 @@
 							"type": "bool"
 							"type": "bool"
 						}
 						}
 					]
 					]
+				},
+				{
+					"name": "is_stream_registered_as_sample",
+					"is_const": false,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 500225754,
+					"return_value": {
+						"type": "bool"
+					},
+					"arguments": [
+						{
+							"name": "stream",
+							"type": "AudioStream"
+						}
+					]
+				},
+				{
+					"name": "register_stream_as_sample",
+					"is_const": false,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 2210767741,
+					"arguments": [
+						{
+							"name": "stream",
+							"type": "AudioStream"
+						}
+					]
 				}
 				}
 			],
 			],
 			"signals": [
 			"signals": [
@@ -41823,6 +41890,39 @@
 					"return_value": {
 					"return_value": {
 						"type": "AudioStreamPlayback"
 						"type": "AudioStreamPlayback"
 					}
 					}
+				},
+				{
+					"name": "can_be_sampled",
+					"is_const": true,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 36873697,
+					"return_value": {
+						"type": "bool"
+					}
+				},
+				{
+					"name": "generate_sample",
+					"is_const": true,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 2646048999,
+					"return_value": {
+						"type": "AudioSample"
+					}
+				},
+				{
+					"name": "is_meta_stream",
+					"is_const": true,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 36873697,
+					"return_value": {
+						"type": "bool"
+					}
 				}
 				}
 			],
 			],
 			"signals": [
 			"signals": [
@@ -43177,6 +43277,31 @@
 							"type": "StringName"
 							"type": "StringName"
 						}
 						}
 					]
 					]
+				},
+				{
+					"name": "set_sample_playback",
+					"is_const": false,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 3195455091,
+					"arguments": [
+						{
+							"name": "playback_sample",
+							"type": "AudioSamplePlayback"
+						}
+					]
+				},
+				{
+					"name": "get_sample_playback",
+					"is_const": true,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 3482738536,
+					"return_value": {
+						"type": "AudioSamplePlayback"
+					}
 				}
 				}
 			]
 			]
 		},
 		},
@@ -43251,8 +43376,9 @@
 					"is_vararg": false,
 					"is_vararg": false,
 					"is_static": false,
 					"is_static": false,
 					"is_virtual": false,
 					"is_virtual": false,
-					"hash": 604492179,
+					"hash": 1846744803,
 					"hash_compatibility": [
 					"hash_compatibility": [
+						604492179,
 						3792189967
 						3792189967
 					],
 					],
 					"return_value": {
 					"return_value": {
@@ -43281,6 +43407,16 @@
 							"type": "float",
 							"type": "float",
 							"meta": "float",
 							"meta": "float",
 							"default_value": "1.0"
 							"default_value": "1.0"
+						},
+						{
+							"name": "playback_type",
+							"type": "enum::AudioServer.PlaybackType",
+							"default_value": "0"
+						},
+						{
+							"name": "bus",
+							"type": "StringName",
+							"default_value": "&\"Master\""
 						}
 						}
 					]
 					]
 				},
 				},
@@ -43735,6 +43871,31 @@
 					"return_value": {
 					"return_value": {
 						"type": "AudioStreamPlayback"
 						"type": "AudioStreamPlayback"
 					}
 					}
+				},
+				{
+					"name": "set_playback_type",
+					"is_const": false,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 725473817,
+					"arguments": [
+						{
+							"name": "playback_type",
+							"type": "enum::AudioServer.PlaybackType"
+						}
+					]
+				},
+				{
+					"name": "get_playback_type",
+					"is_const": true,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 4011264623,
+					"return_value": {
+						"type": "enum::AudioServer.PlaybackType"
+					}
 				}
 				}
 			],
 			],
 			"signals": [
 			"signals": [
@@ -43796,6 +43957,12 @@
 					"name": "bus",
 					"name": "bus",
 					"setter": "set_bus",
 					"setter": "set_bus",
 					"getter": "get_bus"
 					"getter": "get_bus"
+				},
+				{
+					"type": "int",
+					"name": "playback_type",
+					"setter": "set_playback_type",
+					"getter": "get_playback_type"
 				}
 				}
 			]
 			]
 		},
 		},
@@ -44181,6 +44348,31 @@
 					"return_value": {
 					"return_value": {
 						"type": "AudioStreamPlayback"
 						"type": "AudioStreamPlayback"
 					}
 					}
+				},
+				{
+					"name": "set_playback_type",
+					"is_const": false,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 725473817,
+					"arguments": [
+						{
+							"name": "playback_type",
+							"type": "enum::AudioServer.PlaybackType"
+						}
+					]
+				},
+				{
+					"name": "get_playback_type",
+					"is_const": true,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 4011264623,
+					"return_value": {
+						"type": "enum::AudioServer.PlaybackType"
+					}
 				}
 				}
 			],
 			],
 			"signals": [
 			"signals": [
@@ -44260,6 +44452,12 @@
 					"name": "area_mask",
 					"name": "area_mask",
 					"setter": "set_area_mask",
 					"setter": "set_area_mask",
 					"getter": "get_area_mask"
 					"getter": "get_area_mask"
+				},
+				{
+					"type": "int",
+					"name": "playback_type",
+					"setter": "set_playback_type",
+					"getter": "get_playback_type"
 				}
 				}
 			]
 			]
 		},
 		},
@@ -44897,6 +45095,31 @@
 					"return_value": {
 					"return_value": {
 						"type": "AudioStreamPlayback"
 						"type": "AudioStreamPlayback"
 					}
 					}
+				},
+				{
+					"name": "set_playback_type",
+					"is_const": false,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 725473817,
+					"arguments": [
+						{
+							"name": "playback_type",
+							"type": "enum::AudioServer.PlaybackType"
+						}
+					]
+				},
+				{
+					"name": "get_playback_type",
+					"is_const": true,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 4011264623,
+					"return_value": {
+						"type": "enum::AudioServer.PlaybackType"
+					}
 				}
 				}
 			],
 			],
 			"signals": [
 			"signals": [
@@ -44989,6 +45212,12 @@
 					"setter": "set_area_mask",
 					"setter": "set_area_mask",
 					"getter": "get_area_mask"
 					"getter": "get_area_mask"
 				},
 				},
+				{
+					"type": "int",
+					"name": "playback_type",
+					"setter": "set_playback_type",
+					"getter": "get_playback_type"
+				},
 				{
 				{
 					"type": "bool",
 					"type": "bool",
 					"name": "emission_angle_enabled",
 					"name": "emission_angle_enabled",
@@ -160753,6 +160982,35 @@
 				}
 				}
 			],
 			],
 			"methods": [
 			"methods": [
+				{
+					"name": "get_entropy",
+					"is_const": false,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 47165747,
+					"return_value": {
+						"type": "PackedByteArray"
+					},
+					"arguments": [
+						{
+							"name": "size",
+							"type": "int",
+							"meta": "int32"
+						}
+					]
+				},
+				{
+					"name": "get_system_ca_certificates",
+					"is_const": false,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 2841200299,
+					"return_value": {
+						"type": "String"
+					}
+				},
 				{
 				{
 					"name": "get_connected_midi_inputs",
 					"name": "get_connected_midi_inputs",
 					"is_const": false,
 					"is_const": false,
@@ -246520,6 +246778,72 @@
 							"type": "X509Certificate"
 							"type": "X509Certificate"
 						}
 						}
 					]
 					]
+				},
+				{
+					"name": "is_server",
+					"is_const": true,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 36873697,
+					"return_value": {
+						"type": "bool"
+					}
+				},
+				{
+					"name": "is_unsafe_client",
+					"is_const": true,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 36873697,
+					"return_value": {
+						"type": "bool"
+					}
+				},
+				{
+					"name": "get_common_name_override",
+					"is_const": true,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 201670096,
+					"return_value": {
+						"type": "String"
+					}
+				},
+				{
+					"name": "get_trusted_ca_chain",
+					"is_const": true,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 1120709175,
+					"return_value": {
+						"type": "X509Certificate"
+					}
+				},
+				{
+					"name": "get_private_key",
+					"is_const": true,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 2119971811,
+					"return_value": {
+						"type": "CryptoKey"
+					}
+				},
+				{
+					"name": "get_own_certificate",
+					"is_const": true,
+					"is_vararg": false,
+					"is_static": false,
+					"is_virtual": false,
+					"hash": 1120709175,
+					"return_value": {
+						"type": "X509Certificate"
+					}
 				}
 				}
 			]
 			]
 		},
 		},
@@ -264364,13 +264688,6 @@
 				}
 				}
 			]
 			]
 		},
 		},
-		{
-			"name": "TextServerFallback",
-			"is_refcounted": true,
-			"is_instantiable": true,
-			"inherits": "TextServerExtension",
-			"api_type": "core"
-		},
 		{
 		{
 			"name": "TextServerManager",
 			"name": "TextServerManager",
 			"is_refcounted": false,
 			"is_refcounted": false,