diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2016-04-20 21:12:35 +0200 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2016-04-20 21:12:35 +0200 |
commit | c0ec7e933ac6b6419e564b276b49c8d9a6d03f30 (patch) | |
tree | fe24f7fb736cac37c244b3bf4ce5655cb0b14282 /scene/resources/mesh_library.h | |
parent | 1ea4b8e2dc61b39e78fb1691f738a03091ee2138 (diff) | |
parent | b03a892f9574d78da2cfded1b829c549dd1fced1 (diff) |
Merge pull request #4302 from Anarchid/gridmap-navmesh
Navmesh support for GridMaps
Diffstat (limited to 'scene/resources/mesh_library.h')
-rw-r--r-- | scene/resources/mesh_library.h | 5 |
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; |