summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-10-13 20:27:46 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-10-13 20:27:46 +0100
commitfab2d34959c52383f6be3cb6634c6776b41f62a8 (patch)
treecbf8f4b717d50af882689b5e012c2e3737f44077 /ui
parentInheritable of standard typedefs (diff)
downloadilt-fab2d34959c52383f6be3cb6634c6776b41f62a8.tar.bz2
ilt-fab2d34959c52383f6be3cb6634c6776b41f62a8.tar.xz
ilt-fab2d34959c52383f6be3cb6634c6776b41f62a8.zip
Standard typedefs for Node
Diffstat (limited to 'ui')
-rw-r--r--ui/builders/join.cpp2
-rw-r--r--ui/builders/join.h4
-rw-r--r--ui/editNetwork.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/ui/builders/join.cpp b/ui/builders/join.cpp
index 90b1d61..cc2ca2d 100644
--- a/ui/builders/join.cpp
+++ b/ui/builders/join.cpp
@@ -37,7 +37,7 @@ BuilderJoin::click(Network * network, const GeoData *, const SDL_MouseButtonEven
}
void
-BuilderJoin::create(Network * network, const NodePtr & p1, const NodePtr & p2) const
+BuilderJoin::create(Network * network, const Node::Ptr & p1, const Node::Ptr & p2) const
{
network->addJoins(p1->pos, p2->pos);
}
diff --git a/ui/builders/join.h b/ui/builders/join.h
index d4fb534..30d39cd 100644
--- a/ui/builders/join.h
+++ b/ui/builders/join.h
@@ -9,7 +9,7 @@ class BuilderJoin : public EditNetwork::Builder {
std::string hint() const override;
void click(Network * network, const GeoData * geoData, const SDL_MouseButtonEvent & e, const Ray & ray) override;
- void create(Network * network, const NodePtr & p1, const NodePtr & p2) const;
+ void create(Network * network, const Node::Ptr & p1, const Node::Ptr & p2) const;
- NodePtr p1;
+ Node::Ptr p1;
};
diff --git a/ui/editNetwork.h b/ui/editNetwork.h
index 72e0955..6f3b009 100644
--- a/ui/editNetwork.h
+++ b/ui/editNetwork.h
@@ -21,7 +21,7 @@ public:
void render(const Shader &) const override;
void render(const UIShader & shader, const UIComponent::Position & pos) const override;
- using NetworkClickPos = std::variant<glm::vec3, NodePtr>;
+ using NetworkClickPos = std::variant<glm::vec3, Node::Ptr>;
class Builder {
public: