diff options
| author | Juan Linietsky | 2016-08-25 17:45:20 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-08-25 17:45:20 -0300 |
| commit | 9c6175db11ff72603ae58789a462b33ec1e910f8 (patch) | |
| tree | c7fbb26583b6c7f44b9f8091aa59497900527f08 /modules/gdscript/gd_script.cpp | |
| parent | 41a58f7935ecd0c91ae55a5e5b84425aadc51840 (diff) | |
| download | godot-9c6175db11ff72603ae58789a462b33ec1e910f8.tar.gz godot-9c6175db11ff72603ae58789a462b33ec1e910f8.tar.zst godot-9c6175db11ff72603ae58789a462b33ec1e910f8.zip | |
Diffstat (limited to 'modules/gdscript/gd_script.cpp')
| -rw-r--r-- | modules/gdscript/gd_script.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/gdscript/gd_script.cpp b/modules/gdscript/gd_script.cpp index 13fbfb6ec..b97a0fcbb 100644 --- a/modules/gdscript/gd_script.cpp +++ b/modules/gdscript/gd_script.cpp @@ -179,6 +179,15 @@ bool GDScript::can_instance() const { } +Ref<Script> GDScript::get_base_script() const { + + if (_base) { + return Ref<GDScript>( _base ); + } else { + return Ref<Script>(); + } +} + StringName GDScript::get_instance_base_type() const { if (native.is_valid()) |
