summaryrefslogtreecommitdiff
path: root/game
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-10-08 18:20:41 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-10-08 18:20:41 +0100
commit1815db28a574ebe88012317898ab537a93bc2a60 (patch)
treeeb66aafcd53f6a4791e77bbdaed24d16a4ee8160 /game
parentInitial commit of a basic working network editor (diff)
downloadilt-1815db28a574ebe88012317898ab537a93bc2a60.tar.bz2
ilt-1815db28a574ebe88012317898ab537a93bc2a60.tar.xz
ilt-1815db28a574ebe88012317898ab537a93bc2a60.zip
Move addStraight to impl.h
Diffstat (limited to 'game')
-rw-r--r--game/network/network.h6
-rw-r--r--game/network/network.impl.h7
2 files changed, 8 insertions, 5 deletions
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<typename T::StraightLink>(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<T>::intersectRayLinks(const Ray & ray) const
}
return {};
}
+
+template<typename T>
+LinkPtr
+NetworkOf<T>::addStraight(glm::vec3 n1, glm::vec3 n2)
+{
+ return addLink<typename T::StraightLink>(n1, n2);
+}