From 1815db28a574ebe88012317898ab537a93bc2a60 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 8 Oct 2022 18:20:41 +0100 Subject: Move addStraight to impl.h --- game/network/network.h | 6 +----- game/network/network.impl.h | 7 +++++++ 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'game') diff --git a/game/network/network.h b/game/network/network.h index c0485a9..c795d86 100644 --- a/game/network/network.h +++ b/game/network/network.h @@ -62,11 +62,7 @@ public: return l; } - LinkPtr - addStraight(glm::vec3 n1, glm::vec3 n2) override - { - return addLink(n1, n2); - } + LinkPtr addStraight(glm::vec3 n1, glm::vec3 n2) override; void render(const Shader &) const override; }; diff --git a/game/network/network.impl.h b/game/network/network.impl.h index c5da3f0..f4466b7 100644 --- a/game/network/network.impl.h +++ b/game/network/network.impl.h @@ -36,3 +36,10 @@ NetworkOf::intersectRayLinks(const Ray & ray) const } return {}; } + +template +LinkPtr +NetworkOf::addStraight(glm::vec3 n1, glm::vec3 n2) +{ + return addLink(n1, n2); +} -- cgit v1.2.3