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:
@ -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") ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user