// // Created by Vlad on 28.07.2024. // #pragma once #include "omath/Vector3.hpp" #include #include #include namespace omath::pathfinding { enum Error { }; class NavigationMesh final { public: [[nodiscard]] std::expected, std::string> GetClosestVertex(const Vector3& point) const; [[nodiscard]] const std::vector>& GetNeighbors(const Vector3& vertex) const; [[nodiscard]] bool Empty() const; [[nodiscard]] std::vector Serialize() const; void Deserialize(const std::vector& raw); std::unordered_map, std::vector>> m_verTextMap; }; }