Added an is_valid function to FuncRef so script can check if it is safe to call it.

This commit is contained in:
Rikhardur Bjarni Einarsson
2019-04-29 23:38:42 +01:00
parent 7018de8425
commit 9be8424ef9
2 changed files with 14 additions and 0 deletions

View File

@ -46,6 +46,7 @@ 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);
bool is_valid() const;
FuncRef();
};