diff options
Diffstat (limited to 'game/network')
-rw-r--r-- | game/network/link.h | 2 | ||||
-rw-r--r-- | game/network/rail.cpp | 1 | ||||
-rw-r--r-- | game/network/rail.h | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/game/network/link.h b/game/network/link.h index 4a9f83f..0d66c42 100644 --- a/game/network/link.h +++ b/game/network/link.h @@ -71,6 +71,7 @@ public: [[nodiscard]] Location positionAt(float dist, unsigned char start) const override; [[nodiscard]] bool intersectRay(const Ray &) const override; }; + LinkStraight::~LinkStraight() = default; class LinkCurve : public virtual Link { @@ -87,4 +88,5 @@ public: float radius; Arc arc; }; + LinkCurve::~LinkCurve() = default; diff --git a/game/network/rail.cpp b/game/network/rail.cpp index bd24a2b..5a4f1e1 100644 --- a/game/network/rail.cpp +++ b/game/network/rail.cpp @@ -21,6 +21,7 @@ constexpr auto RAIL_CROSSSECTION_VERTICES {5U}; constexpr glm::vec3 RAIL_HEIGHT {0, 0, .25F}; RailLinks::RailLinks() : NetworkOf<RailLink> {"rails.jpg"} { } + void RailLinks::tick(TickDuration) { diff --git a/game/network/rail.h b/game/network/rail.h index 611eb67..6684801 100644 --- a/game/network/rail.h +++ b/game/network/rail.h @@ -18,6 +18,7 @@ struct Arc; // A piece of rail track class RailLinkStraight; class RailLinkCurve; + class RailLink : public virtual Link, public Renderable { public: RailLink() = default; @@ -36,6 +37,7 @@ protected: Mesh::Ptr mesh; }; + RailLink::~RailLink() = default; class RailLinkStraight : public RailLink, public LinkStraight { |