mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-24 12:47:12 +01:00
Removed region_bake_navmesh from the NavigationServer.
This commit is contained in:
parent
a1b23406a1
commit
890d6f1b28
@ -292,14 +292,6 @@
|
||||
[b]Note:[/b] This function is not thread safe.
|
||||
</description>
|
||||
</method>
|
||||
<method name="region_bake_navmesh" qualifiers="const">
|
||||
<return type="void" />
|
||||
<argument index="0" name="mesh" type="NavigationMesh" />
|
||||
<argument index="1" name="node" type="Node" />
|
||||
<description>
|
||||
Bakes the navigation mesh.
|
||||
</description>
|
||||
</method>
|
||||
<method name="region_create" qualifiers="const">
|
||||
<return type="RID" />
|
||||
<description>
|
||||
|
@ -413,16 +413,6 @@ COMMAND_2(region_set_navmesh, RID, p_region, Ref<NavigationMesh>, p_nav_mesh) {
|
||||
region->set_mesh(p_nav_mesh);
|
||||
}
|
||||
|
||||
void PandemoniumNavigationServer::region_bake_navmesh(Ref<NavigationMesh> r_mesh, Node *p_node) const {
|
||||
ERR_FAIL_COND(r_mesh.is_null());
|
||||
ERR_FAIL_COND(p_node == nullptr);
|
||||
|
||||
#ifndef _3D_DISABLED
|
||||
//NavigationMeshGenerator::get_singleton()->clear(r_mesh);
|
||||
//NavigationMeshGenerator::get_singleton()->bake(r_mesh, p_node);
|
||||
#endif
|
||||
}
|
||||
|
||||
int PandemoniumNavigationServer::region_get_connections_count(RID p_region) const {
|
||||
NavRegion *region = region_owner.getornull(p_region);
|
||||
ERR_FAIL_COND_V(!region, 0);
|
||||
|
@ -127,7 +127,6 @@ public:
|
||||
virtual uint32_t region_get_navigation_layers(RID p_region) const;
|
||||
COMMAND_2(region_set_transform, RID, p_region, Transform, p_transform);
|
||||
COMMAND_2(region_set_navmesh, RID, p_region, Ref<NavigationMesh>, p_nav_mesh);
|
||||
virtual void region_bake_navmesh(Ref<NavigationMesh> r_mesh, Node *p_node) const;
|
||||
|
||||
virtual int region_get_connections_count(RID p_region) const;
|
||||
virtual Vector3 region_get_connection_pathway_start(RID p_region, int p_connection_id) const;
|
||||
|
@ -5,8 +5,6 @@
|
||||
|
||||
void DummyNavigationServer::region_set_navmesh(RID p_region, Ref<NavigationMesh> p_nav_mesh) const {
|
||||
}
|
||||
void DummyNavigationServer::region_bake_navmesh(Ref<NavigationMesh> r_mesh, Node *p_node) const {
|
||||
}
|
||||
|
||||
DummyNavigationServer::DummyNavigationServer() {
|
||||
}
|
||||
|
@ -42,7 +42,6 @@ public:
|
||||
virtual uint32_t region_get_navigation_layers(RID p_region) const { return 0; }
|
||||
virtual void region_set_transform(RID p_region, Transform p_transform) const {}
|
||||
virtual void region_set_navmesh(RID p_region, Ref<NavigationMesh> p_nav_mesh) const;
|
||||
virtual void region_bake_navmesh(Ref<NavigationMesh> r_mesh, Node *p_node) const;
|
||||
virtual int region_get_connections_count(RID p_region) const { return 0; }
|
||||
virtual Vector3 region_get_connection_pathway_start(RID p_region, int p_connection_id) const { return Vector3(); }
|
||||
virtual Vector3 region_get_connection_pathway_end(RID p_region, int p_connection_id) const { return Vector3(); }
|
||||
|
@ -82,7 +82,6 @@ void NavigationServer::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method(D_METHOD("region_set_transform", "region", "transform"), &NavigationServer::region_set_transform);
|
||||
ClassDB::bind_method(D_METHOD("region_set_navmesh", "region", "nav_mesh"), &NavigationServer::region_set_navmesh);
|
||||
ClassDB::bind_method(D_METHOD("region_bake_navmesh", "mesh", "node"), &NavigationServer::region_bake_navmesh);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("region_get_connections_count", "region"), &NavigationServer::region_get_connections_count);
|
||||
ClassDB::bind_method(D_METHOD("region_get_connection_pathway_start", "region", "connection"), &NavigationServer::region_get_connection_pathway_start);
|
||||
|
@ -134,9 +134,6 @@ public:
|
||||
/// Set the navigation mesh of this region.
|
||||
virtual void region_set_navmesh(RID p_region, Ref<NavigationMesh> p_nav_mesh) const = 0;
|
||||
|
||||
/// Bake the navigation mesh.
|
||||
virtual void region_bake_navmesh(Ref<NavigationMesh> r_mesh, Node *p_node) const = 0;
|
||||
|
||||
/// Get a list of a region's connection to other regions.
|
||||
virtual int region_get_connections_count(RID p_region) const = 0;
|
||||
virtual Vector3 region_get_connection_pathway_start(RID p_region, int p_connection_id) const = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user