mirror of
https://github.com/godotengine/godot.git
synced 2025-11-03 15:11:19 +00:00
[Net] Refactor RPCs, remove RSETs
In this PR: - Removed rset - rpc_config can now optionally configure transfer mode (reliable/unreliable/ordered) and channel (channels are not actually implemented yet.) - Refactor how the RPC id is computed to minimize the logic in Node and scripts that now only needs a single `get_rpc_methods` function.
This commit is contained in:
parent
0aabfb341a
commit
d779b5aa3e
23 changed files with 251 additions and 1545 deletions
|
|
@ -585,14 +585,6 @@ Variant PlaceHolderScriptInstance::property_get_fallback(const StringName &p_nam
|
|||
return Variant();
|
||||
}
|
||||
|
||||
uint16_t PlaceHolderScriptInstance::get_rpc_method_id(const StringName &p_method) const {
|
||||
return UINT16_MAX;
|
||||
}
|
||||
|
||||
uint16_t PlaceHolderScriptInstance::get_rset_property_id(const StringName &p_method) const {
|
||||
return UINT16_MAX;
|
||||
}
|
||||
|
||||
PlaceHolderScriptInstance::PlaceHolderScriptInstance(ScriptLanguage *p_language, Ref<Script> p_script, Object *p_owner) :
|
||||
owner(p_owner),
|
||||
language(p_language),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue