mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 16:33:30 +00:00
Add Script::inherits_script()
Partial cherry-pick of 5d4dc2d45c
.
Co-authored-by: Juan Linietsky <reduzio@gmail.com>
This commit is contained in:
parent
504f47eaec
commit
7426b3fa91
11 changed files with 54 additions and 0 deletions
|
@ -136,6 +136,11 @@ bool PluginScript::can_instance() const {
|
|||
return can;
|
||||
}
|
||||
|
||||
bool PluginScript::inherits_script(const Ref<Script> &p_script) const {
|
||||
WARN_PRINT_ONCE("Inheritance needs to be implemented in PluginScript.");
|
||||
return false;
|
||||
}
|
||||
|
||||
Ref<Script> PluginScript::get_base_script() const {
|
||||
if (_ref_base_parent.is_valid()) {
|
||||
return Ref<PluginScript>(_ref_base_parent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue