summaryrefslogtreecommitdiff
path: root/ui/builders/join.h
blob: d4fb5347f574b57a2d01d068f0c8ad961bf7a957 (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 NodePtr & p1, const NodePtr & p2) const;

	NodePtr p1;
};