Rename the _MD macro to D_METHOD

This new name also makes its purpose a little clearer

This is a step towards fixing #56
This commit is contained in:
Hein-Pieter van Braam
2017-02-13 12:47:24 +01:00
parent bf64df4427
commit 411ee71b4d
297 changed files with 5445 additions and 5443 deletions

View File

@ -85,9 +85,9 @@ Ref<Curve2D> Path2D::get_curve() const{
void Path2D::_bind_methods() {
ClassDB::bind_method(_MD("set_curve","curve:Curve2D"),&Path2D::set_curve);
ClassDB::bind_method(_MD("get_curve:Curve2D","curve"),&Path2D::get_curve);
ClassDB::bind_method(_MD("_curve_changed"),&Path2D::_curve_changed);
ClassDB::bind_method(D_METHOD("set_curve","curve:Curve2D"),&Path2D::set_curve);
ClassDB::bind_method(D_METHOD("get_curve:Curve2D","curve"),&Path2D::get_curve);
ClassDB::bind_method(D_METHOD("_curve_changed"),&Path2D::_curve_changed);
ADD_PROPERTY( PropertyInfo( Variant::OBJECT, "curve", PROPERTY_HINT_RESOURCE_TYPE, "Curve2D"), "set_curve","get_curve");
}
@ -252,26 +252,26 @@ String PathFollow2D::get_configuration_warning() const {
void PathFollow2D::_bind_methods() {
ClassDB::bind_method(_MD("set_offset","offset"),&PathFollow2D::set_offset);
ClassDB::bind_method(_MD("get_offset"),&PathFollow2D::get_offset);
ClassDB::bind_method(D_METHOD("set_offset","offset"),&PathFollow2D::set_offset);
ClassDB::bind_method(D_METHOD("get_offset"),&PathFollow2D::get_offset);
ClassDB::bind_method(_MD("set_h_offset","h_offset"),&PathFollow2D::set_h_offset);
ClassDB::bind_method(_MD("get_h_offset"),&PathFollow2D::get_h_offset);
ClassDB::bind_method(D_METHOD("set_h_offset","h_offset"),&PathFollow2D::set_h_offset);
ClassDB::bind_method(D_METHOD("get_h_offset"),&PathFollow2D::get_h_offset);
ClassDB::bind_method(_MD("set_v_offset","v_offset"),&PathFollow2D::set_v_offset);
ClassDB::bind_method(_MD("get_v_offset"),&PathFollow2D::get_v_offset);
ClassDB::bind_method(D_METHOD("set_v_offset","v_offset"),&PathFollow2D::set_v_offset);
ClassDB::bind_method(D_METHOD("get_v_offset"),&PathFollow2D::get_v_offset);
ClassDB::bind_method(_MD("set_unit_offset","unit_offset"),&PathFollow2D::set_unit_offset);
ClassDB::bind_method(_MD("get_unit_offset"),&PathFollow2D::get_unit_offset);
ClassDB::bind_method(D_METHOD("set_unit_offset","unit_offset"),&PathFollow2D::set_unit_offset);
ClassDB::bind_method(D_METHOD("get_unit_offset"),&PathFollow2D::get_unit_offset);
ClassDB::bind_method(_MD("set_rotate","enable"),&PathFollow2D::set_rotate);
ClassDB::bind_method(_MD("is_rotating"),&PathFollow2D::is_rotating);
ClassDB::bind_method(D_METHOD("set_rotate","enable"),&PathFollow2D::set_rotate);
ClassDB::bind_method(D_METHOD("is_rotating"),&PathFollow2D::is_rotating);
ClassDB::bind_method(_MD("set_cubic_interpolation","enable"),&PathFollow2D::set_cubic_interpolation);
ClassDB::bind_method(_MD("get_cubic_interpolation"),&PathFollow2D::get_cubic_interpolation);
ClassDB::bind_method(D_METHOD("set_cubic_interpolation","enable"),&PathFollow2D::set_cubic_interpolation);
ClassDB::bind_method(D_METHOD("get_cubic_interpolation"),&PathFollow2D::get_cubic_interpolation);
ClassDB::bind_method(_MD("set_loop","loop"),&PathFollow2D::set_loop);
ClassDB::bind_method(_MD("has_loop"),&PathFollow2D::has_loop);
ClassDB::bind_method(D_METHOD("set_loop","loop"),&PathFollow2D::set_loop);
ClassDB::bind_method(D_METHOD("has_loop"),&PathFollow2D::has_loop);
}