1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- #include "room.h"
- #include "servers/visual_server.h"
- #if 0
- RID RoomBounds::get_rid() const {
- return area;
- }
- void RoomBounds::set_geometry_hint(const PoolVector<Face3> &p_geometry_hint) {
- geometry_hint = p_geometry_hint;
- }
- 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);
-
- ADD_PROPERTY(PropertyInfo(Variant::POOL_VECTOR3_ARRAY, "geometry_hint"), "set_geometry_hint", "get_geometry_hint");
- }
- RoomBounds::RoomBounds() {
- area = VisualServer::get_singleton()->room_create();
- }
- RoomBounds::~RoomBounds() {
- VisualServer::get_singleton()->free(area);
- }
- #endif
|