summaryrefslogtreecommitdiff
path: root/game/network/network.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-03-10 01:20:08 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-03-10 01:20:08 +0000
commitd240fc840ebe35499e09c48960d4d89ce25c2824 (patch)
tree5a0423cd488e38bb8dc3e9ab4a81f8959ad95c73 /game/network/network.h
parentVertices and indices vectors not required once mesh is created (diff)
downloadilt-d240fc840ebe35499e09c48960d4d89ce25c2824.tar.bz2
ilt-d240fc840ebe35499e09c48960d4d89ce25c2824.tar.xz
ilt-d240fc840ebe35499e09c48960d4d89ce25c2824.zip
Add some more helpers to Network
Diffstat (limited to 'game/network/network.h')
-rw-r--r--game/network/network.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/game/network/network.h b/game/network/network.h
index 2c24916..c42f056 100644
--- a/game/network/network.h
+++ b/game/network/network.h
@@ -9,6 +9,7 @@
#include <set>
#include <sorting.hpp>
#include <string>
+#include <utility>
class Texture;
class Shader;
@@ -18,6 +19,8 @@ public:
explicit Network(const std::string & textureName);
[[nodiscard]] NodePtr findNodeAt(glm::vec3) const;
+ [[nodiscard]] NodePtr nodeAt(glm::vec3);
+ [[nodiscard]] std::pair<NodePtr, bool> newNodeAt(glm::vec3);
protected:
using Nodes = std::set<NodePtr, PtrSorter<NodePtr>>;