Added a simpler/faster way to bind script languages instance wrappers to Godot
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user