mirror of
https://github.com/godotengine/godot.git
synced 2025-10-30 13:11:13 +00:00
Add support for _to_string virtual function overwrite in Pluginscript
This commit is contained in:
parent
a82765a464
commit
9761bab753
3 changed files with 9 additions and 0 deletions
|
|
@ -93,6 +93,13 @@ void PluginScriptInstance::notification(int p_notification) {
|
|||
_desc->notification(_data, p_notification);
|
||||
}
|
||||
|
||||
String PluginScriptInstance::to_string(bool *r_valid) {
|
||||
godot_string ret = _desc->to_string(_data, r_valid);
|
||||
String str_ret = *(String *)&ret;
|
||||
godot_string_destroy(&ret);
|
||||
return str_ret;
|
||||
}
|
||||
|
||||
Vector<ScriptNetData> PluginScriptInstance::get_rpc_methods() const {
|
||||
return _script->get_rpc_methods();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue