From 789a16e4e97d4050bb8db9cc3aebb01e807ac8c7 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 10 Mar 2021 01:54:40 +0000 Subject: Push more RailLinks logic down into NetworkOf --- game/network/rail.h | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'game/network/rail.h') diff --git a/game/network/rail.h b/game/network/rail.h index 3b3da42..3ecc59f 100644 --- a/game/network/rail.h +++ b/game/network/rail.h @@ -11,7 +11,6 @@ #include #include #include -#include class Shader; class Vertex; @@ -50,26 +49,14 @@ private: Arc arc; }; -template concept RailLinkConcept = std::is_base_of_v; - class RailLinks : public NetworkOf, public WorldObject { public: RailLinks(); - template - std::shared_ptr - addLink(glm::vec3 a, glm::vec3 b, Params &&... params) - { - const auto node1 = nodeAt(a), node2 = nodeAt(b); - auto l {links.create(node1, node2, std::forward(params)...)}; - joinLinks(l); - return l; - } std::shared_ptr addLinksBetween(glm::vec3 start, glm::vec3 end); private: void tick(TickDuration elapsed) override; - void joinLinks(const LinkPtr &) const; }; #endif -- cgit v1.2.3