summaryrefslogtreecommitdiff
path: root/ui/builders/join.h
blob: 30d39cd6fcd7c141beed3e0b651680fd705ae1e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once
#include "../editNetwork.h"

class Network;
class GeoData;

class BuilderJoin : public EditNetwork::Builder {
	void render(const Shader &) const override;
	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 Node::Ptr & p1, const Node::Ptr & p2) const;

	Node::Ptr p1;
};