summaryrefslogtreecommitdiff
path: root/tools/editor/multi_node_edit.h
blob: 5a0cabf4be7c1c2cc70a5f70d754538b1c90b77c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef MULTI_NODE_EDIT_H
#define MULTI_NODE_EDIT_H

#include "scene/main/node.h"

class MultiNodeEdit : public Reference {

	OBJ_TYPE(MultiNodeEdit,Reference);

	List<NodePath> nodes;
	struct PLData {
		int uses;
		PropertyInfo info;
	};

protected:

	bool _set(const StringName& p_name, const Variant& p_value);
	bool _get(const StringName& p_name,Variant &r_ret) const;
	void _get_property_list( List<PropertyInfo> *p_list) const;

public:



	void clear_nodes();
	void add_node(const NodePath& p_node);

	MultiNodeEdit();
};

#endif // MULTI_NODE_EDIT_H