summaryrefslogtreecommitdiff
path: root/game/network/rail.cpp
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/rail.cpp
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/rail.cpp')
-rw-r--r--game/network/rail.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/game/network/rail.cpp b/game/network/rail.cpp
index 7cc6284..0ef58d7 100644
--- a/game/network/rail.cpp
+++ b/game/network/rail.cpp
@@ -7,7 +7,6 @@
#include <game/network/network.impl.h> // IWYU pragma: keep
#include <gfx/models/vertex.hpp>
#include <glm/gtx/transform.hpp>
-#include <initializer_list>
#include <location.hpp>
#include <maths.h>
#include <stdexcept>
@@ -22,23 +21,6 @@ constexpr glm::vec3 RAIL_HEIGHT {0, .25F, 0};
RailLinks::RailLinks() : NetworkOf<RailLink> {"rails.jpg"} { }
void RailLinks::tick(TickDuration) { }
-void
-RailLinks::joinLinks(const LinkPtr & l) const
-{
- for (const auto & ol : links.objects) {
- if (l != ol) {
- for (const auto oe : {0, 1}) {
- for (const auto te : {0, 1}) {
- if (l->ends[te].node == ol->ends[oe].node) {
- l->ends[te].nexts.emplace_back(ol, oe);
- ol->ends[oe].nexts.emplace_back(l, te);
- }
- }
- }
- }
- }
-}
-
std::shared_ptr<RailLink>
RailLinks::addLinksBetween(glm::vec3 start, glm::vec3 end)
{