You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Remove use of _SCS from ADD_METHOD
This saves typing and is a step towards fixing #56
This commit is contained in:
@@ -89,8 +89,8 @@ void SegmentShape2D::_bind_methods() {
|
||||
ClassDB::bind_method(_MD("get_b"),&SegmentShape2D::get_b);
|
||||
|
||||
|
||||
ADD_PROPERTY( PropertyInfo(Variant::VECTOR2,"a"),_SCS("set_a"),_SCS("get_a") );
|
||||
ADD_PROPERTY( PropertyInfo(Variant::VECTOR2,"b"),_SCS("set_b"),_SCS("get_b") );
|
||||
ADD_PROPERTY( PropertyInfo(Variant::VECTOR2,"a"),"set_a","get_a") ;
|
||||
ADD_PROPERTY( PropertyInfo(Variant::VECTOR2,"b"),"set_b","get_b") ;
|
||||
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ void RayShape2D::_bind_methods() {
|
||||
ClassDB::bind_method(_MD("set_length","length"),&RayShape2D::set_length);
|
||||
ClassDB::bind_method(_MD("get_length"),&RayShape2D::get_length);
|
||||
|
||||
ADD_PROPERTY( PropertyInfo(Variant::REAL,"length"),_SCS("set_length"),_SCS("get_length") );
|
||||
ADD_PROPERTY( PropertyInfo(Variant::REAL,"length"),"set_length","get_length") ;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user