mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Allow PluginScript to customize language's can_inherit_from_file attribute
This commit is contained in:
parent
efc2104096
commit
014efeb272
3 changed files with 6 additions and 1 deletions
|
@ -142,6 +142,10 @@ bool PluginScriptLanguage::supports_builtin_mode() const {
|
|||
return _desc.supports_builtin_mode;
|
||||
}
|
||||
|
||||
bool PluginScriptLanguage::can_inherit_from_file() {
|
||||
return _desc.can_inherit_from_file;
|
||||
}
|
||||
|
||||
int PluginScriptLanguage::find_function(const String &p_function, const String &p_code) const {
|
||||
if (_desc.find_function) {
|
||||
return _desc.find_function(_data, (godot_string *)&p_function, (godot_string *)&p_code);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue