summaryrefslogtreecommitdiff
path: root/core/func_ref.h
blob: 28d0e737be549c62ae5357cc4612b5ebf18f84a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef FUNC_REF_H
#define FUNC_REF_H

#include "reference.h"

class FuncRef : public Reference{

	OBJ_TYPE(FuncRef,Reference);
	ObjectID id;
	StringName function;

protected:

	static void _bind_methods();
public:

	Variant call_func(const Variant** p_args, int p_argcount, Variant::CallError& r_error);
	void set_instance(Object *p_obj);
	void set_function(const StringName& p_func);
	FuncRef();
};

#endif // FUNC_REF_H