classref: Fixed return types in Area and Area2D (#4635)

(cherry picked from commit 91c85ff1f5)
This commit is contained in:
MattUV 2016-05-12 17:03:15 +02:00 committed by Rémi Verschelde
parent 77573a76d1
commit f120514402
3 changed files with 6 additions and 6 deletions

View File

@ -3951,7 +3951,7 @@
</description> </description>
</method> </method>
<method name="overlaps_body" qualifiers="const"> <method name="overlaps_body" qualifiers="const">
<return type="PhysicsBody2D"> <return type="bool">
</return> </return>
<argument index="0" name="body" type="Object"> <argument index="0" name="body" type="Object">
</argument> </argument>
@ -3960,7 +3960,7 @@
</description> </description>
</method> </method>
<method name="overlaps_area" qualifiers="const"> <method name="overlaps_area" qualifiers="const">
<return type="Area2D"> <return type="bool">
</return> </return>
<argument index="0" name="area" type="Object"> <argument index="0" name="area" type="Object">
</argument> </argument>

View File

@ -638,8 +638,8 @@ void Area2D::_bind_methods() {
ObjectTypeDB::bind_method(_MD("get_overlapping_bodies"),&Area2D::get_overlapping_bodies); ObjectTypeDB::bind_method(_MD("get_overlapping_bodies"),&Area2D::get_overlapping_bodies);
ObjectTypeDB::bind_method(_MD("get_overlapping_areas"),&Area2D::get_overlapping_areas); ObjectTypeDB::bind_method(_MD("get_overlapping_areas"),&Area2D::get_overlapping_areas);
ObjectTypeDB::bind_method(_MD("overlaps_body:PhysicsBody2D","body"),&Area2D::overlaps_body); ObjectTypeDB::bind_method(_MD("overlaps_body","body"),&Area2D::overlaps_body);
ObjectTypeDB::bind_method(_MD("overlaps_area:Area2D","area"),&Area2D::overlaps_area); ObjectTypeDB::bind_method(_MD("overlaps_area","area"),&Area2D::overlaps_area);
ObjectTypeDB::bind_method(_MD("_body_inout"),&Area2D::_body_inout); ObjectTypeDB::bind_method(_MD("_body_inout"),&Area2D::_body_inout);
ObjectTypeDB::bind_method(_MD("_area_inout"),&Area2D::_area_inout); ObjectTypeDB::bind_method(_MD("_area_inout"),&Area2D::_area_inout);

View File

@ -562,8 +562,8 @@ void Area::_bind_methods() {
ObjectTypeDB::bind_method(_MD("get_overlapping_bodies"),&Area::get_overlapping_bodies); ObjectTypeDB::bind_method(_MD("get_overlapping_bodies"),&Area::get_overlapping_bodies);
ObjectTypeDB::bind_method(_MD("get_overlapping_areas"),&Area::get_overlapping_areas); ObjectTypeDB::bind_method(_MD("get_overlapping_areas"),&Area::get_overlapping_areas);
ObjectTypeDB::bind_method(_MD("overlaps_body:PhysicsBody","body"),&Area::overlaps_body); ObjectTypeDB::bind_method(_MD("overlaps_body","body"),&Area::overlaps_body);
ObjectTypeDB::bind_method(_MD("overlaps_area:Area","area"),&Area::overlaps_area); ObjectTypeDB::bind_method(_MD("overlaps_area","area"),&Area::overlaps_area);
ObjectTypeDB::bind_method(_MD("_body_inout"),&Area::_body_inout); ObjectTypeDB::bind_method(_MD("_body_inout"),&Area::_body_inout);
ObjectTypeDB::bind_method(_MD("_area_inout"),&Area::_area_inout); ObjectTypeDB::bind_method(_MD("_area_inout"),&Area::_area_inout);