summaryrefslogtreecommitdiff
path: root/core/func_ref.h
diff options
context:
space:
mode:
authorsanikoyes <sanikoyes@163.com>2014-04-06 21:52:47 +0800
committersanikoyes <sanikoyes@163.com>2014-04-06 21:52:47 +0800
commit77a840e350668a9c80b1e63b9b73aac44221c53b (patch)
tree40d2115e639bdc72a61811ac4f2fb0f04ec8eb7f /core/func_ref.h
parent14bbdcb139b35e6d206df1ab3176d34245b72329 (diff)
parentded365031ede27b7a6efef59bc886343f58d310b (diff)
Merge branch 'master' into hotfix-android-unicode-ime-input
Diffstat (limited to 'core/func_ref.h')
-rw-r--r--core/func_ref.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/core/func_ref.h b/core/func_ref.h
new file mode 100644
index 0000000000..28d0e737be
--- /dev/null
+++ b/core/func_ref.h
@@ -0,0 +1,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