diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-13 20:27:46 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-13 20:27:46 +0100 |
commit | fab2d34959c52383f6be3cb6634c6776b41f62a8 (patch) | |
tree | cbf8f4b717d50af882689b5e012c2e3737f44077 /game/network/link.h | |
parent | Inheritable of standard typedefs (diff) | |
download | ilt-fab2d34959c52383f6be3cb6634c6776b41f62a8.tar.bz2 ilt-fab2d34959c52383f6be3cb6634c6776b41f62a8.tar.xz ilt-fab2d34959c52383f6be3cb6634c6776b41f62a8.zip |
Standard typedefs for Node
Diffstat (limited to 'game/network/link.h')
-rw-r--r-- | game/network/link.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 <maths.h> #include <memory> #include <special_members.hpp> +#include <stdTypeDefs.hpp> #include <utility> #include <vector> @@ -14,7 +15,7 @@ class Ray; // Generic network node // something that can be travelled to // it has location -class Node { +class Node : public StdTypeDefs<Node> { 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<Node>; // Generic network link // something that can be travelled along @@ -38,7 +38,7 @@ public: using Nexts = std::vector<Next>; struct End { - NodePtr node; + Node::Ptr node; float dir; Nexts nexts {}; }; |