summaryrefslogtreecommitdiff
path: root/game/network/network.impl.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-03-10 01:54:40 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-03-10 01:54:40 +0000
commit789a16e4e97d4050bb8db9cc3aebb01e807ac8c7 (patch)
treea5e0fc0f406c17e1b7b88ba8e16ea0bbb331a6dc /game/network/network.impl.h
parentAdd some more helpers to Network (diff)
downloadilt-789a16e4e97d4050bb8db9cc3aebb01e807ac8c7.tar.bz2
ilt-789a16e4e97d4050bb8db9cc3aebb01e807ac8c7.tar.xz
ilt-789a16e4e97d4050bb8db9cc3aebb01e807ac8c7.zip
Push more RailLinks logic down into NetworkOf
Diffstat (limited to 'game/network/network.impl.h')
-rw-r--r--game/network/network.impl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/game/network/network.impl.h b/game/network/network.impl.h
index ddb1ae5..699cb94 100644
--- a/game/network/network.impl.h
+++ b/game/network/network.impl.h
@@ -10,3 +10,12 @@ NetworkOf<T>::render(const Shader & shader) const
texture->Bind();
links.apply(&T::render, shader);
}
+
+template<typename T>
+void
+NetworkOf<T>::joinLinks(const LinkPtr & l) const
+{
+ for (const auto & ol : links.objects) {
+ Network::joinLinks(l, ol);
+ }
+}