summaryrefslogtreecommitdiff
path: root/game/network/link.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/network/link.h')
-rw-r--r--game/network/link.h6
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 {};
};