diff options
| author | geequlim | 2017-05-29 14:09:16 +0800 |
|---|---|---|
| committer | geequlim | 2017-07-11 17:44:28 +0800 |
| commit | da2bcda7bec65f8c9bedb0ca3b23fc802b277c9d (patch) | |
| tree | 7f3af06381a0d03896f28f7f685da5c8460a9aac /core/script_language.h | |
| parent | 171d8a501ff97d4655ba4a7317822d41474eb4bc (diff) | |
| download | godot-da2bcda7bec65f8c9bedb0ca3b23fc802b277c9d.tar.gz godot-da2bcda7bec65f8c9bedb0ca3b23fc802b277c9d.tar.zst godot-da2bcda7bec65f8c9bedb0ca3b23fc802b277c9d.zip | |
Diffstat (limited to 'core/script_language.h')
| -rw-r--r-- | core/script_language.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/script_language.h b/core/script_language.h index f05245516..2cd0ca1b7 100644 --- a/core/script_language.h +++ b/core/script_language.h @@ -90,6 +90,9 @@ public: virtual ScriptInstance *instance_create(Object *p_this) = 0; virtual bool instance_has(const Object *p_this) const = 0; + virtual const Map<StringName, Variant> &get_constants() const = 0; + virtual const Set<StringName> &get_members() const = 0; + virtual bool has_source_code() const = 0; virtual String get_source_code() const = 0; virtual void set_source_code(const String &p_code) = 0; @@ -128,6 +131,7 @@ public: virtual void call_multilevel(const StringName &p_method, const Variant **p_args, int p_argcount); virtual void call_multilevel_reversed(const StringName &p_method, const Variant **p_args, int p_argcount); virtual void notification(int p_notification) = 0; + virtual Object *get_owner() { return NULL; } //this is used by script languages that keep a reference counter of their own //you can make make Ref<> not die when it reaches zero, so deleting the reference @@ -196,6 +200,7 @@ public: virtual String debug_get_stack_level_source(int p_level) const = 0; virtual void debug_get_stack_level_locals(int p_level, List<String> *p_locals, List<Variant> *p_values, int p_max_subitems = -1, int p_max_depth = -1) = 0; virtual void debug_get_stack_level_members(int p_level, List<String> *p_members, List<Variant> *p_values, int p_max_subitems = -1, int p_max_depth = -1) = 0; + virtual ScriptInstance *debug_get_stack_level_instance(int p_level) = 0; virtual void debug_get_globals(List<String> *p_locals, List<Variant> *p_values, int p_max_subitems = -1, int p_max_depth = -1) = 0; virtual String debug_parse_stack_level_expression(int p_level, const String &p_expression, int p_max_subitems = -1, int p_max_depth = -1) = 0; |
