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

@ -82,11 +82,11 @@ Rect2 SegmentShape2D::get_rect() const{
void SegmentShape2D::_bind_methods() {
ClassDB::bind_method(_MD("set_a","a"),&SegmentShape2D::set_a);
ClassDB::bind_method(_MD("get_a"),&SegmentShape2D::get_a);
ClassDB::bind_method(D_METHOD("set_a","a"),&SegmentShape2D::set_a);
ClassDB::bind_method(D_METHOD("get_a"),&SegmentShape2D::get_a);
ClassDB::bind_method(_MD("set_b","b"),&SegmentShape2D::set_b);
ClassDB::bind_method(_MD("get_b"),&SegmentShape2D::get_b);
ClassDB::bind_method(D_METHOD("set_b","b"),&SegmentShape2D::set_b);
ClassDB::bind_method(D_METHOD("get_b"),&SegmentShape2D::get_b);
ADD_PROPERTY( PropertyInfo(Variant::VECTOR2,"a"),"set_a","get_a") ;
@ -145,8 +145,8 @@ Rect2 RayShape2D::get_rect() const {
void RayShape2D::_bind_methods() {
ClassDB::bind_method(_MD("set_length","length"),&RayShape2D::set_length);
ClassDB::bind_method(_MD("get_length"),&RayShape2D::get_length);
ClassDB::bind_method(D_METHOD("set_length","length"),&RayShape2D::set_length);
ClassDB::bind_method(D_METHOD("get_length"),&RayShape2D::get_length);
ADD_PROPERTY( PropertyInfo(Variant::REAL,"length"),"set_length","get_length") ;