func_ref.h
1 #ifndef FUNC_REF_H
2 #define FUNC_REF_H
3 
4 #include "reference.h"
5 
6 class FuncRef : public Reference{
7 
8  OBJ_TYPE(FuncRef,Reference);
9  ObjectID id;
10  StringName function;
11 
12 protected:
13 
14  static void _bind_methods();
15 public:
16 
17  Variant call_func(const Variant** p_args, int p_argcount, Variant::CallError& r_error);
18  void set_instance(Object *p_obj);
19  void set_function(const StringName& p_func);
20  FuncRef();
21 };
22 
23 #endif // FUNC_REF_H
Definition: variant.h:74
Definition: func_ref.h:6
Definition: string_db.h:48
Definition: reference.h:40
Definition: object.h:317
Definition: variant.h:379