summaryrefslogtreecommitdiff
path: root/scene/resources/mesh_library.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/mesh_library.h')
-rw-r--r--scene/resources/mesh_library.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/scene/resources/mesh_library.h b/scene/resources/mesh_library.h
index bf0107d7a9..e4dba193fc 100644
--- a/scene/resources/mesh_library.h
+++ b/scene/resources/mesh_library.h
@@ -33,6 +33,7 @@
#include "mesh.h"
#include "shape.h"
#include "map.h"
+#include "scene/3d/navigation_mesh.h"
class MeshLibrary : public Resource {
@@ -40,11 +41,11 @@ class MeshLibrary : public Resource {
RES_BASE_EXTENSION("gt");
struct Item {
-
String name;
Ref<Mesh> mesh;
Ref<Shape> shape;
Ref<Texture> preview;
+ Ref<NavigationMesh> navmesh;
};
Map<int,Item> item_map;
@@ -62,10 +63,12 @@ public:
void create_item(int p_item);
void set_item_name(int p_item,const String& p_name);
void set_item_mesh(int p_item,const Ref<Mesh>& p_mesh);
+ void set_item_navmesh(int p_item, const Ref<NavigationMesh>& p_navmesh);
void set_item_shape(int p_item,const Ref<Shape>& p_shape);
void set_item_preview(int p_item,const Ref<Texture>& p_preview);
String get_item_name(int p_item) const;
Ref<Mesh> get_item_mesh(int p_item) const;
+ Ref<NavigationMesh> get_item_navmesh(int p_item) const;
Ref<Shape> get_item_shape(int p_item) const;
Ref<Texture> get_item_preview(int p_item) const;