aboutsummaryrefslogtreecommitdiff
path: root/core/script_language.h
diff options
context:
space:
mode:
authorJuan Linietsky2016-06-21 20:51:41 -0300
committerJuan Linietsky2016-06-21 20:51:41 -0300
commit3edf66477a49696ae82074b4675aff818dda68fe (patch)
treeba1bad6d0e9b22648ce574a2380d051e243537be /core/script_language.h
parentd57b09e47bb229b164ac34a408207882635b541b (diff)
downloadgodot-3edf66477a49696ae82074b4675aff818dda68fe.tar.gz
godot-3edf66477a49696ae82074b4675aff818dda68fe.tar.zst
godot-3edf66477a49696ae82074b4675aff818dda68fe.zip
Diffstat (limited to 'core/script_language.h')
-rw-r--r--core/script_language.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/script_language.h b/core/script_language.h
index ceaa86246..bde4d619a 100644
--- a/core/script_language.h
+++ b/core/script_language.h
@@ -129,6 +129,10 @@ public:
virtual void notification(int p_notification)=0;
+ //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
+ //depends entirely from the script
+
virtual void refcount_incremented() {}
virtual bool refcount_decremented() { return true; } //return true if it can die