diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-15 15:30:44 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-15 15:30:44 +0100 |
commit | d11d99323d642ebb1cf84302b2b25019e95b5607 (patch) | |
tree | 8a2171c2929929b3d3195b6f0de25041998fc8c8 /game/network/network.impl.h | |
parent | Remove unnecessary destructor (diff) | |
download | ilt-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.h | 14 |
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)}; +} |