summaryrefslogtreecommitdiff
path: root/scene/3d/remote_transform.h
blob: 78f0fec1e9697532f628e138b914588dd9efe427 (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
#ifndef REMOTETRANSFORM_H
#define REMOTETRANSFORM_H

#include "scene/3d/spatial.h"

class RemoteTransform : public Spatial
{
	OBJ_TYPE(RemoteTransform,Spatial);
	
	NodePath remote_node;

	ObjectID cache;

	void _update_remote();
	void _update_cache(); 
 
protected:
	static void _bind_methods();
	void _notification(int p_what);
public:
	void set_remote_node(const NodePath& p_remote_node);
	NodePath get_remote_node() const;
	
	virtual String get_configuration_warning() const;
	
	RemoteTransform();

};

#endif // REMOTETRANSFORM_H