Added a simpler/faster way to bind script languages instance wrappers to Godot

This commit is contained in:
Juan Linietsky
2017-07-16 12:39:23 -03:00
parent 40ab9adec3
commit 4366b7c8b0
4 changed files with 37 additions and 6 deletions

View File

@ -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();