blob: 13f4e6d19b84e69a1328fe9286122575cdcc498b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef PATHFINDCOMPONENT_H
#define PATHFINDCOMPONENT_H
#include "Game/Systems/Pathfinding/pathfinder.h"
#include "glm/fwd.hpp"
#include <vector>
#include "Component.h"
class PathfindComponent : public Component
{
public:
PathfindComponent(std::vector<glm::vec3> vertices, std::vector<glm::ivec3> triangles);
std::vector<glm::vec3> getPath(const glm::vec3 &A, const glm::vec3 &B);
private:
std::vector<glm::vec3> m_vertices;
std::vector<glm::ivec3> m_triangles;
std::unique_ptr<Pathfinder> m_pathfinder;
};
#endif // PATHFINDCOMPONENT_H
|