diff options
Diffstat (limited to 'scene/3d')
36 files changed, 698 insertions, 698 deletions
diff --git a/scene/3d/area.cpp b/scene/3d/area.cpp index 2511992057..92ac091fc5 100644 --- a/scene/3d/area.cpp +++ b/scene/3d/area.cpp @@ -576,63 +576,63 @@ bool Area::get_layer_mask_bit(int p_bit) const{ void Area::_bind_methods() { - ClassDB::bind_method(_MD("_body_enter_tree","id"),&Area::_body_enter_tree); - ClassDB::bind_method(_MD("_body_exit_tree","id"),&Area::_body_exit_tree); + ClassDB::bind_method(D_METHOD("_body_enter_tree","id"),&Area::_body_enter_tree); + ClassDB::bind_method(D_METHOD("_body_exit_tree","id"),&Area::_body_exit_tree); - ClassDB::bind_method(_MD("_area_enter_tree","id"),&Area::_area_enter_tree); - ClassDB::bind_method(_MD("_area_exit_tree","id"),&Area::_area_exit_tree); + ClassDB::bind_method(D_METHOD("_area_enter_tree","id"),&Area::_area_enter_tree); + ClassDB::bind_method(D_METHOD("_area_exit_tree","id"),&Area::_area_exit_tree); - ClassDB::bind_method(_MD("set_space_override_mode","enable"),&Area::set_space_override_mode); - ClassDB::bind_method(_MD("get_space_override_mode"),&Area::get_space_override_mode); + ClassDB::bind_method(D_METHOD("set_space_override_mode","enable"),&Area::set_space_override_mode); + ClassDB::bind_method(D_METHOD("get_space_override_mode"),&Area::get_space_override_mode); - ClassDB::bind_method(_MD("set_gravity_is_point","enable"),&Area::set_gravity_is_point); - ClassDB::bind_method(_MD("is_gravity_a_point"),&Area::is_gravity_a_point); + ClassDB::bind_method(D_METHOD("set_gravity_is_point","enable"),&Area::set_gravity_is_point); + ClassDB::bind_method(D_METHOD("is_gravity_a_point"),&Area::is_gravity_a_point); - ClassDB::bind_method(_MD("set_gravity_distance_scale","distance_scale"),&Area::set_gravity_distance_scale); - ClassDB::bind_method(_MD("get_gravity_distance_scale"),&Area::get_gravity_distance_scale); + ClassDB::bind_method(D_METHOD("set_gravity_distance_scale","distance_scale"),&Area::set_gravity_distance_scale); + ClassDB::bind_method(D_METHOD("get_gravity_distance_scale"),&Area::get_gravity_distance_scale); - ClassDB::bind_method(_MD("set_gravity_vector","vector"),&Area::set_gravity_vector); - ClassDB::bind_method(_MD("get_gravity_vector"),&Area::get_gravity_vector); + ClassDB::bind_method(D_METHOD("set_gravity_vector","vector"),&Area::set_gravity_vector); + ClassDB::bind_method(D_METHOD("get_gravity_vector"),&Area::get_gravity_vector); - ClassDB::bind_method(_MD("set_gravity","gravity"),&Area::set_gravity); - ClassDB::bind_method(_MD("get_gravity"),&Area::get_gravity); + ClassDB::bind_method(D_METHOD("set_gravity","gravity"),&Area::set_gravity); + ClassDB::bind_method(D_METHOD("get_gravity"),&Area::get_gravity); - ClassDB::bind_method(_MD("set_angular_damp","angular_damp"),&Area::set_angular_damp); - ClassDB::bind_method(_MD("get_angular_damp"),&Area::get_angular_damp); + ClassDB::bind_method(D_METHOD("set_angular_damp","angular_damp"),&Area::set_angular_damp); + ClassDB::bind_method(D_METHOD("get_angular_damp"),&Area::get_angular_damp); - ClassDB::bind_method(_MD("set_linear_damp","linear_damp"),&Area::set_linear_damp); - ClassDB::bind_method(_MD("get_linear_damp"),&Area::get_linear_damp); + ClassDB::bind_method(D_METHOD("set_linear_damp","linear_damp"),&Area::set_linear_damp); + ClassDB::bind_method(D_METHOD("get_linear_damp"),&Area::get_linear_damp); - ClassDB::bind_method(_MD("set_priority","priority"),&Area::set_priority); - ClassDB::bind_method(_MD("get_priority"),&Area::get_priority); + ClassDB::bind_method(D_METHOD("set_priority","priority"),&Area::set_priority); + ClassDB::bind_method(D_METHOD("get_priority"),&Area::get_priority); - ClassDB::bind_method(_MD("set_collision_mask","collision_mask"),&Area::set_collision_mask); - ClassDB::bind_method(_MD("get_collision_mask"),&Area::get_collision_mask); + ClassDB::bind_method(D_METHOD("set_collision_mask","collision_mask"),&Area::set_collision_mask); + ClassDB::bind_method(D_METHOD("get_collision_mask"),&Area::get_collision_mask); - ClassDB::bind_method(_MD("set_layer_mask","layer_mask"),&Area::set_layer_mask); - ClassDB::bind_method(_MD("get_layer_mask"),&Area::get_layer_mask); + ClassDB::bind_method(D_METHOD("set_layer_mask","layer_mask"),&Area::set_layer_mask); + ClassDB::bind_method(D_METHOD("get_layer_mask"),&Area::get_layer_mask); - ClassDB::bind_method(_MD("set_collision_mask_bit","bit","value"),&Area::set_collision_mask_bit); - ClassDB::bind_method(_MD("get_collision_mask_bit","bit"),&Area::get_collision_mask_bit); + ClassDB::bind_method(D_METHOD("set_collision_mask_bit","bit","value"),&Area::set_collision_mask_bit); + ClassDB::bind_method(D_METHOD("get_collision_mask_bit","bit"),&Area::get_collision_mask_bit); - ClassDB::bind_method(_MD("set_layer_mask_bit","bit","value"),&Area::set_layer_mask_bit); - ClassDB::bind_method(_MD("get_layer_mask_bit","bit"),&Area::get_layer_mask_bit); + ClassDB::bind_method(D_METHOD("set_layer_mask_bit","bit","value"),&Area::set_layer_mask_bit); + ClassDB::bind_method(D_METHOD("get_layer_mask_bit","bit"),&Area::get_layer_mask_bit); - ClassDB::bind_method(_MD("set_monitorable","enable"),&Area::set_monitorable); - ClassDB::bind_method(_MD("is_monitorable"),&Area::is_monitorable); + ClassDB::bind_method(D_METHOD("set_monitorable","enable"),&Area::set_monitorable); + ClassDB::bind_method(D_METHOD("is_monitorable"),&Area::is_monitorable); - ClassDB::bind_method(_MD("set_monitoring","enable"),&Area::set_monitoring); - ClassDB::bind_method(_MD("is_monitoring"),&Area::is_monitoring); + ClassDB::bind_method(D_METHOD("set_monitoring","enable"),&Area::set_monitoring); + ClassDB::bind_method(D_METHOD("is_monitoring"),&Area::is_monitoring); - ClassDB::bind_method(_MD("get_overlapping_bodies"),&Area::get_overlapping_bodies); - ClassDB::bind_method(_MD("get_overlapping_areas"),&Area::get_overlapping_areas); + ClassDB::bind_method(D_METHOD("get_overlapping_bodies"),&Area::get_overlapping_bodies); + ClassDB::bind_method(D_METHOD("get_overlapping_areas"),&Area::get_overlapping_areas); - ClassDB::bind_method(_MD("overlaps_body","body"),&Area::overlaps_body); - ClassDB::bind_method(_MD("overlaps_area","area"),&Area::overlaps_area); + ClassDB::bind_method(D_METHOD("overlaps_body","body"),&Area::overlaps_body); + ClassDB::bind_method(D_METHOD("overlaps_area","area"),&Area::overlaps_area); - ClassDB::bind_method(_MD("_body_inout"),&Area::_body_inout); - ClassDB::bind_method(_MD("_area_inout"),&Area::_area_inout); + ClassDB::bind_method(D_METHOD("_body_inout"),&Area::_body_inout); + ClassDB::bind_method(D_METHOD("_area_inout"),&Area::_area_inout); ADD_SIGNAL( MethodInfo("body_shape_entered",PropertyInfo(Variant::INT,"body_id"),PropertyInfo(Variant::OBJECT,"body"),PropertyInfo(Variant::INT,"body_shape"),PropertyInfo(Variant::INT,"area_shape"))); diff --git a/scene/3d/baked_light_instance.cpp b/scene/3d/baked_light_instance.cpp index 884ac7ec9a..e20d8faafd 100644 --- a/scene/3d/baked_light_instance.cpp +++ b/scene/3d/baked_light_instance.cpp @@ -1718,23 +1718,23 @@ void BakedLight::_debug_mesh_light() { void BakedLight::_bind_methods() { - ClassDB::bind_method(_MD("set_cell_subdiv","steps"),&BakedLight::set_cell_subdiv); - ClassDB::bind_method(_MD("get_cell_subdiv"),&BakedLight::get_cell_subdiv); + ClassDB::bind_method(D_METHOD("set_cell_subdiv","steps"),&BakedLight::set_cell_subdiv); + ClassDB::bind_method(D_METHOD("get_cell_subdiv"),&BakedLight::get_cell_subdiv); - ClassDB::bind_method(_MD("bake"),&BakedLight::bake); + ClassDB::bind_method(D_METHOD("bake"),&BakedLight::bake); ClassDB::set_method_flags(get_class_static(),_scs_create("bake"),METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR); - ClassDB::bind_method(_MD("bake_lights"),&BakedLight::bake_lights); + ClassDB::bind_method(D_METHOD("bake_lights"),&BakedLight::bake_lights); ClassDB::set_method_flags(get_class_static(),_scs_create("bake_lights"),METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR); - ClassDB::bind_method(_MD("bake_radiance"),&BakedLight::bake_radiance); + ClassDB::bind_method(D_METHOD("bake_radiance"),&BakedLight::bake_radiance); ClassDB::set_method_flags(get_class_static(),_scs_create("bake_radiance"),METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR); - ClassDB::bind_method(_MD("debug_mesh_albedo"),&BakedLight::_debug_mesh_albedo); + ClassDB::bind_method(D_METHOD("debug_mesh_albedo"),&BakedLight::_debug_mesh_albedo); ClassDB::set_method_flags(get_class_static(),_scs_create("debug_mesh_albedo"),METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR); - ClassDB::bind_method(_MD("debug_mesh_light"),&BakedLight::_debug_mesh_light); + ClassDB::bind_method(D_METHOD("debug_mesh_light"),&BakedLight::_debug_mesh_light); ClassDB::set_method_flags(get_class_static(),_scs_create("debug_mesh_light"),METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR); ADD_PROPERTY(PropertyInfo(Variant::INT,"cell_subdiv"),"set_cell_subdiv","get_cell_subdiv"); @@ -1797,11 +1797,11 @@ DVector<Face3> BakedLightSampler::get_faces(uint32_t p_usage_flags) const { void BakedLightSampler::_bind_methods() { - ClassDB::bind_method(_MD("set_param","param","value"),&BakedLightSampler::set_param); - ClassDB::bind_method(_MD("get_param","param"),&BakedLightSampler::get_param); + ClassDB::bind_method(D_METHOD("set_param","param","value"),&BakedLightSampler::set_param); + ClassDB::bind_method(D_METHOD("get_param","param"),&BakedLightSampler::get_param); - ClassDB::bind_method(_MD("set_resolution","resolution"),&BakedLightSampler::set_resolution); - ClassDB::bind_method(_MD("get_resolution"),&BakedLightSampler::get_resolution); + ClassDB::bind_method(D_METHOD("set_resolution","resolution"),&BakedLightSampler::set_resolution); + ClassDB::bind_method(D_METHOD("get_resolution"),&BakedLightSampler::get_resolution); BIND_CONSTANT( PARAM_RADIUS ); diff --git a/scene/3d/body_shape.cpp b/scene/3d/body_shape.cpp index 849c78973a..af3fe3c0a4 100644 --- a/scene/3d/body_shape.cpp +++ b/scene/3d/body_shape.cpp @@ -414,18 +414,18 @@ String CollisionShape::get_configuration_warning() const { void CollisionShape::_bind_methods() { //not sure if this should do anything - ClassDB::bind_method(_MD("resource_changed","resource"),&CollisionShape::resource_changed); - ClassDB::bind_method(_MD("set_shape","shape"),&CollisionShape::set_shape); - ClassDB::bind_method(_MD("get_shape"),&CollisionShape::get_shape); - ClassDB::bind_method(_MD("_add_to_collision_object"),&CollisionShape::_add_to_collision_object); - ClassDB::bind_method(_MD("set_trigger","enable"),&CollisionShape::set_trigger); - ClassDB::bind_method(_MD("is_trigger"),&CollisionShape::is_trigger); - ClassDB::bind_method(_MD("make_convex_from_brothers"),&CollisionShape::make_convex_from_brothers); + ClassDB::bind_method(D_METHOD("resource_changed","resource"),&CollisionShape::resource_changed); + ClassDB::bind_method(D_METHOD("set_shape","shape"),&CollisionShape::set_shape); + ClassDB::bind_method(D_METHOD("get_shape"),&CollisionShape::get_shape); + ClassDB::bind_method(D_METHOD("_add_to_collision_object"),&CollisionShape::_add_to_collision_object); + ClassDB::bind_method(D_METHOD("set_trigger","enable"),&CollisionShape::set_trigger); + ClassDB::bind_method(D_METHOD("is_trigger"),&CollisionShape::is_trigger); + ClassDB::bind_method(D_METHOD("make_convex_from_brothers"),&CollisionShape::make_convex_from_brothers); ClassDB::set_method_flags("CollisionShape","make_convex_from_brothers",METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR); - ClassDB::bind_method(_MD("_set_update_shape_index","index"),&CollisionShape::_set_update_shape_index); - ClassDB::bind_method(_MD("_get_update_shape_index"),&CollisionShape::_get_update_shape_index); + ClassDB::bind_method(D_METHOD("_set_update_shape_index","index"),&CollisionShape::_set_update_shape_index); + ClassDB::bind_method(D_METHOD("_get_update_shape_index"),&CollisionShape::_get_update_shape_index); - ClassDB::bind_method(_MD("get_collision_object_shape_index"),&CollisionShape::get_collision_object_shape_index); + ClassDB::bind_method(D_METHOD("get_collision_object_shape_index"),&CollisionShape::get_collision_object_shape_index); ADD_PROPERTY( PropertyInfo( Variant::OBJECT, "shape", PROPERTY_HINT_RESOURCE_TYPE, "Shape"), "set_shape", "get_shape"); ADD_PROPERTY(PropertyInfo(Variant::BOOL,"trigger"),"set_trigger","is_trigger"); diff --git a/scene/3d/bone_attachment.cpp b/scene/3d/bone_attachment.cpp index 825cf1c535..1a2680e3b8 100644 --- a/scene/3d/bone_attachment.cpp +++ b/scene/3d/bone_attachment.cpp @@ -139,6 +139,6 @@ BoneAttachment::BoneAttachment() } void BoneAttachment::_bind_methods(){ - ClassDB::bind_method(_MD("set_bone_name","bone_name"),&BoneAttachment::set_bone_name); - ClassDB::bind_method(_MD("get_bone_name"),&BoneAttachment::get_bone_name); + ClassDB::bind_method(D_METHOD("set_bone_name","bone_name"),&BoneAttachment::set_bone_name); + ClassDB::bind_method(D_METHOD("get_bone_name"),&BoneAttachment::get_bone_name); } diff --git a/scene/3d/camera.cpp b/scene/3d/camera.cpp index 5bd2c771ee..2e04f2d8bc 100644 --- a/scene/3d/camera.cpp +++ b/scene/3d/camera.cpp @@ -548,34 +548,34 @@ Camera::KeepAspect Camera::get_keep_aspect_mode() const{ void Camera::_bind_methods() { - ClassDB::bind_method( _MD("project_ray_normal","screen_point"), &Camera::project_ray_normal); - ClassDB::bind_method( _MD("project_local_ray_normal","screen_point"), &Camera::project_local_ray_normal); - ClassDB::bind_method( _MD("project_ray_origin","screen_point"), &Camera::project_ray_origin); - ClassDB::bind_method( _MD("unproject_position","world_point"), &Camera::unproject_position); - ClassDB::bind_method( _MD("is_position_behind","world_point"), &Camera::is_position_behind); - ClassDB::bind_method( _MD("project_position","screen_point"), &Camera::project_position); - ClassDB::bind_method( _MD("set_perspective","fov","z_near","z_far"),&Camera::set_perspective ); - ClassDB::bind_method( _MD("set_orthogonal","size","z_near","z_far"),&Camera::set_orthogonal ); - ClassDB::bind_method( _MD("make_current"),&Camera::make_current ); - ClassDB::bind_method( _MD("clear_current"),&Camera::clear_current ); - ClassDB::bind_method( _MD("is_current"),&Camera::is_current ); - ClassDB::bind_method( _MD("get_camera_transform"),&Camera::get_camera_transform ); - ClassDB::bind_method( _MD("get_fov"),&Camera::get_fov ); - ClassDB::bind_method( _MD("get_size"),&Camera::get_size ); - ClassDB::bind_method( _MD("get_zfar"),&Camera::get_zfar ); - ClassDB::bind_method( _MD("get_znear"),&Camera::get_znear ); - ClassDB::bind_method( _MD("get_projection"),&Camera::get_projection ); - ClassDB::bind_method( _MD("set_h_offset","ofs"),&Camera::set_h_offset ); - ClassDB::bind_method( _MD("get_h_offset"),&Camera::get_h_offset ); - ClassDB::bind_method( _MD("set_v_offset","ofs"),&Camera::set_v_offset ); - ClassDB::bind_method( _MD("get_v_offset"),&Camera::get_v_offset ); - ClassDB::bind_method( _MD("set_cull_mask","mask"),&Camera::set_cull_mask ); - ClassDB::bind_method( _MD("get_cull_mask"),&Camera::get_cull_mask ); - ClassDB::bind_method( _MD("set_environment","env:Environment"),&Camera::set_environment ); - ClassDB::bind_method( _MD("get_environment:Environment"),&Camera::get_environment ); - ClassDB::bind_method( _MD("set_keep_aspect_mode","mode"),&Camera::set_keep_aspect_mode ); - ClassDB::bind_method( _MD("get_keep_aspect_mode"),&Camera::get_keep_aspect_mode ); - //ClassDB::bind_method( _MD("_camera_make_current"),&Camera::_camera_make_current ); + ClassDB::bind_method(D_METHOD("project_ray_normal","screen_point"), &Camera::project_ray_normal); + ClassDB::bind_method(D_METHOD("project_local_ray_normal","screen_point"), &Camera::project_local_ray_normal); + ClassDB::bind_method(D_METHOD("project_ray_origin","screen_point"), &Camera::project_ray_origin); + ClassDB::bind_method(D_METHOD("unproject_position","world_point"), &Camera::unproject_position); + ClassDB::bind_method(D_METHOD("is_position_behind","world_point"), &Camera::is_position_behind); + ClassDB::bind_method(D_METHOD("project_position","screen_point"), &Camera::project_position); + ClassDB::bind_method(D_METHOD("set_perspective","fov","z_near","z_far"),&Camera::set_perspective ); + ClassDB::bind_method(D_METHOD("set_orthogonal","size","z_near","z_far"),&Camera::set_orthogonal ); + ClassDB::bind_method(D_METHOD("make_current"),&Camera::make_current ); + ClassDB::bind_method(D_METHOD("clear_current"),&Camera::clear_current ); + ClassDB::bind_method(D_METHOD("is_current"),&Camera::is_current ); + ClassDB::bind_method(D_METHOD("get_camera_transform"),&Camera::get_camera_transform ); + ClassDB::bind_method(D_METHOD("get_fov"),&Camera::get_fov ); + ClassDB::bind_method(D_METHOD("get_size"),&Camera::get_size ); + ClassDB::bind_method(D_METHOD("get_zfar"),&Camera::get_zfar ); + ClassDB::bind_method(D_METHOD("get_znear"),&Camera::get_znear ); + ClassDB::bind_method(D_METHOD("get_projection"),&Camera::get_projection ); + ClassDB::bind_method(D_METHOD("set_h_offset","ofs"),&Camera::set_h_offset ); + ClassDB::bind_method(D_METHOD("get_h_offset"),&Camera::get_h_offset ); + ClassDB::bind_method(D_METHOD("set_v_offset","ofs"),&Camera::set_v_offset ); + ClassDB::bind_method(D_METHOD("get_v_offset"),&Camera::get_v_offset ); + ClassDB::bind_method(D_METHOD("set_cull_mask","mask"),&Camera::set_cull_mask ); + ClassDB::bind_method(D_METHOD("get_cull_mask"),&Camera::get_cull_mask ); + ClassDB::bind_method(D_METHOD("set_environment","env:Environment"),&Camera::set_environment ); + ClassDB::bind_method(D_METHOD("get_environment:Environment"),&Camera::get_environment ); + ClassDB::bind_method(D_METHOD("set_keep_aspect_mode","mode"),&Camera::set_keep_aspect_mode ); + ClassDB::bind_method(D_METHOD("get_keep_aspect_mode"),&Camera::get_keep_aspect_mode ); + //ClassDB::bind_method(D_METHOD("_camera_make_current"),&Camera::_camera_make_current ); BIND_CONSTANT( PROJECTION_PERSPECTIVE ); BIND_CONSTANT( PROJECTION_ORTHOGONAL ); diff --git a/scene/3d/character_camera.cpp b/scene/3d/character_camera.cpp index 211619d0df..424a7fc79c 100644 --- a/scene/3d/character_camera.cpp +++ b/scene/3d/character_camera.cpp @@ -634,30 +634,30 @@ float CharacterCamera::get_autoturn_speed() const { void CharacterCamera::_bind_methods() { - ClassDB::bind_method(_MD("set_camera_type","type"),&CharacterCamera::set_camera_type); - ClassDB::bind_method(_MD("get_camera_type"),&CharacterCamera::get_camera_type); - ClassDB::bind_method(_MD("set_orbit","orbit"),&CharacterCamera::set_orbit); - ClassDB::bind_method(_MD("get_orbit"),&CharacterCamera::get_orbit); - ClassDB::bind_method(_MD("set_orbit_x","x"),&CharacterCamera::set_orbit_x); - ClassDB::bind_method(_MD("set_orbit_y","y"),&CharacterCamera::set_orbit_y); - ClassDB::bind_method(_MD("set_min_orbit_x","x"),&CharacterCamera::set_min_orbit_x); - ClassDB::bind_method(_MD("get_min_orbit_x"),&CharacterCamera::get_min_orbit_x); - ClassDB::bind_method(_MD("set_max_orbit_x","x"),&CharacterCamera::set_max_orbit_x); - ClassDB::bind_method(_MD("get_max_orbit_x"),&CharacterCamera::get_max_orbit_x); - ClassDB::bind_method(_MD("rotate_orbit"),&CharacterCamera::rotate_orbit); - ClassDB::bind_method(_MD("set_distance","distance"),&CharacterCamera::set_distance); - ClassDB::bind_method(_MD("get_distance"),&CharacterCamera::get_distance); - ClassDB::bind_method(_MD("set_clip","enable"),&CharacterCamera::set_clip); - ClassDB::bind_method(_MD("has_clip"),&CharacterCamera::has_clip); - ClassDB::bind_method(_MD("set_autoturn","enable"),&CharacterCamera::set_autoturn); - ClassDB::bind_method(_MD("has_autoturn"),&CharacterCamera::has_autoturn); - ClassDB::bind_method(_MD("set_autoturn_tolerance","degrees"),&CharacterCamera::set_autoturn_tolerance); - ClassDB::bind_method(_MD("get_autoturn_tolerance"),&CharacterCamera::get_autoturn_tolerance); - ClassDB::bind_method(_MD("set_autoturn_speed","speed"),&CharacterCamera::set_autoturn_speed); - ClassDB::bind_method(_MD("get_autoturn_speed"),&CharacterCamera::get_autoturn_speed); - ClassDB::bind_method(_MD("set_use_lookat_target","use","lookat"),&CharacterCamera::set_use_lookat_target, DEFVAL(Vector3())); - - ClassDB::bind_method(_MD("_ray_collision"),&CharacterCamera::_ray_collision); + ClassDB::bind_method(D_METHOD("set_camera_type","type"),&CharacterCamera::set_camera_type); + ClassDB::bind_method(D_METHOD("get_camera_type"),&CharacterCamera::get_camera_type); + ClassDB::bind_method(D_METHOD("set_orbit","orbit"),&CharacterCamera::set_orbit); + ClassDB::bind_method(D_METHOD("get_orbit"),&CharacterCamera::get_orbit); + ClassDB::bind_method(D_METHOD("set_orbit_x","x"),&CharacterCamera::set_orbit_x); + ClassDB::bind_method(D_METHOD("set_orbit_y","y"),&CharacterCamera::set_orbit_y); + ClassDB::bind_method(D_METHOD("set_min_orbit_x","x"),&CharacterCamera::set_min_orbit_x); + ClassDB::bind_method(D_METHOD("get_min_orbit_x"),&CharacterCamera::get_min_orbit_x); + ClassDB::bind_method(D_METHOD("set_max_orbit_x","x"),&CharacterCamera::set_max_orbit_x); + ClassDB::bind_method(D_METHOD("get_max_orbit_x"),&CharacterCamera::get_max_orbit_x); + ClassDB::bind_method(D_METHOD("rotate_orbit"),&CharacterCamera::rotate_orbit); + ClassDB::bind_method(D_METHOD("set_distance","distance"),&CharacterCamera::set_distance); + ClassDB::bind_method(D_METHOD("get_distance"),&CharacterCamera::get_distance); + ClassDB::bind_method(D_METHOD("set_clip","enable"),&CharacterCamera::set_clip); + ClassDB::bind_method(D_METHOD("has_clip"),&CharacterCamera::has_clip); + ClassDB::bind_method(D_METHOD("set_autoturn","enable"),&CharacterCamera::set_autoturn); + ClassDB::bind_method(D_METHOD("has_autoturn"),&CharacterCamera::has_autoturn); + ClassDB::bind_method(D_METHOD("set_autoturn_tolerance","degrees"),&CharacterCamera::set_autoturn_tolerance); + ClassDB::bind_method(D_METHOD("get_autoturn_tolerance"),&CharacterCamera::get_autoturn_tolerance); + ClassDB::bind_method(D_METHOD("set_autoturn_speed","speed"),&CharacterCamera::set_autoturn_speed); + ClassDB::bind_method(D_METHOD("get_autoturn_speed"),&CharacterCamera::get_autoturn_speed); + ClassDB::bind_method(D_METHOD("set_use_lookat_target","use","lookat"),&CharacterCamera::set_use_lookat_target, DEFVAL(Vector3())); + + ClassDB::bind_method(D_METHOD("_ray_collision"),&CharacterCamera::_ray_collision); BIND_CONSTANT( CAMERA_FIXED ); BIND_CONSTANT( CAMERA_FOLLOW ); diff --git a/scene/3d/collision_object.cpp b/scene/3d/collision_object.cpp index ba105aa8c2..09fe7cd2fc 100644 --- a/scene/3d/collision_object.cpp +++ b/scene/3d/collision_object.cpp @@ -228,22 +228,22 @@ bool CollisionObject::is_ray_pickable() const { void CollisionObject::_bind_methods() { - ClassDB::bind_method(_MD("add_shape","shape:Shape","transform"),&CollisionObject::add_shape,DEFVAL(Transform())); - ClassDB::bind_method(_MD("get_shape_count"),&CollisionObject::get_shape_count); - ClassDB::bind_method(_MD("set_shape","shape_idx","shape:Shape"),&CollisionObject::set_shape); - ClassDB::bind_method(_MD("set_shape_transform","shape_idx","transform"),&CollisionObject::set_shape_transform); -// ClassDB::bind_method(_MD("set_shape_transform","shape_idx","transform"),&CollisionObject::set_shape_transform); - ClassDB::bind_method(_MD("set_shape_as_trigger","shape_idx","enable"),&CollisionObject::set_shape_as_trigger); - ClassDB::bind_method(_MD("is_shape_set_as_trigger","shape_idx"),&CollisionObject::is_shape_set_as_trigger); - ClassDB::bind_method(_MD("get_shape:Shape","shape_idx"),&CollisionObject::get_shape); - ClassDB::bind_method(_MD("get_shape_transform","shape_idx"),&CollisionObject::get_shape_transform); - ClassDB::bind_method(_MD("remove_shape","shape_idx"),&CollisionObject::remove_shape); - ClassDB::bind_method(_MD("clear_shapes"),&CollisionObject::clear_shapes); - ClassDB::bind_method(_MD("set_ray_pickable","ray_pickable"),&CollisionObject::set_ray_pickable); - ClassDB::bind_method(_MD("is_ray_pickable"),&CollisionObject::is_ray_pickable); - ClassDB::bind_method(_MD("set_capture_input_on_drag","enable"),&CollisionObject::set_capture_input_on_drag); - ClassDB::bind_method(_MD("get_capture_input_on_drag"),&CollisionObject::get_capture_input_on_drag); - ClassDB::bind_method(_MD("get_rid"),&CollisionObject::get_rid); + ClassDB::bind_method(D_METHOD("add_shape","shape:Shape","transform"),&CollisionObject::add_shape,DEFVAL(Transform())); + ClassDB::bind_method(D_METHOD("get_shape_count"),&CollisionObject::get_shape_count); + ClassDB::bind_method(D_METHOD("set_shape","shape_idx","shape:Shape"),&CollisionObject::set_shape); + ClassDB::bind_method(D_METHOD("set_shape_transform","shape_idx","transform"),&CollisionObject::set_shape_transform); +// ClassDB::bind_method(D_METHOD("set_shape_transform","shape_idx","transform"),&CollisionObject::set_shape_transform); + ClassDB::bind_method(D_METHOD("set_shape_as_trigger","shape_idx","enable"),&CollisionObject::set_shape_as_trigger); + ClassDB::bind_method(D_METHOD("is_shape_set_as_trigger","shape_idx"),&CollisionObject::is_shape_set_as_trigger); + ClassDB::bind_method(D_METHOD("get_shape:Shape","shape_idx"),&CollisionObject::get_shape); + ClassDB::bind_method(D_METHOD("get_shape_transform","shape_idx"),&CollisionObject::get_shape_transform); + ClassDB::bind_method(D_METHOD("remove_shape","shape_idx"),&CollisionObject::remove_shape); + ClassDB::bind_method(D_METHOD("clear_shapes"),&CollisionObject::clear_shapes); + ClassDB::bind_method(D_METHOD("set_ray_pickable","ray_pickable"),&CollisionObject::set_ray_pickable); + ClassDB::bind_method(D_METHOD("is_ray_pickable"),&CollisionObject::is_ray_pickable); + ClassDB::bind_method(D_METHOD("set_capture_input_on_drag","enable"),&CollisionObject::set_capture_input_on_drag); + ClassDB::bind_method(D_METHOD("get_capture_input_on_drag"),&CollisionObject::get_capture_input_on_drag); + ClassDB::bind_method(D_METHOD("get_rid"),&CollisionObject::get_rid); BIND_VMETHOD( MethodInfo("_input_event",PropertyInfo(Variant::OBJECT,"camera"),PropertyInfo(Variant::INPUT_EVENT,"event"),PropertyInfo(Variant::VECTOR3,"click_pos"),PropertyInfo(Variant::VECTOR3,"click_normal"),PropertyInfo(Variant::INT,"shape_idx"))); ADD_SIGNAL( MethodInfo("input_event",PropertyInfo(Variant::OBJECT,"camera"),PropertyInfo(Variant::INPUT_EVENT,"event"),PropertyInfo(Variant::VECTOR3,"click_pos"),PropertyInfo(Variant::VECTOR3,"click_normal"),PropertyInfo(Variant::INT,"shape_idx"))); diff --git a/scene/3d/collision_polygon.cpp b/scene/3d/collision_polygon.cpp index bc08dc76c8..82637c2488 100644 --- a/scene/3d/collision_polygon.cpp +++ b/scene/3d/collision_polygon.cpp @@ -275,22 +275,22 @@ String CollisionPolygon::get_configuration_warning() const { void CollisionPolygon::_bind_methods() { - ClassDB::bind_method(_MD("_add_to_collision_object"),&CollisionPolygon::_add_to_collision_object); + ClassDB::bind_method(D_METHOD("_add_to_collision_object"),&CollisionPolygon::_add_to_collision_object); - ClassDB::bind_method(_MD("set_build_mode","build_mode"),&CollisionPolygon::set_build_mode); - ClassDB::bind_method(_MD("get_build_mode"),&CollisionPolygon::get_build_mode); + ClassDB::bind_method(D_METHOD("set_build_mode","build_mode"),&CollisionPolygon::set_build_mode); + ClassDB::bind_method(D_METHOD("get_build_mode"),&CollisionPolygon::get_build_mode); - ClassDB::bind_method(_MD("set_depth","depth"),&CollisionPolygon::set_depth); - ClassDB::bind_method(_MD("get_depth"),&CollisionPolygon::get_depth); + ClassDB::bind_method(D_METHOD("set_depth","depth"),&CollisionPolygon::set_depth); + ClassDB::bind_method(D_METHOD("get_depth"),&CollisionPolygon::get_depth); - ClassDB::bind_method(_MD("set_polygon","polygon"),&CollisionPolygon::set_polygon); - ClassDB::bind_method(_MD("get_polygon"),&CollisionPolygon::get_polygon); + ClassDB::bind_method(D_METHOD("set_polygon","polygon"),&CollisionPolygon::set_polygon); + ClassDB::bind_method(D_METHOD("get_polygon"),&CollisionPolygon::get_polygon); - ClassDB::bind_method(_MD("_set_shape_range","shape_range"),&CollisionPolygon::_set_shape_range); - ClassDB::bind_method(_MD("_get_shape_range"),&CollisionPolygon::_get_shape_range); + ClassDB::bind_method(D_METHOD("_set_shape_range","shape_range"),&CollisionPolygon::_set_shape_range); + ClassDB::bind_method(D_METHOD("_get_shape_range"),&CollisionPolygon::_get_shape_range); - ClassDB::bind_method(_MD("get_collision_object_first_shape"),&CollisionPolygon::get_collision_object_first_shape); - ClassDB::bind_method(_MD("get_collision_object_last_shape"),&CollisionPolygon::get_collision_object_last_shape); + ClassDB::bind_method(D_METHOD("get_collision_object_first_shape"),&CollisionPolygon::get_collision_object_first_shape); + ClassDB::bind_method(D_METHOD("get_collision_object_last_shape"),&CollisionPolygon::get_collision_object_last_shape); ADD_PROPERTY( PropertyInfo(Variant::INT,"build_mode",PROPERTY_HINT_ENUM,"Solids,Triangles"),"set_build_mode","get_build_mode"); ADD_PROPERTY( PropertyInfo(Variant::REAL,"depth"),"set_depth","get_depth"); diff --git a/scene/3d/gi_probe.cpp b/scene/3d/gi_probe.cpp index 51376c7693..4ce714818f 100644 --- a/scene/3d/gi_probe.cpp +++ b/scene/3d/gi_probe.cpp @@ -115,32 +115,32 @@ RID GIProbeData::get_rid() const { void GIProbeData::_bind_methods() { - ClassDB::bind_method(_MD("set_bounds","bounds"),&GIProbeData::set_bounds); - ClassDB::bind_method(_MD("get_bounds"),&GIProbeData::get_bounds); + ClassDB::bind_method(D_METHOD("set_bounds","bounds"),&GIProbeData::set_bounds); + ClassDB::bind_method(D_METHOD("get_bounds"),&GIProbeData::get_bounds); - ClassDB::bind_method(_MD("set_cell_size","cell_size"),&GIProbeData::set_cell_size); - ClassDB::bind_method(_MD("get_cell_size"),&GIProbeData::get_cell_size); + ClassDB::bind_method(D_METHOD("set_cell_size","cell_size"),&GIProbeData::set_cell_size); + ClassDB::bind_method(D_METHOD("get_cell_size"),&GIProbeData::get_cell_size); - ClassDB::bind_method(_MD("set_to_cell_xform","to_cell_xform"),&GIProbeData::set_to_cell_xform); - ClassDB::bind_method(_MD("get_to_cell_xform"),&GIProbeData::get_to_cell_xform); + ClassDB::bind_method(D_METHOD("set_to_cell_xform","to_cell_xform"),&GIProbeData::set_to_cell_xform); + ClassDB::bind_method(D_METHOD("get_to_cell_xform"),&GIProbeData::get_to_cell_xform); - ClassDB::bind_method(_MD("set_dynamic_data","dynamic_data"),&GIProbeData::set_dynamic_data); - ClassDB::bind_method(_MD("get_dynamic_data"),&GIProbeData::get_dynamic_data); + ClassDB::bind_method(D_METHOD("set_dynamic_data","dynamic_data"),&GIProbeData::set_dynamic_data); + ClassDB::bind_method(D_METHOD("get_dynamic_data"),&GIProbeData::get_dynamic_data); - ClassDB::bind_method(_MD("set_dynamic_range","dynamic_range"),&GIProbeData::set_dynamic_range); - ClassDB::bind_method(_MD("get_dynamic_range"),&GIProbeData::get_dynamic_range); + ClassDB::bind_method(D_METHOD("set_dynamic_range","dynamic_range"),&GIProbeData::set_dynamic_range); + ClassDB::bind_method(D_METHOD("get_dynamic_range"),&GIProbeData::get_dynamic_range); - ClassDB::bind_method(_MD("set_energy","energy"),&GIProbeData::set_energy); - ClassDB::bind_method(_MD("get_energy"),&GIProbeData::get_energy); + ClassDB::bind_method(D_METHOD("set_energy","energy"),&GIProbeData::set_energy); + ClassDB::bind_method(D_METHOD("get_energy"),&GIProbeData::get_energy); - ClassDB::bind_method(_MD("set_propagation","propagation"),&GIProbeData::set_propagation); - ClassDB::bind_method(_MD("get_propagation"),&GIProbeData::get_propagation); + ClassDB::bind_method(D_METHOD("set_propagation","propagation"),&GIProbeData::set_propagation); + ClassDB::bind_method(D_METHOD("get_propagation"),&GIProbeData::get_propagation); - ClassDB::bind_method(_MD("set_interior","interior"),&GIProbeData::set_interior); - ClassDB::bind_method(_MD("is_interior"),&GIProbeData::is_interior); + ClassDB::bind_method(D_METHOD("set_interior","interior"),&GIProbeData::set_interior); + ClassDB::bind_method(D_METHOD("is_interior"),&GIProbeData::is_interior); - ClassDB::bind_method(_MD("set_compress","compress"),&GIProbeData::set_compress); - ClassDB::bind_method(_MD("is_compressed"),&GIProbeData::is_compressed); + ClassDB::bind_method(D_METHOD("set_compress","compress"),&GIProbeData::set_compress); + ClassDB::bind_method(D_METHOD("is_compressed"),&GIProbeData::is_compressed); ADD_PROPERTY(PropertyInfo(Variant::RECT3,"bounds",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR),"set_bounds","get_bounds"); ADD_PROPERTY(PropertyInfo(Variant::REAL,"cell_size",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR),"set_cell_size","get_cell_size"); @@ -1384,32 +1384,32 @@ PoolVector<Face3> GIProbe::get_faces(uint32_t p_usage_flags) const { void GIProbe::_bind_methods() { - ClassDB::bind_method(_MD("set_probe_data","data"),&GIProbe::set_probe_data); - ClassDB::bind_method(_MD("get_probe_data"),&GIProbe::get_probe_data); + ClassDB::bind_method(D_METHOD("set_probe_data","data"),&GIProbe::set_probe_data); + ClassDB::bind_method(D_METHOD("get_probe_data"),&GIProbe::get_probe_data); - ClassDB::bind_method(_MD("set_subdiv","subdiv"),&GIProbe::set_subdiv); - ClassDB::bind_method(_MD("get_subdiv"),&GIProbe::get_subdiv); + ClassDB::bind_method(D_METHOD("set_subdiv","subdiv"),&GIProbe::set_subdiv); + ClassDB::bind_method(D_METHOD("get_subdiv"),&GIProbe::get_subdiv); - ClassDB::bind_method(_MD("set_extents","extents"),&GIProbe::set_extents); - ClassDB::bind_method(_MD("get_extents"),&GIProbe::get_extents); + ClassDB::bind_method(D_METHOD("set_extents","extents"),&GIProbe::set_extents); + ClassDB::bind_method(D_METHOD("get_extents"),&GIProbe::get_extents); - ClassDB::bind_method(_MD("set_dynamic_range","max"),&GIProbe::set_dynamic_range); - ClassDB::bind_method(_MD("get_dynamic_range"),&GIProbe::get_dynamic_range); + ClassDB::bind_method(D_METHOD("set_dynamic_range","max"),&GIProbe::set_dynamic_range); + ClassDB::bind_method(D_METHOD("get_dynamic_range"),&GIProbe::get_dynamic_range); - ClassDB::bind_method(_MD("set_energy","max"),&GIProbe::set_energy); - ClassDB::bind_method(_MD("get_energy"),&GIProbe::get_energy); + ClassDB::bind_method(D_METHOD("set_energy","max"),&GIProbe::set_energy); + ClassDB::bind_method(D_METHOD("get_energy"),&GIProbe::get_energy); - ClassDB::bind_method(_MD("set_propagation","max"),&GIProbe::set_propagation); - ClassDB::bind_method(_MD("get_propagation"),&GIProbe::get_propagation); + ClassDB::bind_method(D_METHOD("set_propagation","max"),&GIProbe::set_propagation); + ClassDB::bind_method(D_METHOD("get_propagation"),&GIProbe::get_propagation); - ClassDB::bind_method(_MD("set_interior","enable"),&GIProbe::set_interior); - ClassDB::bind_method(_MD("is_interior"),&GIProbe::is_interior); + ClassDB::bind_method(D_METHOD("set_interior","enable"),&GIProbe::set_interior); + ClassDB::bind_method(D_METHOD("is_interior"),&GIProbe::is_interior); - ClassDB::bind_method(_MD("set_compress","enable"),&GIProbe::set_compress); - ClassDB::bind_method(_MD("is_compressed"),&GIProbe::is_compressed); + ClassDB::bind_method(D_METHOD("set_compress","enable"),&GIProbe::set_compress); + ClassDB::bind_method(D_METHOD("is_compressed"),&GIProbe::is_compressed); - ClassDB::bind_method(_MD("bake","from_node","create_visual_debug"),&GIProbe::bake,DEFVAL(Variant()),DEFVAL(false)); - ClassDB::bind_method(_MD("debug_bake"),&GIProbe::_debug_bake); + ClassDB::bind_method(D_METHOD("bake","from_node","create_visual_debug"),&GIProbe::bake,DEFVAL(Variant()),DEFVAL(false)); + ClassDB::bind_method(D_METHOD("debug_bake"),&GIProbe::_debug_bake); ClassDB::set_method_flags(get_class_static(),_scs_create("debug_bake"),METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR); ADD_PROPERTY( PropertyInfo(Variant::INT,"subdiv",PROPERTY_HINT_ENUM,"64,128,256,512"),"set_subdiv","get_subdiv"); diff --git a/scene/3d/immediate_geometry.cpp b/scene/3d/immediate_geometry.cpp index 08fc1f59e8..6adbbe9ccf 100644 --- a/scene/3d/immediate_geometry.cpp +++ b/scene/3d/immediate_geometry.cpp @@ -154,16 +154,16 @@ void ImmediateGeometry::add_sphere(int p_lats, int p_lons, float p_radius, bool void ImmediateGeometry::_bind_methods() { - ClassDB::bind_method(_MD("begin","primitive","texture:Texture"),&ImmediateGeometry::begin,DEFVAL(Ref<Texture>())); - ClassDB::bind_method(_MD("set_normal","normal"),&ImmediateGeometry::set_normal); - ClassDB::bind_method(_MD("set_tangent","tangent"),&ImmediateGeometry::set_tangent); - ClassDB::bind_method(_MD("set_color","color"),&ImmediateGeometry::set_color); - ClassDB::bind_method(_MD("set_uv","uv"),&ImmediateGeometry::set_uv); - ClassDB::bind_method(_MD("set_uv2","uv"),&ImmediateGeometry::set_uv2); - ClassDB::bind_method(_MD("add_vertex","pos"),&ImmediateGeometry::add_vertex); - ClassDB::bind_method(_MD("add_sphere","lats","lons","radius","add_uv"),&ImmediateGeometry::add_sphere,DEFVAL(true)); - ClassDB::bind_method(_MD("end"),&ImmediateGeometry::end); - ClassDB::bind_method(_MD("clear"),&ImmediateGeometry::clear); + ClassDB::bind_method(D_METHOD("begin","primitive","texture:Texture"),&ImmediateGeometry::begin,DEFVAL(Ref<Texture>())); + ClassDB::bind_method(D_METHOD("set_normal","normal"),&ImmediateGeometry::set_normal); + ClassDB::bind_method(D_METHOD("set_tangent","tangent"),&ImmediateGeometry::set_tangent); + ClassDB::bind_method(D_METHOD("set_color","color"),&ImmediateGeometry::set_color); + ClassDB::bind_method(D_METHOD("set_uv","uv"),&ImmediateGeometry::set_uv); + ClassDB::bind_method(D_METHOD("set_uv2","uv"),&ImmediateGeometry::set_uv2); + ClassDB::bind_method(D_METHOD("add_vertex","pos"),&ImmediateGeometry::add_vertex); + ClassDB::bind_method(D_METHOD("add_sphere","lats","lons","radius","add_uv"),&ImmediateGeometry::add_sphere,DEFVAL(true)); + ClassDB::bind_method(D_METHOD("end"),&ImmediateGeometry::end); + ClassDB::bind_method(D_METHOD("clear"),&ImmediateGeometry::clear); } diff --git a/scene/3d/interpolated_camera.cpp b/scene/3d/interpolated_camera.cpp index 021bf5b925..15ee971b7e 100644 --- a/scene/3d/interpolated_camera.cpp +++ b/scene/3d/interpolated_camera.cpp @@ -134,15 +134,15 @@ real_t InterpolatedCamera::get_speed() const { void InterpolatedCamera::_bind_methods() { - ClassDB::bind_method(_MD("set_target_path","target_path"),&InterpolatedCamera::set_target_path); - ClassDB::bind_method(_MD("get_target_path"),&InterpolatedCamera::get_target_path); - ClassDB::bind_method(_MD("set_target","target:Camera"),&InterpolatedCamera::_set_target); + ClassDB::bind_method(D_METHOD("set_target_path","target_path"),&InterpolatedCamera::set_target_path); + ClassDB::bind_method(D_METHOD("get_target_path"),&InterpolatedCamera::get_target_path); + ClassDB::bind_method(D_METHOD("set_target","target:Camera"),&InterpolatedCamera::_set_target); - ClassDB::bind_method(_MD("set_speed","speed"),&InterpolatedCamera::set_speed); - ClassDB::bind_method(_MD("get_speed"),&InterpolatedCamera::get_speed); + ClassDB::bind_method(D_METHOD("set_speed","speed"),&InterpolatedCamera::set_speed); + ClassDB::bind_method(D_METHOD("get_speed"),&InterpolatedCamera::get_speed); - ClassDB::bind_method(_MD("set_interpolation_enabled","target_path"),&InterpolatedCamera::set_interpolation_enabled); - ClassDB::bind_method(_MD("is_interpolation_enabled"),&InterpolatedCamera::is_interpolation_enabled); + ClassDB::bind_method(D_METHOD("set_interpolation_enabled","target_path"),&InterpolatedCamera::set_interpolation_enabled); + ClassDB::bind_method(D_METHOD("is_interpolation_enabled"),&InterpolatedCamera::is_interpolation_enabled); ADD_PROPERTY( PropertyInfo(Variant::NODE_PATH,"target"), "set_target_path", "get_target_path") ; ADD_PROPERTY( PropertyInfo(Variant::REAL,"speed"), "set_speed", "get_speed") ; diff --git a/scene/3d/light.cpp b/scene/3d/light.cpp index ac3f1da031..11eaa2ed33 100644 --- a/scene/3d/light.cpp +++ b/scene/3d/light.cpp @@ -221,27 +221,27 @@ bool Light::is_editor_only() const{ void Light::_bind_methods() { - ClassDB::bind_method(_MD("set_editor_only","editor_only"), &Light::set_editor_only ); - ClassDB::bind_method(_MD("is_editor_only"), &Light::is_editor_only ); + ClassDB::bind_method(D_METHOD("set_editor_only","editor_only"), &Light::set_editor_only ); + ClassDB::bind_method(D_METHOD("is_editor_only"), &Light::is_editor_only ); - ClassDB::bind_method(_MD("set_param","param","value"), &Light::set_param ); - ClassDB::bind_method(_MD("get_param","param"), &Light::get_param ); + ClassDB::bind_method(D_METHOD("set_param","param","value"), &Light::set_param ); + ClassDB::bind_method(D_METHOD("get_param","param"), &Light::get_param ); - ClassDB::bind_method(_MD("set_shadow","enabled"), &Light::set_shadow ); - ClassDB::bind_method(_MD("has_shadow"), &Light::has_shadow ); + ClassDB::bind_method(D_METHOD("set_shadow","enabled"), &Light::set_shadow ); + ClassDB::bind_method(D_METHOD("has_shadow"), &Light::has_shadow ); - ClassDB::bind_method(_MD("set_negative","enabled"), &Light::set_negative ); - ClassDB::bind_method(_MD("is_negative"), &Light::is_negative ); + ClassDB::bind_method(D_METHOD("set_negative","enabled"), &Light::set_negative ); + ClassDB::bind_method(D_METHOD("is_negative"), &Light::is_negative ); - ClassDB::bind_method(_MD("set_cull_mask","cull_mask"), &Light::set_cull_mask ); - ClassDB::bind_method(_MD("get_cull_mask"), &Light::get_cull_mask ); + ClassDB::bind_method(D_METHOD("set_cull_mask","cull_mask"), &Light::set_cull_mask ); + ClassDB::bind_method(D_METHOD("get_cull_mask"), &Light::get_cull_mask ); - ClassDB::bind_method(_MD("set_color","color"), &Light::set_color ); - ClassDB::bind_method(_MD("get_color"), &Light::get_color ); + ClassDB::bind_method(D_METHOD("set_color","color"), &Light::set_color ); + ClassDB::bind_method(D_METHOD("get_color"), &Light::get_color ); - ClassDB::bind_method(_MD("set_shadow_color","shadow_color"), &Light::set_shadow_color ); - ClassDB::bind_method(_MD("get_shadow_color"), &Light::get_shadow_color ); + ClassDB::bind_method(D_METHOD("set_shadow_color","shadow_color"), &Light::set_shadow_color ); + ClassDB::bind_method(D_METHOD("get_shadow_color"), &Light::get_shadow_color ); ADD_GROUP("Light","light_"); ADD_PROPERTY( PropertyInfo( Variant::COLOR, "light_color",PROPERTY_HINT_COLOR_NO_ALPHA), "set_color", "get_color"); @@ -352,11 +352,11 @@ bool DirectionalLight::is_blend_splits_enabled() const { void DirectionalLight::_bind_methods() { - ClassDB::bind_method( _MD("set_shadow_mode","mode"),&DirectionalLight::set_shadow_mode); - ClassDB::bind_method( _MD("get_shadow_mode"),&DirectionalLight::get_shadow_mode); + ClassDB::bind_method( D_METHOD("set_shadow_mode","mode"),&DirectionalLight::set_shadow_mode); + ClassDB::bind_method( D_METHOD("get_shadow_mode"),&DirectionalLight::get_shadow_mode); - ClassDB::bind_method( _MD("set_blend_splits","enabled"),&DirectionalLight::set_blend_splits); - ClassDB::bind_method( _MD("is_blend_splits_enabled"),&DirectionalLight::is_blend_splits_enabled); + ClassDB::bind_method( D_METHOD("set_blend_splits","enabled"),&DirectionalLight::set_blend_splits); + ClassDB::bind_method( D_METHOD("is_blend_splits_enabled"),&DirectionalLight::is_blend_splits_enabled); ADD_GROUP("Directional Shadow","directional_shadow_"); ADD_PROPERTY( PropertyInfo( Variant::INT, "directional_shadow_mode",PROPERTY_HINT_ENUM,"Orthogonal,PSSM 2 Splits,PSSM 4 Splits"), "set_shadow_mode", "get_shadow_mode"); @@ -406,11 +406,11 @@ OmniLight::ShadowDetail OmniLight::get_shadow_detail() const{ void OmniLight::_bind_methods() { - ClassDB::bind_method( _MD("set_shadow_mode","mode"),&OmniLight::set_shadow_mode); - ClassDB::bind_method( _MD("get_shadow_mode"),&OmniLight::get_shadow_mode); + ClassDB::bind_method( D_METHOD("set_shadow_mode","mode"),&OmniLight::set_shadow_mode); + ClassDB::bind_method( D_METHOD("get_shadow_mode"),&OmniLight::get_shadow_mode); - ClassDB::bind_method( _MD("set_shadow_detail","detail"),&OmniLight::set_shadow_detail); - ClassDB::bind_method( _MD("get_shadow_detail"),&OmniLight::get_shadow_detail); + ClassDB::bind_method( D_METHOD("set_shadow_detail","detail"),&OmniLight::set_shadow_detail); + ClassDB::bind_method( D_METHOD("get_shadow_detail"),&OmniLight::get_shadow_detail); ADD_GROUP("Omni","omni_"); ADD_PROPERTYI( PropertyInfo( Variant::REAL, "omni_range",PROPERTY_HINT_RANGE,"0,65536,0.1"), "set_param", "get_param", PARAM_RANGE); diff --git a/scene/3d/listener.cpp b/scene/3d/listener.cpp index 0aa1128bdb..c774d59d77 100644 --- a/scene/3d/listener.cpp +++ b/scene/3d/listener.cpp @@ -146,10 +146,10 @@ RES Listener::_get_gizmo_geometry() const { void Listener::_bind_methods() { - ClassDB::bind_method( _MD("make_current"),&Listener::make_current ); - ClassDB::bind_method( _MD("clear_current"),&Listener::clear_current ); - ClassDB::bind_method( _MD("is_current"),&Listener::is_current ); - ClassDB::bind_method( _MD("get_listener_transform"),&Listener::get_listener_transform ); + ClassDB::bind_method( D_METHOD("make_current"),&Listener::make_current ); + ClassDB::bind_method( D_METHOD("clear_current"),&Listener::clear_current ); + ClassDB::bind_method( D_METHOD("is_current"),&Listener::is_current ); + ClassDB::bind_method( D_METHOD("get_listener_transform"),&Listener::get_listener_transform ); } Listener::Listener() { diff --git a/scene/3d/mesh_instance.cpp b/scene/3d/mesh_instance.cpp index 3533f1b994..e6bd69aed2 100644 --- a/scene/3d/mesh_instance.cpp +++ b/scene/3d/mesh_instance.cpp @@ -294,16 +294,16 @@ void MeshInstance::_mesh_changed() { void MeshInstance::_bind_methods() { - ClassDB::bind_method(_MD("set_mesh","mesh:Mesh"),&MeshInstance::set_mesh); - ClassDB::bind_method(_MD("get_mesh:Mesh"),&MeshInstance::get_mesh); - ClassDB::bind_method(_MD("set_skeleton_path","skeleton_path:NodePath"),&MeshInstance::set_skeleton_path); - ClassDB::bind_method(_MD("get_skeleton_path:NodePath"),&MeshInstance::get_skeleton_path); + ClassDB::bind_method(D_METHOD("set_mesh","mesh:Mesh"),&MeshInstance::set_mesh); + ClassDB::bind_method(D_METHOD("get_mesh:Mesh"),&MeshInstance::get_mesh); + ClassDB::bind_method(D_METHOD("set_skeleton_path","skeleton_path:NodePath"),&MeshInstance::set_skeleton_path); + ClassDB::bind_method(D_METHOD("get_skeleton_path:NodePath"),&MeshInstance::get_skeleton_path); - ClassDB::bind_method(_MD("create_trimesh_collision"),&MeshInstance::create_trimesh_collision); + ClassDB::bind_method(D_METHOD("create_trimesh_collision"),&MeshInstance::create_trimesh_collision); ClassDB::set_method_flags("MeshInstance","create_trimesh_collision",METHOD_FLAGS_DEFAULT); - ClassDB::bind_method(_MD("create_convex_collision"),&MeshInstance::create_convex_collision); + ClassDB::bind_method(D_METHOD("create_convex_collision"),&MeshInstance::create_convex_collision); ClassDB::set_method_flags("MeshInstance","create_convex_collision",METHOD_FLAGS_DEFAULT); - ClassDB::bind_method(_MD("_mesh_changed"),&MeshInstance::_mesh_changed); + ClassDB::bind_method(D_METHOD("_mesh_changed"),&MeshInstance::_mesh_changed); ADD_PROPERTY( PropertyInfo( Variant::OBJECT, "mesh", PROPERTY_HINT_RESOURCE_TYPE, "Mesh" ), "set_mesh", "get_mesh"); ADD_PROPERTY( PropertyInfo (Variant::NODE_PATH, "skeleton"), "set_skeleton_path", "get_skeleton_path"); diff --git a/scene/3d/multimesh_instance.cpp b/scene/3d/multimesh_instance.cpp index 4c79fb6c0a..e1acdfca53 100644 --- a/scene/3d/multimesh_instance.cpp +++ b/scene/3d/multimesh_instance.cpp @@ -34,8 +34,8 @@ void MultiMeshInstance::_bind_methods() { - ClassDB::bind_method(_MD("set_multimesh","multimesh"),&MultiMeshInstance::set_multimesh); - ClassDB::bind_method(_MD("get_multimesh"),&MultiMeshInstance::get_multimesh); + ClassDB::bind_method(D_METHOD("set_multimesh","multimesh"),&MultiMeshInstance::set_multimesh); + ClassDB::bind_method(D_METHOD("get_multimesh"),&MultiMeshInstance::get_multimesh); ADD_PROPERTY( PropertyInfo(Variant::OBJECT,"multimesh",PROPERTY_HINT_RESOURCE_TYPE,"MultiMesh"), "set_multimesh", "get_multimesh"); diff --git a/scene/3d/navigation.cpp b/scene/3d/navigation.cpp index a45a5a2a20..5c8fe6bb67 100644 --- a/scene/3d/navigation.cpp +++ b/scene/3d/navigation.cpp @@ -730,18 +730,18 @@ Vector3 Navigation::get_up_vector() const{ void Navigation::_bind_methods() { - ClassDB::bind_method(_MD("navmesh_create","mesh:NavigationMesh","xform","owner"),&Navigation::navmesh_create,DEFVAL(Variant())); - ClassDB::bind_method(_MD("navmesh_set_transform","id","xform"),&Navigation::navmesh_set_transform); - ClassDB::bind_method(_MD("navmesh_remove","id"),&Navigation::navmesh_remove); - - ClassDB::bind_method(_MD("get_simple_path","start","end","optimize"),&Navigation::get_simple_path,DEFVAL(true)); - ClassDB::bind_method(_MD("get_closest_point_to_segment","start","end","use_collision"),&Navigation::get_closest_point_to_segment,DEFVAL(false)); - ClassDB::bind_method(_MD("get_closest_point","to_point"),&Navigation::get_closest_point); - ClassDB::bind_method(_MD("get_closest_point_normal","to_point"),&Navigation::get_closest_point_normal); - ClassDB::bind_method(_MD("get_closest_point_owner","to_point"),&Navigation::get_closest_point_owner); - - ClassDB::bind_method(_MD("set_up_vector","up"),&Navigation::set_up_vector); - ClassDB::bind_method(_MD("get_up_vector"),&Navigation::get_up_vector); + ClassDB::bind_method(D_METHOD("navmesh_create","mesh:NavigationMesh","xform","owner"),&Navigation::navmesh_create,DEFVAL(Variant())); + ClassDB::bind_method(D_METHOD("navmesh_set_transform","id","xform"),&Navigation::navmesh_set_transform); + ClassDB::bind_method(D_METHOD("navmesh_remove","id"),&Navigation::navmesh_remove); + + ClassDB::bind_method(D_METHOD("get_simple_path","start","end","optimize"),&Navigation::get_simple_path,DEFVAL(true)); + ClassDB::bind_method(D_METHOD("get_closest_point_to_segment","start","end","use_collision"),&Navigation::get_closest_point_to_segment,DEFVAL(false)); + ClassDB::bind_method(D_METHOD("get_closest_point","to_point"),&Navigation::get_closest_point); + ClassDB::bind_method(D_METHOD("get_closest_point_normal","to_point"),&Navigation::get_closest_point_normal); + ClassDB::bind_method(D_METHOD("get_closest_point_owner","to_point"),&Navigation::get_closest_point_owner); + + ClassDB::bind_method(D_METHOD("set_up_vector","up"),&Navigation::set_up_vector); + ClassDB::bind_method(D_METHOD("get_up_vector"),&Navigation::get_up_vector); ADD_PROPERTY( PropertyInfo(Variant::VECTOR3,"up_vector"),"set_up_vector","get_up_vector"); } diff --git a/scene/3d/navigation_mesh.cpp b/scene/3d/navigation_mesh.cpp index 23f347ff3d..8efb9bb333 100644 --- a/scene/3d/navigation_mesh.cpp +++ b/scene/3d/navigation_mesh.cpp @@ -208,16 +208,16 @@ Ref<Mesh> NavigationMesh::get_debug_mesh() { void NavigationMesh::_bind_methods() { - ClassDB::bind_method(_MD("set_vertices","vertices"),&NavigationMesh::set_vertices); - ClassDB::bind_method(_MD("get_vertices"),&NavigationMesh::get_vertices); + ClassDB::bind_method(D_METHOD("set_vertices","vertices"),&NavigationMesh::set_vertices); + ClassDB::bind_method(D_METHOD("get_vertices"),&NavigationMesh::get_vertices); - ClassDB::bind_method(_MD("add_polygon","polygon"),&NavigationMesh::add_polygon); - ClassDB::bind_method(_MD("get_polygon_count"),&NavigationMesh::get_polygon_count); - ClassDB::bind_method(_MD("get_polygon","idx"),&NavigationMesh::get_polygon); - ClassDB::bind_method(_MD("clear_polygons"),&NavigationMesh::clear_polygons); + ClassDB::bind_method(D_METHOD("add_polygon","polygon"),&NavigationMesh::add_polygon); + ClassDB::bind_method(D_METHOD("get_polygon_count"),&NavigationMesh::get_polygon_count); + ClassDB::bind_method(D_METHOD("get_polygon","idx"),&NavigationMesh::get_polygon); + ClassDB::bind_method(D_METHOD("clear_polygons"),&NavigationMesh::clear_polygons); - ClassDB::bind_method(_MD("_set_polygons","polygons"),&NavigationMesh::_set_polygons); - ClassDB::bind_method(_MD("_get_polygons"),&NavigationMesh::_get_polygons); + ClassDB::bind_method(D_METHOD("_set_polygons","polygons"),&NavigationMesh::_set_polygons); + ClassDB::bind_method(D_METHOD("_get_polygons"),&NavigationMesh::_get_polygons); ADD_PROPERTY(PropertyInfo(Variant::POOL_VECTOR3_ARRAY,"vertices",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR),"set_vertices","get_vertices"); ADD_PROPERTY(PropertyInfo(Variant::ARRAY,"polygons",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR),"_set_polygons","_get_polygons"); @@ -394,11 +394,11 @@ String NavigationMeshInstance::get_configuration_warning() const { void NavigationMeshInstance::_bind_methods() { - ClassDB::bind_method(_MD("set_navigation_mesh","navmesh"),&NavigationMeshInstance::set_navigation_mesh); - ClassDB::bind_method(_MD("get_navigation_mesh"),&NavigationMeshInstance::get_navigation_mesh); + ClassDB::bind_method(D_METHOD("set_navigation_mesh","navmesh"),&NavigationMeshInstance::set_navigation_mesh); + ClassDB::bind_method(D_METHOD("get_navigation_mesh"),&NavigationMeshInstance::get_navigation_mesh); - ClassDB::bind_method(_MD("set_enabled","enabled"),&NavigationMeshInstance::set_enabled); - ClassDB::bind_method(_MD("is_enabled"),&NavigationMeshInstance::is_enabled); + ClassDB::bind_method(D_METHOD("set_enabled","enabled"),&NavigationMeshInstance::set_enabled); + ClassDB::bind_method(D_METHOD("is_enabled"),&NavigationMeshInstance::is_enabled); ADD_PROPERTY( PropertyInfo(Variant::OBJECT,"navmesh",PROPERTY_HINT_RESOURCE_TYPE,"NavigationMesh"),"set_navigation_mesh","get_navigation_mesh"); ADD_PROPERTY( PropertyInfo(Variant::BOOL,"enabled"),"set_enabled","is_enabled"); diff --git a/scene/3d/particles.cpp b/scene/3d/particles.cpp index b8403b566b..0e0c1e9dc6 100644 --- a/scene/3d/particles.cpp +++ b/scene/3d/particles.cpp @@ -406,39 +406,39 @@ RES Particles::_get_gizmo_geometry() const { void Particles::_bind_methods() { - ClassDB::bind_method(_MD("set_amount","amount"),&Particles::set_amount); - ClassDB::bind_method(_MD("get_amount"),&Particles::get_amount); - ClassDB::bind_method(_MD("set_emitting","enabled"),&Particles::set_emitting); - ClassDB::bind_method(_MD("is_emitting"),&Particles::is_emitting); - ClassDB::bind_method(_MD("set_visibility_aabb","aabb"),&Particles::set_visibility_aabb); - ClassDB::bind_method(_MD("get_visibility_aabb"),&Particles::get_visibility_aabb); - ClassDB::bind_method(_MD("set_emission_half_extents","half_extents"),&Particles::set_emission_half_extents); - ClassDB::bind_method(_MD("get_emission_half_extents"),&Particles::get_emission_half_extents); - ClassDB::bind_method(_MD("set_emission_base_velocity","base_velocity"),&Particles::set_emission_base_velocity); - ClassDB::bind_method(_MD("get_emission_base_velocity"),&Particles::get_emission_base_velocity); - ClassDB::bind_method(_MD("set_emission_points","points"),&Particles::set_emission_points); - ClassDB::bind_method(_MD("get_emission_points"),&Particles::get_emission_points); - ClassDB::bind_method(_MD("set_gravity_normal","normal"),&Particles::set_gravity_normal); - ClassDB::bind_method(_MD("get_gravity_normal"),&Particles::get_gravity_normal); - ClassDB::bind_method(_MD("set_variable","variable","value"),&Particles::set_variable); - ClassDB::bind_method(_MD("get_variable","variable"),&Particles::get_variable); - ClassDB::bind_method(_MD("set_randomness","variable","randomness"),&Particles::set_randomness); - ClassDB::bind_method(_MD("get_randomness","variable"),&Particles::get_randomness); - ClassDB::bind_method(_MD("set_color_phase_pos","phase","pos"),&Particles::set_color_phase_pos); - ClassDB::bind_method(_MD("get_color_phase_pos","phase"),&Particles::get_color_phase_pos); - ClassDB::bind_method(_MD("set_color_phase_color","phase","color"),&Particles::set_color_phase_color); - ClassDB::bind_method(_MD("get_color_phase_color","phase"),&Particles::get_color_phase_color); - ClassDB::bind_method(_MD("set_material","material:Material"),&Particles::set_material); - ClassDB::bind_method(_MD("get_material:Material"),&Particles::get_material); - ClassDB::bind_method(_MD("set_emit_timeout","timeout"),&Particles::set_emit_timeout); - ClassDB::bind_method(_MD("get_emit_timeout"),&Particles::get_emit_timeout); - ClassDB::bind_method(_MD("set_height_from_velocity","enable"),&Particles::set_height_from_velocity); - ClassDB::bind_method(_MD("has_height_from_velocity"),&Particles::has_height_from_velocity); - ClassDB::bind_method(_MD("set_use_local_coordinates","enable"),&Particles::set_use_local_coordinates); - ClassDB::bind_method(_MD("is_using_local_coordinates"),&Particles::is_using_local_coordinates); - - ClassDB::bind_method(_MD("set_color_phases","count"),&Particles::set_color_phases); - ClassDB::bind_method(_MD("get_color_phases"),&Particles::get_color_phases); + ClassDB::bind_method(D_METHOD("set_amount","amount"),&Particles::set_amount); + ClassDB::bind_method(D_METHOD("get_amount"),&Particles::get_amount); + ClassDB::bind_method(D_METHOD("set_emitting","enabled"),&Particles::set_emitting); + ClassDB::bind_method(D_METHOD("is_emitting"),&Particles::is_emitting); + ClassDB::bind_method(D_METHOD("set_visibility_aabb","aabb"),&Particles::set_visibility_aabb); + ClassDB::bind_method(D_METHOD("get_visibility_aabb"),&Particles::get_visibility_aabb); + ClassDB::bind_method(D_METHOD("set_emission_half_extents","half_extents"),&Particles::set_emission_half_extents); + ClassDB::bind_method(D_METHOD("get_emission_half_extents"),&Particles::get_emission_half_extents); + ClassDB::bind_method(D_METHOD("set_emission_base_velocity","base_velocity"),&Particles::set_emission_base_velocity); + ClassDB::bind_method(D_METHOD("get_emission_base_velocity"),&Particles::get_emission_base_velocity); + ClassDB::bind_method(D_METHOD("set_emission_points","points"),&Particles::set_emission_points); + ClassDB::bind_method(D_METHOD("get_emission_points"),&Particles::get_emission_points); + ClassDB::bind_method(D_METHOD("set_gravity_normal","normal"),&Particles::set_gravity_normal); + ClassDB::bind_method(D_METHOD("get_gravity_normal"),&Particles::get_gravity_normal); + ClassDB::bind_method(D_METHOD("set_variable","variable","value"),&Particles::set_variable); + ClassDB::bind_method(D_METHOD("get_variable","variable"),&Particles::get_variable); + ClassDB::bind_method(D_METHOD("set_randomness","variable","randomness"),&Particles::set_randomness); + ClassDB::bind_method(D_METHOD("get_randomness","variable"),&Particles::get_randomness); + ClassDB::bind_method(D_METHOD("set_color_phase_pos","phase","pos"),&Particles::set_color_phase_pos); + ClassDB::bind_method(D_METHOD("get_color_phase_pos","phase"),&Particles::get_color_phase_pos); + ClassDB::bind_method(D_METHOD("set_color_phase_color","phase","color"),&Particles::set_color_phase_color); + ClassDB::bind_method(D_METHOD("get_color_phase_color","phase"),&Particles::get_color_phase_color); + ClassDB::bind_method(D_METHOD("set_material","material:Material"),&Particles::set_material); + ClassDB::bind_method(D_METHOD("get_material:Material"),&Particles::get_material); + ClassDB::bind_method(D_METHOD("set_emit_timeout","timeout"),&Particles::set_emit_timeout); + ClassDB::bind_method(D_METHOD("get_emit_timeout"),&Particles::get_emit_timeout); + ClassDB::bind_method(D_METHOD("set_height_from_velocity","enable"),&Particles::set_height_from_velocity); + ClassDB::bind_method(D_METHOD("has_height_from_velocity"),&Particles::has_height_from_velocity); + ClassDB::bind_method(D_METHOD("set_use_local_coordinates","enable"),&Particles::set_use_local_coordinates); + ClassDB::bind_method(D_METHOD("is_using_local_coordinates"),&Particles::is_using_local_coordinates); + + ClassDB::bind_method(D_METHOD("set_color_phases","count"),&Particles::set_color_phases); + ClassDB::bind_method(D_METHOD("get_color_phases"),&Particles::get_color_phases); ADD_PROPERTY( PropertyInfo( Variant::OBJECT, "material", PROPERTY_HINT_RESOURCE_TYPE, "Material" ), "set_material", "get_material") ; diff --git a/scene/3d/path.cpp b/scene/3d/path.cpp index 840f779e5a..ead150e40b 100644 --- a/scene/3d/path.cpp +++ b/scene/3d/path.cpp @@ -80,9 +80,9 @@ Ref<Curve3D> Path::get_curve() const{ void Path::_bind_methods() { - ClassDB::bind_method(_MD("set_curve","curve:Curve3D"),&Path::set_curve); - ClassDB::bind_method(_MD("get_curve:Curve3D","curve"),&Path::get_curve); - ClassDB::bind_method(_MD("_curve_changed"),&Path::_curve_changed); + ClassDB::bind_method(D_METHOD("set_curve","curve:Curve3D"),&Path::set_curve); + ClassDB::bind_method(D_METHOD("get_curve:Curve3D","curve"),&Path::get_curve); + ClassDB::bind_method(D_METHOD("_curve_changed"),&Path::_curve_changed); ADD_PROPERTY( PropertyInfo( Variant::OBJECT, "curve", PROPERTY_HINT_RESOURCE_TYPE, "Curve3D"), "set_curve","get_curve"); } @@ -257,26 +257,26 @@ void PathFollow::_get_property_list( List<PropertyInfo> *p_list) const{ void PathFollow::_bind_methods() { - ClassDB::bind_method(_MD("set_offset","offset"),&PathFollow::set_offset); - ClassDB::bind_method(_MD("get_offset"),&PathFollow::get_offset); + ClassDB::bind_method(D_METHOD("set_offset","offset"),&PathFollow::set_offset); + ClassDB::bind_method(D_METHOD("get_offset"),&PathFollow::get_offset); - ClassDB::bind_method(_MD("set_h_offset","h_offset"),&PathFollow::set_h_offset); - ClassDB::bind_method(_MD("get_h_offset"),&PathFollow::get_h_offset); + ClassDB::bind_method(D_METHOD("set_h_offset","h_offset"),&PathFollow::set_h_offset); + ClassDB::bind_method(D_METHOD("get_h_offset"),&PathFollow::get_h_offset); - ClassDB::bind_method(_MD("set_v_offset","v_offset"),&PathFollow::set_v_offset); - ClassDB::bind_method(_MD("get_v_offset"),&PathFollow::get_v_offset); + ClassDB::bind_method(D_METHOD("set_v_offset","v_offset"),&PathFollow::set_v_offset); + ClassDB::bind_method(D_METHOD("get_v_offset"),&PathFollow::get_v_offset); - ClassDB::bind_method(_MD("set_unit_offset","unit_offset"),&PathFollow::set_unit_offset); - ClassDB::bind_method(_MD("get_unit_offset"),&PathFollow::get_unit_offset); + ClassDB::bind_method(D_METHOD("set_unit_offset","unit_offset"),&PathFollow::set_unit_offset); + ClassDB::bind_method(D_METHOD("get_unit_offset"),&PathFollow::get_unit_offset); - ClassDB::bind_method(_MD("set_rotation_mode","rotation_mode"),&PathFollow::set_rotation_mode); - ClassDB::bind_method(_MD("get_rotation_mode"),&PathFollow::get_rotation_mode); + ClassDB::bind_method(D_METHOD("set_rotation_mode","rotation_mode"),&PathFollow::set_rotation_mode); + ClassDB::bind_method(D_METHOD("get_rotation_mode"),&PathFollow::get_rotation_mode); - ClassDB::bind_method(_MD("set_cubic_interpolation","enable"),&PathFollow::set_cubic_interpolation); - ClassDB::bind_method(_MD("get_cubic_interpolation"),&PathFollow::get_cubic_interpolation); + ClassDB::bind_method(D_METHOD("set_cubic_interpolation","enable"),&PathFollow::set_cubic_interpolation); + ClassDB::bind_method(D_METHOD("get_cubic_interpolation"),&PathFollow::get_cubic_interpolation); - ClassDB::bind_method(_MD("set_loop","loop"),&PathFollow::set_loop); - ClassDB::bind_method(_MD("has_loop"),&PathFollow::has_loop); + ClassDB::bind_method(D_METHOD("set_loop","loop"),&PathFollow::set_loop); + ClassDB::bind_method(D_METHOD("has_loop"),&PathFollow::has_loop); BIND_CONSTANT( ROTATION_NONE ); BIND_CONSTANT( ROTATION_Y ); diff --git a/scene/3d/physics_body.cpp b/scene/3d/physics_body.cpp index 546518b4fa..af514a171f 100644 --- a/scene/3d/physics_body.cpp +++ b/scene/3d/physics_body.cpp @@ -147,20 +147,20 @@ uint32_t PhysicsBody::_get_layers() const{ } void PhysicsBody::_bind_methods() { - ClassDB::bind_method(_MD("set_collision_layer","layer"),&PhysicsBody::set_collision_layer); - ClassDB::bind_method(_MD("get_collision_layer"),&PhysicsBody::get_collision_layer); + ClassDB::bind_method(D_METHOD("set_collision_layer","layer"),&PhysicsBody::set_collision_layer); + ClassDB::bind_method(D_METHOD("get_collision_layer"),&PhysicsBody::get_collision_layer); - ClassDB::bind_method(_MD("set_collision_mask","mask"),&PhysicsBody::set_collision_mask); - ClassDB::bind_method(_MD("get_collision_mask"),&PhysicsBody::get_collision_mask); + ClassDB::bind_method(D_METHOD("set_collision_mask","mask"),&PhysicsBody::set_collision_mask); + ClassDB::bind_method(D_METHOD("get_collision_mask"),&PhysicsBody::get_collision_mask); - ClassDB::bind_method(_MD("set_collision_mask_bit","bit","value"),&PhysicsBody::set_collision_mask_bit); - ClassDB::bind_method(_MD("get_collision_mask_bit","bit"),&PhysicsBody::get_collision_mask_bit); + ClassDB::bind_method(D_METHOD("set_collision_mask_bit","bit","value"),&PhysicsBody::set_collision_mask_bit); + ClassDB::bind_method(D_METHOD("get_collision_mask_bit","bit"),&PhysicsBody::get_collision_mask_bit); - ClassDB::bind_method(_MD("set_collision_layer_bit","bit","value"),&PhysicsBody::set_collision_layer_bit); - ClassDB::bind_method(_MD("get_collision_layer_bit","bit"),&PhysicsBody::get_collision_layer_bit); + ClassDB::bind_method(D_METHOD("set_collision_layer_bit","bit","value"),&PhysicsBody::set_collision_layer_bit); + ClassDB::bind_method(D_METHOD("get_collision_layer_bit","bit"),&PhysicsBody::get_collision_layer_bit); - ClassDB::bind_method(_MD("_set_layers","mask"),&PhysicsBody::_set_layers); - ClassDB::bind_method(_MD("_get_layers"),&PhysicsBody::_get_layers); + ClassDB::bind_method(D_METHOD("_set_layers","mask"),&PhysicsBody::_set_layers); + ClassDB::bind_method(D_METHOD("_get_layers"),&PhysicsBody::_get_layers); ADD_GROUP("Collision","collision_"); ADD_PROPERTY(PropertyInfo(Variant::INT,"collision_layer",PROPERTY_HINT_LAYERS_3D_PHYSICS),"set_collision_layer","get_collision_layer"); @@ -230,19 +230,19 @@ Vector3 StaticBody::get_constant_angular_velocity() const { void StaticBody::_bind_methods() { - ClassDB::bind_method(_MD("set_constant_linear_velocity","vel"),&StaticBody::set_constant_linear_velocity); - ClassDB::bind_method(_MD("set_constant_angular_velocity","vel"),&StaticBody::set_constant_angular_velocity); - ClassDB::bind_method(_MD("get_constant_linear_velocity"),&StaticBody::get_constant_linear_velocity); - ClassDB::bind_method(_MD("get_constant_angular_velocity"),&StaticBody::get_constant_angular_velocity); + ClassDB::bind_method(D_METHOD("set_constant_linear_velocity","vel"),&StaticBody::set_constant_linear_velocity); + ClassDB::bind_method(D_METHOD("set_constant_angular_velocity","vel"),&StaticBody::set_constant_angular_velocity); + ClassDB::bind_method(D_METHOD("get_constant_linear_velocity"),&StaticBody::get_constant_linear_velocity); + ClassDB::bind_method(D_METHOD("get_constant_angular_velocity"),&StaticBody::get_constant_angular_velocity); - ClassDB::bind_method(_MD("set_friction","friction"),&StaticBody::set_friction); - ClassDB::bind_method(_MD("get_friction"),&StaticBody::get_friction); + ClassDB::bind_method(D_METHOD("set_friction","friction"),&StaticBody::set_friction); + ClassDB::bind_method(D_METHOD("get_friction"),&StaticBody::get_friction); - ClassDB::bind_method(_MD("set_bounce","bounce"),&StaticBody::set_bounce); - ClassDB::bind_method(_MD("get_bounce"),&StaticBody::get_bounce); + ClassDB::bind_method(D_METHOD("set_bounce","bounce"),&StaticBody::set_bounce); + ClassDB::bind_method(D_METHOD("get_bounce"),&StaticBody::get_bounce); - ClassDB::bind_method(_MD("add_collision_exception_with","body:PhysicsBody"),&PhysicsBody::add_collision_exception_with); - ClassDB::bind_method(_MD("remove_collision_exception_with","body:PhysicsBody"),&PhysicsBody::remove_collision_exception_with); + ClassDB::bind_method(D_METHOD("add_collision_exception_with","body:PhysicsBody"),&PhysicsBody::add_collision_exception_with); + ClassDB::bind_method(D_METHOD("remove_collision_exception_with","body:PhysicsBody"),&PhysicsBody::remove_collision_exception_with); ADD_PROPERTY( PropertyInfo(Variant::REAL,"friction",PROPERTY_HINT_RANGE,"0,1,0.01"),"set_friction","get_friction"); ADD_PROPERTY( PropertyInfo(Variant::REAL,"bounce",PROPERTY_HINT_RANGE,"0,1,0.01"),"set_bounce","get_bounce"); @@ -800,66 +800,66 @@ Array RigidBody::get_colliding_bodies() const { void RigidBody::_bind_methods() { - ClassDB::bind_method(_MD("set_mode","mode"),&RigidBody::set_mode); - ClassDB::bind_method(_MD("get_mode"),&RigidBody::get_mode); + ClassDB::bind_method(D_METHOD("set_mode","mode"),&RigidBody::set_mode); + ClassDB::bind_method(D_METHOD("get_mode"),&RigidBody::get_mode); - ClassDB::bind_method(_MD("set_mass","mass"),&RigidBody::set_mass); - ClassDB::bind_method(_MD("get_mass"),&RigidBody::get_mass); + ClassDB::bind_method(D_METHOD("set_mass","mass"),&RigidBody::set_mass); + ClassDB::bind_method(D_METHOD("get_mass"),&RigidBody::get_mass); - ClassDB::bind_method(_MD("set_weight","weight"),&RigidBody::set_weight); - ClassDB::bind_method(_MD("get_weight"),&RigidBody::get_weight); + ClassDB::bind_method(D_METHOD("set_weight","weight"),&RigidBody::set_weight); + ClassDB::bind_method(D_METHOD("get_weight"),&RigidBody::get_weight); - ClassDB::bind_method(_MD("set_friction","friction"),&RigidBody::set_friction); - ClassDB::bind_method(_MD("get_friction"),&RigidBody::get_friction); + ClassDB::bind_method(D_METHOD("set_friction","friction"),&RigidBody::set_friction); + ClassDB::bind_method(D_METHOD("get_friction"),&RigidBody::get_friction); - ClassDB::bind_method(_MD("set_bounce","bounce"),&RigidBody::set_bounce); - ClassDB::bind_method(_MD("get_bounce"),&RigidBody::get_bounce); + ClassDB::bind_method(D_METHOD("set_bounce","bounce"),&RigidBody::set_bounce); + ClassDB::bind_method(D_METHOD("get_bounce"),&RigidBody::get_bounce); - ClassDB::bind_method(_MD("set_linear_velocity","linear_velocity"),&RigidBody::set_linear_velocity); - ClassDB::bind_method(_MD("get_linear_velocity"),&RigidBody::get_linear_velocity); + ClassDB::bind_method(D_METHOD("set_linear_velocity","linear_velocity"),&RigidBody::set_linear_velocity); + ClassDB::bind_method(D_METHOD("get_linear_velocity"),&RigidBody::get_linear_velocity); - ClassDB::bind_method(_MD("set_angular_velocity","angular_velocity"),&RigidBody::set_angular_velocity); - ClassDB::bind_method(_MD("get_angular_velocity"),&RigidBody::get_angular_velocity); + ClassDB::bind_method(D_METHOD("set_angular_velocity","angular_velocity"),&RigidBody::set_angular_velocity); + ClassDB::bind_method(D_METHOD("get_angular_velocity"),&RigidBody::get_angular_velocity); - ClassDB::bind_method(_MD("set_gravity_scale","gravity_scale"),&RigidBody::set_gravity_scale); - ClassDB::bind_method(_MD("get_gravity_scale"),&RigidBody::get_gravity_scale); + ClassDB::bind_method(D_METHOD("set_gravity_scale","gravity_scale"),&RigidBody::set_gravity_scale); + ClassDB::bind_method(D_METHOD("get_gravity_scale"),&RigidBody::get_gravity_scale); - ClassDB::bind_method(_MD("set_linear_damp","linear_damp"),&RigidBody::set_linear_damp); - ClassDB::bind_method(_MD("get_linear_damp"),&RigidBody::get_linear_damp); + ClassDB::bind_method(D_METHOD("set_linear_damp","linear_damp"),&RigidBody::set_linear_damp); + ClassDB::bind_method(D_METHOD("get_linear_damp"),&RigidBody::get_linear_damp); - ClassDB::bind_method(_MD("set_angular_damp","angular_damp"),&RigidBody::set_angular_damp); - ClassDB::bind_method(_MD("get_angular_damp"),&RigidBody::get_angular_damp); + ClassDB::bind_method(D_METHOD("set_angular_damp","angular_damp"),&RigidBody::set_angular_damp); + ClassDB::bind_method(D_METHOD("get_angular_damp"),&RigidBody::get_angular_damp); - ClassDB::bind_method(_MD("set_max_contacts_reported","amount"),&RigidBody::set_max_contacts_reported); - ClassDB::bind_method(_MD("get_max_contacts_reported"),&RigidBody::get_max_contacts_reported); + ClassDB::bind_method(D_METHOD("set_max_contacts_reported","amount"),&RigidBody::set_max_contacts_reported); + ClassDB::bind_method(D_METHOD("get_max_contacts_reported"),&RigidBody::get_max_contacts_reported); - ClassDB::bind_method(_MD("set_use_custom_integrator","enable"),&RigidBody::set_use_custom_integrator); - ClassDB::bind_method(_MD("is_using_custom_integrator"),&RigidBody::is_using_custom_integrator); + ClassDB::bind_method(D_METHOD("set_use_custom_integrator","enable"),&RigidBody::set_use_custom_integrator); + ClassDB::bind_method(D_METHOD("is_using_custom_integrator"),&RigidBody::is_using_custom_integrator); - ClassDB::bind_method(_MD("set_contact_monitor","enabled"),&RigidBody::set_contact_monitor); - ClassDB::bind_method(_MD("is_contact_monitor_enabled"),&RigidBody::is_contact_monitor_enabled); + ClassDB::bind_method(D_METHOD("set_contact_monitor","enabled"),&RigidBody::set_contact_monitor); + ClassDB::bind_method(D_METHOD("is_contact_monitor_enabled"),&RigidBody::is_contact_monitor_enabled); - ClassDB::bind_method(_MD("set_use_continuous_collision_detection","enable"),&RigidBody::set_use_continuous_collision_detection); - ClassDB::bind_method(_MD("is_using_continuous_collision_detection"),&RigidBody::is_using_continuous_collision_detection); + ClassDB::bind_method(D_METHOD("set_use_continuous_collision_detection","enable"),&RigidBody::set_use_continuous_collision_detection); + ClassDB::bind_method(D_METHOD("is_using_continuous_collision_detection"),&RigidBody::is_using_continuous_collision_detection); - ClassDB::bind_method(_MD("set_axis_velocity","axis_velocity"),&RigidBody::set_axis_velocity); - ClassDB::bind_method(_MD("apply_impulse","pos","impulse"),&RigidBody::apply_impulse); + ClassDB::bind_method(D_METHOD("set_axis_velocity","axis_velocity"),&RigidBody::set_axis_velocity); + ClassDB::bind_method(D_METHOD("apply_impulse","pos","impulse"),&RigidBody::apply_impulse); - ClassDB::bind_method(_MD("set_sleeping","sleeping"),&RigidBody::set_sleeping); - ClassDB::bind_method(_MD("is_sleeping"),&RigidBody::is_sleeping); + ClassDB::bind_method(D_METHOD("set_sleeping","sleeping"),&RigidBody::set_sleeping); + ClassDB::bind_method(D_METHOD("is_sleeping"),&RigidBody::is_sleeping); - ClassDB::bind_method(_MD("set_can_sleep","able_to_sleep"),&RigidBody::set_can_sleep); - ClassDB::bind_method(_MD("is_able_to_sleep"),&RigidBody::is_able_to_sleep); + ClassDB::bind_method(D_METHOD("set_can_sleep","able_to_sleep"),&RigidBody::set_can_sleep); + ClassDB::bind_method(D_METHOD("is_able_to_sleep"),&RigidBody::is_able_to_sleep); - ClassDB::bind_method(_MD("_direct_state_changed"),&RigidBody::_direct_state_changed); - ClassDB::bind_method(_MD("_body_enter_tree"),&RigidBody::_body_enter_tree); - ClassDB::bind_method(_MD("_body_exit_tree"),&RigidBody::_body_exit_tree); + ClassDB::bind_method(D_METHOD("_direct_state_changed"),&RigidBody::_direct_state_changed); + ClassDB::bind_method(D_METHOD("_body_enter_tree"),&RigidBody::_body_enter_tree); + ClassDB::bind_method(D_METHOD("_body_exit_tree"),&RigidBody::_body_exit_tree); - ClassDB::bind_method(_MD("set_axis_lock","axis_lock"),&RigidBody::set_axis_lock); - ClassDB::bind_method(_MD("get_axis_lock"),&RigidBody::get_axis_lock); + ClassDB::bind_method(D_METHOD("set_axis_lock","axis_lock"),&RigidBody::set_axis_lock); + ClassDB::bind_method(D_METHOD("get_axis_lock"),&RigidBody::get_axis_lock); - ClassDB::bind_method(_MD("get_colliding_bodies"),&RigidBody::get_colliding_bodies); + ClassDB::bind_method(D_METHOD("get_colliding_bodies"),&RigidBody::get_colliding_bodies); BIND_VMETHOD(MethodInfo("_integrate_forces",PropertyInfo(Variant::OBJECT,"state:PhysicsDirectBodyState"))); @@ -1298,34 +1298,34 @@ float KinematicBody::get_collision_margin() const{ void KinematicBody::_bind_methods() { - ClassDB::bind_method(_MD("move","rel_vec"),&KinematicBody::move); - ClassDB::bind_method(_MD("move_to","position"),&KinematicBody::move_to); + ClassDB::bind_method(D_METHOD("move","rel_vec"),&KinematicBody::move); + ClassDB::bind_method(D_METHOD("move_to","position"),&KinematicBody::move_to); - ClassDB::bind_method(_MD("can_teleport_to","position"),&KinematicBody::can_teleport_to); + ClassDB::bind_method(D_METHOD("can_teleport_to","position"),&KinematicBody::can_teleport_to); - ClassDB::bind_method(_MD("is_colliding"),&KinematicBody::is_colliding); + ClassDB::bind_method(D_METHOD("is_colliding"),&KinematicBody::is_colliding); - ClassDB::bind_method(_MD("get_collision_pos"),&KinematicBody::get_collision_pos); - ClassDB::bind_method(_MD("get_collision_normal"),&KinematicBody::get_collision_normal); - ClassDB::bind_method(_MD("get_collider_velocity"),&KinematicBody::get_collider_velocity); - ClassDB::bind_method(_MD("get_collider:Variant"),&KinematicBody::_get_collider); - ClassDB::bind_method(_MD("get_collider_shape"),&KinematicBody::get_collider_shape); + ClassDB::bind_method(D_METHOD("get_collision_pos"),&KinematicBody::get_collision_pos); + ClassDB::bind_method(D_METHOD("get_collision_normal"),&KinematicBody::get_collision_normal); + ClassDB::bind_method(D_METHOD("get_collider_velocity"),&KinematicBody::get_collider_velocity); + ClassDB::bind_method(D_METHOD("get_collider:Variant"),&KinematicBody::_get_collider); + ClassDB::bind_method(D_METHOD("get_collider_shape"),&KinematicBody::get_collider_shape); - ClassDB::bind_method(_MD("set_collide_with_static_bodies","enable"),&KinematicBody::set_collide_with_static_bodies); - ClassDB::bind_method(_MD("can_collide_with_static_bodies"),&KinematicBody::can_collide_with_static_bodies); + ClassDB::bind_method(D_METHOD("set_collide_with_static_bodies","enable"),&KinematicBody::set_collide_with_static_bodies); + ClassDB::bind_method(D_METHOD("can_collide_with_static_bodies"),&KinematicBody::can_collide_with_static_bodies); - ClassDB::bind_method(_MD("set_collide_with_kinematic_bodies","enable"),&KinematicBody::set_collide_with_kinematic_bodies); - ClassDB::bind_method(_MD("can_collide_with_kinematic_bodies"),&KinematicBody::can_collide_with_kinematic_bodies); + ClassDB::bind_method(D_METHOD("set_collide_with_kinematic_bodies","enable"),&KinematicBody::set_collide_with_kinematic_bodies); + ClassDB::bind_method(D_METHOD("can_collide_with_kinematic_bodies"),&KinematicBody::can_collide_with_kinematic_bodies); - ClassDB::bind_method(_MD("set_collide_with_rigid_bodies","enable"),&KinematicBody::set_collide_with_rigid_bodies); - ClassDB::bind_method(_MD("can_collide_with_rigid_bodies"),&KinematicBody::can_collide_with_rigid_bodies); + ClassDB::bind_method(D_METHOD("set_collide_with_rigid_bodies","enable"),&KinematicBody::set_collide_with_rigid_bodies); + ClassDB::bind_method(D_METHOD("can_collide_with_rigid_bodies"),&KinematicBody::can_collide_with_rigid_bodies); - ClassDB::bind_method(_MD("set_collide_with_character_bodies","enable"),&KinematicBody::set_collide_with_character_bodies); - ClassDB::bind_method(_MD("can_collide_with_character_bodies"),&KinematicBody::can_collide_with_character_bodies); + ClassDB::bind_method(D_METHOD("set_collide_with_character_bodies","enable"),&KinematicBody::set_collide_with_character_bodies); + ClassDB::bind_method(D_METHOD("can_collide_with_character_bodies"),&KinematicBody::can_collide_with_character_bodies); - ClassDB::bind_method(_MD("set_collision_margin","pixels"),&KinematicBody::set_collision_margin); - ClassDB::bind_method(_MD("get_collision_margin","pixels"),&KinematicBody::get_collision_margin); + ClassDB::bind_method(D_METHOD("set_collision_margin","pixels"),&KinematicBody::set_collision_margin); + ClassDB::bind_method(D_METHOD("get_collision_margin","pixels"),&KinematicBody::get_collision_margin); ADD_PROPERTY( PropertyInfo(Variant::BOOL,"collide_with/static"),"set_collide_with_static_bodies","can_collide_with_static_bodies"); ADD_PROPERTY( PropertyInfo(Variant::BOOL,"collide_with/kinematic"),"set_collide_with_kinematic_bodies","can_collide_with_kinematic_bodies"); diff --git a/scene/3d/physics_joint.cpp b/scene/3d/physics_joint.cpp index 9a06c37523..d48d75f464 100644 --- a/scene/3d/physics_joint.cpp +++ b/scene/3d/physics_joint.cpp @@ -167,17 +167,17 @@ bool Joint::get_exclude_nodes_from_collision() const{ void Joint::_bind_methods() { - ClassDB::bind_method( _MD("set_node_a","node"), &Joint::set_node_a ); - ClassDB::bind_method( _MD("get_node_a"), &Joint::get_node_a ); + ClassDB::bind_method( D_METHOD("set_node_a","node"), &Joint::set_node_a ); + ClassDB::bind_method( D_METHOD("get_node_a"), &Joint::get_node_a ); - ClassDB::bind_method( _MD("set_node_b","node"), &Joint::set_node_b ); - ClassDB::bind_method( _MD("get_node_b"), &Joint::get_node_b ); + ClassDB::bind_method( D_METHOD("set_node_b","node"), &Joint::set_node_b ); + ClassDB::bind_method( D_METHOD("get_node_b"), &Joint::get_node_b ); - ClassDB::bind_method( _MD("set_solver_priority","priority"), &Joint::set_solver_priority ); - ClassDB::bind_method( _MD("get_solver_priority"), &Joint::get_solver_priority ); + ClassDB::bind_method( D_METHOD("set_solver_priority","priority"), &Joint::set_solver_priority ); + ClassDB::bind_method( D_METHOD("get_solver_priority"), &Joint::get_solver_priority ); - ClassDB::bind_method( _MD("set_exclude_nodes_from_collision","enable"), &Joint::set_exclude_nodes_from_collision ); - ClassDB::bind_method( _MD("get_exclude_nodes_from_collision"), &Joint::get_exclude_nodes_from_collision ); + ClassDB::bind_method( D_METHOD("set_exclude_nodes_from_collision","enable"), &Joint::set_exclude_nodes_from_collision ); + ClassDB::bind_method( D_METHOD("get_exclude_nodes_from_collision"), &Joint::get_exclude_nodes_from_collision ); ADD_PROPERTY( PropertyInfo( Variant::NODE_PATH, "nodes/node_a"), "set_node_a","get_node_a") ; ADD_PROPERTY( PropertyInfo( Variant::NODE_PATH, "nodes/node_b"), "set_node_b","get_node_b") ; @@ -203,8 +203,8 @@ Joint::Joint() { void PinJoint::_bind_methods() { - ClassDB::bind_method(_MD("set_param","param","value"),&PinJoint::set_param); - ClassDB::bind_method(_MD("get_param","param"),&PinJoint::get_param); + ClassDB::bind_method(D_METHOD("set_param","param","value"),&PinJoint::set_param); + ClassDB::bind_method(D_METHOD("get_param","param"),&PinJoint::get_param); ADD_PROPERTYI( PropertyInfo(Variant::REAL,"params/bias",PROPERTY_HINT_RANGE,"0.01,0.99,0.01"),"set_param","get_param", PARAM_BIAS ); ADD_PROPERTYI( PropertyInfo(Variant::REAL,"params/damping",PROPERTY_HINT_RANGE,"0.01,8.0,0.01"),"set_param","get_param", PARAM_DAMPING ); @@ -292,17 +292,17 @@ float HingeJoint::_get_lower_limit() const { void HingeJoint::_bind_methods() { - ClassDB::bind_method(_MD("set_param","param","value"),&HingeJoint::set_param); - ClassDB::bind_method(_MD("get_param","param"),&HingeJoint::get_param); + ClassDB::bind_method(D_METHOD("set_param","param","value"),&HingeJoint::set_param); + ClassDB::bind_method(D_METHOD("get_param","param"),&HingeJoint::get_param); - ClassDB::bind_method(_MD("set_flag","flag","enabled"),&HingeJoint::set_flag); - ClassDB::bind_method(_MD("get_flag","flag"),&HingeJoint::get_flag); + ClassDB::bind_method(D_METHOD("set_flag","flag","enabled"),&HingeJoint::set_flag); + ClassDB::bind_method(D_METHOD("get_flag","flag"),&HingeJoint::get_flag); - ClassDB::bind_method(_MD("_set_upper_limit","upper_limit"),&HingeJoint::_set_upper_limit); - ClassDB::bind_method(_MD("_get_upper_limit"),&HingeJoint::_get_upper_limit); + ClassDB::bind_method(D_METHOD("_set_upper_limit","upper_limit"),&HingeJoint::_set_upper_limit); + ClassDB::bind_method(D_METHOD("_get_upper_limit"),&HingeJoint::_get_upper_limit); - ClassDB::bind_method(_MD("_set_lower_limit","lower_limit"),&HingeJoint::_set_lower_limit); - ClassDB::bind_method(_MD("_get_lower_limit"),&HingeJoint::_get_lower_limit); + ClassDB::bind_method(D_METHOD("_set_lower_limit","lower_limit"),&HingeJoint::_set_lower_limit); + ClassDB::bind_method(D_METHOD("_get_lower_limit"),&HingeJoint::_get_lower_limit); ADD_PROPERTYI( PropertyInfo(Variant::REAL,"params/bias",PROPERTY_HINT_RANGE,"0.01,0.99,0.01"),"set_param","get_param", PARAM_BIAS ); @@ -447,15 +447,15 @@ float SliderJoint::_get_lower_limit_angular() const { void SliderJoint::_bind_methods() { - ClassDB::bind_method(_MD("set_param","param","value"),&SliderJoint::set_param); - ClassDB::bind_method(_MD("get_param","param"),&SliderJoint::get_param); + ClassDB::bind_method(D_METHOD("set_param","param","value"),&SliderJoint::set_param); + ClassDB::bind_method(D_METHOD("get_param","param"),&SliderJoint::get_param); - ClassDB::bind_method(_MD("_set_upper_limit_angular","upper_limit_angular"),&SliderJoint::_set_upper_limit_angular); - ClassDB::bind_method(_MD("_get_upper_limit_angular"),&SliderJoint::_get_upper_limit_angular); + ClassDB::bind_method(D_METHOD("_set_upper_limit_angular","upper_limit_angular"),&SliderJoint::_set_upper_limit_angular); + ClassDB::bind_method(D_METHOD("_get_upper_limit_angular"),&SliderJoint::_get_upper_limit_angular); - ClassDB::bind_method(_MD("_set_lower_limit_angular","lower_limit_angular"),&SliderJoint::_set_lower_limit_angular); - ClassDB::bind_method(_MD("_get_lower_limit_angular"),&SliderJoint::_get_lower_limit_angular); + ClassDB::bind_method(D_METHOD("_set_lower_limit_angular","lower_limit_angular"),&SliderJoint::_set_lower_limit_angular); + ClassDB::bind_method(D_METHOD("_get_lower_limit_angular"),&SliderJoint::_get_lower_limit_angular); ADD_PROPERTYI( PropertyInfo(Variant::REAL,"linear_limit/upper_distance",PROPERTY_HINT_RANGE,"-1024,1024,0.01"),"set_param","get_param", PARAM_LINEAR_LIMIT_UPPER); @@ -612,15 +612,15 @@ float ConeTwistJoint::_get_twist_span() const { void ConeTwistJoint::_bind_methods() { - ClassDB::bind_method(_MD("set_param","param","value"),&ConeTwistJoint::set_param); - ClassDB::bind_method(_MD("get_param","param"),&ConeTwistJoint::get_param); + ClassDB::bind_method(D_METHOD("set_param","param","value"),&ConeTwistJoint::set_param); + ClassDB::bind_method(D_METHOD("get_param","param"),&ConeTwistJoint::get_param); - ClassDB::bind_method(_MD("_set_swing_span","swing_span"),&ConeTwistJoint::_set_swing_span); - ClassDB::bind_method(_MD("_get_swing_span"),&ConeTwistJoint::_get_swing_span); + ClassDB::bind_method(D_METHOD("_set_swing_span","swing_span"),&ConeTwistJoint::_set_swing_span); + ClassDB::bind_method(D_METHOD("_get_swing_span"),&ConeTwistJoint::_get_swing_span); - ClassDB::bind_method(_MD("_set_twist_span","twist_span"),&ConeTwistJoint::_set_twist_span); - ClassDB::bind_method(_MD("_get_twist_span"),&ConeTwistJoint::_get_twist_span); + ClassDB::bind_method(D_METHOD("_set_twist_span","twist_span"),&ConeTwistJoint::_set_twist_span); + ClassDB::bind_method(D_METHOD("_get_twist_span"),&ConeTwistJoint::_get_twist_span); ADD_PROPERTY( PropertyInfo(Variant::REAL,"swing_span",PROPERTY_HINT_RANGE,"-180,180,0.1"),"_set_swing_span","_get_swing_span") ; @@ -771,41 +771,41 @@ float Generic6DOFJoint::_get_angular_lo_limit_z() const{ void Generic6DOFJoint::_bind_methods(){ - ClassDB::bind_method(_MD("_set_angular_hi_limit_x","angle"),&Generic6DOFJoint::_set_angular_hi_limit_x); - ClassDB::bind_method(_MD("_get_angular_hi_limit_x"),&Generic6DOFJoint::_get_angular_hi_limit_x); + ClassDB::bind_method(D_METHOD("_set_angular_hi_limit_x","angle"),&Generic6DOFJoint::_set_angular_hi_limit_x); + ClassDB::bind_method(D_METHOD("_get_angular_hi_limit_x"),&Generic6DOFJoint::_get_angular_hi_limit_x); - ClassDB::bind_method(_MD("_set_angular_lo_limit_x","angle"),&Generic6DOFJoint::_set_angular_lo_limit_x); - ClassDB::bind_method(_MD("_get_angular_lo_limit_x"),&Generic6DOFJoint::_get_angular_lo_limit_x); + ClassDB::bind_method(D_METHOD("_set_angular_lo_limit_x","angle"),&Generic6DOFJoint::_set_angular_lo_limit_x); + ClassDB::bind_method(D_METHOD("_get_angular_lo_limit_x"),&Generic6DOFJoint::_get_angular_lo_limit_x); - ClassDB::bind_method(_MD("_set_angular_hi_limit_y","angle"),&Generic6DOFJoint::_set_angular_hi_limit_y); - ClassDB::bind_method(_MD("_get_angular_hi_limit_y"),&Generic6DOFJoint::_get_angular_hi_limit_y); + ClassDB::bind_method(D_METHOD("_set_angular_hi_limit_y","angle"),&Generic6DOFJoint::_set_angular_hi_limit_y); + ClassDB::bind_method(D_METHOD("_get_angular_hi_limit_y"),&Generic6DOFJoint::_get_angular_hi_limit_y); - ClassDB::bind_method(_MD("_set_angular_lo_limit_y","angle"),&Generic6DOFJoint::_set_angular_lo_limit_y); - ClassDB::bind_method(_MD("_get_angular_lo_limit_y"),&Generic6DOFJoint::_get_angular_lo_limit_y); + ClassDB::bind_method(D_METHOD("_set_angular_lo_limit_y","angle"),&Generic6DOFJoint::_set_angular_lo_limit_y); + ClassDB::bind_method(D_METHOD("_get_angular_lo_limit_y"),&Generic6DOFJoint::_get_angular_lo_limit_y); - ClassDB::bind_method(_MD("_set_angular_hi_limit_z","angle"),&Generic6DOFJoint::_set_angular_hi_limit_z); - ClassDB::bind_method(_MD("_get_angular_hi_limit_z"),&Generic6DOFJoint::_get_angular_hi_limit_z); + ClassDB::bind_method(D_METHOD("_set_angular_hi_limit_z","angle"),&Generic6DOFJoint::_set_angular_hi_limit_z); + ClassDB::bind_method(D_METHOD("_get_angular_hi_limit_z"),&Generic6DOFJoint::_get_angular_hi_limit_z); - ClassDB::bind_method(_MD("_set_angular_lo_limit_z","angle"),&Generic6DOFJoint::_set_angular_lo_limit_z); - ClassDB::bind_method(_MD("_get_angular_lo_limit_z"),&Generic6DOFJoint::_get_angular_lo_limit_z); + ClassDB::bind_method(D_METHOD("_set_angular_lo_limit_z","angle"),&Generic6DOFJoint::_set_angular_lo_limit_z); + ClassDB::bind_method(D_METHOD("_get_angular_lo_limit_z"),&Generic6DOFJoint::_get_angular_lo_limit_z); - ClassDB::bind_method(_MD("set_param_x","param","value"),&Generic6DOFJoint::set_param_x); - ClassDB::bind_method(_MD("get_param_x","param"),&Generic6DOFJoint::get_param_x); + ClassDB::bind_method(D_METHOD("set_param_x","param","value"),&Generic6DOFJoint::set_param_x); + ClassDB::bind_method(D_METHOD("get_param_x","param"),&Generic6DOFJoint::get_param_x); - ClassDB::bind_method(_MD("set_param_y","param","value"),&Generic6DOFJoint::set_param_y); - ClassDB::bind_method(_MD("get_param_y","param"),&Generic6DOFJoint::get_param_y); + ClassDB::bind_method(D_METHOD("set_param_y","param","value"),&Generic6DOFJoint::set_param_y); + ClassDB::bind_method(D_METHOD("get_param_y","param"),&Generic6DOFJoint::get_param_y); - ClassDB::bind_method(_MD("set_param_z","param","value"),&Generic6DOFJoint::set_param_z); - ClassDB::bind_method(_MD("get_param_z","param"),&Generic6DOFJoint::get_param_z); + ClassDB::bind_method(D_METHOD("set_param_z","param","value"),&Generic6DOFJoint::set_param_z); + ClassDB::bind_method(D_METHOD("get_param_z","param"),&Generic6DOFJoint::get_param_z); - ClassDB::bind_method(_MD("set_flag_x","flag","value"),&Generic6DOFJoint::set_flag_x); - ClassDB::bind_method(_MD("get_flag_x","flag"),&Generic6DOFJoint::get_flag_x); + ClassDB::bind_method(D_METHOD("set_flag_x","flag","value"),&Generic6DOFJoint::set_flag_x); + ClassDB::bind_method(D_METHOD("get_flag_x","flag"),&Generic6DOFJoint::get_flag_x); - ClassDB::bind_method(_MD("set_flag_y","flag","value"),&Generic6DOFJoint::set_flag_y); - ClassDB::bind_method(_MD("get_flag_y","flag"),&Generic6DOFJoint::get_flag_y); + ClassDB::bind_method(D_METHOD("set_flag_y","flag","value"),&Generic6DOFJoint::set_flag_y); + ClassDB::bind_method(D_METHOD("get_flag_y","flag"),&Generic6DOFJoint::get_flag_y); - ClassDB::bind_method(_MD("set_flag_z","flag","value"),&Generic6DOFJoint::set_flag_z); - ClassDB::bind_method(_MD("get_flag_z","flag"),&Generic6DOFJoint::get_flag_z); + ClassDB::bind_method(D_METHOD("set_flag_z","flag","value"),&Generic6DOFJoint::set_flag_z); + ClassDB::bind_method(D_METHOD("get_flag_z","flag"),&Generic6DOFJoint::get_flag_z); ADD_PROPERTYI(PropertyInfo(Variant::BOOL,"linear_limit_x/enabled"),"set_flag_x","get_flag_x",FLAG_ENABLE_LINEAR_LIMIT); @@ -1171,22 +1171,22 @@ RID PhysicsJoint::_get_visual_instance_rid() const { void PhysicsJoint::_bind_methods() { - ClassDB::bind_method(_MD("_get_visual_instance_rid"),&PhysicsJoint::_get_visual_instance_rid); - ClassDB::bind_method(_MD("set_body_A","path"),&PhysicsJoint::set_body_A); - ClassDB::bind_method(_MD("set_body_B"),&PhysicsJoint::set_body_B); - ClassDB::bind_method(_MD("get_body_A","path"),&PhysicsJoint::get_body_A); - ClassDB::bind_method(_MD("get_body_B"),&PhysicsJoint::get_body_B); + ClassDB::bind_method(D_METHOD("_get_visual_instance_rid"),&PhysicsJoint::_get_visual_instance_rid); + ClassDB::bind_method(D_METHOD("set_body_A","path"),&PhysicsJoint::set_body_A); + ClassDB::bind_method(D_METHOD("set_body_B"),&PhysicsJoint::set_body_B); + ClassDB::bind_method(D_METHOD("get_body_A","path"),&PhysicsJoint::get_body_A); + ClassDB::bind_method(D_METHOD("get_body_B"),&PhysicsJoint::get_body_B); - ClassDB::bind_method(_MD("set_active","active"),&PhysicsJoint::set_active); - ClassDB::bind_method(_MD("is_active"),&PhysicsJoint::is_active); + ClassDB::bind_method(D_METHOD("set_active","active"),&PhysicsJoint::set_active); + ClassDB::bind_method(D_METHOD("is_active"),&PhysicsJoint::is_active); - ClassDB::bind_method(_MD("set_disable_collision","disable"),&PhysicsJoint::set_disable_collision); - ClassDB::bind_method(_MD("has_disable_collision"),&PhysicsJoint::has_disable_collision); + ClassDB::bind_method(D_METHOD("set_disable_collision","disable"),&PhysicsJoint::set_disable_collision); + ClassDB::bind_method(D_METHOD("has_disable_collision"),&PhysicsJoint::has_disable_collision); ClassDB::bind_method("reconnect",&PhysicsJoint::reconnect); - ClassDB::bind_method(_MD("get_rid"),&PhysicsJoint::get_rid); + ClassDB::bind_method(D_METHOD("get_rid"),&PhysicsJoint::get_rid); } diff --git a/scene/3d/portal.cpp b/scene/3d/portal.cpp index 054b61a4ed..44e4fb54da 100644 --- a/scene/3d/portal.cpp +++ b/scene/3d/portal.cpp @@ -197,20 +197,20 @@ Color Portal::get_disabled_color() const { void Portal::_bind_methods() { - ClassDB::bind_method(_MD("set_shape","points"),&Portal::set_shape); - ClassDB::bind_method(_MD("get_shape"),&Portal::get_shape); + ClassDB::bind_method(D_METHOD("set_shape","points"),&Portal::set_shape); + ClassDB::bind_method(D_METHOD("get_shape"),&Portal::get_shape); - ClassDB::bind_method(_MD("set_enabled","enable"),&Portal::set_enabled); - ClassDB::bind_method(_MD("is_enabled"),&Portal::is_enabled); + ClassDB::bind_method(D_METHOD("set_enabled","enable"),&Portal::set_enabled); + ClassDB::bind_method(D_METHOD("is_enabled"),&Portal::is_enabled); - ClassDB::bind_method(_MD("set_disable_distance","distance"),&Portal::set_disable_distance); - ClassDB::bind_method(_MD("get_disable_distance"),&Portal::get_disable_distance); + ClassDB::bind_method(D_METHOD("set_disable_distance","distance"),&Portal::set_disable_distance); + ClassDB::bind_method(D_METHOD("get_disable_distance"),&Portal::get_disable_distance); - ClassDB::bind_method(_MD("set_disabled_color","color"),&Portal::set_disabled_color); - ClassDB::bind_method(_MD("get_disabled_color"),&Portal::get_disabled_color); + ClassDB::bind_method(D_METHOD("set_disabled_color","color"),&Portal::set_disabled_color); + ClassDB::bind_method(D_METHOD("get_disabled_color"),&Portal::get_disabled_color); - ClassDB::bind_method(_MD("set_connect_range","range"),&Portal::set_connect_range); - ClassDB::bind_method(_MD("get_connect_range"),&Portal::get_connect_range); + ClassDB::bind_method(D_METHOD("set_connect_range","range"),&Portal::set_connect_range); + ClassDB::bind_method(D_METHOD("get_connect_range"),&Portal::get_connect_range); } diff --git a/scene/3d/proximity_group.cpp b/scene/3d/proximity_group.cpp index 4ad2fde6f8..f0dc8cb2ed 100644 --- a/scene/3d/proximity_group.cpp +++ b/scene/3d/proximity_group.cpp @@ -171,12 +171,12 @@ Vector3 ProximityGroup::get_grid_radius() const { void ProximityGroup::_bind_methods() { - ClassDB::bind_method(_MD("set_group_name","name"), &ProximityGroup::set_group_name); - ClassDB::bind_method(_MD("broadcast","name", "parameters"), &ProximityGroup::broadcast); - ClassDB::bind_method(_MD("set_dispatch_mode","mode"), &ProximityGroup::set_dispatch_mode); - ClassDB::bind_method(_MD("_proximity_group_broadcast","name","params"), &ProximityGroup::_proximity_group_broadcast); - ClassDB::bind_method(_MD("set_grid_radius","radius"), &ProximityGroup::set_grid_radius); - ClassDB::bind_method(_MD("get_grid_radius"), &ProximityGroup::get_grid_radius); + ClassDB::bind_method(D_METHOD("set_group_name","name"), &ProximityGroup::set_group_name); + ClassDB::bind_method(D_METHOD("broadcast","name", "parameters"), &ProximityGroup::broadcast); + ClassDB::bind_method(D_METHOD("set_dispatch_mode","mode"), &ProximityGroup::set_dispatch_mode); + ClassDB::bind_method(D_METHOD("_proximity_group_broadcast","name","params"), &ProximityGroup::_proximity_group_broadcast); + ClassDB::bind_method(D_METHOD("set_grid_radius","radius"), &ProximityGroup::set_grid_radius); + ClassDB::bind_method(D_METHOD("get_grid_radius"), &ProximityGroup::get_grid_radius); ADD_PROPERTY( PropertyInfo( Variant::VECTOR3, "grid_radius"), "set_grid_radius", "get_grid_radius"); diff --git a/scene/3d/quad.cpp b/scene/3d/quad.cpp index 8be39d289f..e740769bd4 100644 --- a/scene/3d/quad.cpp +++ b/scene/3d/quad.cpp @@ -199,17 +199,17 @@ Rect3 Quad::get_aabb() const { void Quad::_bind_methods(){ - ClassDB::bind_method(_MD("set_axis","axis"),&Quad::set_axis); - ClassDB::bind_method(_MD("get_axis"),&Quad::get_axis); + ClassDB::bind_method(D_METHOD("set_axis","axis"),&Quad::set_axis); + ClassDB::bind_method(D_METHOD("get_axis"),&Quad::get_axis); - ClassDB::bind_method(_MD("set_size","size"),&Quad::set_size); - ClassDB::bind_method(_MD("get_size"),&Quad::get_size); + ClassDB::bind_method(D_METHOD("set_size","size"),&Quad::set_size); + ClassDB::bind_method(D_METHOD("get_size"),&Quad::get_size); - ClassDB::bind_method(_MD("set_centered","centered"),&Quad::set_centered); - ClassDB::bind_method(_MD("is_centered"),&Quad::is_centered); + ClassDB::bind_method(D_METHOD("set_centered","centered"),&Quad::set_centered); + ClassDB::bind_method(D_METHOD("is_centered"),&Quad::is_centered); - ClassDB::bind_method(_MD("set_offset","offset"),&Quad::set_offset); - ClassDB::bind_method(_MD("get_offset"),&Quad::get_offset); + ClassDB::bind_method(D_METHOD("set_offset","offset"),&Quad::set_offset); + ClassDB::bind_method(D_METHOD("get_offset"),&Quad::get_offset); ADD_PROPERTY( PropertyInfo( Variant::INT, "axis", PROPERTY_HINT_ENUM,"X,Y,Z" ), "set_axis", "get_axis"); ADD_PROPERTY( PropertyInfo( Variant::VECTOR2, "size" ), "set_size", "get_size"); diff --git a/scene/3d/ray_cast.cpp b/scene/3d/ray_cast.cpp index 47c4417321..6be8b89441 100644 --- a/scene/3d/ray_cast.cpp +++ b/scene/3d/ray_cast.cpp @@ -210,33 +210,33 @@ void RayCast::clear_exceptions(){ void RayCast::_bind_methods() { - ClassDB::bind_method(_MD("set_enabled","enabled"),&RayCast::set_enabled); - ClassDB::bind_method(_MD("is_enabled"),&RayCast::is_enabled); + ClassDB::bind_method(D_METHOD("set_enabled","enabled"),&RayCast::set_enabled); + ClassDB::bind_method(D_METHOD("is_enabled"),&RayCast::is_enabled); - ClassDB::bind_method(_MD("set_cast_to","local_point"),&RayCast::set_cast_to); - ClassDB::bind_method(_MD("get_cast_to"),&RayCast::get_cast_to); + ClassDB::bind_method(D_METHOD("set_cast_to","local_point"),&RayCast::set_cast_to); + ClassDB::bind_method(D_METHOD("get_cast_to"),&RayCast::get_cast_to); - ClassDB::bind_method(_MD("is_colliding"),&RayCast::is_colliding); - ClassDB::bind_method(_MD("force_raycast_update"),&RayCast::force_raycast_update); + ClassDB::bind_method(D_METHOD("is_colliding"),&RayCast::is_colliding); + ClassDB::bind_method(D_METHOD("force_raycast_update"),&RayCast::force_raycast_update); - ClassDB::bind_method(_MD("get_collider"),&RayCast::get_collider); - ClassDB::bind_method(_MD("get_collider_shape"),&RayCast::get_collider_shape); - ClassDB::bind_method(_MD("get_collision_point"),&RayCast::get_collision_point); - ClassDB::bind_method(_MD("get_collision_normal"),&RayCast::get_collision_normal); + ClassDB::bind_method(D_METHOD("get_collider"),&RayCast::get_collider); + ClassDB::bind_method(D_METHOD("get_collider_shape"),&RayCast::get_collider_shape); + ClassDB::bind_method(D_METHOD("get_collision_point"),&RayCast::get_collision_point); + ClassDB::bind_method(D_METHOD("get_collision_normal"),&RayCast::get_collision_normal); - ClassDB::bind_method(_MD("add_exception_rid","rid"),&RayCast::add_exception_rid); - ClassDB::bind_method(_MD("add_exception","node"),&RayCast::add_exception); + ClassDB::bind_method(D_METHOD("add_exception_rid","rid"),&RayCast::add_exception_rid); + ClassDB::bind_method(D_METHOD("add_exception","node"),&RayCast::add_exception); - ClassDB::bind_method(_MD("remove_exception_rid","rid"),&RayCast::remove_exception_rid); - ClassDB::bind_method(_MD("remove_exception","node"),&RayCast::remove_exception); + ClassDB::bind_method(D_METHOD("remove_exception_rid","rid"),&RayCast::remove_exception_rid); + ClassDB::bind_method(D_METHOD("remove_exception","node"),&RayCast::remove_exception); - ClassDB::bind_method(_MD("clear_exceptions"),&RayCast::clear_exceptions); + ClassDB::bind_method(D_METHOD("clear_exceptions"),&RayCast::clear_exceptions); - ClassDB::bind_method(_MD("set_layer_mask","mask"),&RayCast::set_layer_mask); - ClassDB::bind_method(_MD("get_layer_mask"),&RayCast::get_layer_mask); + ClassDB::bind_method(D_METHOD("set_layer_mask","mask"),&RayCast::set_layer_mask); + ClassDB::bind_method(D_METHOD("get_layer_mask"),&RayCast::get_layer_mask); - ClassDB::bind_method(_MD("set_type_mask","mask"),&RayCast::set_type_mask); - ClassDB::bind_method(_MD("get_type_mask"),&RayCast::get_type_mask); + ClassDB::bind_method(D_METHOD("set_type_mask","mask"),&RayCast::set_type_mask); + ClassDB::bind_method(D_METHOD("get_type_mask"),&RayCast::get_type_mask); ADD_PROPERTY(PropertyInfo(Variant::BOOL,"enabled"),"set_enabled","is_enabled"); ADD_PROPERTY(PropertyInfo(Variant::VECTOR3,"cast_to"),"set_cast_to","get_cast_to"); diff --git a/scene/3d/reflection_probe.cpp b/scene/3d/reflection_probe.cpp index 5e87d623c5..bcda7ca0ae 100644 --- a/scene/3d/reflection_probe.cpp +++ b/scene/3d/reflection_probe.cpp @@ -185,42 +185,42 @@ void ReflectionProbe::_validate_property(PropertyInfo& property) const { void ReflectionProbe::_bind_methods() { - ClassDB::bind_method(_MD("set_intensity","intensity"),&ReflectionProbe::set_intensity); - ClassDB::bind_method(_MD("get_intensity"),&ReflectionProbe::get_intensity); + ClassDB::bind_method(D_METHOD("set_intensity","intensity"),&ReflectionProbe::set_intensity); + ClassDB::bind_method(D_METHOD("get_intensity"),&ReflectionProbe::get_intensity); - ClassDB::bind_method(_MD("set_interior_ambient","ambient"),&ReflectionProbe::set_interior_ambient); - ClassDB::bind_method(_MD("get_interior_ambient"),&ReflectionProbe::get_interior_ambient); + ClassDB::bind_method(D_METHOD("set_interior_ambient","ambient"),&ReflectionProbe::set_interior_ambient); + ClassDB::bind_method(D_METHOD("get_interior_ambient"),&ReflectionProbe::get_interior_ambient); - ClassDB::bind_method(_MD("set_interior_ambient_energy","ambient_energy"),&ReflectionProbe::set_interior_ambient_energy); - ClassDB::bind_method(_MD("get_interior_ambient_energy"),&ReflectionProbe::get_interior_ambient_energy); + ClassDB::bind_method(D_METHOD("set_interior_ambient_energy","ambient_energy"),&ReflectionProbe::set_interior_ambient_energy); + ClassDB::bind_method(D_METHOD("get_interior_ambient_energy"),&ReflectionProbe::get_interior_ambient_energy); - ClassDB::bind_method(_MD("set_interior_ambient_probe_contribution","ambient_probe_contribution"),&ReflectionProbe::set_interior_ambient_probe_contribution); - ClassDB::bind_method(_MD("get_interior_ambient_probe_contribution"),&ReflectionProbe::get_interior_ambient_probe_contribution); + ClassDB::bind_method(D_METHOD("set_interior_ambient_probe_contribution","ambient_probe_contribution"),&ReflectionProbe::set_interior_ambient_probe_contribution); + ClassDB::bind_method(D_METHOD("get_interior_ambient_probe_contribution"),&ReflectionProbe::get_interior_ambient_probe_contribution); - ClassDB::bind_method(_MD("set_max_distance","max_distance"),&ReflectionProbe::set_max_distance); - ClassDB::bind_method(_MD("get_max_distance"),&ReflectionProbe::get_max_distance); + ClassDB::bind_method(D_METHOD("set_max_distance","max_distance"),&ReflectionProbe::set_max_distance); + ClassDB::bind_method(D_METHOD("get_max_distance"),&ReflectionProbe::get_max_distance); - ClassDB::bind_method(_MD("set_extents","extents"),&ReflectionProbe::set_extents); - ClassDB::bind_method(_MD("get_extents"),&ReflectionProbe::get_extents); + ClassDB::bind_method(D_METHOD("set_extents","extents"),&ReflectionProbe::set_extents); + ClassDB::bind_method(D_METHOD("get_extents"),&ReflectionProbe::get_extents); - ClassDB::bind_method(_MD("set_origin_offset","origin_offset"),&ReflectionProbe::set_origin_offset); - ClassDB::bind_method(_MD("get_origin_offset"),&ReflectionProbe::get_origin_offset); + ClassDB::bind_method(D_METHOD("set_origin_offset","origin_offset"),&ReflectionProbe::set_origin_offset); + ClassDB::bind_method(D_METHOD("get_origin_offset"),&ReflectionProbe::get_origin_offset); - ClassDB::bind_method(_MD("set_as_interior","enable"),&ReflectionProbe::set_as_interior); - ClassDB::bind_method(_MD("is_set_as_interior"),&ReflectionProbe::is_set_as_interior); + ClassDB::bind_method(D_METHOD("set_as_interior","enable"),&ReflectionProbe::set_as_interior); + ClassDB::bind_method(D_METHOD("is_set_as_interior"),&ReflectionProbe::is_set_as_interior); - ClassDB::bind_method(_MD("set_enable_box_projection","enable"),&ReflectionProbe::set_enable_box_projection); - ClassDB::bind_method(_MD("is_box_projection_enabled"),&ReflectionProbe::is_box_projection_enabled); + ClassDB::bind_method(D_METHOD("set_enable_box_projection","enable"),&ReflectionProbe::set_enable_box_projection); + ClassDB::bind_method(D_METHOD("is_box_projection_enabled"),&ReflectionProbe::is_box_projection_enabled); - ClassDB::bind_method(_MD("set_enable_shadows","enable"),&ReflectionProbe::set_enable_shadows); - ClassDB::bind_method(_MD("are_shadows_enabled"),&ReflectionProbe::are_shadows_enabled); + ClassDB::bind_method(D_METHOD("set_enable_shadows","enable"),&ReflectionProbe::set_enable_shadows); + ClassDB::bind_method(D_METHOD("are_shadows_enabled"),&ReflectionProbe::are_shadows_enabled); - ClassDB::bind_method(_MD("set_cull_mask","layers"),&ReflectionProbe::set_cull_mask); - ClassDB::bind_method(_MD("get_cull_mask"),&ReflectionProbe::get_cull_mask); + ClassDB::bind_method(D_METHOD("set_cull_mask","layers"),&ReflectionProbe::set_cull_mask); + ClassDB::bind_method(D_METHOD("get_cull_mask"),&ReflectionProbe::get_cull_mask); - ClassDB::bind_method(_MD("set_update_mode","mode"),&ReflectionProbe::set_update_mode); - ClassDB::bind_method(_MD("get_update_mode"),&ReflectionProbe::get_update_mode); + ClassDB::bind_method(D_METHOD("set_update_mode","mode"),&ReflectionProbe::set_update_mode); + ClassDB::bind_method(D_METHOD("get_update_mode"),&ReflectionProbe::get_update_mode); ADD_PROPERTY( PropertyInfo(Variant::INT,"update_mode",PROPERTY_HINT_ENUM,"Once,Always"),"set_update_mode","get_update_mode"); ADD_PROPERTY( PropertyInfo(Variant::REAL,"intensity",PROPERTY_HINT_RANGE,"0,1,0.01"),"set_intensity","get_intensity"); diff --git a/scene/3d/remote_transform.cpp b/scene/3d/remote_transform.cpp index 5da9ab2a55..21ec65f5e0 100644 --- a/scene/3d/remote_transform.cpp +++ b/scene/3d/remote_transform.cpp @@ -118,8 +118,8 @@ String RemoteTransform::get_configuration_warning() const { void RemoteTransform::_bind_methods() { - ClassDB::bind_method(_MD("set_remote_node","path"),&RemoteTransform::set_remote_node); - ClassDB::bind_method(_MD("get_remote_node"),&RemoteTransform::get_remote_node); + ClassDB::bind_method(D_METHOD("set_remote_node","path"),&RemoteTransform::set_remote_node); + ClassDB::bind_method(D_METHOD("get_remote_node"),&RemoteTransform::get_remote_node); ADD_PROPERTY( PropertyInfo(Variant::NODE_PATH,"remote_path"),"set_remote_node","get_remote_node"); } diff --git a/scene/3d/room_instance.cpp b/scene/3d/room_instance.cpp index 15db769e11..fbfc44ce90 100644 --- a/scene/3d/room_instance.cpp +++ b/scene/3d/room_instance.cpp @@ -161,8 +161,8 @@ void Room::_bounds_changed() { void Room::_bind_methods() { - ClassDB::bind_method(_MD("set_room","room:Room"),&Room::set_room ); - ClassDB::bind_method(_MD("get_room:Room"),&Room::get_room ); + ClassDB::bind_method(D_METHOD("set_room","room:Room"),&Room::set_room ); + ClassDB::bind_method(D_METHOD("get_room:Room"),&Room::get_room ); ADD_PROPERTY( PropertyInfo( Variant::OBJECT, "room/room", PROPERTY_HINT_RESOURCE_TYPE, "Area" ), "set_room", "get_room") ; diff --git a/scene/3d/scenario_fx.cpp b/scene/3d/scenario_fx.cpp index 9366a347f8..145242ba7c 100644 --- a/scene/3d/scenario_fx.cpp +++ b/scene/3d/scenario_fx.cpp @@ -99,8 +99,8 @@ String WorldEnvironment::get_configuration_warning() const { void WorldEnvironment::_bind_methods() { - ClassDB::bind_method(_MD("set_environment","env:Environment"),&WorldEnvironment::set_environment); - ClassDB::bind_method(_MD("get_environment:Environment"),&WorldEnvironment::get_environment); + ClassDB::bind_method(D_METHOD("set_environment","env:Environment"),&WorldEnvironment::set_environment); + ClassDB::bind_method(D_METHOD("get_environment:Environment"),&WorldEnvironment::get_environment); ADD_PROPERTY(PropertyInfo(Variant::OBJECT,"environment",PROPERTY_HINT_RESOURCE_TYPE,"Environment"),"set_environment","get_environment"); } diff --git a/scene/3d/skeleton.cpp b/scene/3d/skeleton.cpp index f2e339604e..1bb6d83393 100644 --- a/scene/3d/skeleton.cpp +++ b/scene/3d/skeleton.cpp @@ -530,39 +530,39 @@ void Skeleton::_bind_methods() { - ClassDB::bind_method(_MD("add_bone","name"),&Skeleton::add_bone); - ClassDB::bind_method(_MD("find_bone","name"),&Skeleton::find_bone); - ClassDB::bind_method(_MD("get_bone_name","bone_idx"),&Skeleton::get_bone_name); + ClassDB::bind_method(D_METHOD("add_bone","name"),&Skeleton::add_bone); + ClassDB::bind_method(D_METHOD("find_bone","name"),&Skeleton::find_bone); + ClassDB::bind_method(D_METHOD("get_bone_name","bone_idx"),&Skeleton::get_bone_name); - ClassDB::bind_method(_MD("get_bone_parent","bone_idx"),&Skeleton::get_bone_parent); - ClassDB::bind_method(_MD("set_bone_parent","bone_idx","parent_idx"),&Skeleton::set_bone_parent); + ClassDB::bind_method(D_METHOD("get_bone_parent","bone_idx"),&Skeleton::get_bone_parent); + ClassDB::bind_method(D_METHOD("set_bone_parent","bone_idx","parent_idx"),&Skeleton::set_bone_parent); - ClassDB::bind_method(_MD("get_bone_count"),&Skeleton::get_bone_count); + ClassDB::bind_method(D_METHOD("get_bone_count"),&Skeleton::get_bone_count); - ClassDB::bind_method(_MD("unparent_bone_and_rest","bone_idx"),&Skeleton::unparent_bone_and_rest); + ClassDB::bind_method(D_METHOD("unparent_bone_and_rest","bone_idx"),&Skeleton::unparent_bone_and_rest); - ClassDB::bind_method(_MD("get_bone_rest","bone_idx"),&Skeleton::get_bone_rest); - ClassDB::bind_method(_MD("set_bone_rest","bone_idx","rest"),&Skeleton::set_bone_rest); + ClassDB::bind_method(D_METHOD("get_bone_rest","bone_idx"),&Skeleton::get_bone_rest); + ClassDB::bind_method(D_METHOD("set_bone_rest","bone_idx","rest"),&Skeleton::set_bone_rest); - ClassDB::bind_method(_MD("set_bone_disable_rest","bone_idx","disable"),&Skeleton::set_bone_disable_rest); - ClassDB::bind_method(_MD("is_bone_rest_disabled","bone_idx"),&Skeleton::is_bone_rest_disabled); + ClassDB::bind_method(D_METHOD("set_bone_disable_rest","bone_idx","disable"),&Skeleton::set_bone_disable_rest); + ClassDB::bind_method(D_METHOD("is_bone_rest_disabled","bone_idx"),&Skeleton::is_bone_rest_disabled); - ClassDB::bind_method(_MD("bind_child_node_to_bone","bone_idx","node:Node"),&Skeleton::bind_child_node_to_bone); - ClassDB::bind_method(_MD("unbind_child_node_from_bone","bone_idx","node:Node"),&Skeleton::unbind_child_node_from_bone); - ClassDB::bind_method(_MD("get_bound_child_nodes_to_bone","bone_idx"),&Skeleton::_get_bound_child_nodes_to_bone); + ClassDB::bind_method(D_METHOD("bind_child_node_to_bone","bone_idx","node:Node"),&Skeleton::bind_child_node_to_bone); + ClassDB::bind_method(D_METHOD("unbind_child_node_from_bone","bone_idx","node:Node"),&Skeleton::unbind_child_node_from_bone); + ClassDB::bind_method(D_METHOD("get_bound_child_nodes_to_bone","bone_idx"),&Skeleton::_get_bound_child_nodes_to_bone); - ClassDB::bind_method(_MD("clear_bones"),&Skeleton::clear_bones); + ClassDB::bind_method(D_METHOD("clear_bones"),&Skeleton::clear_bones); - ClassDB::bind_method(_MD("get_bone_pose","bone_idx"),&Skeleton::get_bone_pose); - ClassDB::bind_method(_MD("set_bone_pose","bone_idx","pose"),&Skeleton::set_bone_pose); + ClassDB::bind_method(D_METHOD("get_bone_pose","bone_idx"),&Skeleton::get_bone_pose); + ClassDB::bind_method(D_METHOD("set_bone_pose","bone_idx","pose"),&Skeleton::set_bone_pose); - ClassDB::bind_method(_MD("set_bone_global_pose","bone_idx","pose"),&Skeleton::set_bone_global_pose); - ClassDB::bind_method(_MD("get_bone_global_pose","bone_idx"),&Skeleton::get_bone_global_pose); + ClassDB::bind_method(D_METHOD("set_bone_global_pose","bone_idx","pose"),&Skeleton::set_bone_global_pose); + ClassDB::bind_method(D_METHOD("get_bone_global_pose","bone_idx"),&Skeleton::get_bone_global_pose); - ClassDB::bind_method(_MD("get_bone_custom_pose","bone_idx"),&Skeleton::get_bone_custom_pose); - ClassDB::bind_method(_MD("set_bone_custom_pose","bone_idx","custom_pose"),&Skeleton::set_bone_custom_pose); + ClassDB::bind_method(D_METHOD("get_bone_custom_pose","bone_idx"),&Skeleton::get_bone_custom_pose); + ClassDB::bind_method(D_METHOD("set_bone_custom_pose","bone_idx","custom_pose"),&Skeleton::set_bone_custom_pose); - ClassDB::bind_method(_MD("get_bone_transform","bone_idx"),&Skeleton::get_bone_transform); + ClassDB::bind_method(D_METHOD("get_bone_transform","bone_idx"),&Skeleton::get_bone_transform); BIND_CONSTANT( NOTIFICATION_UPDATE_SKELETON ); } diff --git a/scene/3d/spatial.cpp b/scene/3d/spatial.cpp index cbbc21cd6a..58a6a24567 100644 --- a/scene/3d/spatial.cpp +++ b/scene/3d/spatial.cpp @@ -742,50 +742,50 @@ bool Spatial::is_local_transform_notification_enabled() const { void Spatial::_bind_methods() { - ClassDB::bind_method(_MD("set_transform","local"), &Spatial::set_transform); - ClassDB::bind_method(_MD("get_transform"), &Spatial::get_transform); - ClassDB::bind_method(_MD("set_translation","translation"), &Spatial::set_translation); - ClassDB::bind_method(_MD("get_translation"), &Spatial::get_translation); - ClassDB::bind_method(_MD("set_rotation","rotation_rad"), &Spatial::set_rotation); - ClassDB::bind_method(_MD("get_rotation"), &Spatial::get_rotation); - ClassDB::bind_method(_MD("set_rotation_deg","rotation_deg"), &Spatial::set_rotation_in_degrees); - ClassDB::bind_method(_MD("get_rotation_deg"), &Spatial::get_rotation_in_degrees); - ClassDB::bind_method(_MD("set_scale","scale"), &Spatial::set_scale); - ClassDB::bind_method(_MD("get_scale"), &Spatial::get_scale); - ClassDB::bind_method(_MD("set_global_transform","global"), &Spatial::set_global_transform); - ClassDB::bind_method(_MD("get_global_transform"), &Spatial::get_global_transform); - ClassDB::bind_method(_MD("get_parent_spatial"), &Spatial::get_parent_spatial); - ClassDB::bind_method(_MD("set_ignore_transform_notification","enabled"), &Spatial::set_ignore_transform_notification); - ClassDB::bind_method(_MD("set_as_toplevel","enable"), &Spatial::set_as_toplevel); - ClassDB::bind_method(_MD("is_set_as_toplevel"), &Spatial::is_set_as_toplevel); - ClassDB::bind_method(_MD("get_world:World"), &Spatial::get_world); + ClassDB::bind_method(D_METHOD("set_transform","local"), &Spatial::set_transform); + ClassDB::bind_method(D_METHOD("get_transform"), &Spatial::get_transform); + ClassDB::bind_method(D_METHOD("set_translation","translation"), &Spatial::set_translation); + ClassDB::bind_method(D_METHOD("get_translation"), &Spatial::get_translation); + ClassDB::bind_method(D_METHOD("set_rotation","rotation_rad"), &Spatial::set_rotation); + ClassDB::bind_method(D_METHOD("get_rotation"), &Spatial::get_rotation); + ClassDB::bind_method(D_METHOD("set_rotation_deg","rotation_deg"), &Spatial::set_rotation_in_degrees); + ClassDB::bind_method(D_METHOD("get_rotation_deg"), &Spatial::get_rotation_in_degrees); + ClassDB::bind_method(D_METHOD("set_scale","scale"), &Spatial::set_scale); + ClassDB::bind_method(D_METHOD("get_scale"), &Spatial::get_scale); + ClassDB::bind_method(D_METHOD("set_global_transform","global"), &Spatial::set_global_transform); + ClassDB::bind_method(D_METHOD("get_global_transform"), &Spatial::get_global_transform); + ClassDB::bind_method(D_METHOD("get_parent_spatial"), &Spatial::get_parent_spatial); + ClassDB::bind_method(D_METHOD("set_ignore_transform_notification","enabled"), &Spatial::set_ignore_transform_notification); + ClassDB::bind_method(D_METHOD("set_as_toplevel","enable"), &Spatial::set_as_toplevel); + ClassDB::bind_method(D_METHOD("is_set_as_toplevel"), &Spatial::is_set_as_toplevel); + ClassDB::bind_method(D_METHOD("get_world:World"), &Spatial::get_world); // TODO: Obsolete those two methods (old name) properly (GH-4397) - ClassDB::bind_method(_MD("_set_rotation_deg","rotation_deg"), &Spatial::_set_rotation_deg); - ClassDB::bind_method(_MD("_get_rotation_deg"), &Spatial::_get_rotation_deg); + ClassDB::bind_method(D_METHOD("_set_rotation_deg","rotation_deg"), &Spatial::_set_rotation_deg); + ClassDB::bind_method(D_METHOD("_get_rotation_deg"), &Spatial::_get_rotation_deg); #ifdef TOOLS_ENABLED - ClassDB::bind_method(_MD("_update_gizmo"), &Spatial::_update_gizmo); - ClassDB::bind_method(_MD("_set_import_transform"), &Spatial::set_import_transform); - ClassDB::bind_method(_MD("_get_import_transform"), &Spatial::get_import_transform); + ClassDB::bind_method(D_METHOD("_update_gizmo"), &Spatial::_update_gizmo); + ClassDB::bind_method(D_METHOD("_set_import_transform"), &Spatial::set_import_transform); + ClassDB::bind_method(D_METHOD("_get_import_transform"), &Spatial::get_import_transform); ADD_PROPERTY( PropertyInfo(Variant::TRANSFORM,"_import_transform",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR),"_set_import_transform","_get_import_transform"); #endif - ClassDB::bind_method(_MD("update_gizmo"), &Spatial::update_gizmo); - ClassDB::bind_method(_MD("set_gizmo","gizmo:SpatialGizmo"), &Spatial::set_gizmo); - ClassDB::bind_method(_MD("get_gizmo:SpatialGizmo"), &Spatial::get_gizmo); + ClassDB::bind_method(D_METHOD("update_gizmo"), &Spatial::update_gizmo); + ClassDB::bind_method(D_METHOD("set_gizmo","gizmo:SpatialGizmo"), &Spatial::set_gizmo); + ClassDB::bind_method(D_METHOD("get_gizmo:SpatialGizmo"), &Spatial::get_gizmo); - ClassDB::bind_method(_MD("set_visible"), &Spatial::set_visible); - ClassDB::bind_method(_MD("is_visible"), &Spatial::is_visible); - ClassDB::bind_method(_MD("is_visible_in_tree"), &Spatial::is_visible_in_tree); - ClassDB::bind_method(_MD("show"), &Spatial::show); - ClassDB::bind_method(_MD("hide"), &Spatial::hide); + ClassDB::bind_method(D_METHOD("set_visible"), &Spatial::set_visible); + ClassDB::bind_method(D_METHOD("is_visible"), &Spatial::is_visible); + ClassDB::bind_method(D_METHOD("is_visible_in_tree"), &Spatial::is_visible_in_tree); + ClassDB::bind_method(D_METHOD("show"), &Spatial::show); + ClassDB::bind_method(D_METHOD("hide"), &Spatial::hide); - ClassDB::bind_method(_MD("set_notify_local_transform","enable"), &Spatial::set_notify_local_transform); - ClassDB::bind_method(_MD("is_local_transform_notification_enabled"), &Spatial::is_local_transform_notification_enabled); + ClassDB::bind_method(D_METHOD("set_notify_local_transform","enable"), &Spatial::set_notify_local_transform); + ClassDB::bind_method(D_METHOD("is_local_transform_notification_enabled"), &Spatial::is_local_transform_notification_enabled); - ClassDB::bind_method(_MD("set_notify_transform","enable"), &Spatial::set_notify_transform); - ClassDB::bind_method(_MD("is_transform_notification_enabled"), &Spatial::is_transform_notification_enabled); + ClassDB::bind_method(D_METHOD("set_notify_transform","enable"), &Spatial::set_notify_transform); + ClassDB::bind_method(D_METHOD("is_transform_notification_enabled"), &Spatial::is_transform_notification_enabled); void rotate(const Vector3& p_normal,float p_radians); void rotate_x(float p_radians); @@ -796,18 +796,18 @@ void Spatial::_bind_methods() { void global_rotate(const Vector3& p_normal,float p_radians); void global_translate(const Vector3& p_offset); - ClassDB::bind_method( _MD("rotate","normal","radians"),&Spatial::rotate ); - ClassDB::bind_method( _MD("global_rotate","normal","radians"),&Spatial::global_rotate ); - ClassDB::bind_method( _MD("rotate_x","radians"),&Spatial::rotate_x ); - ClassDB::bind_method( _MD("rotate_y","radians"),&Spatial::rotate_y ); - ClassDB::bind_method( _MD("rotate_z","radians"),&Spatial::rotate_z ); - ClassDB::bind_method( _MD("translate","offset"),&Spatial::translate ); - ClassDB::bind_method( _MD("global_translate","offset"),&Spatial::global_translate ); - ClassDB::bind_method( _MD("orthonormalize"),&Spatial::orthonormalize ); - ClassDB::bind_method( _MD("set_identity"),&Spatial::set_identity ); - - ClassDB::bind_method( _MD("look_at","target","up"),&Spatial::look_at ); - ClassDB::bind_method( _MD("look_at_from_pos","pos","target","up"),&Spatial::look_at_from_pos ); + ClassDB::bind_method( D_METHOD("rotate","normal","radians"),&Spatial::rotate ); + ClassDB::bind_method( D_METHOD("global_rotate","normal","radians"),&Spatial::global_rotate ); + ClassDB::bind_method( D_METHOD("rotate_x","radians"),&Spatial::rotate_x ); + ClassDB::bind_method( D_METHOD("rotate_y","radians"),&Spatial::rotate_y ); + ClassDB::bind_method( D_METHOD("rotate_z","radians"),&Spatial::rotate_z ); + ClassDB::bind_method( D_METHOD("translate","offset"),&Spatial::translate ); + ClassDB::bind_method( D_METHOD("global_translate","offset"),&Spatial::global_translate ); + ClassDB::bind_method( D_METHOD("orthonormalize"),&Spatial::orthonormalize ); + ClassDB::bind_method( D_METHOD("set_identity"),&Spatial::set_identity ); + + ClassDB::bind_method( D_METHOD("look_at","target","up"),&Spatial::look_at ); + ClassDB::bind_method( D_METHOD("look_at_from_pos","pos","target","up"),&Spatial::look_at_from_pos ); BIND_CONSTANT( NOTIFICATION_TRANSFORM_CHANGED ); BIND_CONSTANT( NOTIFICATION_ENTER_WORLD ); diff --git a/scene/3d/spatial_indexer.cpp b/scene/3d/spatial_indexer.cpp index 0cc6d1abd0..6d6c272c25 100644 --- a/scene/3d/spatial_indexer.cpp +++ b/scene/3d/spatial_indexer.cpp @@ -112,7 +112,7 @@ void SpatialIndexer::_update_pairs() { void SpatialIndexer::_bind_methods() { - ClassDB::bind_method(_MD("_update_pairs"),&SpatialIndexer::_update_pairs); + ClassDB::bind_method(D_METHOD("_update_pairs"),&SpatialIndexer::_update_pairs); } diff --git a/scene/3d/sprite_3d.cpp b/scene/3d/sprite_3d.cpp index 008eaf7a44..5adb7050f8 100644 --- a/scene/3d/sprite_3d.cpp +++ b/scene/3d/sprite_3d.cpp @@ -246,41 +246,41 @@ SpriteBase3D::AlphaCutMode SpriteBase3D::get_alpha_cut_mode() const{ void SpriteBase3D::_bind_methods() { - ClassDB::bind_method(_MD("set_centered","centered"),&SpriteBase3D::set_centered); - ClassDB::bind_method(_MD("is_centered"),&SpriteBase3D::is_centered); + ClassDB::bind_method(D_METHOD("set_centered","centered"),&SpriteBase3D::set_centered); + ClassDB::bind_method(D_METHOD("is_centered"),&SpriteBase3D::is_centered); - ClassDB::bind_method(_MD("set_offset","offset"),&SpriteBase3D::set_offset); - ClassDB::bind_method(_MD("get_offset"),&SpriteBase3D::get_offset); + ClassDB::bind_method(D_METHOD("set_offset","offset"),&SpriteBase3D::set_offset); + ClassDB::bind_method(D_METHOD("get_offset"),&SpriteBase3D::get_offset); - ClassDB::bind_method(_MD("set_flip_h","flip_h"),&SpriteBase3D::set_flip_h); - ClassDB::bind_method(_MD("is_flipped_h"),&SpriteBase3D::is_flipped_h); + ClassDB::bind_method(D_METHOD("set_flip_h","flip_h"),&SpriteBase3D::set_flip_h); + ClassDB::bind_method(D_METHOD("is_flipped_h"),&SpriteBase3D::is_flipped_h); - ClassDB::bind_method(_MD("set_flip_v","flip_v"),&SpriteBase3D::set_flip_v); - ClassDB::bind_method(_MD("is_flipped_v"),&SpriteBase3D::is_flipped_v); + ClassDB::bind_method(D_METHOD("set_flip_v","flip_v"),&SpriteBase3D::set_flip_v); + ClassDB::bind_method(D_METHOD("is_flipped_v"),&SpriteBase3D::is_flipped_v); - ClassDB::bind_method(_MD("set_modulate","modulate"),&SpriteBase3D::set_modulate); - ClassDB::bind_method(_MD("get_modulate"),&SpriteBase3D::get_modulate); + ClassDB::bind_method(D_METHOD("set_modulate","modulate"),&SpriteBase3D::set_modulate); + ClassDB::bind_method(D_METHOD("get_modulate"),&SpriteBase3D::get_modulate); - ClassDB::bind_method(_MD("set_opacity","opacity"),&SpriteBase3D::set_opacity); - ClassDB::bind_method(_MD("get_opacity"),&SpriteBase3D::get_opacity); + ClassDB::bind_method(D_METHOD("set_opacity","opacity"),&SpriteBase3D::set_opacity); + ClassDB::bind_method(D_METHOD("get_opacity"),&SpriteBase3D::get_opacity); - ClassDB::bind_method(_MD("set_pixel_size","pixel_size"),&SpriteBase3D::set_pixel_size); - ClassDB::bind_method(_MD("get_pixel_size"),&SpriteBase3D::get_pixel_size); + ClassDB::bind_method(D_METHOD("set_pixel_size","pixel_size"),&SpriteBase3D::set_pixel_size); + ClassDB::bind_method(D_METHOD("get_pixel_size"),&SpriteBase3D::get_pixel_size); - ClassDB::bind_method(_MD("set_axis","axis"),&SpriteBase3D::set_axis); - ClassDB::bind_method(_MD("get_axis"),&SpriteBase3D::get_axis); + ClassDB::bind_method(D_METHOD("set_axis","axis"),&SpriteBase3D::set_axis); + ClassDB::bind_method(D_METHOD("get_axis"),&SpriteBase3D::get_axis); - ClassDB::bind_method(_MD("set_draw_flag","flag","enabled"),&SpriteBase3D::set_draw_flag); - ClassDB::bind_method(_MD("get_draw_flag","flag"),&SpriteBase3D::get_draw_flag); + ClassDB::bind_method(D_METHOD("set_draw_flag","flag","enabled"),&SpriteBase3D::set_draw_flag); + ClassDB::bind_method(D_METHOD("get_draw_flag","flag"),&SpriteBase3D::get_draw_flag); - ClassDB::bind_method(_MD("set_alpha_cut_mode","mode"),&SpriteBase3D::set_alpha_cut_mode); - ClassDB::bind_method(_MD("get_alpha_cut_mode"),&SpriteBase3D::get_alpha_cut_mode); + ClassDB::bind_method(D_METHOD("set_alpha_cut_mode","mode"),&SpriteBase3D::set_alpha_cut_mode); + ClassDB::bind_method(D_METHOD("get_alpha_cut_mode"),&SpriteBase3D::get_alpha_cut_mode); - ClassDB::bind_method(_MD("get_item_rect"),&SpriteBase3D::get_item_rect); + ClassDB::bind_method(D_METHOD("get_item_rect"),&SpriteBase3D::get_item_rect); - ClassDB::bind_method(_MD("_queue_update"),&SpriteBase3D::_queue_update); - ClassDB::bind_method(_MD("_im_update"),&SpriteBase3D::_im_update); + ClassDB::bind_method(D_METHOD("_queue_update"),&SpriteBase3D::_queue_update); + ClassDB::bind_method(D_METHOD("_im_update"),&SpriteBase3D::_im_update); ADD_PROPERTY( PropertyInfo( Variant::BOOL, "centered"), "set_centered","is_centered"); @@ -601,23 +601,23 @@ void Sprite3D::_validate_property(PropertyInfo& property) const { void Sprite3D::_bind_methods() { - ClassDB::bind_method(_MD("set_texture","texture:Texture"),&Sprite3D::set_texture); - ClassDB::bind_method(_MD("get_texture:Texture"),&Sprite3D::get_texture); + ClassDB::bind_method(D_METHOD("set_texture","texture:Texture"),&Sprite3D::set_texture); + ClassDB::bind_method(D_METHOD("get_texture:Texture"),&Sprite3D::get_texture); - ClassDB::bind_method(_MD("set_region","enabled"),&Sprite3D::set_region); - ClassDB::bind_method(_MD("is_region"),&Sprite3D::is_region); + ClassDB::bind_method(D_METHOD("set_region","enabled"),&Sprite3D::set_region); + ClassDB::bind_method(D_METHOD("is_region"),&Sprite3D::is_region); - ClassDB::bind_method(_MD("set_region_rect","rect"),&Sprite3D::set_region_rect); - ClassDB::bind_method(_MD("get_region_rect"),&Sprite3D::get_region_rect); + ClassDB::bind_method(D_METHOD("set_region_rect","rect"),&Sprite3D::set_region_rect); + ClassDB::bind_method(D_METHOD("get_region_rect"),&Sprite3D::get_region_rect); - ClassDB::bind_method(_MD("set_frame","frame"),&Sprite3D::set_frame); - ClassDB::bind_method(_MD("get_frame"),&Sprite3D::get_frame); + ClassDB::bind_method(D_METHOD("set_frame","frame"),&Sprite3D::set_frame); + ClassDB::bind_method(D_METHOD("get_frame"),&Sprite3D::get_frame); - ClassDB::bind_method(_MD("set_vframes","vframes"),&Sprite3D::set_vframes); - ClassDB::bind_method(_MD("get_vframes"),&Sprite3D::get_vframes); + ClassDB::bind_method(D_METHOD("set_vframes","vframes"),&Sprite3D::set_vframes); + ClassDB::bind_method(D_METHOD("get_vframes"),&Sprite3D::get_vframes); - ClassDB::bind_method(_MD("set_hframes","hframes"),&Sprite3D::set_hframes); - ClassDB::bind_method(_MD("get_hframes"),&Sprite3D::get_hframes); + ClassDB::bind_method(D_METHOD("set_hframes","hframes"),&Sprite3D::set_hframes); + ClassDB::bind_method(D_METHOD("get_hframes"),&Sprite3D::get_hframes); ADD_PROPERTY( PropertyInfo( Variant::OBJECT, "texture", PROPERTY_HINT_RESOURCE_TYPE,"Texture"), "set_texture","get_texture"); ADD_PROPERTY( PropertyInfo( Variant::INT, "vframes",PROPERTY_HINT_RANGE,"1,16384,1"), "set_vframes","get_vframes"); @@ -764,10 +764,10 @@ void AnimatedSprite3D::_draw() { void AnimatedSprite3D::_bind_methods(){ - ClassDB::bind_method(_MD("set_sprite_frames","sprite_frames:SpriteFrames"),&AnimatedSprite3D::set_sprite_frames); - ClassDB::bind_method(_MD("get_sprite_frames:Texture"),&AnimatedSprite3D::get_sprite_frames); - ClassDB::bind_method(_MD("set_frame","frame"),&AnimatedSprite3D::set_frame); - ClassDB::bind_method(_MD("get_frame"),&AnimatedSprite3D::get_frame); + ClassDB::bind_method(D_METHOD("set_sprite_frames","sprite_frames:SpriteFrames"),&AnimatedSprite3D::set_sprite_frames); + ClassDB::bind_method(D_METHOD("get_sprite_frames:Texture"),&AnimatedSprite3D::get_sprite_frames); + ClassDB::bind_method(D_METHOD("set_frame","frame"),&AnimatedSprite3D::set_frame); + ClassDB::bind_method(D_METHOD("get_frame"),&AnimatedSprite3D::get_frame); ADD_PROPERTY( PropertyInfo( Variant::OBJECT, "frames", PROPERTY_HINT_RESOURCE_TYPE,"SpriteFrames"), "set_sprite_frames","get_sprite_frames"); ADD_PROPERTY( PropertyInfo( Variant::INT, "frame",PROPERTY_HINT_SPRITE_FRAME), "set_frame","get_frame"); @@ -1312,24 +1312,24 @@ String AnimatedSprite3D::get_configuration_warning() const { void AnimatedSprite3D::_bind_methods() { - ClassDB::bind_method(_MD("set_sprite_frames","sprite_frames:SpriteFrames"),&AnimatedSprite3D::set_sprite_frames); - ClassDB::bind_method(_MD("get_sprite_frames:SpriteFrames"),&AnimatedSprite3D::get_sprite_frames); + ClassDB::bind_method(D_METHOD("set_sprite_frames","sprite_frames:SpriteFrames"),&AnimatedSprite3D::set_sprite_frames); + ClassDB::bind_method(D_METHOD("get_sprite_frames:SpriteFrames"),&AnimatedSprite3D::get_sprite_frames); - ClassDB::bind_method(_MD("set_animation","animation"),&AnimatedSprite3D::set_animation); - ClassDB::bind_method(_MD("get_animation"),&AnimatedSprite3D::get_animation); + ClassDB::bind_method(D_METHOD("set_animation","animation"),&AnimatedSprite3D::set_animation); + ClassDB::bind_method(D_METHOD("get_animation"),&AnimatedSprite3D::get_animation); - ClassDB::bind_method(_MD("_set_playing","playing"),&AnimatedSprite3D::_set_playing); - ClassDB::bind_method(_MD("_is_playing"),&AnimatedSprite3D::_is_playing); + ClassDB::bind_method(D_METHOD("_set_playing","playing"),&AnimatedSprite3D::_set_playing); + ClassDB::bind_method(D_METHOD("_is_playing"),&AnimatedSprite3D::_is_playing); - ClassDB::bind_method(_MD("play","anim"),&AnimatedSprite3D::play,DEFVAL(StringName())); - ClassDB::bind_method(_MD("stop"),&AnimatedSprite3D::stop); - ClassDB::bind_method(_MD("is_playing"),&AnimatedSprite3D::is_playing); + ClassDB::bind_method(D_METHOD("play","anim"),&AnimatedSprite3D::play,DEFVAL(StringName())); + ClassDB::bind_method(D_METHOD("stop"),&AnimatedSprite3D::stop); + ClassDB::bind_method(D_METHOD("is_playing"),&AnimatedSprite3D::is_playing); - ClassDB::bind_method(_MD("set_frame","frame"),&AnimatedSprite3D::set_frame); - ClassDB::bind_method(_MD("get_frame"),&AnimatedSprite3D::get_frame); + ClassDB::bind_method(D_METHOD("set_frame","frame"),&AnimatedSprite3D::set_frame); + ClassDB::bind_method(D_METHOD("get_frame"),&AnimatedSprite3D::get_frame); - ClassDB::bind_method(_MD("_res_changed"),&AnimatedSprite3D::_res_changed); + ClassDB::bind_method(D_METHOD("_res_changed"),&AnimatedSprite3D::_res_changed); ADD_SIGNAL(MethodInfo("frame_changed")); diff --git a/scene/3d/vehicle_body.cpp b/scene/3d/vehicle_body.cpp index f1a2af1b2d..4b32c62d14 100644 --- a/scene/3d/vehicle_body.cpp +++ b/scene/3d/vehicle_body.cpp @@ -232,36 +232,36 @@ float VehicleWheel::get_friction_slip() const{ void VehicleWheel::_bind_methods() { - ClassDB::bind_method(_MD("set_radius","length"),&VehicleWheel::set_radius); - ClassDB::bind_method(_MD("get_radius"),&VehicleWheel::get_radius); + ClassDB::bind_method(D_METHOD("set_radius","length"),&VehicleWheel::set_radius); + ClassDB::bind_method(D_METHOD("get_radius"),&VehicleWheel::get_radius); - ClassDB::bind_method(_MD("set_suspension_rest_length","length"),&VehicleWheel::set_suspension_rest_length); - ClassDB::bind_method(_MD("get_suspension_rest_length"),&VehicleWheel::get_suspension_rest_length); + ClassDB::bind_method(D_METHOD("set_suspension_rest_length","length"),&VehicleWheel::set_suspension_rest_length); + ClassDB::bind_method(D_METHOD("get_suspension_rest_length"),&VehicleWheel::get_suspension_rest_length); - ClassDB::bind_method(_MD("set_suspension_travel","length"),&VehicleWheel::set_suspension_travel); - ClassDB::bind_method(_MD("get_suspension_travel"),&VehicleWheel::get_suspension_travel); + ClassDB::bind_method(D_METHOD("set_suspension_travel","length"),&VehicleWheel::set_suspension_travel); + ClassDB::bind_method(D_METHOD("get_suspension_travel"),&VehicleWheel::get_suspension_travel); - ClassDB::bind_method(_MD("set_suspension_stiffness","length"),&VehicleWheel::set_suspension_stiffness); - ClassDB::bind_method(_MD("get_suspension_stiffness"),&VehicleWheel::get_suspension_stiffness); + ClassDB::bind_method(D_METHOD("set_suspension_stiffness","length"),&VehicleWheel::set_suspension_stiffness); + ClassDB::bind_method(D_METHOD("get_suspension_stiffness"),&VehicleWheel::get_suspension_stiffness); - ClassDB::bind_method(_MD("set_suspension_max_force","length"),&VehicleWheel::set_suspension_max_force); - ClassDB::bind_method(_MD("get_suspension_max_force"),&VehicleWheel::get_suspension_max_force); + ClassDB::bind_method(D_METHOD("set_suspension_max_force","length"),&VehicleWheel::set_suspension_max_force); + ClassDB::bind_method(D_METHOD("get_suspension_max_force"),&VehicleWheel::get_suspension_max_force); - ClassDB::bind_method(_MD("set_damping_compression","length"),&VehicleWheel::set_damping_compression); - ClassDB::bind_method(_MD("get_damping_compression"),&VehicleWheel::get_damping_compression); + ClassDB::bind_method(D_METHOD("set_damping_compression","length"),&VehicleWheel::set_damping_compression); + ClassDB::bind_method(D_METHOD("get_damping_compression"),&VehicleWheel::get_damping_compression); - ClassDB::bind_method(_MD("set_damping_relaxation","length"),&VehicleWheel::set_damping_relaxation); - ClassDB::bind_method(_MD("get_damping_relaxation"),&VehicleWheel::get_damping_relaxation); + ClassDB::bind_method(D_METHOD("set_damping_relaxation","length"),&VehicleWheel::set_damping_relaxation); + ClassDB::bind_method(D_METHOD("get_damping_relaxation"),&VehicleWheel::get_damping_relaxation); - ClassDB::bind_method(_MD("set_use_as_traction","enable"),&VehicleWheel::set_use_as_traction); - ClassDB::bind_method(_MD("is_used_as_traction"),&VehicleWheel::is_used_as_traction); + ClassDB::bind_method(D_METHOD("set_use_as_traction","enable"),&VehicleWheel::set_use_as_traction); + ClassDB::bind_method(D_METHOD("is_used_as_traction"),&VehicleWheel::is_used_as_traction); - ClassDB::bind_method(_MD("set_use_as_steering","enable"),&VehicleWheel::set_use_as_steering); - ClassDB::bind_method(_MD("is_used_as_steering"),&VehicleWheel::is_used_as_steering); + ClassDB::bind_method(D_METHOD("set_use_as_steering","enable"),&VehicleWheel::set_use_as_steering); + ClassDB::bind_method(D_METHOD("is_used_as_steering"),&VehicleWheel::is_used_as_steering); - ClassDB::bind_method(_MD("set_friction_slip","length"),&VehicleWheel::set_friction_slip); - ClassDB::bind_method(_MD("get_friction_slip"),&VehicleWheel::get_friction_slip); + ClassDB::bind_method(D_METHOD("set_friction_slip","length"),&VehicleWheel::set_friction_slip); + ClassDB::bind_method(D_METHOD("get_friction_slip"),&VehicleWheel::get_friction_slip); @@ -1026,24 +1026,24 @@ Vector3 VehicleBody::get_linear_velocity() const void VehicleBody::_bind_methods(){ - ClassDB::bind_method(_MD("set_mass","mass"),&VehicleBody::set_mass); - ClassDB::bind_method(_MD("get_mass"),&VehicleBody::get_mass); + ClassDB::bind_method(D_METHOD("set_mass","mass"),&VehicleBody::set_mass); + ClassDB::bind_method(D_METHOD("get_mass"),&VehicleBody::get_mass); - ClassDB::bind_method(_MD("set_friction","friction"),&VehicleBody::set_friction); - ClassDB::bind_method(_MD("get_friction"),&VehicleBody::get_friction); + ClassDB::bind_method(D_METHOD("set_friction","friction"),&VehicleBody::set_friction); + ClassDB::bind_method(D_METHOD("get_friction"),&VehicleBody::get_friction); - ClassDB::bind_method(_MD("set_engine_force","engine_force"),&VehicleBody::set_engine_force); - ClassDB::bind_method(_MD("get_engine_force"),&VehicleBody::get_engine_force); + ClassDB::bind_method(D_METHOD("set_engine_force","engine_force"),&VehicleBody::set_engine_force); + ClassDB::bind_method(D_METHOD("get_engine_force"),&VehicleBody::get_engine_force); - ClassDB::bind_method(_MD("set_brake","brake"),&VehicleBody::set_brake); - ClassDB::bind_method(_MD("get_brake"),&VehicleBody::get_brake); + ClassDB::bind_method(D_METHOD("set_brake","brake"),&VehicleBody::set_brake); + ClassDB::bind_method(D_METHOD("get_brake"),&VehicleBody::get_brake); - ClassDB::bind_method(_MD("set_steering","steering"),&VehicleBody::set_steering); - ClassDB::bind_method(_MD("get_steering"),&VehicleBody::get_steering); + ClassDB::bind_method(D_METHOD("set_steering","steering"),&VehicleBody::set_steering); + ClassDB::bind_method(D_METHOD("get_steering"),&VehicleBody::get_steering); - ClassDB::bind_method(_MD("get_linear_velocity"),&VehicleBody::get_linear_velocity); + ClassDB::bind_method(D_METHOD("get_linear_velocity"),&VehicleBody::get_linear_velocity); - ClassDB::bind_method(_MD("_direct_state_changed"),&VehicleBody::_direct_state_changed); + ClassDB::bind_method(D_METHOD("_direct_state_changed"),&VehicleBody::_direct_state_changed); ADD_GROUP("Motion",""); ADD_PROPERTY( PropertyInfo(Variant::REAL,"engine_force",PROPERTY_HINT_RANGE,"0.00,1024.0,0.01"),"set_engine_force","get_engine_force"); diff --git a/scene/3d/visibility_notifier.cpp b/scene/3d/visibility_notifier.cpp index 725747c629..0633846b5a 100644 --- a/scene/3d/visibility_notifier.cpp +++ b/scene/3d/visibility_notifier.cpp @@ -109,9 +109,9 @@ bool VisibilityNotifier::is_on_screen() const { void VisibilityNotifier::_bind_methods(){ - ClassDB::bind_method(_MD("set_aabb","rect"),&VisibilityNotifier::set_aabb); - ClassDB::bind_method(_MD("get_aabb"),&VisibilityNotifier::get_aabb); - ClassDB::bind_method(_MD("is_on_screen"),&VisibilityNotifier::is_on_screen); + ClassDB::bind_method(D_METHOD("set_aabb","rect"),&VisibilityNotifier::set_aabb); + ClassDB::bind_method(D_METHOD("get_aabb"),&VisibilityNotifier::get_aabb); + ClassDB::bind_method(D_METHOD("is_on_screen"),&VisibilityNotifier::is_on_screen); ADD_PROPERTY( PropertyInfo(Variant::RECT3,"aabb"),"set_aabb","get_aabb"); @@ -268,9 +268,9 @@ void VisibilityEnabler::_node_removed(Node* p_node) { void VisibilityEnabler::_bind_methods(){ - ClassDB::bind_method(_MD("set_enabler","enabler","enabled"),&VisibilityEnabler::set_enabler); - ClassDB::bind_method(_MD("is_enabler_enabled","enabler"),&VisibilityEnabler::is_enabler_enabled); - ClassDB::bind_method(_MD("_node_removed"),&VisibilityEnabler::_node_removed); + ClassDB::bind_method(D_METHOD("set_enabler","enabler","enabled"),&VisibilityEnabler::set_enabler); + ClassDB::bind_method(D_METHOD("is_enabler_enabled","enabler"),&VisibilityEnabler::is_enabler_enabled); + ClassDB::bind_method(D_METHOD("_node_removed"),&VisibilityEnabler::_node_removed); ADD_PROPERTYI( PropertyInfo(Variant::BOOL,"pause_animations"),"set_enabler","is_enabler_enabled", ENABLER_PAUSE_ANIMATIONS ); ADD_PROPERTYI( PropertyInfo(Variant::BOOL,"freeze_bodies"),"set_enabler","is_enabler_enabled", ENABLER_FREEZE_BODIES); diff --git a/scene/3d/visual_instance.cpp b/scene/3d/visual_instance.cpp index 6d0d8d8547..bbcd54b36b 100644 --- a/scene/3d/visual_instance.cpp +++ b/scene/3d/visual_instance.cpp @@ -137,12 +137,12 @@ uint32_t VisualInstance::get_layer_mask() const { void VisualInstance::_bind_methods() { - ClassDB::bind_method(_MD("_get_visual_instance_rid"),&VisualInstance::_get_visual_instance_rid); - ClassDB::bind_method(_MD("set_base","base"), &VisualInstance::set_base); - ClassDB::bind_method(_MD("set_layer_mask","mask"), &VisualInstance::set_layer_mask); - ClassDB::bind_method(_MD("get_layer_mask"), &VisualInstance::get_layer_mask); + ClassDB::bind_method(D_METHOD("_get_visual_instance_rid"),&VisualInstance::_get_visual_instance_rid); + ClassDB::bind_method(D_METHOD("set_base","base"), &VisualInstance::set_base); + ClassDB::bind_method(D_METHOD("set_layer_mask","mask"), &VisualInstance::set_layer_mask); + ClassDB::bind_method(D_METHOD("get_layer_mask"), &VisualInstance::get_layer_mask); - ClassDB::bind_method(_MD("get_transformed_aabb"), &VisualInstance::get_transformed_aabb); + ClassDB::bind_method(D_METHOD("get_transformed_aabb"), &VisualInstance::get_transformed_aabb); ADD_PROPERTY( PropertyInfo( Variant::INT, "layers",PROPERTY_HINT_LAYERS_3D_RENDER), "set_layer_mask", "get_layer_mask"); @@ -324,32 +324,32 @@ float GeometryInstance::get_extra_cull_margin() const{ void GeometryInstance::_bind_methods() { - ClassDB::bind_method(_MD("set_material_override","material"), &GeometryInstance::set_material_override); - ClassDB::bind_method(_MD("get_material_override"), &GeometryInstance::get_material_override); + ClassDB::bind_method(D_METHOD("set_material_override","material"), &GeometryInstance::set_material_override); + ClassDB::bind_method(D_METHOD("get_material_override"), &GeometryInstance::get_material_override); - ClassDB::bind_method(_MD("set_flag","flag","value"), &GeometryInstance::set_flag); - ClassDB::bind_method(_MD("get_flag","flag"), &GeometryInstance::get_flag); + ClassDB::bind_method(D_METHOD("set_flag","flag","value"), &GeometryInstance::set_flag); + ClassDB::bind_method(D_METHOD("get_flag","flag"), &GeometryInstance::get_flag); - ClassDB::bind_method(_MD("set_cast_shadows_setting", "shadow_casting_setting"), &GeometryInstance::set_cast_shadows_setting); - ClassDB::bind_method(_MD("get_cast_shadows_setting"), &GeometryInstance::get_cast_shadows_setting); + ClassDB::bind_method(D_METHOD("set_cast_shadows_setting", "shadow_casting_setting"), &GeometryInstance::set_cast_shadows_setting); + ClassDB::bind_method(D_METHOD("get_cast_shadows_setting"), &GeometryInstance::get_cast_shadows_setting); - ClassDB::bind_method(_MD("set_lod_max_hysteresis","mode"), &GeometryInstance::set_lod_max_hysteresis); - ClassDB::bind_method(_MD("get_lod_max_hysteresis"), &GeometryInstance::get_lod_max_hysteresis); + ClassDB::bind_method(D_METHOD("set_lod_max_hysteresis","mode"), &GeometryInstance::set_lod_max_hysteresis); + ClassDB::bind_method(D_METHOD("get_lod_max_hysteresis"), &GeometryInstance::get_lod_max_hysteresis); - ClassDB::bind_method(_MD("set_lod_max_distance","mode"), &GeometryInstance::set_lod_max_distance); - ClassDB::bind_method(_MD("get_lod_max_distance"), &GeometryInstance::get_lod_max_distance); + ClassDB::bind_method(D_METHOD("set_lod_max_distance","mode"), &GeometryInstance::set_lod_max_distance); + ClassDB::bind_method(D_METHOD("get_lod_max_distance"), &GeometryInstance::get_lod_max_distance); - ClassDB::bind_method(_MD("set_lod_min_hysteresis","mode"), &GeometryInstance::set_lod_min_hysteresis); - ClassDB::bind_method(_MD("get_lod_min_hysteresis"), &GeometryInstance::get_lod_min_hysteresis); + ClassDB::bind_method(D_METHOD("set_lod_min_hysteresis","mode"), &GeometryInstance::set_lod_min_hysteresis); + ClassDB::bind_method(D_METHOD("get_lod_min_hysteresis"), &GeometryInstance::get_lod_min_hysteresis); - ClassDB::bind_method(_MD("set_lod_min_distance","mode"), &GeometryInstance::set_lod_min_distance); - ClassDB::bind_method(_MD("get_lod_min_distance"), &GeometryInstance::get_lod_min_distance); + ClassDB::bind_method(D_METHOD("set_lod_min_distance","mode"), &GeometryInstance::set_lod_min_distance); + ClassDB::bind_method(D_METHOD("get_lod_min_distance"), &GeometryInstance::get_lod_min_distance); - ClassDB::bind_method(_MD("set_extra_cull_margin","margin"), &GeometryInstance::set_extra_cull_margin); - ClassDB::bind_method(_MD("get_extra_cull_margin"), &GeometryInstance::get_extra_cull_margin); + ClassDB::bind_method(D_METHOD("set_extra_cull_margin","margin"), &GeometryInstance::set_extra_cull_margin); + ClassDB::bind_method(D_METHOD("get_extra_cull_margin"), &GeometryInstance::get_extra_cull_margin); - ClassDB::bind_method(_MD("get_aabb"),&GeometryInstance::get_aabb); + ClassDB::bind_method(D_METHOD("get_aabb"),&GeometryInstance::get_aabb); ADD_GROUP("Geometry",""); |