diff options
Diffstat (limited to 'game/network')
-rw-r--r-- | game/network/network.h | 2 | ||||
-rw-r--r-- | game/network/network.impl.h | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/game/network/network.h b/game/network/network.h index c795d86..9dbca7c 100644 --- a/game/network/network.h +++ b/game/network/network.h @@ -31,6 +31,7 @@ public: [[nodiscard]] Link::Nexts routeFromTo(const Link::End &, const NodePtr &) const; virtual LinkPtr addStraight(glm::vec3, glm::vec3) = 0; + virtual LinkPtr addJoins(glm::vec3, glm::vec3) = 0; protected: static void joinLinks(const LinkPtr & l, const LinkPtr & ol); @@ -63,6 +64,7 @@ public: } LinkPtr addStraight(glm::vec3 n1, glm::vec3 n2) override; + LinkPtr addJoins(glm::vec3, glm::vec3) override; void render(const Shader &) const override; }; diff --git a/game/network/network.impl.h b/game/network/network.impl.h index f4466b7..37d03f8 100644 --- a/game/network/network.impl.h +++ b/game/network/network.impl.h @@ -43,3 +43,10 @@ NetworkOf<T>::addStraight(glm::vec3 n1, glm::vec3 n2) { return addLink<typename T::StraightLink>(n1, n2); } + +template<typename T> +LinkPtr +NetworkOf<T>::addJoins(glm::vec3 n1, glm::vec3 n2) +{ + return addLink<typename T::StraightLink>(n1, n2); +} |