summaryrefslogtreecommitdiff
path: root/core/script_language.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-12-20 16:39:35 +0100
committerGitHub <noreply@github.com>2017-12-20 16:39:35 +0100
commitf66ef74338bf3b217dedf2eaead5e5290e4dd07a (patch)
tree6f83682db9e4b3088a9bc2cb49d98ace0a587154 /core/script_language.cpp
parentfd8f679b13c3906d15a6f4a9d9e38c7705e76b9f (diff)
parent28561c2e7af963a5b7b5d40f97354ca205292c73 (diff)
Merge pull request #14823 from willnationsdev/get-base-script
Add Script.get_base_script()/get_instance_base_type() to API
Diffstat (limited to 'core/script_language.cpp')
-rw-r--r--core/script_language.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/script_language.cpp b/core/script_language.cpp
index c1e9d55872..2c32054e77 100644
--- a/core/script_language.cpp
+++ b/core/script_language.cpp
@@ -54,6 +54,8 @@ void Script::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_source_code"), &Script::get_source_code);
ClassDB::bind_method(D_METHOD("set_source_code", "source"), &Script::set_source_code);
ClassDB::bind_method(D_METHOD("reload", "keep_state"), &Script::reload, DEFVAL(false));
+ ClassDB::bind_method(D_METHOD("get_base_script"), &Script::get_base_script);
+ ClassDB::bind_method(D_METHOD("get_instance_base_type"), &Script::get_instance_base_type);
ClassDB::bind_method(D_METHOD("has_script_signal", "signal_name"), &Script::has_script_signal);