[Method Bind] Add support for default argument values and static method binding. Sync headers.

This commit is contained in:
bruvzg
2022-05-04 14:27:08 +03:00
parent 24e4aeb2c6
commit 031a83b0ea
11 changed files with 794 additions and 115 deletions

View File

@@ -8290,7 +8290,7 @@
"hash": 3,
"arguments": [
{
"name": "phi",
"name": "angle",
"type": "float"
}
]
@@ -9779,11 +9779,11 @@
"hash": 3,
"arguments": [
{
"name": "by_axis",
"name": "axis",
"type": "Vector3"
},
{
"name": "phi",
"name": "angle",
"type": "float"
}
]
@@ -10557,7 +10557,7 @@
"hash": 3,
"arguments": [
{
"name": "phi",
"name": "angle",
"type": "float"
}
]
@@ -11997,7 +11997,7 @@
"type": "Vector3"
},
{
"name": "phi",
"name": "angle",
"type": "float"
}
]
@@ -12212,7 +12212,7 @@
"type": "Vector3"
},
{
"name": "phi",
"name": "angle",
"type": "float"
}
]
@@ -12372,7 +12372,7 @@
"type": "Vector3"
},
{
"name": "phi",
"name": "angle",
"type": "float"
}
]
@@ -30002,56 +30002,6 @@
}
]
},
{
"name": "set_start_node",
"is_const": false,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 134188166,
"arguments": [
{
"name": "name",
"type": "StringName"
}
]
},
{
"name": "get_start_node",
"is_const": true,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 135338183,
"return_value": {
"type": "String"
}
},
{
"name": "set_end_node",
"is_const": false,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 134188166,
"arguments": [
{
"name": "name",
"type": "StringName"
}
]
},
{
"name": "get_end_node",
"is_const": true,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 135338183,
"return_value": {
"type": "String"
}
},
{
"name": "set_graph_offset",
"is_const": false,
@@ -120220,6 +120170,156 @@
}
]
},
{
"name": "MissingNode",
"is_refcounted": false,
"is_instantiable": true,
"inherits": "Node",
"api_type": "core",
"methods": [
{
"name": "set_original_class",
"is_const": false,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 134188166,
"arguments": [
{
"name": "name",
"type": "String"
}
]
},
{
"name": "get_original_class",
"is_const": true,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 135338183,
"return_value": {
"type": "String"
}
},
{
"name": "set_recording_properties",
"is_const": false,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 134188166,
"arguments": [
{
"name": "enable",
"type": "bool"
}
]
},
{
"name": "is_recording_properties",
"is_const": true,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 135338183,
"return_value": {
"type": "bool"
}
}
],
"properties": [
{
"type": "String",
"name": "original_class",
"setter": "set_original_class",
"getter": "get_original_class",
"index": -1
},
{
"type": "bool",
"name": "recording_properties",
"setter": "set_recording_properties",
"getter": "is_recording_properties",
"index": -1
}
]
},
{
"name": "MissingResource",
"is_refcounted": true,
"is_instantiable": true,
"inherits": "Resource",
"api_type": "core",
"methods": [
{
"name": "set_original_class",
"is_const": false,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 134188166,
"arguments": [
{
"name": "name",
"type": "String"
}
]
},
{
"name": "get_original_class",
"is_const": true,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 135338183,
"return_value": {
"type": "String"
}
},
{
"name": "set_recording_properties",
"is_const": false,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 134188166,
"arguments": [
{
"name": "enable",
"type": "bool"
}
]
},
{
"name": "is_recording_properties",
"is_const": true,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 135338183,
"return_value": {
"type": "bool"
}
}
],
"properties": [
{
"type": "String",
"name": "original_class",
"setter": "set_original_class",
"getter": "get_original_class",
"index": -1
},
{
"type": "bool",
"name": "recording_properties",
"setter": "set_recording_properties",
"getter": "is_recording_properties",
"index": -1
}
]
},
{
"name": "MobileVRInterface",
"is_refcounted": true,
@@ -124876,7 +124976,14 @@
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 134152229
"hash": 133279208,
"arguments": [
{
"name": "on_thread",
"type": "bool",
"default_value": "true"
}
]
}
],
"signals": [
@@ -130865,6 +130972,24 @@
}
]
},
{
"name": "is_process_running",
"is_const": true,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 135374120,
"return_value": {
"type": "bool"
},
"arguments": [
{
"name": "pid",
"type": "int",
"meta": "int32"
}
]
},
{
"name": "get_process_id",
"is_const": true,
@@ -151227,6 +151352,206 @@
}
]
},
{
"name": "PlaceholderCubemap",
"is_refcounted": true,
"is_instantiable": true,
"inherits": "PlaceholderTextureLayered",
"api_type": "core"
},
{
"name": "PlaceholderCubemapArray",
"is_refcounted": true,
"is_instantiable": true,
"inherits": "PlaceholderTextureLayered",
"api_type": "core"
},
{
"name": "PlaceholderMaterial",
"is_refcounted": true,
"is_instantiable": true,
"inherits": "Material",
"api_type": "core"
},
{
"name": "PlaceholderMesh",
"is_refcounted": true,
"is_instantiable": true,
"inherits": "Mesh",
"api_type": "core",
"methods": [
{
"name": "set_aabb",
"is_const": false,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 134188166,
"arguments": [
{
"name": "aabb",
"type": "AABB"
}
]
}
],
"properties": [
{
"type": "AABB",
"name": "aabb",
"setter": "set_aabb",
"getter": "get_aabb",
"index": -1
}
]
},
{
"name": "PlaceholderTexture2D",
"is_refcounted": true,
"is_instantiable": true,
"inherits": "Texture2D",
"api_type": "core",
"methods": [
{
"name": "set_size",
"is_const": false,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 134188166,
"arguments": [
{
"name": "size",
"type": "Vector2"
}
]
}
],
"properties": [
{
"type": "Vector2i",
"name": "size",
"setter": "set_size",
"getter": "get_size",
"index": -1
}
]
},
{
"name": "PlaceholderTexture2DArray",
"is_refcounted": true,
"is_instantiable": true,
"inherits": "PlaceholderTextureLayered",
"api_type": "core"
},
{
"name": "PlaceholderTexture3D",
"is_refcounted": true,
"is_instantiable": true,
"inherits": "Texture3D",
"api_type": "core",
"methods": [
{
"name": "set_size",
"is_const": false,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 134188166,
"arguments": [
{
"name": "size",
"type": "Vector3i"
}
]
},
{
"name": "get_size",
"is_const": true,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 135338183,
"return_value": {
"type": "Vector3i"
}
}
],
"properties": [
{
"type": "Vector3i",
"name": "size",
"setter": "set_size",
"getter": "get_size",
"index": -1
}
]
},
{
"name": "PlaceholderTextureLayered",
"is_refcounted": true,
"is_instantiable": false,
"inherits": "TextureLayered",
"api_type": "core",
"methods": [
{
"name": "set_size",
"is_const": false,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 134188166,
"arguments": [
{
"name": "size",
"type": "Vector2i"
}
]
},
{
"name": "get_size",
"is_const": true,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 135338183,
"return_value": {
"type": "Vector2i"
}
},
{
"name": "set_layers",
"is_const": false,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 134188166,
"arguments": [
{
"name": "layers",
"type": "int",
"meta": "int32"
}
]
}
],
"properties": [
{
"type": "Vector2i",
"name": "size",
"setter": "set_size",
"getter": "get_size",
"index": -1
},
{
"type": "int",
"name": "layers",
"setter": "set_layers",
"getter": "get_layers",
"index": -1
}
]
},
{
"name": "PlaneMesh",
"is_refcounted": true,
@@ -176586,6 +176911,17 @@
"type": "enum::RenderingDevice.DeviceType"
}
},
{
"name": "get_video_adapter_api_version",
"is_const": true,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
"hash": 135338183,
"return_value": {
"type": "String"
}
},
{
"name": "make_sphere_mesh",
"is_const": false,
@@ -215014,6 +215350,13 @@
}
]
},
{
"name": "TextServerFallback",
"is_refcounted": true,
"is_instantiable": true,
"inherits": "TextServerExtension",
"api_type": "core"
},
{
"name": "TextServerManager",
"is_refcounted": false,
@@ -223084,7 +223427,7 @@
]
},
{
"name": "get_datetime_dict_from_string",
"name": "get_datetime_dict_from_datetime_string",
"is_const": true,
"is_vararg": false,
"is_static": false,
@@ -223105,7 +223448,7 @@
]
},
{
"name": "get_datetime_string_from_dict",
"name": "get_datetime_string_from_datetime_dict",
"is_const": true,
"is_vararg": false,
"is_static": false,