diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-05-26 14:07:57 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-06-01 17:24:21 +0200 |
commit | d779b5aa3ee7c2e93304f6c085675f8d3ec7aca5 (patch) | |
tree | 37fef87ecf3a68697b6da6bcbdfcb20cc1d9b770 /core/object/script_language.cpp | |
parent | 0aabfb341a477280befe115926486f2a32f34f0e (diff) | |
download | redot-engine-d779b5aa3ee7c2e93304f6c085675f8d3ec7aca5.tar.gz |
[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.
Diffstat (limited to 'core/object/script_language.cpp')
-rw-r--r-- | core/object/script_language.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/core/object/script_language.cpp b/core/object/script_language.cpp index 42fb0a0caf..aa91c6cbf7 100644 --- a/core/object/script_language.cpp +++ b/core/object/script_language.cpp @@ -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), |