From fab2d34959c52383f6be3cb6634c6776b41f62a8 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 13 Oct 2022 20:27:46 +0100 Subject: Standard typedefs for Node --- game/network/link.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'game/network/link.h') diff --git a/game/network/link.h b/game/network/link.h index 6441c8b..2beb808 100644 --- a/game/network/link.h +++ b/game/network/link.h @@ -6,6 +6,7 @@ #include #include #include +#include #include #include @@ -14,7 +15,7 @@ class Ray; // Generic network node // something that can be travelled to // it has location -class Node { +class Node : public StdTypeDefs { public: explicit Node(glm::vec3 p) noexcept : pos(p) {}; virtual ~Node() noexcept = default; @@ -23,7 +24,6 @@ public: glm::vec3 pos; }; -using NodePtr = std::shared_ptr; // Generic network link // something that can be travelled along @@ -38,7 +38,7 @@ public: using Nexts = std::vector; struct End { - NodePtr node; + Node::Ptr node; float dir; Nexts nexts {}; }; -- cgit v1.2.3