diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-03-13 20:42:40 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-03-13 20:42:50 +0000 |
commit | 49ff05eda05f4f06eda3b6a2a6b116005db42e57 (patch) | |
tree | 8848b18fe92ee26e0c6a40e61d3436c4c8d9979a /game/network/network.h | |
parent | Simplified TestLink extending LinkStraight (diff) | |
download | ilt-49ff05eda05f4f06eda3b6a2a6b116005db42e57.tar.bz2 ilt-49ff05eda05f4f06eda3b6a2a6b116005db42e57.tar.xz ilt-49ff05eda05f4f06eda3b6a2a6b116005db42e57.zip |
Route Walker returns Link::Nexts, not vector links
This makes more sense when you realise that the existing navigation
workings work on exactly the same type!
Diffstat (limited to 'game/network/network.h')
-rw-r--r-- | game/network/network.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/game/network/network.h b/game/network/network.h index f84c90c..31fc744 100644 --- a/game/network/network.h +++ b/game/network/network.h @@ -10,7 +10,6 @@ #include <sorting.hpp> #include <string> #include <utility> -#include <vector> class Texture; class Shader; @@ -23,8 +22,8 @@ public: [[nodiscard]] NodePtr nodeAt(glm::vec3); [[nodiscard]] std::pair<NodePtr, bool> newNodeAt(glm::vec3); - [[nodiscard]] std::vector<LinkWPtr> routeFromTo(const Link::End &, glm::vec3) const; - [[nodiscard]] std::vector<LinkWPtr> routeFromTo(const Link::End &, const NodePtr &) const; + [[nodiscard]] Link::Nexts routeFromTo(const Link::End &, glm::vec3) const; + [[nodiscard]] Link::Nexts routeFromTo(const Link::End &, const NodePtr &) const; protected: static void joinLinks(const LinkPtr & l, const LinkPtr & ol); |