summaryrefslogtreecommitdiffstats
path: root/core/script_language.h
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2018-02-22 15:34:08 +0100
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2018-08-23 01:38:48 +0200
commit908a30964a66884f0264021818531cc89c8d2b80 (patch)
tree96b74e1c22be61ed540f8746137f3a53032f4c28 /core/script_language.h
parent79a225ac2a2f2353f2f626809b56229397dfe52d (diff)
downloadredot-engine-908a30964a66884f0264021818531cc89c8d2b80.tar.gz
Notify instance binding data api of refcount increment/decrement
Diffstat (limited to 'core/script_language.h')
-rw-r--r--core/script_language.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/script_language.h b/core/script_language.h
index d1da0a3b72..4c0acc406d 100644
--- a/core/script_language.h
+++ b/core/script_language.h
@@ -284,6 +284,8 @@ public:
virtual void *alloc_instance_binding_data(Object *p_object) { return NULL; } //optional, not used by all languages
virtual void free_instance_binding_data(void *p_data) {} //optional, not used by all languages
+ virtual void refcount_incremented_instance_binding(Object *p_object) {} //optional, not used by all languages
+ virtual bool refcount_decremented_instance_binding(Object *p_object) { return true; } //return true if it can die //optional, not used by all languages
virtual void frame();