diff options
Diffstat (limited to 'scene/resources/room.cpp')
-rw-r--r-- | scene/resources/room.cpp | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/scene/resources/room.cpp b/scene/resources/room.cpp index e677f92c31..9ec8914e2f 100644 --- a/scene/resources/room.cpp +++ b/scene/resources/room.cpp @@ -30,16 +30,14 @@ #include "servers/visual_server.h" - RID RoomBounds::get_rid() const { return area; } +void RoomBounds::set_geometry_hint(const PoolVector<Face3> &p_geometry_hint) { -void RoomBounds::set_geometry_hint(const PoolVector<Face3>& p_geometry_hint) { - - geometry_hint=p_geometry_hint; + geometry_hint = p_geometry_hint; } PoolVector<Face3> RoomBounds::get_geometry_hint() const { @@ -47,29 +45,21 @@ PoolVector<Face3> RoomBounds::get_geometry_hint() const { return geometry_hint; } - - void RoomBounds::_bind_methods() { - - ClassDB::bind_method(D_METHOD("set_geometry_hint","triangles"),&RoomBounds::set_geometry_hint); - ClassDB::bind_method(D_METHOD("get_geometry_hint"),&RoomBounds::get_geometry_hint); + ClassDB::bind_method(D_METHOD("set_geometry_hint", "triangles"), &RoomBounds::set_geometry_hint); + ClassDB::bind_method(D_METHOD("get_geometry_hint"), &RoomBounds::get_geometry_hint); //ADD_PROPERTY( PropertyInfo( Variant::DICTIONARY, "bounds"), "set_bounds","get_bounds") ; - ADD_PROPERTY( PropertyInfo( Variant::POOL_VECTOR3_ARRAY, "geometry_hint"),"set_geometry_hint","get_geometry_hint") ; - + ADD_PROPERTY(PropertyInfo(Variant::POOL_VECTOR3_ARRAY, "geometry_hint"), "set_geometry_hint", "get_geometry_hint"); } RoomBounds::RoomBounds() { - area=VisualServer::get_singleton()->room_create(); + area = VisualServer::get_singleton()->room_create(); } - RoomBounds::~RoomBounds() { VisualServer::get_singleton()->free(area); - } - - |