diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-13 20:34:25 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-13 20:34:25 +0100 |
commit | 6ad0230b50be3e867e4ea1a1e33fd30c7487ec4a (patch) | |
tree | 00c0e894d00c17a8f7634df6f3c465b4023975b1 /game/network/link.h | |
parent | Standard typedefs for Node (diff) | |
download | ilt-6ad0230b50be3e867e4ea1a1e33fd30c7487ec4a.tar.bz2 ilt-6ad0230b50be3e867e4ea1a1e33fd30c7487ec4a.tar.xz ilt-6ad0230b50be3e867e4ea1a1e33fd30c7487ec4a.zip |
Standard typedefs for Link
Diffstat (limited to 'game/network/link.h')
-rw-r--r-- | game/network/link.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/game/network/link.h b/game/network/link.h index 2beb808..1f6b780 100644 --- a/game/network/link.h +++ b/game/network/link.h @@ -28,13 +28,9 @@ public: // Generic network link // something that can be travelled along // it joins 2 nodes -class Link; -using LinkPtr = std::shared_ptr<Link>; -using LinkCPtr = std::shared_ptr<const Link>; -using LinkWPtr = std::weak_ptr<const Link>; -class Link { +class Link : public StdTypeDefs<Link> { public: - using Next = std::pair<LinkWPtr, unsigned char /*end*/>; + using Next = std::pair<WPtr, unsigned char /*end*/>; using Nexts = std::vector<Next>; struct End { @@ -61,7 +57,6 @@ protected: return {}; } }; -using CLinks = std::vector<LinkCPtr>; bool operator<(const glm::vec3 & a, const glm::vec3 & b); bool operator<(const Node & a, const Node & b); |