aboutsummaryrefslogtreecommitdiff
path: root/core/object.h
diff options
context:
space:
mode:
authorJuan Linietsky2017-07-16 12:39:23 -0300
committerJuan Linietsky2017-07-16 12:40:23 -0300
commit4366b7c8b0bf452236cdfd034d3a0e5d851576b9 (patch)
treeb5300139ef10f5f5ea709a07359b54145bef5b43 /core/object.h
parent40ab9adec3bd117e048ac477fcd9399e115f52f5 (diff)
downloadgodot-4366b7c8b0bf452236cdfd034d3a0e5d851576b9.tar.gz
godot-4366b7c8b0bf452236cdfd034d3a0e5d851576b9.tar.zst
godot-4366b7c8b0bf452236cdfd034d3a0e5d851576b9.zip
Diffstat (limited to 'core/object.h')
-rw-r--r--core/object.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/object.h b/core/object.h
index f87705c48..556f3f158 100644
--- a/core/object.h
+++ b/core/object.h
@@ -381,6 +381,10 @@ public:
};
private:
+ enum {
+ MAX_SCRIPT_INSTANCE_BINDINGS = 8
+ };
+
#ifdef DEBUG_ENABLED
friend class _ObjectDebugLock;
#endif
@@ -447,6 +451,8 @@ private:
void _set_bind(const String &p_set, const Variant &p_value);
Variant _get_bind(const String &p_name) const;
+ void *_script_instance_bindings[MAX_SCRIPT_INSTANCE_BINDINGS];
+
void property_list_changed_notify();
protected:
@@ -683,6 +689,9 @@ public:
bool editor_is_section_unfolded(const String &p_section);
#endif
+ //used by script languages to store binding data
+ void *get_script_instance_binding(int p_script_language_index);
+
void clear_internal_resource_paths();
Object();