From 48f1d02da4795ba9d485fe5fe2bea907be2fc467 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 24 Jun 2015 13:29:23 -0300 Subject: added ability to define signals in script closes #2175 --- modules/gdscript/gd_script.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/gdscript/gd_script.h') diff --git a/modules/gdscript/gd_script.h b/modules/gdscript/gd_script.h index f505d51ba4..4672f3b8be 100644 --- a/modules/gdscript/gd_script.h +++ b/modules/gdscript/gd_script.h @@ -260,6 +260,7 @@ friend class GDScriptLanguage; Map member_functions; Map member_indices; //members are just indices to the instanced script. Map > subclasses; + Map > _signals; #ifdef TOOLS_ENABLED @@ -318,6 +319,9 @@ public: const Map& get_member_functions() const { return member_functions; } const Ref& get_native() const { return native; } + virtual bool has_script_signal(const StringName& p_signal) const; + virtual void get_script_signal_list(List *r_signals) const; + bool is_tool() const { return tool; } Ref get_base() const; -- cgit v1.2.3