summaryrefslogtreecommitdiff
path: root/game/network/network.impl.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-10-15 15:30:44 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-10-15 15:30:44 +0100
commitd11d99323d642ebb1cf84302b2b25019e95b5607 (patch)
tree8a2171c2929929b3d3195b6f0de25041998fc8c8 /game/network/network.impl.h
parentRemove unnecessary destructor (diff)
downloadilt-d11d99323d642ebb1cf84302b2b25019e95b5607.tar.bz2
ilt-d11d99323d642ebb1cf84302b2b25019e95b5607.tar.xz
ilt-d11d99323d642ebb1cf84302b2b25019e95b5607.zip
Add free extend builder with placeholder network support
Diffstat (limited to 'game/network/network.impl.h')
-rw-r--r--game/network/network.impl.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/game/network/network.impl.h b/game/network/network.impl.h
index 6769320..d112bf7 100644
--- a/game/network/network.impl.h
+++ b/game/network/network.impl.h
@@ -53,6 +53,13 @@ NetworkOf<T>::candidateJoins(glm::vec3 n1, glm::vec3 n2)
template<typename T>
Link::CCollection
+NetworkOf<T>::candidateExtend(glm::vec3 n1, glm::vec3 n2)
+{
+ return {candidateLink<typename T::StraightLink>(n1, n2)};
+}
+
+template<typename T>
+Link::CCollection
NetworkOf<T>::addStraight(glm::vec3 n1, glm::vec3 n2)
{
return {addLink<typename T::StraightLink>(n1, n2)};
@@ -64,3 +71,10 @@ NetworkOf<T>::addJoins(glm::vec3 n1, glm::vec3 n2)
{
return {addLink<typename T::StraightLink>(n1, n2)};
}
+
+template<typename T>
+Link::CCollection
+NetworkOf<T>::addExtend(glm::vec3 n1, glm::vec3 n2)
+{
+ return {addLink<typename T::StraightLink>(n1, n2)};
+}