summaryrefslogtreecommitdiff
path: root/modules/visual_script/visual_script.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2020-04-20 19:06:00 -0300
committerJuan Linietsky <reduzio@gmail.com>2020-04-21 10:15:40 +0200
commit5d4dc2d45caef77cdb52e365bc02f64d54046df5 (patch)
treefb09d0a007a7a4fb4c45826e0e5955da4a11a07c /modules/visual_script/visual_script.h
parent7343ec13d9d32cedb2511db0ab5d1ed454404d65 (diff)
Add ability to bind typed arrays to script API
Note: Only replaced 2 instances to test, Node.get_children and TileMap.get_used_cells Note: Will do a mass replace on later PRs of whathever I can find, but probably need a tool to grep through doc. Warning: Mono will break, needs to be fixed (and so do TypeScript and NativeScript, need to ask respective maintainers)
Diffstat (limited to 'modules/visual_script/visual_script.h')
-rw-r--r--modules/visual_script/visual_script.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/visual_script/visual_script.h b/modules/visual_script/visual_script.h
index 29309aa156..c154e56703 100644
--- a/modules/visual_script/visual_script.h
+++ b/modules/visual_script/visual_script.h
@@ -272,6 +272,8 @@ protected:
static void _bind_methods();
public:
+ bool inherits_script(const Ref<Script> &p_script) const;
+
// TODO: Remove it in future when breaking changes are acceptable
StringName get_default_func() const;
void add_function(const StringName &p_name);